:root {
  color-scheme: light;
  --ink: #10201c;
  --ink-strong: #061f1a;
  --muted: #60716b;
  --paper: #f7f5eb;
  --paper-deep: #eaefe5;
  --surface: #fffdf5;
  --surface-soft: #f0f5ed;
  --line: rgba(16, 32, 28, 0.13);
  --line-strong: rgba(16, 32, 28, 0.24);
  --green: #087b6d;
  --green-deep: #062b25;
  --green-ink: #031613;
  --mint: #d8efe6;
  --blue: #1d6f93;
  --amber: #c47a2c;
  --rose: #b54848;
  --shadow: 0 30px 90px rgba(6, 31, 26, 0.18);
  --soft-shadow: 0 18px 50px rgba(6, 31, 26, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--green-ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

img,
video,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 92px;
  line-height: 0.9;
  font-weight: 920;
}

h2 {
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
}

h3 {
  font-size: 28px;
  line-height: 1.08;
  font-weight: 860;
}

h4 {
  font-size: 20px;
  line-height: 1.16;
  font-weight: 840;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 14px 28px;
  color: #061f1a;
  background: rgba(255, 253, 245, 0.78);
  border-bottom: 1px solid rgba(6, 31, 26, 0.1);
  backdrop-filter: blur(22px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(6, 31, 26, 0.12);
}

.site-header nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(6, 31, 26, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.site-header nav a {
  min-width: 84px;
  padding: 9px 14px;
  border-radius: 6px;
  color: rgba(6, 31, 26, 0.72);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: #061f1a;
  background: rgba(8, 123, 109, 0.1);
}

.header-action {
  justify-self: end;
  min-height: 42px;
  padding: 11px 17px;
  border-radius: 999px;
  color: var(--green-ink);
  background: #f8fff6;
  font-size: 14px;
  font-weight: 870;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.app-store-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 8px;
}

.app-store-badge:focus-visible {
  outline: 3px solid rgba(8, 123, 109, 0.34);
  outline-offset: 4px;
}

.app-store-badge img {
  display: block;
  width: auto;
  height: 42px;
}

.app-store-badge-hero img {
  height: 56px;
}

.app-store-badge-footer img {
  height: 50px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 28px 24px 36px;
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
  font-weight: 760;
}

.site-footer.dark {
  color: rgba(255, 255, 255, 0.7);
  background: var(--green-ink);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--green);
}

.site-footer.dark a:hover,
.site-footer.dark a:focus-visible {
  color: #ffffff;
}

.policy-page {
  background: var(--paper);
}

.policy-page .site-header nav a {
  min-width: 84px;
}

.policy-main {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  padding: 126px 0 80px;
}

.policy-hero {
  padding: 48px 0 34px;
  border-bottom: 1px solid var(--line);
}

.policy-hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.94;
}

.policy-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 20px;
}

.policy-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.policy-section h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.02;
}

.policy-section h3 {
  margin-top: 24px;
  font-size: 20px;
}

.policy-section p,
.policy-section li {
  color: var(--muted);
  font-size: 17px;
}

.policy-section p {
  margin-top: 14px;
}

.policy-section ul {
  margin: 16px 0 0;
  padding-left: 21px;
}

.policy-section li + li {
  margin-top: 8px;
}

.policy-section a {
  color: var(--green);
  font-weight: 820;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-links a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}

.button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 880;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button {
  padding: 12px 17px;
}

.button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 16px 36px rgba(8, 123, 109, 0.26);
}

.button.primary:hover {
  background: #076f62;
}

.button.secondary,
.small-button {
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: 86svh;
  padding: 116px 0 30px;
  color: #f6fff8;
  background:
    linear-gradient(180deg, rgba(3, 22, 19, 0.96), rgba(6, 43, 37, 0.92) 72%, var(--paper) 100%),
    var(--green-ink);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(470px, 1.12fr);
  align-items: center;
  gap: 40px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy {
  min-width: 0;
}

.hero .eyebrow {
  color: #9ce8d8;
}

.hero-copy p:not(.eyebrow) {
  max-width: 600px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 23px;
  line-height: 1.28;
  font-weight: 680;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero .button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.hero-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  min-width: 0;
  perspective: 1400px;
  transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transition: transform 240ms ease-out;
}

.hero-stage picture,
.hero-stage img {
  width: 100%;
}

.hero-stage img {
  border-radius: 0;
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.28));
}

.hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(700px, calc(100% - 48px));
  margin: 20px auto 0;
}

.hero-metrics div {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  text-align: center;
}

.hero-metrics span {
  display: block;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.hero-metrics p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.proof-strip,
.editorial-band,
.feature-band,
.companion-intro,
.web-app-section,
.faq-band,
.closing-band {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  scroll-margin-top: 96px;
}

.proof-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: -10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--soft-shadow);
}

.proof-strip article {
  min-width: 0;
  padding: 24px;
  background: rgba(255, 253, 245, 0.96);
}

.proof-strip span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.proof-strip h2 {
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.12;
}

.proof-strip p {
  margin-top: 9px;
  color: var(--muted);
}

.section-copy {
  width: min(760px, 100%);
}

.section-copy.centered {
  width: min(840px, 100%);
  margin: 0 auto;
  text-align: center;
}

.section-copy.compact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: end;
  width: 100%;
}

.section-copy p,
.feature-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 19px;
}

.editorial-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  gap: 44px;
  align-items: center;
  padding: 118px 0 88px;
}

.system-list {
  display: grid;
  gap: 10px;
}

.system-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.9);
  box-shadow: 0 12px 32px rgba(6, 31, 26, 0.06);
}

.system-list span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.system-list strong {
  font-size: 22px;
  line-height: 1.12;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(440px, 1.28fr);
  gap: 48px;
  align-items: center;
  padding: 80px 0;
}

.feature-band.first-feature {
  padding-top: 58px;
}

.feature-band.reverse {
  grid-template-columns: minmax(440px, 1.28fr) minmax(0, 0.72fr);
}

.feature-band.reverse .feature-copy {
  order: 2;
}

.feature-band.reverse .feature-art {
  order: 1;
}

.feature-copy {
  min-width: 0;
}

.feature-copy h2 {
  max-width: 620px;
}

.feature-art {
  min-width: 0;
}

.feature-art img,
.companion-art img {
  width: 100%;
  border-radius: 0;
  filter: drop-shadow(0 26px 42px rgba(6, 31, 26, 0.2));
}

.companion-intro {
  display: grid;
  gap: 32px;
  padding: 86px 0 42px;
}

.companion-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.companion-art {
  width: min(960px, 100%);
  margin: 0 auto;
}

.web-app-section {
  padding: 64px 0 104px;
}

.companion-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(3, 22, 19, 0.08), rgba(247, 245, 235, 0) 320px),
    var(--paper);
}

.companion-page-main {
  min-height: 100vh;
}

.companion-workspace {
  padding: 118px 0 86px;
}

.companion-workspace-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 28px;
  align-items: end;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(6, 43, 37, 0.98), rgba(17, 61, 72, 0.92)),
    var(--green-deep);
  box-shadow: var(--shadow);
}

.companion-workspace-header .section-copy.compact {
  gap: 28px;
}

.companion-workspace h1 {
  font-size: 66px;
  line-height: 0.96;
}

.companion-workspace-header .eyebrow {
  color: #9ce8d8;
}

.companion-workspace-header .section-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.companion-metrics {
  width: 100%;
  margin: 0;
}

.companion-metrics div {
  background: rgba(255, 255, 255, 0.1);
}

.companion-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.95fr);
  gap: 18px 24px;
  align-items: end;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.9);
  box-shadow: var(--soft-shadow);
}

.companion-auth h3 {
  font-size: 24px;
}

.companion-auth p {
  margin-top: 8px;
  color: var(--muted);
}

.pairing-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

.pairing-form input {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
}

.pairing-video {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-deep);
  object-fit: cover;
}

.companion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.companion-status {
  min-height: 22px;
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.companion-status[data-tone="success"] {
  color: var(--green);
}

.companion-status[data-tone="error"] {
  color: var(--rose);
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  min-height: 720px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(6, 43, 37, 0.97), rgba(29, 111, 147, 0.62)),
    #0f2e2a;
  box-shadow: var(--shadow);
}

.app-sidebar,
.app-main {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.95);
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.sidebar-top,
.app-toolbar,
.today-summary,
.plant-card-header,
.closing-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--mint);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stat-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.stat-grid span {
  display: block;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.stat-grid p,
.plant-list p,
.task-card p,
.plant-card p,
.species-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.plant-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.plant-list button,
.list-message {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.plant-list button.active {
  border-color: rgba(8, 123, 109, 0.46);
  background: var(--mint);
}

.plant-list strong,
.list-message strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.app-toolbar {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.segmented button {
  min-width: 92px;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

.segmented button.active {
  color: #ffffff;
  background: var(--green-deep);
}

.view {
  display: none;
  min-height: 0;
  padding: 18px;
  overflow: auto;
}

.view.active {
  display: grid;
  align-content: start;
  gap: 14px;
}

.today-summary {
  padding: 20px;
  border: 1px solid rgba(8, 123, 109, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fbfffa 0%, #e9f8f4 100%);
}

.status-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 8px #fff0da;
}

.status-mark.done {
  background: var(--green);
  box-shadow: 0 0 0 8px var(--mint);
}

.task-list,
.garden-grid,
.discover-grid {
  display: grid;
  gap: 12px;
}

.task-card,
.plant-card,
.species-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.task-card.done {
  background: #f7faf7;
}

.data-chip {
  justify-self: end;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--mint);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.task-title,
.species-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.task-kind {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  color: var(--green-deep);
  background: var(--mint);
  font-size: 14px;
  font-weight: 950;
}

.small-button {
  min-height: 38px;
  padding: 9px 12px;
  background: #ffffff;
}

.small-button:disabled {
  cursor: default;
  color: var(--muted);
  background: #f2f4f2;
}

.add-plant-form {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.garden-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plant-card {
  display: grid;
  gap: 14px;
}

.plant-visual,
.species-visual {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  font-size: 22px;
  font-weight: 950;
}

.plant-progress {
  display: grid;
  gap: 8px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebe6;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green) 0%, var(--amber) 100%);
}

.plant-actions,
.species-tags,
.farm-plant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.farm-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
}

.farm-plant-list span,
.species-tags span {
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discover-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.species-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.species-card h4 {
  font-size: 18px;
}

.faq-band {
  display: grid;
  gap: 30px;
  padding: 76px 0 90px;
}

.faq-list {
  width: min(900px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  padding: 22px 0;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 850;
}

.faq-list details p {
  max-width: 760px;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}

.closing-band {
  margin-bottom: 80px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-deep), #113d48);
  box-shadow: var(--shadow);
}

.closing-band .eyebrow {
  color: #9ce8d8;
}

.closing-band h2 {
  font-size: 42px;
}

.closing-band p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.closing-band .button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.invite-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 16, 14, 0.72);
  backdrop-filter: blur(12px);
}

.invite-dialog {
  position: relative;
  width: min(480px, 100%);
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.invite-dialog img {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 12px;
}

.invite-dialog h2 {
  font-size: 34px;
}

.invite-dialog > p:not(.eyebrow),
.invite-status {
  margin-top: 10px;
  color: var(--muted);
}

.invite-code {
  margin-top: 18px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-weight: 850;
}

.invite-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  h1 {
    font-size: 76px;
  }

  h2 {
    font-size: 46px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-header nav {
    justify-self: center;
  }

  .hero-inner,
  .editorial-band,
  .feature-band,
  .feature-band.reverse,
  .section-copy.compact,
  .companion-workspace-header,
  .companion-auth {
    grid-template-columns: 1fr;
  }

  .feature-band.reverse .feature-copy,
  .feature-band.reverse .feature-art {
    order: initial;
  }

  .hero-stage {
    width: min(760px, 100%);
    margin: 0 auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .plant-list {
    max-height: 260px;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 24px;
  }

  .site-header {
    min-height: 66px;
    padding: 12px 14px;
  }

  .brand span {
    display: none;
  }

  .site-header nav {
    gap: 2px;
    padding: 4px;
  }

  .site-header nav a {
    min-width: 0;
    padding: 8px 8px;
    font-size: 12px;
  }

  .header-action {
    min-height: 36px;
    padding: 9px 11px;
    font-size: 12px;
  }

  .app-store-badge-header {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 94px 0 24px;
  }

  .hero-inner,
  .proof-strip,
  .editorial-band,
  .feature-band,
  .companion-intro,
  .web-app-section,
  .faq-band,
  .closing-band {
    width: min(100% - 24px, var(--max));
  }

  .hero-copy p:not(.eyebrow),
  .section-copy p,
  .feature-copy p {
    font-size: 17px;
  }

  .hero-actions,
  .closing-actions,
  .companion-cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .companion-workspace {
    padding-top: 88px;
    padding-bottom: 58px;
  }

  .policy-main {
    width: min(100% - 24px, 920px);
    padding-top: 104px;
  }

  .policy-hero {
    padding-top: 30px;
  }

  .companion-workspace-header {
    padding: 18px;
  }

  .companion-workspace h1 {
    font-size: 44px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
  }

  .hero-metrics div {
    min-height: 72px;
    padding: 12px 6px;
  }

  .hero-metrics span {
    font-size: 26px;
  }

  .hero-metrics p {
    font-size: 10px;
    line-height: 1.12;
  }

  .proof-strip {
    margin-top: 0;
  }

  .editorial-band,
  .feature-band,
  .companion-intro,
  .web-app-section,
  .faq-band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .system-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pairing-form,
  .add-plant-form {
    grid-template-columns: 1fr;
  }

  .app-toolbar,
  .today-summary,
  .closing-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
    min-width: 0;
  }

  .garden-grid,
  .discover-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 31px;
  }

  .site-header nav a {
    padding: 7px 7px;
  }

  .header-action {
    display: none;
  }

  .policy-page .site-header nav a {
    min-width: 0;
    padding: 8px 8px;
    font-size: 12px;
  }

  .policy-page .site-header nav a[href="/#history"] {
    display: none;
  }

  .policy-section p,
  .policy-section li {
    font-size: 16px;
  }

  .hero-metrics {
    width: min(100% - 24px, 700px);
  }

  .companion-auth,
  .app-shell,
  .companion-workspace-header,
  .closing-band,
  .invite-dialog {
    padding: 14px;
  }

  .view,
  .app-toolbar,
  .app-sidebar {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-stage {
    transform: none !important;
  }
}
