@font-face { font-family: Figtree; src: url(fonts/Figtree-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(fonts/Figtree-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(fonts/Figtree-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

/* Colours come from the app (indigo UI, cool greys) and the bird (yellow, nest brown, leaf). */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --card: #ffffff;
  --text: #1a1d24;
  --muted: #565c68;
  --line: #e6e7eb;
  --accent: #4846d6;
  --accent-soft: #ececff;
  --on-accent: #ffffff;
  --nest: #6b3a1c;
  --sun: #fbd25a;
  --sun-soft: #fff4d6;
  --leaf: #2f7d34;
  --shadow: 0 1px 2px rgba(17, 19, 24, 0.04), 0 12px 32px rgba(17, 19, 24, 0.07);
  --shot-shadow: 0 30px 60px -20px rgba(36, 34, 120, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e0f12;
    --surface: #15161a;
    --card: #1c1d22;
    --text: #e3e5ea;
    --muted: #b4b9c3;
    --line: #2a2c32;
    --accent: #a3a4ff;
    --accent-soft: #26265c;
    --on-accent: #14135a;
    --nest: #e2b48c;
    --sun-soft: #2d2615;
    --leaf: #7cc982;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shot-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--nest); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 20px; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 0; } /* .hero-body carries the spacing */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, var(--sun-soft), transparent 70%), radial-gradient(closest-side at 30% 70%, var(--accent-soft), transparent 70%);
}
.hero-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-block: 72px 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--sun-soft); color: var(--nest); font-size: 0.9rem; font-weight: 600; }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 0 0 30px; font-size: 1.18rem; color: var(--muted); max-width: 32em; }
.hero-art img { width: 100%; max-width: 400px; margin: 0 auto; filter: drop-shadow(0 24px 30px rgba(107, 58, 28, 0.18)); }
.cta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.note { margin: 14px 0 0; font-size: 0.95rem; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.facts li::before { content: "✓"; color: var(--leaf); font-weight: 700; margin-right: 8px; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--surface); }
section h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; }
section .sub { margin: 0 0 40px; color: var(--muted); max-width: 40em; font-size: 1.08rem; }

/* Tester page */
.tester-hero { position: relative; overflow: hidden; text-align: center; padding: 72px 0 80px; }
.tester-hero::before {
  content: ""; position: absolute; inset: -30% 0 auto; height: 120%; z-index: -1;
  background: radial-gradient(closest-side at 50% 40%, var(--sun-soft), transparent 75%);
}
.tester-hero img { width: 140px; margin: 0 auto 8px; }
.tester-hero h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.tester-hero .lead { margin: 0 auto; max-width: 32em; }
.tester-hero .facts { justify-content: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 760px; }
.steps .card { display: flex; gap: 20px; align-items: flex-start; }
.steps .num {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1.3rem;
}
.steps h3 { margin: 6px 0 4px; font-size: 1.18rem; }
.steps p { margin: 0 0 16px; color: var(--muted); }

/* Launch video */
section.video { padding-top: 0; text-align: center; }
.player { max-width: 920px; margin: 28px auto 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shot-shadow); background: #111318; }
.player { position: relative; }
.player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 84px; height: 84px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 0 4px;
  background: var(--accent); color: #fff; box-shadow: 0 12px 30px rgba(36, 34, 120, 0.4);
  transition: scale 0.2s ease;
}
.play svg { width: 36px; height: 36px; }
.play:hover { scale: 1.08; }
.player.started .play { display: none; }
@media (prefers-color-scheme: dark) { .play { background: #4846d6; } }
@media (max-width: 760px) { .play { width: 64px; height: 64px; } .play svg { width: 28px; height: 28px; } }

/* Feature rows: copy beside a real app screen */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature:nth-child(even) .shot { order: -1; }
.feature .kicker { margin: 0 0 8px; color: var(--accent); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.feature h3 { margin: 0 0 12px; font-size: clamp(1.4rem, 2.8vw, 1.85rem); line-height: 1.2; letter-spacing: -0.015em; }
.feature p { margin: 0; color: var(--muted); max-width: 30em; }
.shot { display: flex; justify-content: center; }
.shot img { width: 100%; max-width: 300px; border-radius: 32px; border: 6px solid #111318; background: #111318; box-shadow: var(--shot-shadow); }

/* Trust cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); }
.dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.dot svg { width: 22px; height: 22px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; }
.plan { position: relative; padding: 28px; }
.plan h3 { margin: 0; font-size: 1.2rem; }
.price { margin: 6px 0 18px; font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--leaf); font-weight: 700; }
.plan li + li { margin-top: 8px; }
.plan.pro { border: 2px solid var(--accent); }
.tag { position: absolute; top: -13px; right: 22px; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.82rem; font-weight: 700; }
.fine { margin: 20px 0 0; font-size: 0.92rem; color: var(--muted); }

/* Closing call to action */
.closing { text-align: center; }
.closing img { width: 120px; margin: 0 auto 18px; }
.closing .sub { margin-left: auto; margin-right: auto; }
.closing .cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { background: var(--surface); padding: 48px 0 72px; }
.doc { max-width: 720px; margin: 0 auto; padding: 40px 40px 32px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.doc h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; }
.doc h2 { margin: 36px 0 8px; font-size: 1.2rem; scroll-margin-top: 84px; }
.doc p, .doc li { color: var(--text); }
.doc a { overflow-wrap: anywhere; }
.doc .meta { color: var(--muted); font-size: 0.95rem; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.toc { margin: 24px 0 8px; padding: 18px 22px; border-radius: 16px; background: var(--surface); font-size: 0.95rem; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin: 3px 0; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-body { grid-template-columns: 1fr; padding-block: 32px 56px; gap: 20px; }
  .hero::before { inset: -5% -5% auto -5%; width: 110%; height: 45%; opacity: 0.7; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 150px; margin: 0 auto; }
  /* One centred column on phones; plan checklists stay left-aligned inside their cards. */
  .hero-body, section h2, section .sub, .feature > div:first-child, .card:not(.plan), .fine, footer .wrap { text-align: center; }
  section .sub, .lead, .feature p { margin-left: auto; margin-right: auto; }
  .facts, footer .wrap, footer nav { justify-content: center; }
  .card:not(.plan) .dot { margin: 0 auto; }
  .plans { margin: 0 auto; }
  .steps .card { text-align: left; gap: 14px; padding: 20px 18px; }
  .steps .num { width: 40px; height: 40px; font-size: 1.1rem; }
  .steps .btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .lead { font-size: 1.06rem; margin-bottom: 24px; }
  .cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .closing .cta { max-width: 340px; margin: 0 auto; }
  .tester-hero { padding: 32px 0 56px; }
  .plans { gap: 28px; }
  .facts { gap: 6px 16px; }
  .top { padding-block: 10px; }
  .logo { font-size: 1.08rem; gap: 8px; }
  .logo img { width: 30px; height: 30px; }
  section .sub { margin-bottom: 28px; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature + .feature { margin-top: 64px; }
  .feature:nth-child(even) .shot { order: 0; }
  .shot img { max-width: 260px; }
  .plans { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .top nav { gap: 14px; font-size: 0.92rem; }
  .doc { padding: 26px 20px; border-radius: 18px; }
  .legal { padding: 20px 0 48px; }
  .toc ol { columns: 1; }
}
/* Motion: hero entrance, reveal on scroll, phone screens drift with the scroll. All of it is off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .site-head { transition: box-shadow 0.3s ease; }
  .site-head.scrolled { box-shadow: 0 6px 24px rgba(17, 19, 24, 0.08); }

  .hero-body > div:first-child > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-body > div:first-child > :nth-child(2) { animation-delay: 0.08s; }
  .hero-body > div:first-child > :nth-child(3) { animation-delay: 0.16s; }
  .hero-body > div:first-child > :nth-child(4) { animation-delay: 0.24s; }
  .hero-body > div:first-child > :nth-child(5) { animation-delay: 0.32s; }
  .hero-art img { animation: pop 0.9s cubic-bezier(0.2, 0.8, 0.2, 1.1) both, bob 6s ease-in-out 1s infinite; }

  .js main section:not(.hero) :is(h2, .sub, .player, .feature > div, .card, .fine, .closing img, .closing .cta) { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
  .js main section:not(.hero) :is(h2, .sub, .player, .feature > div, .card, .fine, .closing img, .closing .cta).in { opacity: 1; transform: none; }

  @supports (animation-timeline: view()) {
    .shot img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .feature:nth-child(even) .shot img { animation-name: drift-alt; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.85) translateY(20px); } }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes drift { from { transform: translateY(60px) rotate(2deg) scale(0.94); } 50% { transform: none; } to { transform: translateY(-40px) rotate(-1deg); } }
@keyframes drift-alt { from { transform: translateY(60px) rotate(-2deg) scale(0.94); } 50% { transform: none; } to { transform: translateY(-40px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
