/* =========================================================
   Fronda · Jardines tropicales — demo
   1. Tokens  2. Reset  3. Type & layout  4. Components
   5. Sections  6. Effects (.fx)  7. Responsive
   ========================================================= */

/* 1. Tokens */
:root {
  --cream: #EFE8D8;
  --cream-2: #E6DDC8;
  --paper: #F8F3E8;
  --forest: #0F2418;
  --forest-2: #163021;
  --moss: #2C4A32;
  --leaf: #4E7A45;
  --sage: #9DAE8C;
  --ink: #18221B;
  --ink-2: #3E4A40;
  --muted: #6F7466;
  --terra: #C4562E;
  --terra-d: #A8441F;
  --pollen: #E9C46A;
  --line: rgba(24, 34, 27, .14);
  --line-2: rgba(24, 34, 27, .26);
  --line-l: rgba(239, 232, 216, .18);
  --f-display: "Fraunces", "Georgia", serif;
  --f-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, Menlo, monospace;
  --wrap: 1320px;
  --gut: clamp(1rem, 4vw, 2.6rem);
  --sec: clamp(5rem, 11vw, 9rem);
  --r: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; padding: .7rem 1rem; background: var(--forest); color: var(--cream); border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* 3. Type & layout */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .02em; }
.kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: .84rem; font-weight: 500; color: rgba(239, 232, 216, .72); }
.kicker .mono { white-space: nowrap; flex: none; color: var(--forest); background: var(--pollen); padding: .2rem .5rem; border-radius: 6px; }
.kicker--ink { color: var(--muted); }
.kicker--ink .mono { background: var(--forest); color: var(--pollen); }
.sec-title { font-family: var(--f-display); font-weight: 340; font-size: clamp(2.5rem, 6.2vw, 5.4rem); line-height: .98; letter-spacing: -.025em; margin-top: 1.1rem; font-variation-settings: "SOFT" 60, "opsz" 144; }
.sec-title em { font-style: italic; color: var(--terra); font-weight: 300; }
.sec-title--sm { font-size: clamp(2.4rem, 4.2vw, 3.9rem); }
.sec-head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.sec-lead { color: var(--ink-2); max-width: 30rem; }

/* 4. Components */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .96rem; line-height: 1.1; transition: background .3s ease, color .3s ease, transform .3s var(--ease-out), border-color .3s ease; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-terra { background: var(--terra); color: #FFF8EE; }
.btn-terra:hover { background: var(--terra-d); }
.btn-ghost { border: 1px solid rgba(239, 232, 216, .38); color: var(--cream); }
.btn-ghost:hover { background: rgba(239, 232, 216, .1); border-color: var(--cream); }

.chip { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; font-weight: 500; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 200; color: var(--cream); transition: background .4s ease, color .4s ease, box-shadow .4s ease; }
.nav.is-scrolled { background: rgba(15, 36, 24, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav.is-light { background: rgba(239, 232, 216, .88); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-display); font-size: 1.7rem; font-weight: 420; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "opsz" 72; }
.logo-mark { width: 30px; height: 30px; fill: none; stroke: var(--pollen); stroke-width: 2; stroke-linecap: round; }
.nav.is-light .logo-mark, .footer .logo-mark { stroke: var(--leaf); }
.nav-links { display: none; }
.nav-phone, .nav-cta { display: none; }
.nav-toggle { margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-content: center; gap: 5px; opacity: .9; }
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.nav-links.is-open { display: flex; flex-direction: column; position: fixed; inset: 72px 0 auto; padding: 1.4rem var(--gut) 2rem; background: var(--cream); color: var(--ink); gap: .2rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
.nav-links.is-open a:not(.btn) { font-family: var(--f-display); font-size: 1.9rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.nav-links.is-open .btn { margin-top: 1.2rem; }

/* 5. Sections */

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: radial-gradient(120% 90% at 75% 20%, #1D3B27 0%, var(--forest) 55%, #0A1B11 100%); color: var(--cream); overflow: hidden; display: flex; flex-direction: column; }
.garden { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10, 27, 17, .75) 0%, rgba(10, 27, 17, 0) 18%), linear-gradient(180deg, rgba(10, 27, 17, .92) 0%, rgba(10, 27, 17, .6) 38%, rgba(10, 27, 17, 0) 62%); }
.hero-inner { position: relative; z-index: 2; padding-top: clamp(110px, 16vh, 170px); pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.hero-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.3rem, 9.4vw, 8.6rem); line-height: .9; letter-spacing: -.035em; margin-top: 1.3rem; max-width: 11ch; font-variation-settings: "SOFT" 100, "opsz" 144; }
.hero-title em { font-style: italic; color: var(--pollen); font-weight: 300; }
.hero-sub { margin-top: 1.4rem; max-width: 30rem; color: rgba(239, 232, 216, .8); font-size: 1.08rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.plant-hint { position: absolute; z-index: 3; left: 50%; bottom: 7.4rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem .55rem .7rem; border-radius: 999px; background: rgba(10, 27, 17, .6); border: 1px solid var(--line-l); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .86rem; pointer-events: none; white-space: nowrap; transition: transform .4s var(--ease-out); }
.plant-hint.is-pop { transform: translateX(-50%) scale(1.06); }
.seed { width: 12px; height: 12px; border-radius: 50%; background: var(--pollen); box-shadow: 0 0 0 0 rgba(233, 196, 106, .6); animation: seedPulse 2s infinite; }
.hero-stats { position: relative; z-index: 2; margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.4rem; pointer-events: none; }
.hero-stats > div { border-top: 1px solid var(--line-l); padding-top: .8rem; display: grid; gap: .1rem; }
.hero-stats b { font-family: var(--f-display); font-weight: 340; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1; }
.hero-stats small { font-size: .55em; color: var(--pollen); margin-left: .05em; }
.hero-stats span { font-size: .78rem; color: rgba(239, 232, 216, .66); line-height: 1.3; }

/* latin marquee */
.latin { background: var(--cream); border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.1rem 0; }
.latin-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: marquee 60s linear infinite; font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 300; white-space: nowrap; }
.latin-track i { font-style: normal; color: var(--terra); font-size: .7em; }

/* manifesto */
.manifesto { padding: var(--sec) 0; }
.manifesto-text { font-family: var(--f-display); font-weight: 320; font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.14; letter-spacing: -.02em; max-width: 22ch; font-variation-settings: "SOFT" 80, "opsz" 120; }
.pill-img { display: inline-block; width: 2.1em; height: 1em; border-radius: 999px; overflow: hidden; vertical-align: -.1em; margin: 0 .05em; }
.pill-img img { width: 100%; height: 100%; object-fit: cover; }
.manifesto-sign { margin-top: 2rem; color: var(--muted); }

/* herbario */
.herb { padding: var(--sec) 0; background: var(--cream-2); background-image: radial-gradient(rgba(24, 34, 27, .05) 1px, transparent 1px); background-size: 22px 22px; }
.herb-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 2.2rem; }
.herb-count { margin-left: auto; color: var(--muted); }
.herb-grid { display: grid; gap: 1.4rem; }
.sheet { perspective: 1600px; transition: opacity .5s ease, filter .5s ease, transform .5s var(--ease-out); }
.sheet.is-dim { opacity: .22; filter: grayscale(1); transform: scale(.97); }
.sheet-inner { position: relative; transform-style: preserve-3d; transition: transform .9s var(--ease-out); cursor: pointer; }
.sheet.is-flipped .sheet-inner { transform: rotateY(180deg); }
.sheet-face { background: var(--paper); border-radius: 6px; padding: 1rem 1rem 1.1rem; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -26px rgba(24, 34, 27, .55); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.sheet-front { position: relative; display: flex; flex-direction: column; }
.sheet-back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem; background: var(--forest-2); color: var(--cream); }
.sheet-no { color: var(--muted); margin-bottom: .7rem; }
.sheet-photo { position: relative; background: #fff; padding: .45rem; box-shadow: 0 2px 8px -4px rgba(0,0,0,.3); transform: rotate(-.6deg); }
.sheet:nth-child(even) .sheet-photo { transform: rotate(.7deg); }
.sheet-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.tape { position: absolute; width: 64px; height: 20px; background: rgba(233, 214, 160, .7); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tape-a { top: -8px; left: -14px; transform: rotate(-32deg); }
.tape-b { bottom: -8px; right: -14px; transform: rotate(-32deg); }
.native-stamp { position: absolute; bottom: -30px; left: -10px; width: 86px; height: 86px; border-radius: 50%; background: rgba(248, 243, 232, .94); color: var(--terra); transform: rotate(-14deg); pointer-events: none; box-shadow: 0 6px 14px -8px rgba(0,0,0,.35); }
.native-stamp svg { width: 100%; height: 100%; overflow: visible; }
.native-stamp text { font-family: var(--f-mono); font-size: 8.4px; letter-spacing: .6px; fill: currentColor; font-weight: 500; }
.native-stamp::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.6px solid currentColor; }
.native-stamp::after { content: ""; position: absolute; inset: 20px; border-radius: 50%; border: 1px solid currentColor; }
.native-stamp b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: 1.3rem; font-weight: 500; }
.sheet-label { margin-top: 1rem; margin-left: auto; width: min(100%, 15rem); border: 1px solid var(--line-2); padding: .7rem .8rem; background: #FBF8F0; }
.latin-name { font-family: var(--f-display); font-style: italic; font-size: 1.22rem; line-height: 1.15; font-weight: 380; }
.common { font-size: 1rem; font-weight: 600; margin-top: .15rem; }
.fam { color: var(--muted); margin-top: .2rem; }
.needs { display: flex; gap: .8rem; margin-top: .55rem; padding-top: .5rem; border-top: 1px dashed var(--line-2); }
.need { display: inline-flex; align-items: center; gap: 2px; }
.need svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.need svg .fill { fill: var(--ink); stroke: none; }
.need-water svg { width: 14px; height: 14px; }
.need-water svg.on { fill: #4C7E9C; stroke: #4C7E9C; }
.need-water svg.off { stroke: var(--line-2); }
.sheet-flip { align-self: flex-start; margin-top: .9rem; display: inline-flex; gap: .4rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); transition: background .25s ease, color .25s ease; }
.sheet-front .sheet-flip:hover { background: var(--forest); color: var(--cream); }
.sheet-back .sheet-flip { margin-top: auto; border-color: var(--line-l); }
.sheet-back .sheet-flip:hover { background: var(--cream); color: var(--forest); }
.back-kicker { color: var(--pollen); }
.sheet-back .latin-name { font-size: 1.7rem; }
.care { display: grid; gap: .7rem; }
.care div { border-top: 1px solid var(--line-l); padding-top: .55rem; }
.care dt { color: var(--sage); }
.care dd { font-size: .95rem; line-height: 1.45; }
.fact { font-family: var(--f-display); font-style: italic; font-size: 1.05rem; line-height: 1.35; color: var(--pollen); }

/* year */
.year { position: relative; height: 620vh; background: var(--forest); }
.year-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: rgb(28, 44, 26); color: var(--cream); transition: background 1.2s ease; }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.year-sun { position: absolute; top: 12%; right: 8%; width: clamp(160px, 22vw, 300px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(233, 196, 106, .9) 0 30%, rgba(233, 196, 106, .22) 46%, rgba(233, 196, 106, 0) 70%); transition: opacity 1.2s ease, transform 1.2s var(--ease-out); pointer-events: none; }
.year-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.year-inner { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.2rem; padding-top: 92px; padding-bottom: 1.4rem; }
.year-month { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(4rem, 14vw, 12.5rem); line-height: .86; letter-spacing: -.04em; margin-top: .8rem; font-variation-settings: "SOFT" 100, "opsz" 144; }
.year-month.is-swap { animation: monthIn .7s var(--ease-out); }
.year-season { display: inline-flex; margin-top: .9rem; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-l); font-size: .9rem; }
.year-data { display: flex; gap: 2rem; margin-top: 1.1rem; }
.year-data dt { color: rgba(239, 232, 216, .6); }
.year-data dd { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 340; line-height: 1.1; }
.year-label { color: var(--pollen); margin-bottom: .5rem; }
.year-tasks { counter-reset: t; margin-bottom: 1.2rem; }
.year-tasks li { counter-increment: t; display: grid; grid-template-columns: 2rem 1fr; padding: .55rem 0; border-top: 1px solid var(--line-l); font-family: var(--f-display); font-size: clamp(1.05rem, 1.8vw, 1.45rem); line-height: 1.25; font-weight: 340; animation: pop .6s var(--ease-out) both; }
.year-tasks li:nth-child(2) { animation-delay: .06s; }
.year-tasks li:nth-child(3) { animation-delay: .12s; }
.year-tasks li::before { content: "0" counter(t); font-family: var(--f-mono); font-size: .72rem; color: rgba(239, 232, 216, .5); padding-top: .4em; }
.year-bloom { display: flex; flex-wrap: wrap; gap: .4rem; }
.year-bloom li { padding: .3rem .8rem; border-radius: 999px; background: rgba(233, 196, 106, .14); color: var(--pollen); font-size: .86rem; }
.year-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: .35rem; align-items: end; height: clamp(70px, 12vh, 120px); }
.year-bars button { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: .35rem; }
.year-bars i { display: block; border-radius: 4px 4px 1px 1px; background: rgba(239, 232, 216, .22); height: var(--h); transition: background .4s ease, transform .4s var(--ease-out); transform-origin: bottom; }
.year-bars button.is-wet i { background: rgba(157, 196, 196, .4); }
.year-bars button.is-on i { background: var(--pollen); }
.year-bars button:hover i { transform: scaleY(1.05); background: rgba(233, 196, 106, .6); }
.year-bars span { font-family: var(--f-mono); font-size: .66rem; text-align: center; color: rgba(239, 232, 216, .6); }
.year-bars button.is-on span { color: var(--pollen); }
.year-scroll { position: absolute; right: var(--gut); top: 96px; color: rgba(239, 232, 216, .5); }

/* services */
.svc { position: relative; padding: var(--sec) 0; }
.svc-list { border-bottom: 1px solid var(--line-2); }
.svc-row { position: relative; display: grid; grid-template-columns: 2.4rem 1fr auto; grid-template-areas: "n h thumb" "n p thumb" "n price thumb"; column-gap: 1rem; row-gap: .4rem; padding: 1.5rem 0; border-top: 1px solid var(--line-2); }
.svc-n { grid-area: n; color: var(--muted); padding-top: .6rem; }
.svc-row h3 { grid-area: h; font-family: var(--f-display); font-weight: 340; font-size: clamp(1.9rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -.02em; transition: color .4s ease, transform .5s var(--ease-out); font-variation-settings: "SOFT" 60, "opsz" 144; }
.svc-row p { grid-area: p; color: var(--ink-2); max-width: 30rem; font-size: .98rem; }
.svc-price { grid-area: price; font-family: var(--f-display); font-size: 1.5rem; font-weight: 380; }
.svc-price small { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.svc-thumb { grid-area: thumb; width: 88px; height: 110px; object-fit: cover; border-radius: 12px; align-self: center; }
.svc-float { position: fixed; left: 0; top: 0; z-index: 50; width: 300px; height: 380px; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-9999px, 0, 0); transition: opacity .35s ease; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.svc-float img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform .8s var(--ease-out); }
.svc-float.is-on { opacity: 1; }
.svc-float.is-on img { transform: scale(1); }

/* planner */
.plan { padding: var(--sec) 0; background: var(--cream-2); }
.plan-grid { display: grid; gap: 2rem; align-items: start; }
.planner { background: var(--paper); border-radius: 28px; padding: clamp(1.2rem, 3vw, 2.2rem); box-shadow: 0 30px 60px -44px rgba(24, 34, 27, .5); }
.q { padding: 1.4rem 0; border-bottom: 1px dashed var(--line-2); }
.q:first-child { padding-top: .2rem; }
.q:last-child { border-bottom: 0; padding-bottom: .2rem; }
.q legend { font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 380; margin-bottom: 1rem; display: flex; align-items: baseline; gap: .7rem; float: left; width: 100%; }
.q legend + * { clear: both; }
.q legend .mono { color: var(--terra); }
.size-row { display: flex; align-items: center; gap: 1rem; }
.size-row input { flex: 1; }
.size-out { font-family: var(--f-display); font-size: 1.6rem; min-width: 6.5ch; text-align: right; }
.hint { color: var(--muted); margin-top: .5rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--leaf) var(--fill, 22%), var(--line-2) var(--fill, 22%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--leaf); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--terra); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--terra); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--terra); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--terra); }
.seg, .extras, .visit-slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label, .extras label, .styles label, .visit-slots label, .visit-days label { position: relative; cursor: pointer; }
.seg input, .extras input, .styles input, .visit-slots input, .visit-days input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span, .extras span, .visit-slots span { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .94rem; font-weight: 500; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.seg svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.seg svg .fill { fill: currentColor; stroke: none; }
.extras span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid currentColor; display: inline-block; transition: background .2s ease; }
.seg input:checked + span, .visit-slots input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.extras input:checked + span { border-color: var(--leaf); background: rgba(78, 122, 69, .12); }
.extras input:checked + span::before { background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100%; border-color: var(--leaf); }
.seg input:focus-visible + span, .extras input:focus-visible + span, .styles input:focus-visible + span, .visit-slots input:focus-visible + span, .visit-days input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.styles span { display: grid; gap: .15rem; height: 100%; padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--line-2); transition: background .25s ease, border-color .25s ease, color .25s ease; }
.styles b { font-family: var(--f-display); font-weight: 420; font-size: 1.12rem; line-height: 1.15; }
.styles small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.styles input:checked + span { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.styles input:checked + span small { color: rgba(239, 232, 216, .7); }

/* seed packet */
.packet-col { display: grid; gap: 1.4rem; }
.packet { --pk: #1F4A2E; --pk-2: #2B5E3A; --pk-ink: var(--cream); --pk-acc: var(--pollen); --pk-art1: #7FB069; --pk-art2: var(--terra); --stamp: var(--pollen);
  position: relative; width: 100%; max-width: 460px; margin: 0 auto; padding-top: 46px; color: var(--pk-ink); transition: color .6s ease; }
.packet[data-style="nativo"] { --pk: #D8C9A0; --pk-2: #CBB98A; --pk-ink: var(--ink); --pk-acc: var(--moss); --pk-art1: #5E7D4D; --pk-art2: #8C5A3C; --stamp: var(--terra); }
.packet[data-style="mariposas"] { --pk: #E7B847; --pk-2: #F0CB6C; --pk-ink: var(--ink); --pk-acc: var(--terra-d); --pk-art1: #D0532A; --pk-art2: #2E2A26; --stamp: var(--forest); }
.packet[data-style="huerto"] { --pk: #B4452B; --pk-2: #C55A3E; --pk-ink: #FFF5E8; --pk-acc: var(--pollen); --pk-art1: #E9C46A; --pk-art2: #6FA05A; --stamp: var(--pollen); }
.packet-flap { position: absolute; top: 0; left: 0; right: 0; height: 60px; background: var(--pk); clip-path: polygon(0 100%, 8% 18%, 14% 0, 86% 0, 92% 18%, 100% 100%); filter: brightness(.92); transition: background .6s ease; }
.packet-body { position: relative; background: var(--pk); border-radius: 0 0 18px 18px; padding: 1.4rem 1.4rem 1.2rem; box-shadow: 0 40px 70px -40px rgba(24, 34, 27, .7); transition: background .6s ease; background-image: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.06)), radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px); background-size: auto, 5px 5px; }
.packet-body::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 14px; background: radial-gradient(circle at 7px -2px, transparent 6px, var(--pk) 6.5px) 0 0 / 14px 14px repeat-x; opacity: 0; }
.packet.is-shake { animation: rattle .5s ease; }
.packet-top { display: flex; justify-content: space-between; gap: 1rem; opacity: .8; border-bottom: 1px solid currentColor; padding-bottom: .6rem; }
.packet-art { margin: 1rem 0 .4rem; border-radius: 12px; background: var(--pk-2); aspect-ratio: 200 / 120; display: grid; place-items: center; overflow: hidden; transition: background .6s ease; }
.art { display: none; width: 78%; height: auto; }
.packet[data-style="selva"] .art-selva, .packet[data-style="nativo"] .art-nativo, .packet[data-style="mariposas"] .art-mariposas, .packet[data-style="huerto"] .art-huerto { display: block; animation: artIn .8s var(--ease-out); }
.art .stem, .art .stem2 { fill: none; stroke: var(--pk-art1); stroke-width: 3; stroke-linecap: round; }
.art .stem2 { stroke-width: 2.2; opacity: .8; }
.art .leaf { fill: var(--pk-art1); }
.art .leaf2 { fill: var(--pk-art1); opacity: .75; }
.art .cut { stroke: var(--pk-2); stroke-width: 4; stroke-linecap: round; }
.art .fan { stroke: var(--pk-art1); stroke-width: 6; stroke-linecap: round; }
.art .berry { fill: var(--pk-art2); }
.art .wing { fill: var(--pk-art1); stroke: var(--pk-art2); stroke-width: 3; stroke-linejoin: round; }
.art .body { stroke: var(--pk-art2); stroke-width: 6; stroke-linecap: round; }
.art .ant { fill: none; stroke: var(--pk-art2); stroke-width: 2; stroke-linecap: round; }
.art .dot { fill: #FFF8EC; }
.art .tomato { fill: var(--pk-art1); }
.art-huerto .leaf, .art-huerto .leaf2 { fill: var(--pk-art2); }
.art-huerto .stem { stroke: var(--pk-art2); }
.packet-name { font-family: var(--f-display); font-style: italic; font-weight: 340; font-size: clamp(2.2rem, 4.4vw, 3rem); line-height: 1; margin-top: .6rem; letter-spacing: -.02em; }
.packet-sub { opacity: .78; margin-top: .4rem; }
.packet-label { margin-top: 1.1rem; color: var(--pk-acc); }
.packet-plants { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; margin-top: .35rem; }
.packet-plants li { padding: .3rem 0; border-bottom: 1px dotted currentColor; font-size: .92rem; font-weight: 500; line-height: 1.25; animation: pop .5s var(--ease-out) both; }
.packet-plants li i { display: block; font-family: var(--f-display); font-weight: 340; font-size: .82rem; opacity: .75; }
.packet-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: 1rem; }
.packet-stats div { border: 1px dashed currentColor; border-radius: 10px; padding: .5rem .55rem; }
.packet-stats dt { opacity: .72; font-size: .64rem; line-height: 1.2; }
.packet-stats dd { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.2; margin-top: .15rem; white-space: nowrap; }
.packet-price { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid currentColor; }
.packet-price span { display: block; opacity: .75; }
.packet-price b { font-family: var(--f-display); font-weight: 380; font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.05; }
.packet-price small { font-family: var(--f-mono); font-size: .7rem; font-weight: 400; }
.packet-foot { margin-top: .8rem; opacity: .7; font-size: .66rem; }
.stamp { position: absolute; right: -10px; top: 17%; width: 128px; height: 128px; border-radius: 50%; border: 3px double var(--stamp); color: var(--stamp); display: grid; place-content: center; text-align: center; gap: .1rem; transform: rotate(-14deg) scale(1.6); opacity: 0; pointer-events: none; }
.stamp::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed var(--stamp); }
.stamp b { font-family: var(--f-display); font-size: 1.5rem; line-height: 1; font-weight: 600; }
.packet.is-stamped .stamp { opacity: .92; transform: rotate(-14deg) scale(1); animation: thump .55s cubic-bezier(.3, 1.6, .5, 1); }

/* visit */
.visit { width: 100%; max-width: 460px; margin: 0 auto; background: var(--paper); border-radius: 22px; padding: 1.3rem; display: grid; gap: .9rem; }
.visit-title { font-family: var(--f-display); font-size: 1.4rem; font-weight: 400; line-height: 1.2; }
.visit-title .mono { color: var(--muted); font-size: .7rem; }
.visit-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; }
.visit-days label { min-width: 0; }
.visit-days span { display: grid; place-items: center; padding: .45rem .1rem; border-radius: 12px; border: 1px solid var(--line-2); line-height: 1.15; transition: background .25s ease, color .25s ease; }
.visit-days b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 420; }
.visit-days small { font-family: var(--f-mono); font-size: .62rem; }
.visit-days input:checked + span { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.visit-fields { display: grid; gap: .6rem; }
.visit-fields label { display: grid; gap: .25rem; min-width: 0; }
.visit-fields .mono { color: var(--muted); }
.visit-fields input { width: 100%; min-width: 0; min-height: 46px; padding: .6rem .9rem; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.visit-fields input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(78, 122, 69, .18); }
.visit-fields input.is-bad { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(196, 86, 46, .15); }
.zip-hint { font-family: var(--f-mono); font-size: .72rem; min-height: 1.1em; color: var(--muted); }
.zip-hint.ok { color: var(--leaf); }
.zip-hint.no { color: var(--terra-d); }
.visit-status { font-size: .92rem; min-height: 1.2em; color: var(--ink-2); }
.visit-status.ok { color: var(--leaf); font-weight: 600; }
.visit-status.bad { color: var(--terra-d); }

/* steps */
.steps { padding: var(--sec) 0; }
.steps-grid { display: grid; gap: 2.4rem; }
.steps-photo { position: relative; border-radius: var(--r); overflow: hidden; }
.steps-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.steps-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(15, 36, 24, .7); color: var(--cream); }
.vine-wrap { position: relative; margin-top: 2.6rem; padding-left: 64px; }
.vine-clip { position: absolute; left: 6px; top: 0; width: 40px; height: 0; overflow: hidden; }
.vine-clip svg { width: 40px; display: block; }
.vine-clip path { fill: none; stroke: var(--leaf); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vine-base { position: absolute; left: 6px; top: 0; bottom: 0; width: 40px; }
.vine-base path { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.step-list li { position: relative; padding-bottom: 2.4rem; }
.step-list li:last-child { padding-bottom: 0; }
.step-list .mono { color: var(--terra); }
.step-list h3 { font-family: var(--f-display); font-weight: 380; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; margin: .2rem 0 .4rem; }
.step-list p:last-child { color: var(--ink-2); max-width: 28rem; }
.step-leaf { position: absolute; left: -52px; top: .2rem; width: 26px; height: 26px; border-radius: 0 100% 0 100%; background: var(--leaf); transform: rotate(-45deg) scale(.3); opacity: .25; transition: transform .7s cubic-bezier(.3, 1.6, .5, 1), opacity .5s ease; }
.step-list li:nth-child(even) .step-leaf { transform: rotate(45deg) scale(.3); border-radius: 100% 0 100% 0; }
.step-list li.is-on .step-leaf { transform: rotate(-45deg) scale(1); opacity: 1; }
.step-list li:nth-child(even).is-on .step-leaf { transform: rotate(45deg) scale(1); }

/* voices */
.voices { padding: 0 0 var(--sec); }
.voices-grid { display: grid; gap: 2.4rem; align-items: center; }
.voices-photo { border-radius: var(--r); overflow: hidden; }
.voices-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.voice-big { margin-top: 1.4rem; }
.voice-big p { font-family: var(--f-display); font-weight: 320; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.18; letter-spacing: -.015em; }
.voice-big footer, .voice-row footer { color: var(--muted); margin-top: .9rem; }
.voice-row { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
.voice-row blockquote { border-top: 1px solid var(--line-2); padding-top: 1rem; }
.voice-row p { font-size: 1.05rem; }

/* faq */
.faq { padding: var(--sec) 0; background: var(--paper); border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 2.4rem; }
.zones { margin-top: 2rem; }
.zones .mono { color: var(--muted); margin-bottom: .6rem; }
.zones ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.zones li { padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--line-2); font-size: .9rem; }
.faq-list details { border-top: 1px solid var(--line-2); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-2); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; font-family: var(--f-display); font-weight: 380; font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.15; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--f-body); font-size: 1.3rem; transition: transform .4s var(--ease-out), background .3s ease, color .3s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--forest); color: var(--cream); border-color: var(--forest); }
.faq-list details p { padding: 0 3rem 1.4rem 0; color: var(--ink-2); max-width: 40rem; }

/* end */
.end { position: relative; overflow: hidden; background: var(--forest); color: var(--cream); padding: calc(var(--sec) * 1.2) 0; }
.end-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.end::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15, 36, 24, .3), rgba(15, 36, 24, .85)); }
.end-inner { position: relative; z-index: 2; display: grid; gap: 2rem; }
.end-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.2rem, 8.6vw, 7.8rem); line-height: .92; letter-spacing: -.035em; max-width: 12ch; font-variation-settings: "SOFT" 100, "opsz" 144; }
.end-title em { font-style: italic; color: var(--pollen); }
.end-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* footer */
.footer { padding: 2.4rem 0 5.5rem; font-size: .9rem; color: var(--ink-2); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.footer .logo { color: var(--ink); font-size: 1.5rem; }
.footer-row a:last-child { text-decoration: underline; text-underline-offset: 3px; }
.demo-note { margin-top: 1.2rem; font-size: .82rem; color: var(--muted); }
.demo-note a { text-decoration: underline; text-underline-offset: 3px; }
.demo-pill { position: fixed; left: 1rem; bottom: 1rem; z-index: 210; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; background: var(--forest); color: var(--cream); font-weight: 600; font-size: .75rem; border: 1px solid rgba(239, 232, 216, .22); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.demo-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.demo-pill:hover { background: var(--moss); }

/* 6. Effects (.fx only) */
.fx [data-in] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.fx [data-in].is-in { opacity: 1; transform: none; }
.fx .hero [data-in]:nth-child(2) { transition-delay: .1s; }
.fx .hero [data-in]:nth-child(3) { transition-delay: .22s; }
.fx .hero [data-in]:nth-child(4) { transition-delay: .34s; }
.fx .herb-grid .sheet[data-in] { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .5s ease; }
.fx .herb-grid .sheet.is-in.is-dim { opacity: .22; transform: scale(.97); }
.fx .manifesto-text .w { color: rgba(24, 34, 27, .16); transition: color .35s ease; }
.fx .manifesto-text .w.on { color: var(--ink); }
.fx .manifesto-text .pill-img.w { opacity: .25; transform: scale(.7); transition: opacity .5s ease, transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.fx .manifesto-text .pill-img.w.on { opacity: 1; transform: none; }
.fx .svc-row h3 { will-change: transform; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes seedPulse { 0% { box-shadow: 0 0 0 0 rgba(233, 196, 106, .6); } 70% { box-shadow: 0 0 0 12px rgba(233, 196, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 196, 106, 0); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes monthIn { from { opacity: 0; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
@keyframes rattle { 0%, 100% { transform: none; } 20% { transform: rotate(-1.6deg); } 40% { transform: rotate(1.4deg); } 60% { transform: rotate(-.8deg); } 80% { transform: rotate(.5deg); } }
@keyframes artIn { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes thump { 0% { opacity: 0; transform: rotate(-14deg) scale(1.7); } 60% { opacity: .95; transform: rotate(-14deg) scale(.94); } 100% { opacity: .92; transform: rotate(-14deg) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .latin-track { animation-duration: 200s; }
  .packet.is-shake { animation: none; }
  .seed { animation: none; }
}

/* 7. Responsive */
@media (hover: hover) and (pointer: fine) {
  .svc-row { cursor: default; }
  .svc-row:hover h3 { color: var(--terra); transform: translateX(14px); font-style: italic; }
}
@media (min-width: 640px) {
  .herb-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-row { grid-template-columns: 1fr 1fr; }
  .visit-fields { grid-template-columns: 1fr 1fr; }
  .visit-fields .zip { grid-column: 1 / -1; }
  .svc-row { grid-template-columns: 3rem 1fr auto; }
  .svc-thumb { width: 120px; height: 140px; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; gap: 1.6rem; margin-left: 2.6rem; font-size: .92rem; font-weight: 500; }
  .nav-links a { opacity: .82; transition: opacity .3s ease; }
  .nav-links a:hover { opacity: 1; }
  .nav-cta-mobile { display: none; }
  .nav-phone { display: inline; margin-left: auto; opacity: .8; }
  .nav-cta { display: inline-flex; min-height: 44px; padding: .6rem 1.2rem; }
  .nav-toggle { display: none; }

  .hero-shade { background: linear-gradient(0deg, rgba(10, 27, 17, .8) 0%, rgba(10, 27, 17, 0) 20%), linear-gradient(90deg, rgba(10, 27, 17, .94) 0%, rgba(10, 27, 17, .7) 30%, rgba(10, 27, 17, 0) 58%); }
  .plant-hint { left: auto; right: var(--gut); bottom: 8rem; transform: none; }
  .plant-hint.is-pop { transform: scale(1.06); }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 15rem)); gap: 2.4rem; }

  .sec-head { grid-template-columns: 1fr minmax(0, 26rem); align-items: end; gap: 3rem; }

  .herb-grid { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
  .herb-grid .sheet:nth-child(4n+2), .herb-grid .sheet:nth-child(4n+4) { margin-top: 3rem; }

  .year-inner { grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr auto; column-gap: 4rem; padding-top: 110px; padding-bottom: 2rem; align-items: center; }
  .year-bars { grid-column: 1 / -1; }

  .svc-row { grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr) 10rem; grid-template-areas: "n h p price"; align-items: center; padding: 2rem 0; }
  .svc-n { padding-top: 0; }
  .svc-price { text-align: right; }
  .svc-thumb { display: none; }

  .plan-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; }
  .packet-col { position: sticky; top: 90px; }

  .steps-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
  .steps-photo { position: sticky; top: 110px; }
  .voices-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
  .faq-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .end-inner { grid-template-columns: 1fr auto; align-items: end; }
}
@media (max-width: 959px) {
  .hero-stats { padding-bottom: 4.6rem; }
  .plant-hint { bottom: 10.2rem; }
  .year { height: 520vh; }
  .year-right { align-self: start; }
  .year-scroll { display: none; }
}
@media (max-width: 420px) {
  .styles { grid-template-columns: 1fr; }
  .packet-stats { grid-template-columns: 1fr 1fr; }
  .visit-days { grid-template-columns: repeat(3, 1fr); }
}
@media (max-height: 760px) and (max-width: 959px) {
  .year-month { font-size: 3.6rem; }
  .year-tasks li { padding: .4rem 0; font-size: 1rem; }
  .year-data { margin-top: .6rem; }
}
