/* Botanical accents extend the existing BALANCE palette and components. */
/* Leaves may cross section edges; only the outer viewport trims sideways overflow. */
html, body { overflow-x:clip; }
.botanical-scene { position:relative; isolation:isolate; }
.botanical-field { position:absolute; z-index:-1; inset:0 -32px; overflow:visible; pointer-events:none; user-select:none; }
.botanical { position:absolute; left:var(--x); top:var(--y); width:var(--size); aspect-ratio:1; opacity:var(--alpha); background:url(assets/leaf-accents.webp) 0 0 / 200% 200% no-repeat; transform:rotate(var(--angle)); transform-origin:30% 80%; }
.botanical-mint { background-image:url(assets/vegetable-accents.webp); background-position:100% 100%; }
.botanical-salad { background-position:100% 0; }
.botanical-spinach { background-position:0 100%; }
.hero-copy::before,.hero-copy::after,.features::before,.recipes-section::before,.situations::after,.faq-heading::after { display:none; }
.quick-strip:hover .quick-strip-track { animation-play-state:running; }

:is(.button,.top-action,.gallery-controls button,.phone-nav button,.gallery-card)::before { content:""; display:inline-block; flex:none; width:25px; height:25px; margin-right:9px; background:url(assets/vegetable-accents.webp) var(--plant-position,100% 100%) / 200% 200% no-repeat; pointer-events:none; transform-origin:50% 80%; }
.top-action { display:inline-flex; align-items:center; justify-content:center; }
.top nav a { display:inline-flex; align-items:center; min-height:44px; }
.top-action::before { width:21px; height:21px; --plant-position:0 100%; }
.hero .button::before,.approach .button::before { --plant-position:0 100%; }
.section-action .button::before,.lesson .button::before,.footer-app .button::before { --plant-position:100% 0; }
.carrot-perk .button::before { --plant-position:0 0; }
.gallery-controls button { display:inline-flex; align-items:center; justify-content:center; }
.gallery-controls button::before { width:20px; height:20px; margin-right:7px; }
.gallery-controls button:last-child::before { --plant-position:0 100%; }
.phone-action::before { width:20px; height:20px; --plant-position:100% 0; }
.phone-action { min-height:44px; }
.phone-nav button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:53px; }
.phone-nav button::before { width:17px; height:17px; margin:0; }
.phone-nav button:nth-child(2)::before { --plant-position:0 100%; }
.phone-nav button:nth-child(3)::before { --plant-position:100% 0; }
.phone-nav button:nth-child(4)::before { --plant-position:0 0; }
.gallery-card::before { position:absolute; z-index:2; top:10px; right:10px; width:27px; height:27px; margin:0; filter:drop-shadow(0 1px 3px #142318aa); }
.gallery-card:nth-child(even)::before { --plant-position:0 100%; }
.button-small { min-height:46px; padding:10px 16px; font-size:.8rem; }
.button-small::before { width:23px; height:23px; margin-right:7px; }

.carrot-perk { display:flex; align-items:center; gap:17px; margin-top:24px; padding:18px 22px; background:#fff3d7c9; border:1px solid #bca471; border-radius:16px; scroll-margin-top:24px; }
.perk-carrot { display:block; flex:0 0 48px; height:52px; background:url(assets/vegetable-accents.webp) 0 0 / 200% 200% no-repeat; }
.carrot-perk > div { flex:1; min-width:0; }
.carrot-perk h3 { font-size:1.04rem; letter-spacing:-.03em; line-height:1.3; margin-bottom:4px; }
.carrot-perk p { font-size:.82rem; line-height:1.6; color:#5d593c; }
.carrot-perk .button { flex:none; }
.approach { display:grid; grid-template-columns:minmax(0,.83fr) minmax(0,1fr); align-items:center; gap:clamp(28px,6vw,85px); }
.approach-visual { position:relative; border-radius:24px 70px 24px 24px; overflow:hidden; max-width:480px; }
.approach-visual img { width:100%; height:auto; aspect-ratio:1; }
.approach h2 { margin:16px 0 22px; font-size:clamp(2rem,4vw,3.8rem); }
.approach-copy > p:not(.eyebrow) { max-width:485px; margin-top:16px; color:var(--muted); }
.approach .button { margin-top:24px; }
.faq-heading h2 { max-width:none; }
.botanical-bouquet { position:absolute; left:3%; top:35%; width:280px; height:245px; transform-origin:42% 78%; --angle:0deg; }
.botanical-bouquet .botanical { animation:none; }
@media(prefers-reduced-motion:no-preference) {
  .botanical-bouquet { animation:botanical-sway 10s ease-in-out -1s infinite paused; }
  .is-in-view .botanical-bouquet { animation-play-state:running; }
}

.site-footer { position:relative; background:#d3e4bf; }
.footer-grid { display:grid; grid-template-columns:1.1fr .75fr 1.1fr 1fr; gap:32px; padding-block:40px 32px; }
.footer-brand p,.footer-app p { margin-top:16px; color:var(--muted); font-size:.8rem; line-height:1.7; max-width:245px; }
.footer-grid h2 { font-size:.8rem; letter-spacing:0; line-height:1.4; margin:2px 0 14px; }
.footer-grid nav { display:flex; flex-direction:column; align-items:flex-start; }
.footer-grid nav a { display:flex; align-items:center; min-height:44px; padding-block:7px; color:var(--muted); font-size:.8rem; line-height:1.5; }
.footer-grid nav a:hover,.footer-bottom a:hover { color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px 24px; padding-block:16px; border-top:1px solid #9db58b; font-size:.72rem; color:var(--muted); }
.footer-bottom a { display:flex; align-items:center; min-height:44px; white-space:nowrap; }

.inner-page .top { gap:16px; }
.inner-page .top .underlink { display:inline-flex; align-items:center; min-height:44px; font-size:.85rem; }
.document { max-width:820px; padding-block:64px 72px; }
.document h1 { font-size:clamp(2.2rem,5vw,3.6rem); margin:18px 0 30px; overflow-wrap:anywhere; }
.document h2 { font-size:1.25rem; line-height:1.35; letter-spacing:-.025em; margin:30px 0 12px; }
.document p,.document li { color:var(--muted); margin-block:12px; line-height:1.8; }
.document li { padding-left:4px; }
.document ul { padding-left:22px; }
.document a:not(.button) { text-decoration:underline; text-underline-offset:4px; }
.document .legal-sample { background:var(--gold); border-left:3px solid #ba9445; border-radius:0 12px 12px 0; padding:15px 20px; font-size:.85rem; }
.document .document-date { font-size:.8rem; }
.document .button { margin-top:20px; }
.error-page { min-height:calc(100svh - 190px); display:grid; grid-template-columns:1fr .7fr; align-items:center; gap:40px; padding-block:70px; }
.error-code { font:800 clamp(5rem,15vw,12rem)/.95 var(--sans); letter-spacing:-.08em; color:var(--moss); margin-bottom:22px; }
.error-page h1 { font-size:clamp(2rem,4vw,3.5rem); }
.error-page .lead { max-width:470px; color:var(--muted); margin:22px 0; }
.error-greens { position:relative; min-height:310px; }
.error-greens span { position:absolute; width:240px; aspect-ratio:1; background:url(assets/vegetable-accents.webp) 100% 100% / 200% 200% no-repeat; inset:0 auto auto 10%; transform:rotate(-15deg); }
.error-greens span:last-child { background-position:0 100%; width:190px; inset:auto 0 0 auto; transform:rotate(15deg); }

@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  :is(.button,.top-action,.gallery-controls button,.phone-nav button,.gallery-card).is-near::before { animation:plant-rustle 480ms ease-out; }
  :is(.button,.top-action,.gallery-controls button).is-near { animation:button-nudge 380ms ease-out; }
  .button.is-near { box-shadow:0 5px 0 #123f2e; }
  .lesson .button.is-near,.closing .button.is-near { box-shadow:0 5px 0 #adc68e; }
  @keyframes plant-rustle { 0%,100% { transform:rotate(0); } 25% { transform:rotate(-14deg) scale(1.09); } 52% { transform:rotate(9deg) scale(1.09); } 76% { transform:rotate(-4deg); } }
  @keyframes button-nudge { 0%,100% { translate:0 0; } 24% { translate:-1px 0; } 48% { translate:1px 0; } 72% { translate:-.5px 0; } }
}
@media(prefers-reduced-motion:no-preference) {
  .botanical { animation-duration:var(--cycle); animation-delay:var(--delay); animation-timing-function:ease-in-out; animation-iteration-count:infinite; animation-play-state:paused; }
  .is-in-view .botanical { animation-play-state:running; }
  .botanical[data-breeze=sway] { animation-name:botanical-sway; }
  .botanical[data-breeze=float] { animation-name:botanical-float; }
  .botanical[data-breeze=turn] { animation-name:botanical-turn; }
  @keyframes botanical-sway { 0%,100% { transform:rotate(var(--angle)); } 50% { transform:translateY(-3px) rotate(calc(var(--angle) + 6deg)); } }
  @keyframes botanical-float { 0%,100% { transform:rotate(var(--angle)) translateY(0); } 50% { transform:rotate(calc(var(--angle) - 3deg)) translateY(-9px); } }
  @keyframes botanical-turn { 0%,100% { transform:rotate(var(--angle)); } 40% { transform:rotate(calc(var(--angle) + 8deg)) translateX(4px); } 70% { transform:rotate(calc(var(--angle) - 2deg)); } }
}
@media(max-width:1000px) {
  .footer-grid { grid-template-columns:1fr 1fr; gap:30px 40px; }
  .carrot-perk { gap:12px; padding:16px; }
  .carrot-perk .button { padding-inline:12px; }
  .approach { gap:30px; }
}
@media(max-width:700px) {
  .botanical-field { inset-inline:-12px; }
  .botanical { width:calc(var(--size) * .65); opacity:calc(var(--alpha) * .8); }
  .hero .botanical:first-child { left:75%; top:1%; }
  .hero .botanical:nth-child(3) { top:43%; left:72%; }
  .hero .botanical:nth-child(4) { top:88%; }
  .botanical-bouquet { left:auto; right:-8px; top:-10px; width:145px; height:128px; opacity:.65; }
  .botanical-bouquet .botanical-spinach { width:120px; }
  .faq-heading h2 { max-width:calc(100% - 112px); }
  .top-action { max-width:175px; padding:9px 10px; font-size:.65rem; }
  .top-action::before { width:20px; height:20px; margin-right:5px; }
  .carrot-perk { display:grid; grid-template-columns:38px minmax(0,1fr); gap:8px 12px; padding:15px; margin-top:20px; }
  .perk-carrot { width:38px; height:44px; }
  .carrot-perk h3 { font-size:.96rem; }
  .carrot-perk p { font-size:.78rem; }
  .carrot-perk .button { grid-column:2; justify-self:start; margin-top:3px; }
  .approach { grid-template-columns:1fr; gap:25px; }
  .approach-visual { max-width:440px; }
  .approach h2 { font-size:2.4rem; }
  .footer-grid { gap:24px; padding-block:32px 22px; }
  .footer-brand,.footer-app { grid-column:1/-1; }
  .footer-brand p,.footer-app p { max-width:350px; margin-top:12px; }
  .footer-bottom { align-items:flex-start; flex-wrap:wrap; gap:6px 12px; }
  .footer-bottom p:nth-child(2) { flex-basis:100%; order:3; }
  .document { padding-block:36px 48px; }
  .document h1 { font-size:2.3rem; }
  .error-page { min-height:0; grid-template-columns:1fr; gap:10px; padding-block:42px; }
  .error-greens { min-height:200px; max-width:320px; width:100%; justify-self:center; }
  .error-greens span { width:170px; }
  .error-greens span:last-child { width:145px; }
}
@media(max-width:360px) { .top-action { max-width:145px; padding-inline:7px; } .top-action::before { width:18px; height:18px; margin-right:4px; } }
@media(prefers-reduced-motion:reduce) { .botanical,:is(.button,.top-action,.gallery-controls button,.phone-nav button,.gallery-card)::before { animation:none !important; } .botanical { transform:rotate(var(--angle)); } }
