:root {
  color-scheme: light;
  --paper: #eee8dc;
  --paper-deep: #e3dacb;
  --cream: #f7f2e8;
  --ink: #18342b;
  --muted: #657169;
  --moss: #263f32;
  --moss-soft: #92a286;
  --soil: #a86646;
  --soil-dark: #805037;
  --line: #c9c3b6;
  font-family: "Avenir Next", "Helvetica Neue", ui-sans-serif, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.page-shell { min-height: 100svh; padding: 0; }
.welcome-page, .setup-page, .garden-page, .settings-page { min-height: 100svh; overflow: hidden; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 88px;
  padding: 18px clamp(20px, 5.5vw, 84px);
  background: var(--moss);
  color: var(--cream);
}
.brand-lockup { display: flex; align-items: center; gap: 26px; text-decoration: none; }
.brand-name { font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 800; line-height: .94; letter-spacing: -.05em; }
.brand-tag { padding-left: 24px; border-left: 1px solid rgb(247 242 232 / 55%); color: #d3d9c9; font-size: .63rem; font-weight: 700; letter-spacing: .28em; line-height: 1.65; text-transform: uppercase; }
.header-note { display: flex; align-items: center; gap: 18px; color: #d3d9c9; font-size: .62rem; font-weight: 700; letter-spacing: .22em; line-height: 1.6; text-transform: uppercase; }
.header-action { min-height: 42px; padding: 10px 18px; border: 1px solid rgb(247 242 232 / 45%); border-radius: 999px; background: transparent; color: var(--cream); font-size: .78rem; font-weight: 700; }
.header-action:hover, .header-action:focus-visible { background: rgb(247 242 232 / 12%); }

h1, h2, p { margin-top: 0; }
h1 { letter-spacing: -.075em; line-height: .92; }
h1 em { color: var(--soil); font-style: normal; }
.eyebrow { margin: 0 0 18px; color: var(--soil); font-size: .68rem; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; }
.lead { margin: 24px 0 34px; color: var(--muted); font-size: 1.03rem; line-height: 1.65; }
.lead.compact { margin: 15px 0 0; }
.section-kicker { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; color: var(--moss); font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.section-kicker span { color: var(--muted); font-weight: 700; }

.welcome-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .66fr); max-width: 1440px; min-height: calc(100svh - 88px); margin: 0 auto; }
.welcome-visual { display: flex; flex-direction: column; justify-content: center; padding: clamp(64px, 10vw, 150px) clamp(26px, 8vw, 130px); background: var(--paper); }
.welcome-visual h1 { max-width: 9ch; margin-bottom: 0; font-size: clamp(3.3rem, 7vw, 7.3rem); }
.welcome-visual .lead { max-width: 31rem; }
.welcome-quote { width: fit-content; margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--soil); color: var(--soil-dark); font-size: 1.05rem; font-style: italic; }
.welcome-card { align-self: stretch; display: flex; flex-direction: column; justify-content: center; max-width: none; padding: clamp(32px, 7vw, 100px); border-left: 1px solid var(--line); border-radius: 0; background: var(--cream); box-shadow: none; }
.welcome-card .section-kicker { margin-bottom: 42px; }
.email-form { display: grid; gap: 12px; max-width: 390px; }

.setup-layout { display: grid; grid-template-columns: .8fr 1.2fr; max-width: 1440px; min-height: calc(100svh - 88px); margin: 0 auto; }
.setup-intro { padding: clamp(58px, 8vw, 128px) clamp(26px, 7vw, 108px); background: var(--paper); }
.setup-intro h1 { max-width: 8ch; margin-bottom: 0; font-size: clamp(3rem, 6vw, 6.4rem); }
.setup-intro .lead { max-width: 25rem; }
.intro-note { display: grid; gap: 5px; width: fit-content; margin-top: 90px; padding-top: 15px; border-top: 1px solid var(--soil); color: var(--soil-dark); font-size: .92rem; line-height: 1.4; }
.intro-note span { color: var(--muted); }
.setup-form-panel { padding: clamp(30px, 5vw, 72px) clamp(24px, 6vw, 90px); border-left: 1px solid var(--line); background: var(--cream); }
.stack-form { display: grid; gap: 0; }
.setup-block, .form-section { padding: 28px 0; border-top: 1px solid var(--line); }
.setup-block:last-of-type { border-bottom: 1px solid var(--line); }
.setup-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.setup-heading h2, .form-section h2 { margin: 0; font-size: 1.08rem; letter-spacing: -.035em; }
.setup-heading p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.step-dot { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border: 1px solid var(--soil); border-radius: 50%; color: var(--soil-dark); font-size: .58rem; font-weight: 800; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.stack-form label { display: grid; gap: 8px; color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
input, select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; outline: none; background: #fbf8f0; color: var(--ink); }
input:focus, select:focus { border-color: var(--soil); box-shadow: 0 0 0 3px rgb(168 102 70 / 15%); }
.field-help { margin: 9px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.check-row { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 11px !important; margin-top: 19px; font-size: .8rem !important; font-weight: 600 !important; line-height: 1.5; }
.check-row input { width: 19px; min-height: 19px; margin-top: 1px; padding: 0; accent-color: var(--soil); }
.fine-print { max-width: 48ch; margin: 18px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }

.button { min-height: 50px; padding: 12px 20px; border: 0; border-radius: 999px; font-weight: 800; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button-primary { background: var(--soil); color: #fff9f0; }
.button-primary:hover { background: var(--soil-dark); }
.button-secondary { border: 1px solid var(--moss-soft); background: transparent; color: var(--moss); }
.button-quiet { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.button-danger { border: 1px solid #c9947d; background: transparent; color: var(--soil-dark); }
.notice { margin: 0 0 16px; padding: 14px 16px; border-left: 3px solid var(--soil); background: #eee6d9; color: var(--moss); font-size: .85rem; line-height: 1.5; }
.notice-error { border-color: #9b5743; background: #f3e2d9; color: #7c3e2d; }
.notice-success { border-color: var(--moss-soft); background: #e4eadf; }
.local-link { margin-top: 14px; font-size: .82rem; line-height: 1.6; }
.local-link a { color: var(--soil-dark); font-weight: 800; }

.garden-page { background: var(--paper); }
.garden-layout { display: grid; grid-template-columns: minmax(260px, .36fr) minmax(0, 1fr); max-width: 1600px; min-height: calc(100svh - 88px); margin: 0 auto; }
.garden-aside { display: flex; flex-direction: column; align-items: center; min-height: 900px; padding: 70px 30px 24px; border-right: 1px solid var(--line); text-align: center; }
.aside-quote { align-self: flex-start; margin: 0 0 22px; color: var(--soil-dark); font-size: 1.08rem; font-style: italic; line-height: 1.35; text-align: left; }
.garden-aside img { width: min(100%, 300px); height: 530px; object-fit: cover; mix-blend-mode: multiply; opacity: .82; }
.aside-note { align-self: flex-end; margin: -8px 0 0; color: var(--muted); font-size: .72rem; letter-spacing: .1em; line-height: 1.6; text-align: left; text-transform: uppercase; }
.garden-main { min-width: 0; padding: clamp(56px, 7vw, 112px) clamp(22px, 5vw, 78px) 70px; }
.garden-hero h1 { max-width: 15ch; margin-bottom: 0; font-size: clamp(3.2rem, 5vw, 6.4rem); }
.garden-hero .lead { max-width: 34rem; }
.progress-panel { padding: 23px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.progress-label { display: flex; justify-content: space-between; gap: 20px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.progress-label strong { color: var(--soil-dark); font-size: .86rem; }
.progress-track { height: 6px; margin: 13px 0 9px; overflow: hidden; background: #d7d2c7; }
.progress-track i { display: block; height: 100%; background: var(--moss); transition: width .5s ease; }
.progress-panel p { margin: 0; color: var(--muted); font-size: .76rem; }
.plants-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border-bottom: 1px solid var(--line); }
.plant-card { display: flex; flex-direction: column; min-width: 0; min-height: 510px; padding: 0 22px 28px; border-left: 1px solid var(--line); background: transparent; transition: background .25s ease; }
.plant-card:first-child { border-left: 0; padding-left: 0; }
.plant-card:hover { background: rgb(247 242 232 / 42%); }
.plant-card.is-complete { background: rgb(216 226 208 / 34%); }
.plant-visual { display: flex; flex-direction: column; align-items: stretch; height: auto; margin-bottom: 22px; overflow: visible; }
.plant-art { display: flex; align-items: flex-end; justify-content: center; height: 285px; overflow: hidden; }
.plant-illustration { position: relative; width: 100%; height: 100%; isolation: isolate; }
.plant-layer { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.plant-layer img, .plant-layer .plant-sprite { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s ease, opacity .3s ease; }
.plant-layer-muted { opacity: .38; filter: grayscale(1) saturate(.35) sepia(.12); }
.plant-layer-color { clip-path: inset(calc(100% - var(--plant-progress)) 0 0 0); transition: clip-path .7s ease; }
.plant-sprite { display: block; background-image: url('/assets/plants/catalog/contact-sheet.png'); background-repeat: no-repeat; background-size: 500% 600%; background-position: var(--sprite-x) var(--sprite-y); }
.plant-card:hover .plant-layer img, .plant-card:hover .plant-sprite, .plant-card.is-complete .plant-layer img, .plant-card.is-complete .plant-sprite { transform: translateY(-5px); }
.plant-progress { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: .63rem; font-weight: 800; }
.plant-progress i { flex: 1; height: 4px; overflow: hidden; background: var(--moss-soft); }
.plant-progress i b { display: block; height: 100%; background: var(--moss); transition: width .6s ease; }
.plant-content { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-kicker { margin: 0 0 8px; color: var(--soil-dark); font-size: .62rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.plant-card h2 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 2.2rem); letter-spacing: -.06em; }
.text-info { padding: 2px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .64rem; font-weight: 700; white-space: nowrap; }
.text-info:hover, .text-info:focus-visible { border-color: var(--soil); color: var(--soil-dark); }
.card-description { min-height: 57px; margin: 14px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.48; }
.card-status { display: flex; align-items: center; min-height: 38px; margin-top: 12px; }
.status-pill { display: inline-flex; padding: 5px 0; color: var(--muted); font-size: .71rem; line-height: 1.35; }
.status-good { color: var(--moss); }
.status-ready { color: var(--soil-dark); font-weight: 800; }
.timer { color: var(--moss); font-size: 1.65rem; font-weight: 800; letter-spacing: .06em; }
.muted-timer { color: var(--muted); font-size: .78rem; letter-spacing: 0; }
.card-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.card-controls .button { width: 100%; font-size: .76rem; }
.reward-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; text-align: left; }
.reward-sprite { display: inline-block; width: 25px; height: 25px; flex: 0 0 25px; background-image: url('/assets/rewards/catalog/contact-sheet.png'); background-repeat: no-repeat; background-size: 500% 200%; background-position: var(--reward-x) var(--reward-y); mix-blend-mode: multiply; }
.reward-sprite-default { border: 1px solid var(--moss-soft); border-radius: 50%; background: radial-gradient(circle at 65% 35%, var(--soil) 0 14%, transparent 15%), radial-gradient(ellipse at 50% 75%, var(--moss-soft) 0 32%, transparent 34%); }
.completion-card { display: grid; gap: 12px; max-width: 560px; margin-top: 36px; padding: 26px 0; border-top: 1px solid var(--soil); border-bottom: 1px solid var(--soil); background: transparent; }
.completion-card h2 { margin: 0; font-size: 1.7rem; letter-spacing: -.05em; }
.completion-card p, .legal-note p, .danger-zone p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.completion-mark { color: var(--soil); font-size: 1.8rem; font-weight: 800; }
.legal-note { max-width: 620px; margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--moss); font-size: .75rem; }
.legal-note p { margin-top: 5px; font-size: .72rem; }

.settings-page { background: var(--paper); }
.settings-page > .site-header { margin-bottom: 0; }
.settings-page { max-width: none; padding-bottom: 70px; }
.settings-page > :not(.site-header) { width: min(100% - 40px, 820px); margin-right: auto; margin-left: auto; }
.back-link { margin-top: 46px !important; padding: 0; border: 0; background: none; color: var(--soil-dark); font-size: .78rem; font-weight: 800; }
.settings-page h1 { max-width: 10ch; margin: 22px auto 0; font-size: clamp(3rem, 6vw, 6rem); }
.settings-page > .lead { margin-bottom: 40px; }
.settings-page .setup-block, .settings-page .form-section { padding-top: 24px; }
.history-section, .danger-zone { margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.history-section h2, .danger-zone h2 { margin: 0 0 15px; font-size: 1.12rem; letter-spacing: -.04em; }
.history-section { display: grid; gap: 10px; }
.history-row { display: flex; justify-content: space-between; gap: 15px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.history-row span:first-child { color: var(--ink); font-weight: 800; }
.danger-zone { border-color: #c9947d; }
.danger-zone .button { margin-top: 18px; }

@media (max-width: 980px) {
  .header-note { display: none; }
  .garden-layout { grid-template-columns: 1fr; }
  .garden-aside { display: none; }
  .garden-main { padding-top: 64px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 76px; padding: 16px 18px; }
  .brand-lockup { gap: 16px; }
  .brand-tag { padding-left: 16px; font-size: .52rem; letter-spacing: .18em; }
  .header-action { min-height: 36px; padding: 8px 12px; font-size: .7rem; }
  .welcome-layout, .setup-layout { display: block; min-height: auto; }
  .welcome-visual, .setup-intro { min-height: 480px; padding: 62px 22px 52px; }
  .welcome-visual h1, .setup-intro h1 { font-size: clamp(3rem, 15vw, 5.3rem); }
  .welcome-quote { margin-top: 45px; }
  .welcome-card, .setup-form-panel { padding: 42px 22px 58px; border-top: 1px solid var(--line); border-left: 0; }
  .intro-note { margin-top: 56px; }
  .two-columns { grid-template-columns: 1fr; }
  .garden-main { padding: 48px 18px 54px; }
  .garden-hero h1 { font-size: clamp(3rem, 14vw, 5.4rem); }
  .plants-list { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .plant-card, .plant-card:first-child { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; min-height: 0; padding: 22px 0; border-top: 1px solid var(--line); border-left: 0; }
  .plant-visual { margin: 0; }
  .plant-art { height: 190px; }
  .plant-card h2 { font-size: 1.65rem; }
  .card-description { min-height: 0; font-size: .78rem; }
  .card-controls { padding-top: 8px; }
  .plant-progress { gap: 5px; font-size: .52rem; }
  .settings-page > :not(.site-header) { width: min(100% - 36px, 820px); }
  .settings-page h1 { font-size: clamp(3rem, 14vw, 5.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
