/* Home (Nov 20, 2026): a dark hero with the shader (headline and store badges on the left, the live demo on the right),
   then a white page: three steps, the feature tour, Gentle setup on a forest band, questions, and a lime closing band.
   Id selectors on purpose: they win over the older hero layers in foundation.css and demo.css. */

/* ---------- hero ---------- */
#try { padding: clamp(28px, 4vw, 64px) 0 clamp(56px, 7vw, 112px); text-align: left; overflow: hidden; }
#try .wrap.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; text-align: left; max-width: 1200px; }
#try .wrap.hero-grid::before, #try .hero-copy::before { content: none; display: none; }
@media (min-width: 960px) { #try .wrap.hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; } }
#try .hero-copy { display: block; margin: 0; text-align: left; align-items: flex-start; }
#try .hero-grid > .hero-copy > .rotator, #try .rotator {
  display: block; margin: 0; max-width: 13ch; text-align: left; font-size: clamp(42px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; color: var(--text); text-shadow: none;
}
#try .rotator .fixed, #try .rotator .turn, #try .rotator .turn span {
  display: inline; position: static; white-space: normal; text-wrap: wrap; padding: 0; min-height: 0; overflow: visible; opacity: 1; transform: none; max-width: none; margin: 0;
}
#try .rotator em { font-style: normal; color: inherit; }
#try .hero-copy .lead { margin: 28px 0 0; max-width: 36ch; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
#try .get { justify-content: flex-start; margin-top: 40px; }
#try .get .badges { justify-content: flex-start; }

/* the phone: the real app recording (hero-video.js) in the iPhone frame */
#try .hero-demo { position: relative; margin: 0; justify-self: center; width: min(300px, 76vw); }
@media (min-width: 960px) { #try .hero-demo { justify-self: end; width: clamp(290px, 24vw, 340px); margin: 0; } }
#try .hero-demo::before { content: ""; position: absolute; inset: 10% -30% -6%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(159, 232, 112, 0.22), transparent); filter: blur(10px); }
html.intro #try .hero-demo { opacity: 1; }

/* ---------- arrival: headline words rise, the line fades, the badges pop; all done in under a second ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.intro #try .rotator:not(.split) { opacity: 0; animation: hm-show 0s 1.2s forwards; }
  #try .rotator.split .w { display: inline-block; animation: hm-rise 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--i) * 45ms); }
  html.intro #try .hero-copy .lead { animation: hm-fade 0.45s var(--curve-standard) 0.28s both; }
  html.intro #try .badges > * { animation: hm-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: 0.38s; }
  html.intro #try .badges > * + * { animation-delay: 0.46s; }
  html.intro #try .hero-demo { animation: hm-up 0.8s cubic-bezier(0.34, 1.3, 0.64, 1) 0.12s both; }
}
@keyframes hm-show { to { opacity: 1; } }
@keyframes hm-rise { from { opacity: 0.001; transform: translateY(0.38em); } }
@keyframes hm-fade { from { opacity: 0.001; transform: translateY(6px); } }
@keyframes hm-pop { from { opacity: 0.001; transform: scale(0.9); } }
@keyframes hm-up { from { opacity: 0.001; transform: translateY(56px); } }
html.a11y-motion #try *, html.a11y-motion .hero-demo { animation: none !important; }

/* ---------- how it works ---------- */
.steps-band .wrap > .eyebrow, .steps-band h2.big { text-align: center; margin-inline: auto; }
.steps-band h2.big { max-width: 18ch; }
.how-steps .step { margin: 0; padding: 36px 32px; }
.how-steps .step::before { content: none; }
.how-steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { display: flex; flex-direction: column; padding: 28px; border-radius: 28px; background: var(--tint); transition: transform 0.3s var(--curve-standard); }
@media (hover: hover) { .step:hover { transform: translateY(-4px); } }
.step-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--forest); font: 600 18px/1 var(--display); }
.step h3 { margin-top: 28px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.step p { margin: 10px 0 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; }

/* ---------- features ---------- */
#features .wrap > .eyebrow, #features .wrap > h2.big { text-align: center; margin-inline: auto; }
#features .tour-index button[aria-current]::before { background: var(--forest); }
#features .tour-dots button[aria-current]::before { background: var(--forest); }
#features .tour-phone { position: relative; isolation: isolate; }
#features .tour-phone::before { content: ""; position: absolute; inset: 8% -18% 4%; z-index: -1; border-radius: 48px; background: var(--lime-soft); }

/* ---------- questions ---------- */
#faq .head-center h2.big { margin-inline: auto; }


/* ---------- closing ---------- */
#join-section .cta.join-end { background: transparent; border: 0; padding: 0; text-align: center; }
#join-section h2 { font-size: clamp(40px, 6vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; color: var(--forest); max-width: 14ch; margin-inline: auto; }
#join-section .sub { margin: 24px auto 0; color: var(--muted); max-width: 40ch; }
#join-section .get { margin-top: 40px; }

/* ---------- the top of the page: dark behind the floating nav while it is over the hero (no white strip) ---------- */
html.over-hero, html.over-hero body { background: #0c100b; }
main > section:not(.hero) { background-color: var(--bg); }
main > section.band-lime { background-color: var(--lime); }
footer.site { background-color: var(--tint); }

/* ---------- a calm dark area behind the hero copy, fading out past the text, so small text always reads on the shader ---------- */
#try::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 13, 9, 0.78) 0%, rgba(10, 13, 9, 0.62) 42%, rgba(10, 13, 9, 0) 68%); }
@media (min-width: 960px) {
  #try::after { background: linear-gradient(90deg, rgba(10, 13, 9, 0.84) 0%, rgba(10, 13, 9, 0.7) 34%, rgba(10, 13, 9, 0.3) 52%, rgba(10, 13, 9, 0) 64%); }
}
#try .hero-copy .lead { color: #d3dccb; }
#try .badge.soon small { color: #c3ccbb; }

/* ---------- the tour moves on by itself: each tab has a line that fills while it shows; click any to pick it ---------- */
#features .tour-index button { padding: 12px 0 12px 22px; }
#features .tour-index button::before { left: 0; top: 10px; bottom: 10px; width: 3px; height: auto; margin: 0; border-radius: 2px; background: var(--surface3); transform: none !important; }
#features .tour-index button::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--forest); transform-origin: top; transform: scaleY(0); }
#features .tour-index button[aria-current]::before { background: var(--surface3); }
#features .tour-index button[aria-current]::after { transform: scaleY(1); }
#features .tour-index button[aria-current] { font-weight: 600; }
#features .tour-dots { gap: 0; }
#features .tour-dots button { position: relative; width: 44px; }
#features .tour-dots button::before, #features .tour-dots button[aria-current]::before { width: 28px; height: 4px; border-radius: 2px; background: var(--surface3); }
#features .tour-dots button::after { content: ""; position: absolute; left: 8px; top: 50%; width: 28px; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--forest); transform-origin: left; transform: scaleX(0); }
#features .tour-dots button[aria-current]::after { transform: scaleX(1); }
[data-tour].auto .tour-index button[aria-current]::after { animation: tour-fill-y var(--dur, 4.2s) linear both; }
[data-tour].auto .tour-dots button[aria-current]::after { animation: tour-fill-x var(--dur, 4.2s) linear both; }
@keyframes tour-fill-y { from { transform: scaleY(0); } }
@keyframes tour-fill-x { from { transform: scaleX(0); } }

/* ---------- Gentle setup: the words in the middle of the forest band, the pieces around them in bright colours ---------- */
#guilt-free { overflow: hidden; padding-block: clamp(120px, 12vw, 170px); }
#guilt-free .gf.gf2 { position: relative; display: block; background: transparent; border: 0; padding: 0; min-height: 420px; }
#guilt-free .gf-head { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
#guilt-free h2.big { color: var(--text); margin-inline: auto; max-width: 14ch; font-size: clamp(34px, 4.4vw, 56px); }
#guilt-free .gf2 .gf-head .sub { margin: 24px auto 0; max-width: 44ch; color: var(--muted); }
#guilt-free .gf-control { position: relative; margin-top: 30px; }
#guilt-free .gf-master { background: rgba(255, 255, 255, 0.1); color: var(--text); }
#guilt-free .gf-sw { background: #4f6b3c; }
#guilt-free .gf-sw:checked { background: var(--lime); }
#guilt-free .gf-state { text-align: center; }
/* the drawn arrow: draws itself the first time the band comes into view, gone once the switch is tried */
.gf-try { position: absolute; left: calc(100% + 4px); top: 50%; transform: translateY(-62%); display: flex; flex-direction: row; align-items: flex-start; gap: 2px; color: var(--lime); pointer-events: none; transition: opacity 0.4s var(--curve-standard); }
.gf-try svg { width: 84px; height: 46px; flex: none; }
.gf-try span { margin-top: -2px; font: 600 15px/1 var(--display); letter-spacing: -0.01em; transform: rotate(-6deg); opacity: 0; transition: opacity 0.4s var(--curve-standard) 0.7s; white-space: nowrap; }
.gf-arrow, .gf-arrow-head { stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.gf2.seen .gf-arrow { stroke-dashoffset: 0; transition: stroke-dashoffset 0.75s cubic-bezier(0.6, 0, 0.3, 1) 0.2s; }
.gf2.seen .gf-arrow-head { stroke-dashoffset: 0; transition: stroke-dashoffset 0.25s ease-out 0.9s; }
.gf2.seen .gf-try span { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gf-arrow, .gf-arrow-head { stroke-dashoffset: 0; } .gf-try span { opacity: 1; transition: none; } }
html.a11y-motion .gf-arrow, html.a11y-motion .gf-arrow-head { stroke-dashoffset: 0; transition: none; }

/* the pieces: one field across the whole band, sharp and bright, kept to the edges */
#guilt-free .gf-stage { position: absolute; inset: -80px 0; height: auto; z-index: 1; background: none; border: 0; border-radius: 0; overflow: visible; }
#guilt-free .gi { filter: none; opacity: 1; transform: translate(-50%, -50%) translate(calc(var(--mx) * var(--z) * 22px), calc(var(--my) * var(--z) * 16px)) scale(calc(0.78 + 0.12 * var(--z))); }
#guilt-free .gi-in { border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.6); background: #0f2600; transition: background-color 0.45s ease, padding 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), gap 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
#guilt-free .gi-num { color: #eef6e8; font-size: 16px; }
#guilt-free .gi-flame .gi-reg { color: #ff7a2f; }
#guilt-free .gi-bolt .gi-reg { color: #ffd43b; }
#guilt-free .gi-ring circle { stroke: rgba(255, 255, 255, 0.16); }
#guilt-free .gi-ring .arc { stroke: #ff7a2f; }
#guilt-free .gf-stage.soft .gi-in { background: #0f2600; }
#guilt-free .gf-stage.soft .gi-ring .arc { stroke: var(--lime); }
#guilt-free .gi-soft circle { fill: var(--lime); }
#guilt-free .gi-soft path { stroke: var(--forest); }
#guilt-free .gf-stage.soft .gi-only { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
/* where each piece sits (laptops: two columns either side of the words) */
#guilt-free .gi:nth-child(1)  { left: 9%;  top: 20%; }
#guilt-free .gi:nth-child(2)  { left: 90%; top: 16%; }
#guilt-free .gi:nth-child(3)  { left: 8%;  top: 80%; }
#guilt-free .gi:nth-child(4)  { left: 91%; top: 84%; }
#guilt-free .gi:nth-child(5)  { left: 15%; top: 50%; }
#guilt-free .gi:nth-child(6)  { left: 25%; top: 6%; }
#guilt-free .gi:nth-child(7)  { left: 79%; top: 96%; }
#guilt-free .gi:nth-child(8)  { left: 85%; top: 50%; }
#guilt-free .gi:nth-child(9)  { left: 23%; top: 95%; }
#guilt-free .gi:nth-child(10) { left: 75%; top: 4%; }
#guilt-free .gi:nth-child(11) { left: 3%;  top: 36%; }
/* phones and tablets: a row of pieces above the words and a row below, the rest left out */
@media (max-width: 959px) {
  #guilt-free { padding-block: 40px; }
  #guilt-free .gf.gf2 { padding: 160px 0 170px; min-height: 0; }
  #guilt-free .gf-stage { inset: 0; }
  #guilt-free .gi:nth-child(n+5) { display: none; }
  #guilt-free .gi:nth-child(1) { left: 30%; top: 36px; }
  #guilt-free .gi:nth-child(2) { left: 68%; top: 96px; }
  #guilt-free .gi:nth-child(3) { left: 30%; top: auto; bottom: 30px; }
  #guilt-free .gi:nth-child(4) { left: 68%; top: auto; bottom: 90px; }
  /* the arrow sits above the switch on the right, with "Try it" over it, the same drawing as on desktop */
  #guilt-free .gf-control { margin-top: 84px; }
  .gf-try { left: calc(100% - 40px); top: -64px; transform: none; flex-direction: column; align-items: flex-end; gap: 2px; }
  .gf-try svg { width: 64px; height: 36px; }
  .gf-try span { display: block; order: -1; margin: 0 4px 0 0; font-size: 15px; }
}


/* ---------- mobile-first polish (Nov 20) ---------- */
@media (max-width: 959px) {
  /* hero: tighter rhythm; the phone a little smaller so more of it sits on the first screen */
  #try { padding-top: 56px; }
  #try .wrap.hero-grid { gap: 36px; }
  #try .hero-demo { width: min(272px, 70vw); }
  #try .get { margin-top: 26px; }
  /* centred hero on phones and tablets (owner, Nov 22) */
  #try, #try .hero-copy { text-align: center; }
  #try .hero-copy { display: flex; flex-direction: column; align-items: center; }
  #try .hero-grid > .hero-copy > .rotator, #try .rotator { text-align: center; margin-inline: auto; }
  #try .hero-copy .lead { margin-inline: auto; }
  #try .get, #try .get .badges { justify-content: center; align-items: center; }
}
@media (min-width: 760px) and (max-width: 959px) { #try { padding-top: 72px; } }
@media (max-width: 759px) {
  /* steps: number beside the title, so each card reads as one line of intent */
  .how-steps { margin-top: 32px; gap: 12px; }
  .how-steps .step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 22px 20px; border-radius: 22px; }
  .how-steps .step-n { grid-row: 1 / span 2; }
  .how-steps .step h3 { margin: 6px 0 0; font-size: 22px; }
  .how-steps .step p { grid-column: 2; margin-top: 6px; font-size: 16px; }
  /* the tour's soft panel sits inside the margins instead of running edge to edge */
  #features .tour-phone::before { inset: 10% -8% 6%; border-radius: 36px; }
  /* questions: a calmer list */
  .faq-box { gap: 8px; }
  .faq-box summary { font-size: 17px; padding: 17px 18px; }
  .faq-box details > div { padding: 0 18px 18px; }
}
