/* Grove lander. Colours, type and surfaces follow 09-brand-guide.md: flat panels with 24px corners on a dark Ground,
   Lora for statements, Hanken Grotesk for labels and body, grain on panels only, no shadows, gradients or borders. */
:root {
  --ground: #2C2F2A; --ink: #2A2E28; --ink-soft: #4B5047; --sage: #9DB89A; --lilac: #C9C3DC; --cream: #F3F1EC;
  --orange: #F08A3C; --rule: #D9D5CB; --muted: #B9BDB4; --sky: #B1D6CD;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 12px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' seed='12'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--cream); font-family: var(--sans); font-weight: 500; font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.caps { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }

/* Pills: the one button shape. Ink is the main action, Cream sits on the scene. */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border: 0; border-radius: 99px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; }
.pill-ink { background: var(--ink); color: var(--cream); }
.pill-cream { background: var(--cream); color: var(--ink); }
.pill.big { height: 52px; width: 100%; border-radius: 26px; font-size: 12px; }

/* Panels: flat colour, 24px corners, film grain over the top. */
.panel { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: 20px; color: var(--ink); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: 2; background-image: var(--grain); mix-blend-mode: soft-light; opacity: .55; pointer-events: none; }
.panel.cream { background: var(--cream); }
.panel.sage { background: var(--sage); }
.panel.lilac { background: var(--lilac); }
.panel-title { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; text-wrap: balance; }
.panel p { color: var(--ink-soft); }

/* ---------- first screen ---------- */
/* The whole screen is the scene. One centred line and the button sit over the sky; the laurels sit on a Cream panel over the grass. */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--sky); color: var(--ink); }
.no-gl .hero { background: var(--sage); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; opacity: 0; transition: opacity .6s linear; }
.gl-on .hero canvas { opacity: 1; }
.no-gl .hero canvas { display: none; }

.top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.wordmark { font-family: var(--serif); font-size: 24px; line-height: 1; letter-spacing: -.01em; text-decoration: none; }

.hud { position: absolute; z-index: 2; top: calc(68px + env(safe-area-inset-top, 0px)); left: 20px; right: 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.hud h1 { max-width: 9.5em; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 9.6vw, 44px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.hud h1 em { font-style: italic; }

.dock { position: absolute; z-index: 3; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; }

/* Laurels: three across on one Cream panel. */
.laurels { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-evenly; align-items: center; gap: 0 4px; width: 100%; max-width: 520px; margin: 0; padding: 14px 6px; border-radius: 24px; background: var(--cream); color: var(--ink); list-style: none; }
.laurel { display: flex; align-items: center; justify-content: center; gap: 1px; }
.branch { flex: 0 0 auto; width: 22px; height: 42px; color: var(--ink); }
.branch.r { transform: scaleX(-1); }
.laurel-text { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; text-align: center; }
.laurel-text b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; letter-spacing: -.01em; }
.laurel.words .laurel-text b { font-size: 14px; line-height: 1.05; font-style: italic; }
.laurel-text span { white-space: nowrap; font-size: 8px; font-weight: 600; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- below the first screen ---------- */
/* Dark Ground, centred serif statements in Cream, and the content on cards. In order: laurels, the statement with a moving wall of questions, a short introduction, three features, and the closing call. */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
main { display: block; overflow: hidden; }
.display { max-width: 15em; margin: 0 auto; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 9.4vw, 44px); line-height: 1.06; letter-spacing: -.02em; text-align: center; text-wrap: balance; }
.display em { font-style: italic; }
.lede { max-width: 34em; margin: 16px auto 0; color: var(--muted); font-size: 16px; line-height: 1.45; text-align: center; text-wrap: balance; }
.cta { height: 48px; padding: 0 26px; font-size: 12px; }

.proof { padding: 56px 0 0; text-align: center; }
.proof .display { padding: 0 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; margin: 0 0 22px; padding: 0 14px 0 8px; border-radius: 17px; background: #383C35; color: var(--cream); font-size: 12px; font-weight: 600; }
.chip img { width: 20px; height: 20px; border-radius: 5px; }
.proof .cta { margin-top: 26px; }
.marquee-label { margin: 56px 0 16px; color: var(--muted); }

/* The wall of questions: two rows that drift in opposite directions. Without script, or with reduced motion, each row is a strip you scroll by hand. */
.marquee { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.marquee::-webkit-scrollbar { display: none; }
.marquee + .marquee { margin-top: 8px; }
.track { display: flex; gap: 8px; width: max-content; margin: 0; padding: 0 8px; list-style: none; }
.q { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; width: 236px; min-height: 148px; padding: 18px; border-radius: 24px; color: var(--ink); text-align: left; }
.q.cream { background: var(--cream); } .q.sage { background: var(--sage); } .q.lilac { background: var(--lilac); }
.q p { font-family: var(--serif); font-size: 19px; line-height: 1.16; text-wrap: balance; }
.q .caps { font-size: 9px; color: var(--ink-soft); }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .marquee.on { overflow: hidden; }
  .marquee.on .track { gap: 0; padding: 0; animation: drift 70s linear infinite; }
  .marquee.on.back .track { animation-direction: reverse; animation-duration: 82s; }
  .marquee.on .q { margin-right: 8px; }
}

.intro { padding-top: 104px; }
.features { display: flex; flex-direction: column; gap: 72px; padding-top: 56px; }
.feature { display: flex; flex-direction: column; gap: 24px; max-width: 420px; margin: 0 auto; }
.feature img { width: 100%; border-radius: 24px; background: #383C35; }
.feature-text { padding: 0 4px; }
.feature-title { margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.feature-lead { margin-bottom: 10px; font-family: var(--serif); font-size: 28px; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.feature-text p:last-child { color: var(--muted); font-size: 16px; line-height: 1.45; }

.closing { padding-top: 120px; padding-bottom: 40px; text-align: center; }
.crest { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 28px; }
.crest .branch { width: 44px; height: 84px; color: var(--sage); }
.crest img { width: 72px; height: 72px; border-radius: 18px; }
.closing .cta { margin-top: 26px; }

.foot { padding: 56px var(--gutter) calc(110px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--muted); font-size: 12px; }
.foot nav { display: flex; justify-content: center; gap: 22px; margin-bottom: 12px; }
.foot nav a { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--cream); padding: 6px 0; }

/* The bar that follows you down the page: a Cream pill, like the app's tab bar. */
.bar { position: fixed; z-index: 10; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; height: 66px; padding: 0 13px 0 11px; border-radius: 33px; background: var(--cream); color: var(--ink); max-width: 460px; margin: 0 auto; }
.bar img { width: 44px; height: 44px; border-radius: 11px; }
.bar-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bar-text strong { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1; }
.bar-text .caps { font-size: 9px; letter-spacing: .12em; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .top { padding-top: 26px; }
  .hud { top: 86px; gap: 22px; }
  .hud h1 { font-size: clamp(44px, 5.2vw, 68px); }
  .dock { bottom: 28px; }
  .laurels { max-width: 640px; padding: 16px 12px; }
  .branch { width: 26px; height: 50px; }
  .laurel-text { min-width: 86px; }
  .laurel-text b { font-size: 30px; }
  .laurel.words .laurel-text b { font-size: 18px; }
  .laurel-text span { font-size: 9.5px; }
  .display { font-size: clamp(44px, 5.4vw, 68px); }
  .lede { font-size: 18px; }
  .proof { padding-top: 88px; }
  .q { width: 280px; min-height: 164px; padding: 22px; }
  .q p { font-size: 21px; }
  .intro { padding-top: 150px; }
  .features { gap: 120px; padding-top: 88px; }
  .feature { flex-direction: row; align-items: center; gap: 72px; max-width: none; }
  .feature:nth-child(even) { flex-direction: row-reverse; }
  .feature img { flex: 0 0 auto; width: min(42%, 400px); }
  .feature-lead { font-size: 40px; margin-bottom: 14px; }
  .feature-text p:last-child { font-size: 18px; max-width: 30em; }
  .closing { padding-top: 170px; padding-bottom: 70px; }
}
