/* Homepage styles. Tokens: /brand/tokens.css. Every measurement follows design/reference-design-tokens.md
   (1440 viewport, 1072 container); section numbers below match §8 of that file. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font: var(--thf-body); color: var(--thf-text-body); background: var(--thf-bg-page); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(var(--thf-container), 100% - 32px); margin: 0 auto; }
.section { padding-top: var(--thf-space-30); }
svg.i { width: 16px; height: 16px; flex: none; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media { position: relative; overflow: hidden; border-radius: var(--thf-radius-md); background: var(--thf-bg-surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.on-white { background: #fff; }
.media.on-white img { object-fit: contain; padding: 12px 0; }

/* Shared atoms (§8.2–8.4) */
.eyebrow { display: inline-flex; align-items: center; gap: var(--thf-space-3); font: var(--thf-body); color: var(--thf-text-body); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--thf-ruby-red); }
.h2 { font: var(--thf-h2); letter-spacing: var(--thf-tracking-heading); color: var(--thf-text-primary); margin-top: var(--thf-space-4); }
.sub { margin-top: var(--thf-space-4); }
.center { text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border: 0; border-radius: var(--thf-radius-sm); font: var(--thf-button); cursor: pointer; white-space: nowrap; transition: transform var(--thf-hover-duration) var(--thf-ease), box-shadow var(--thf-hover-duration) var(--thf-ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
.btn-primary { background: var(--thf-ruby-red); color: var(--thf-on-accent); }
.btn-primary.lg { height: 44px; }
.btn-white { background: #fff; color: var(--thf-text-primary); font-weight: 500; border-radius: var(--thf-radius-xs); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: var(--thf-radius-xs); border: 1px solid var(--thf-border); color: var(--thf-text-primary); transition: all var(--thf-hover-duration) var(--thf-ease); }
.icon-tile { width: 36px; height: 36px; border-radius: var(--thf-radius-xs); background: var(--thf-ruby-red); color: var(--thf-on-accent); display: grid; place-items: center; flex: none; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 9px; border-radius: var(--thf-radius-xs); font: var(--thf-tag); background: var(--thf-bg-tag-light); color: var(--thf-text-primary); }
.tag.brand { background: var(--thf-live-oak-tag); color: #fff; }
.social { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--thf-border); display: grid; place-items: center; font: 600 13px/1 var(--thf-font); color: var(--thf-text-primary); }
.slider-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--thf-ruby-red); color: var(--thf-on-accent); cursor: pointer; }

/* Motion (§9) */
.reveal { opacity: 0; transform: translateY(var(--thf-reveal-distance)); transition: opacity var(--thf-reveal-duration) var(--thf-ease), transform var(--thf-reveal-duration) var(--thf-ease); }
.reveal.in { opacity: 1; transform: none; }
.float-y { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.cursor-leaf { position: fixed; left: 0; top: 0; width: 32px; height: 32px; pointer-events: none; z-index: 100; opacity: 0; transition: opacity 300ms; }
@media (pointer: fine) { body.has-cursor .cursor-leaf { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-y { animation: none; }
  .cursor-leaf { display: none; }
  html { scroll-behavior: auto; }
}

/* §8.1 Nav — transparent over the hero, 76 tall */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.nav .container { height: var(--thf-nav-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav .logo img { height: 24px; width: auto; }
.nav ul { display: flex; gap: var(--thf-space-12); list-style: none; font: var(--thf-nav); color: var(--thf-text-primary); }
.nav ul a:hover { color: var(--thf-live-oak); }
.nav .btn { justify-self: end; width: 88px; padding: 0; }

/* §8.5 Hero — full viewport landscape fading to white at the top */
.hero { position: relative; height: 100svh; min-height: 760px; max-height: 960px; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { object-position: center 70%; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .85) 12%, rgba(255, 255, 255, 0) 42%); }
.hero .container { position: relative; height: 100%; }
.hero .display { position: absolute; top: 117px; left: 0; right: 0; text-align: center; font: var(--thf-display); font-size: clamp(34px, 7.4vw, 108px); letter-spacing: -0.03em; color: var(--thf-live-oak); line-height: 1; white-space: nowrap; }
.hero .render { position: absolute; left: 50%; top: 238px; width: 220px; margin-left: -110px; filter: drop-shadow(0 28px 30px rgba(40, 50, 20, .28)); }
.mini-card { position: absolute; left: 1px; bottom: 26px; width: 263px; height: 117px; padding: 12px; display: flex; gap: 14px; border-radius: var(--thf-radius-lg); background: var(--thf-glass-light); border: 1px solid var(--thf-glass-light-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.mini-card .thumb { width: 74px; height: 93px; border-radius: var(--thf-radius-sm); background: #fff; overflow: hidden; flex: none; }
.mini-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-card .t { font: 500 13px/18px var(--thf-font); display: block; }
.mini-card .p { font: 500 13px/18px var(--thf-font); position: absolute; left: 100px; bottom: 12px; }
.mini-card .a { position: absolute; right: 14px; bottom: 14px; }
.hero .right { position: absolute; left: 750px; bottom: 26px; width: 322px; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hero .right p { margin-bottom: var(--thf-space-5); }

/* §8.6–8.8 Why */
.why-head { display: grid; grid-template-columns: 620px 1fr 240px; }
.lead { font: var(--thf-lead); letter-spacing: -0.005em; color: var(--thf-text-primary); margin-top: var(--thf-space-5); }
.lead .w { color: var(--thf-text-secondary); transition: color 250ms; }
.lead .w.on { color: var(--thf-text-primary); }
.stat { padding-top: 34px; }
.stat .n { font: var(--thf-stat); color: var(--thf-text-primary); }
.stat .d { font: var(--thf-caption); color: var(--thf-text-caption); margin-top: var(--thf-space-2); max-width: 220px; min-height: 36px; }
.stat .bar { margin-top: var(--thf-space-8); height: 4px; width: 240px; border-radius: 2px; background: var(--thf-divider); overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: 0; background: var(--thf-ruby-red-soft); }
.stat.run .bar i { animation: fill 3s linear forwards; }
@keyframes fill { to { width: 100%; } }
.bento { display: grid; gap: var(--thf-gutter); }
.bento.r1 { grid-template-columns: 504fr 233fr 284fr; margin-top: 46px; }
.bento.r1 > * { height: 220px; }
.bento.r2 { grid-template-columns: 223fr 275fr 274fr 223fr; margin-top: var(--thf-gutter); }
.bento.r2 > * { height: 204px; }
.card { background: var(--thf-bg-surface); border-radius: var(--thf-radius-md); padding: var(--thf-space-6); }
.card h3, .ttl { font: var(--thf-title); color: var(--thf-text-primary); }
.stat-card { display: grid; grid-template-columns: 98px 1fr; align-content: space-between; }
.stat-card .big { font: var(--thf-stat-lg); letter-spacing: var(--thf-tracking-heading); color: var(--thf-text-primary); }
.stat-card .big + div { margin-top: 6px; }
.feat { display: flex; flex-direction: column; justify-content: space-between; }
.feat .top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--thf-space-4); }
.feat .leaf { width: 32px; height: 32px; margin: 14px 0 0 0; }

/* §8.9 Ingredients orbit over a faded landscape */
.ingredients { position: relative; padding-bottom: 80px; overflow: hidden; }
.ingredients .bg { position: absolute; inset: 0; }
.ingredients .bg img { opacity: .55; object-position: center 80%; }
.ingredients .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .92) 30%, rgba(255, 255, 255, .55) 75%, rgba(255, 255, 255, .2) 100%); }
.ingredients .container { position: relative; }
.ingredients .eyebrow { margin-top: 0; }
.orbit { position: relative; height: 560px; margin-top: 64px; }
.orbit .render { position: absolute; left: 50%; top: 40px; width: 280px; margin-left: -140px; rotate: 10deg; filter: drop-shadow(0 30px 30px rgba(40, 50, 20, .25)); }
.callout { position: absolute; width: 324px; }
.callout h3 { font: var(--thf-h4); color: var(--thf-text-primary); }
.callout p { font: 400 14px/21px var(--thf-font); margin-top: 6px; }
.callout .dot { position: absolute; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--thf-ruby-red); box-shadow: var(--thf-glow); }
.callout.l { text-align: right; left: 0; } .callout.l .dot { right: -40px; }
.callout.r { left: 749px; } .callout.r .dot { left: -40px; }

/* §8.10 Products */
.prod-head { display: flex; justify-content: space-between; align-items: center; gap: var(--thf-gutter); }
.prod-head p { width: 336px; }
.products { display: grid; grid-template-columns: repeat(3, 340px); justify-content: space-between; margin-top: 46px; align-items: start; }
.pcard { border-radius: var(--thf-radius-md); transition: transform var(--thf-hover-duration) var(--thf-ease), box-shadow var(--thf-hover-duration) var(--thf-ease); }
.pcard .media { height: 256px; border-radius: var(--thf-radius-md) var(--thf-radius-md) 0 0; }
.pcard .tag { position: absolute; top: 13px; left: 13px; }
.pcard .body { background: var(--thf-bg-surface); padding: var(--thf-space-6); border-radius: 0 0 var(--thf-radius-md) var(--thf-radius-md); transition: padding var(--thf-hover-duration) var(--thf-ease); }
.pcard .row { display: flex; justify-content: space-between; gap: var(--thf-space-5); }
.pcard .row + .row { margin-top: var(--thf-space-5); align-items: end; }
.pcard .price { font: var(--thf-h4); color: var(--thf-text-primary); white-space: nowrap; }
.pcard .price.soon { font: 500 14px/28px var(--thf-font); color: var(--thf-text-caption); }
.pcard:hover { transform: translateY(var(--thf-hover-lift)); box-shadow: var(--thf-shadow-hover); }
.pcard:hover .body { padding-bottom: 28px; }
.pcard:hover .icon-btn { background: var(--thf-ruby-red); border-color: var(--thf-ruby-red); color: var(--thf-on-accent); }
.pcard .icon-btn .r, .pcard:hover .icon-btn .ur { display: none; }
.pcard:hover .icon-btn .r { display: block; }
.more { margin-top: 56px; }

/* §8.11 Promo banner */
.banner { position: relative; height: 366px; border-radius: var(--thf-radius-xl); overflow: hidden; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--thf-banner-gradient); }
.banner .content { position: absolute; left: 652px; top: 38px; z-index: 2; color: #fff; width: 380px; }
.banner .content > img { width: 40px; height: 40px; }
.banner h2 { font: var(--thf-h1); letter-spacing: var(--thf-tracking-heading); margin-top: var(--thf-space-7); }
.banner p { margin: var(--thf-space-5) 0 var(--thf-space-10); }

/* §8.12 Category list with hover image */
.cats { margin-top: 62px; }
.cat { position: relative; display: grid; grid-template-columns: 56px 522px 1fr; align-items: center; height: 105px; padding: 0 19px; border-radius: var(--thf-radius-md); color: var(--thf-text-secondary); transition: background 250ms, color 250ms; }
.cat .idx, .cat .nm { font: var(--thf-h4); }
.cat p { max-width: 320px; transition: color 250ms; }
.cat:hover { background: var(--thf-bg-surface); color: var(--thf-text-primary); }
.cat:hover p { color: var(--thf-text-primary); }
.cat .pop { position: absolute; left: 396px; top: 50%; width: 196px; height: 196px; border-radius: 50%; overflow: hidden; translate: 0 -50%; scale: .6; opacity: 0; pointer-events: none; transition: opacity 300ms var(--thf-ease), scale 300ms var(--thf-ease); z-index: 2; box-shadow: 0 16px 30px rgba(0, 0, 0, .15); }
.cat .pop img { width: 100%; height: 100%; object-fit: cover; }
.cat .pop .leaf { position: absolute; right: 22px; bottom: 16px; width: 30px; height: 30px; object-fit: contain; }
.cat:hover .pop { opacity: 1; scale: 1; }

/* §8.13 CTA + testimonials on a photo */
.photo-section { position: relative; border-radius: var(--thf-radius-xl); overflow: hidden; padding: 0 40px 40px; }
.photo-section > .cover { object-position: center 60%; }
.photo-section::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .15) 45%, rgba(255, 255, 255, 0) 70%); }
.cta-block { position: relative; z-index: 2; height: 430px; }
.cta-block .render { position: absolute; left: 150px; top: 54px; width: 230px; rotate: -18deg; filter: drop-shadow(0 30px 30px rgba(40, 50, 20, .28)); }
.cta-block .copy { position: absolute; left: 480px; top: 150px; }
.cta-block h2 { font: var(--thf-h1); letter-spacing: var(--thf-tracking-heading); color: var(--thf-live-oak); width: 440px; }
.cta-block .btn { margin-top: var(--thf-space-12); }
.tcards { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--thf-space-2); }
.tcard { background: #fff; border-radius: var(--thf-radius-xl); padding: var(--thf-space-6); height: 386px; display: flex; flex-direction: column; }
.tcard .ctr { font: var(--thf-counter); color: var(--thf-text-primary); }
.tcard .ctr span { font: 400 18px/32px var(--thf-font); color: var(--thf-text-body); }
.tcard .q { font: var(--thf-quote); color: var(--thf-text-primary); margin-top: var(--thf-space-10); }
.tcard .who { margin-top: auto; display: flex; align-items: center; gap: 26px; }
.tcard .av { width: 86px; height: 86px; border-radius: var(--thf-radius-sm); background: var(--thf-bg-surface); display: grid; place-items: center; flex: none; overflow: hidden; }
.tcard .av img { width: 44px; }
.tcard .nm { font: var(--thf-title-sm); color: var(--thf-text-primary); }
.tcard .rl { font: var(--thf-tag); margin-top: 6px; }
.tcard .arrows { margin-left: auto; display: flex; gap: var(--thf-space-2); }

/* §8.14 Audience */
.who-split { display: grid; grid-template-columns: 508px 1fr; gap: 38px; }
.who-split .media { height: 732px; }
.who-split .media img { object-position: 30% 100%; }
.who-split .eyebrow { margin-top: 2px; }
.who-split .h2 { font-weight: 600; }
.who-list { margin-top: 64px; }
.aud { display: grid; grid-template-columns: 42px 160px 1fr; gap: 0 var(--thf-space-8); align-items: center; height: 82px; }
.aud .chip { width: 42px; height: 42px; border-radius: var(--thf-radius-xs); background: var(--thf-bg-surface); display: grid; place-items: center; font: 600 14px/1 var(--thf-font); color: var(--thf-text-primary); }
.aud b { font: 500 17px/24px var(--thf-font); color: var(--thf-text-primary); }
.aud p { max-width: 260px; }

/* §8.15 FAQ */
.faq { display: grid; grid-template-columns: 404px 604px; justify-content: space-between; }
.faq-left { display: flex; flex-direction: column; }
.help { margin-top: auto; height: 89px; background: var(--thf-bg-surface); border-radius: var(--thf-radius-sm); padding: 0 var(--thf-space-6); display: flex; justify-content: space-between; align-items: center; gap: var(--thf-space-5); }
.help b { font: 500 17px/24px var(--thf-font); color: var(--thf-text-primary); display: block; margin-bottom: 4px; }
.acc { border-radius: var(--thf-radius-md); transition: background 250ms; }
.acc summary { list-style: none; cursor: pointer; min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: var(--thf-space-5); padding: 0 24px; font: 500 17px/24px var(--thf-font); color: var(--thf-text-primary); }
.acc summary::-webkit-details-marker { display: none; }
.acc .minus, .acc[open] .plus { display: none; }
.acc[open] .minus { display: block; }
.acc[open] { background: var(--thf-bg-surface); }
.acc p { padding: 0 24px 22px; margin-top: -8px; max-width: 480px; }

/* §8.16 Footer on a flower-field photo */
.footer-wrap { padding: var(--thf-space-30) 0 var(--thf-space-8); }
.footer { position: relative; border-radius: var(--thf-radius-xl); overflow: hidden; padding: 217px 40px 0; }
.footer > .cover { object-position: center 70%; }
.footer::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .75) 16%, rgba(255, 255, 255, 0) 40%); }
.contact { position: relative; z-index: 2; background: #fff; border-radius: var(--thf-radius-lg); padding: var(--thf-space-8); display: grid; grid-template-columns: 316px 1px 1fr; gap: 0 44px; height: 248px; }
.contact .vr { background: var(--thf-divider); }
.contact .left { display: flex; flex-direction: column; }
.contact h4 { font: var(--thf-title-sm); color: var(--thf-text-primary); margin-bottom: var(--thf-space-4); }
.contact h3 { font: var(--thf-h3); color: var(--thf-text-primary); }
.contact .socials { display: flex; gap: var(--thf-space-4); margin-top: auto; }
.subscribe { display: flex; gap: var(--thf-space-4); margin-top: 76px; }
.input { flex: 1; min-width: 0; height: 44px; border-radius: var(--thf-radius-xs); background: var(--thf-bg-surface); border: 0; padding: 0 20px; font: var(--thf-body); color: var(--thf-text-primary); }
.input::placeholder { color: var(--thf-text-body); }
.form-note { font: var(--thf-caption); color: var(--thf-text-caption); margin-top: var(--thf-space-2); }
.glass { position: relative; z-index: 2; margin-top: var(--thf-space-8); height: 262px; overflow: hidden; border-radius: var(--thf-radius-lg) var(--thf-radius-lg) 0 0; background: var(--thf-glass-dark); backdrop-filter: blur(var(--thf-blur-glass)); -webkit-backdrop-filter: blur(var(--thf-blur-glass)); padding: 34px 38px 0; color: #fff; }
.glass .links { display: flex; justify-content: space-between; gap: var(--thf-space-5); flex-wrap: wrap; }
.glass ul { display: flex; gap: 51px; list-style: none; }
.glass hr { border: 0; height: 1px; background: var(--thf-divider-on-dark); margin-top: 26px; }
.glass .giant { font: 600 128px/0.9 var(--thf-font); letter-spacing: var(--thf-tracking-display); white-space: nowrap; margin-top: 52px; text-align: center; }

/* Tablet */
@media (max-width: 1100px) {
  .why-head { grid-template-columns: 1fr 240px; gap: var(--thf-gutter); } .why-head .spacer { display: none; }
  .hero .right { left: auto; right: 0; }
  .orbit { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--thf-gutter); }
  .orbit .render { position: static; margin: 0 auto; grid-column: 1 / -1; width: 220px; }
  .callout, .callout.l, .callout.r { position: relative; left: auto; width: auto; text-align: left; padding-left: 28px; }
  .callout .dot, .callout.l .dot, .callout.r .dot { left: 0; right: auto; }
  .products { grid-template-columns: repeat(3, 1fr); gap: var(--thf-gutter); }
  .banner .content { left: auto; right: 40px; }
  .cat { grid-template-columns: 48px 1fr 1fr; } .cat .pop { display: none; }
  .cta-block .render { left: 20px; } .cta-block .copy { left: auto; right: 0; }
  .who-split { grid-template-columns: 1fr 1fr; } .who-split .media { height: auto; min-height: 560px; }
  .faq { grid-template-columns: 1fr 1.4fr; gap: var(--thf-space-12); }
}

/* Phone */
@media (max-width: 760px) {
  .section { padding-top: 80px; }
  .nav .container { grid-template-columns: 1fr auto; } .nav nav { display: none; }
  .hero { height: 720px; min-height: 0; }
  .hero .display { top: 104px; }
  .hero .render { top: 200px; width: 180px; margin-left: -90px; }
  .mini-card { display: none; }
  .hero .right { left: 0; right: 0; width: auto; }
  .lead { font-size: 22px; line-height: 32px; }
  .why-head, .bento.r1, .bento.r2, .tcards, .who-split, .faq, .contact { grid-template-columns: 1fr; }
  .stat { padding-top: 24px; }
  .bento.r1 > *, .bento.r2 > * { height: auto; min-height: 200px; }
  .stat-card { grid-template-columns: 56px 1fr; row-gap: 24px; }
  .orbit { grid-template-columns: 1fr; }
  .prod-head { flex-direction: column; align-items: start; } .prod-head p { width: auto; }
  .products { grid-template-columns: 1fr; }
  .banner { height: 420px; } .banner::after { background: rgba(20, 30, 24, .55); }
  .banner .content { left: 24px; right: 24px; width: auto; top: 32px; }
  .banner h2, .cta-block h2 { font-size: 34px; line-height: 42px; width: auto; }
  .cat { grid-template-columns: 40px 1fr; height: auto; padding: 16px; row-gap: 4px; } .cat p { grid-column: 2; }
  .photo-section { padding: 0 16px 16px; }
  .cta-block { height: auto; padding: 40px 8px; display: grid; gap: 24px; }
  .cta-block .render, .cta-block .copy { position: static; } .cta-block .render { width: 150px; margin: 0 auto; }
  .tcard { height: auto; min-height: 300px; }
  .who-split .media { min-height: 320px; }
  .aud { grid-template-columns: 42px 1fr; height: auto; padding: 12px 0; row-gap: 4px; } .aud p { grid-column: 2; }
  .faq { gap: 40px; } .help { margin-top: 32px; height: auto; padding: 20px; }
  .footer { padding: 140px 16px 0; }
  .contact { height: auto; gap: 32px; padding: 24px; } .contact .vr { display: none; } .contact .socials { margin-top: 24px; }
  .subscribe { flex-direction: column; margin-top: 24px; }
  .glass { padding: 24px 20px 0; height: 210px; }
  .glass ul { gap: 20px; }
  .glass .giant { font-size: 56px; margin-top: 40px; }
}
