@font-face {
  font-family: "Inter";
  src: url("assets/Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/Inter-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

/* Design A colour tokens, copied from mobile/src/theme.ts. Target-face colours never change. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --raised: #f2f2f2;
  --soft: #f2f2f2;
  --line: #e5e5e5;
  --outline: #e5e5e5;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --accent: #0f7a45;
  --on-accent: #ffffff;
  --accent-soft: #e3f3ea;
  --accent-ink: #0b5e35;
  --highlight: #f3faf6;
  --danger-ink: #b42318;
  --danger-soft: #fde7e4;
  --band: #0a0a0a;
  --band-ink: #ffffff;
  --band-muted: #a3a3a3;
  --band-accent: #3ccb7f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
  --gold: #f4ce46;
  --gold-ink: #26210c;
  --red: #bc3034;
  --blue: #2161b4;
  --black: #202322;
  --white: #fafaf5;
  --ring-line: #72766e;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --card: #111111;
    --raised: #1c1c1e;
    --soft: #262626;
    --line: #262626;
    --outline: #3a3a3a;
    --ink: #ffffff;
    --muted: #a3a3a3;
    --accent: #3ccb7f;
    --on-accent: #000000;
    --accent-soft: #12301f;
    --accent-ink: #3ccb7f;
    --highlight: #0e2318;
    --danger-ink: #ff8a7a;
    --danger-soft: #3a1512;
    --band: #111111;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #111111;
  --raised: #1c1c1e;
  --soft: #262626;
  --line: #262626;
  --outline: #3a3a3a;
  --ink: #ffffff;
  --muted: #a3a3a3;
  --accent: #3ccb7f;
  --on-accent: #000000;
  --accent-soft: #12301f;
  --accent-ink: #3ccb7f;
  --highlight: #0e2318;
  --danger-ink: #ff8a7a;
  --danger-soft: #3a1512;
  --band: #111111;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  border-radius: 6px;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  background: var(--accent);
  border-radius: 999px;
  color: var(--on-accent);
  font-weight: 700;
  left: 16px;
  padding: 10px 16px;
  position: absolute;
  text-decoration: none;
  top: -60px;
  z-index: 10;
}

.skip-link:focus { top: 12px; }

.site-header,
.site-footer,
main > section {
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  padding-right: max(24px, calc((100vw - 1180px) / 2));
}

/* Header and logo */

.site-header {
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 76px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: auto;
  width: clamp(150px, 18vw, 196px);
}

/* Show the logo drawn for the current appearance. */
.logo-dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.header-end {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2.6vw, 30px);
}

.header-nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2.6vw, 30px);
}

.header-link {
  font-weight: 700;
  text-decoration: none;
}

.header-link:hover { color: var(--accent); }

.header-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* Theme switch: hidden until theme.js has loaded, so it never appears without working. */

.theme-toggle {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: none;
  flex-shrink: 0;
  height: 34px;
  padding: 0;
  position: relative;
  width: 62px;
}

.js .theme-toggle { display: inline-flex; }

.theme-toggle svg {
  height: 16px;
  position: absolute;
  top: 8px;
  width: 16px;
  z-index: 1;
}

.theme-toggle .icon-sun { left: 8px; }
.theme-toggle .icon-moon { right: 8px; }

.theme-toggle::after {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  content: "";
  height: 26px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 160ms ease;
  width: 26px;
}

.theme-toggle[aria-checked="true"]::after { transform: translateX(28px); }

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Type */

h1, h2, h3, p { margin-top: 0; }

h1,
h2,
h3 { letter-spacing: -0.04em; }

.eyebrow {
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 6.6vw, 6rem);
  font-weight: 800;
  line-height: 0.96;
  margin-bottom: 28px;
  max-width: 760px;
}

h1 em,
.statement em {
  color: var(--accent);
  font-style: normal;
}

.statement em { color: var(--band-accent); }

.text-link {
  color: var(--accent-ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* Hero */

.hero {
  align-items: center;
  display: grid;
  gap: clamp(48px, 7vw, 110px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  min-height: 680px;
  padding-bottom: 88px;
  padding-top: 72px;
}

.hero-single { grid-template-columns: 1fr; min-height: 60vh; }

.hero-intro {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 22px 0 0;
}

.button {
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  gap: 14px;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  text-decoration: none;
}

.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { filter: brightness(1.08); }
.button-secondary { background: transparent; border-color: var(--outline); color: var(--ink); }
.button-secondary:hover { background: var(--soft); }

/* Phone mock of the app's shoot detail screen */

.phone {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 40px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 380px;
  overflow: hidden;
  padding: 14px 18px 22px;
  width: 100%;
}

.phone-bar {
  align-items: center;
  display: grid;
  font-weight: 700;
  grid-template-columns: 32px 1fr 32px;
  padding: 4px 0 12px;
  text-align: center;
}

.phone-bar span:first-child {
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  text-align: left;
}

.phone-plot {
  background: #202322;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.phone-plot svg { display: block; height: auto; width: 100%; }

.plot-caption {
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  bottom: 10px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  left: 10px;
  padding: 4px 10px;
  position: absolute;
}

.phone-title { margin: 16px 0 2px; }
.phone-title h2 { font-size: 1.3rem; letter-spacing: -0.03em; margin: 0; }
.phone-title p { color: var(--muted); font-size: 0.82rem; margin: 2px 0 0; }

.pill {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-ink);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 8px;
  padding: 3px 10px;
}

.phone-stats {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0 12px;
  padding: 12px 0;
}

.phone-stats div { display: flex; flex-direction: column-reverse; }
.phone-stats dt { color: var(--muted); font-size: 0.7rem; }
.phone-stats dd { font-size: 1.25rem; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.03em; margin: 0; }

.phone-card {
  border-collapse: collapse;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  width: 100%;
}

.phone-card th {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 0 6px;
  text-align: left;
}

.phone-card td { border-top: 1px solid var(--line); padding: 6px 0; }
.phone-card th:nth-child(n + 3),
.phone-card td:nth-child(n + 3) { text-align: right; }
.phone-card td:nth-child(3) { font-weight: 700; }
.phone-card td:last-child { color: var(--muted); }

.chips { display: flex; gap: 4px; }

.chip {
  border-radius: 7px;
  display: inline-grid;
  font-size: 0.72rem;
  font-weight: 800;
  height: 24px;
  place-items: center;
  width: 26px;
}

.chip-gold { background: var(--gold); color: var(--gold-ink); }
.chip-red { background: var(--red); color: #ffffff; }

.phone-sight {
  align-items: center;
  background: var(--raised);
  border-radius: 14px;
  display: flex;
  font-size: 0.8rem;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px 14px;
}

.phone-sight span { color: var(--muted); display: block; font-size: 0.72rem; }
.phone-sight b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* Statement band */

.statement {
  background: var(--band);
  color: var(--band-ink);
  padding-bottom: 96px;
  padding-top: 96px;
}

.statement p {
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0;
  max-width: 920px;
}

/* Section headings */

.section-heading { margin-bottom: 52px; max-width: 700px; }

.section-heading h2,
.split h2,
.cta h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 16px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* Feature grid */

.features { padding-bottom: 112px; padding-top: 112px; }

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid-three { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px;
}

.feature-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 14px;
  color: var(--accent-ink);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.feature-icon svg { height: 24px; width: 24px; }

.feature-number {
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 36px 0 10px;
}

.feature-card p { color: var(--muted); line-height: 1.55; margin: 0; }

/* Free and Premium */

.plans-band { background: var(--raised); padding-bottom: 112px; padding-top: 112px; }

.plan-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
}

.plan-card-accent { border: 2px solid var(--accent); }

.plan-card h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.plan-card > p { color: var(--muted); margin-bottom: 22px; }

.tick-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }

.tick-list li {
  line-height: 1.45;
  padding-left: 32px;
  position: relative;
}

.tick-list li::before {
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-ink);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 800;
  height: 22px;
  left: 0;
  line-height: 22px;
  position: absolute;
  text-align: center;
  top: 0;
  width: 22px;
}

.tag-now {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-ink);
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 4px;
  padding: 1px 8px;
  white-space: nowrap;
}

.plan-founder { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.plans-note { color: var(--muted); font-size: 0.95rem; margin: 26px 0 0; max-width: 720px; }

/* Coming later */

.later { padding-bottom: 112px; padding-top: 112px; }

.later-list {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.later-list li {
  border-bottom: 1px solid var(--line);
  padding: 24px 32px 24px 0;
}

.later-list li:nth-child(even) { padding-left: 32px; padding-right: 0; }
.later-list h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.later-list p { color: var(--muted); margin: 0; }

.badge {
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--muted);
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding: 2px 9px;
  text-transform: uppercase;
}

/* Split section (clubs teaser) */

.split {
  align-items: end;
  background: var(--highlight);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr 0.8fr;
  padding-bottom: 104px;
  padding-top: 104px;
}

.split h2 { margin-bottom: 0; }
.split-body p { color: var(--muted); font-size: 1.12rem; line-height: 1.6; margin: 0; }
.split-body .split-link { margin-top: 18px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-size: 0.92rem;
  gap: 32px 48px;
  grid-template-columns: 1fr auto auto;
  padding-bottom: 40px;
  padding-top: 48px;
}

.site-footer p { margin: 0; }
.site-footer .brand-logo { width: 150px; }
.footer-brand p { margin-top: 12px; }

.footer-column h2 {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.footer-column ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-column a { text-decoration: none; white-space: nowrap; }
.footer-column a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-column span { display: block; font-size: 0.8rem; }

.footer-legal {
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  grid-column: 1 / -1;
  line-height: 1.6;
  padding-top: 20px;
}

@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .site-header { min-height: 64px; }
  .header-link-wide { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 64px; padding-top: 56px; }
  .feature-grid, .plan-grid, .split { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card h3 { margin-top: 26px; }
  .later-list { grid-template-columns: 1fr; }
  .later-list li,
  .later-list li:nth-child(even) { padding-left: 0; padding-right: 0; }
  .split { gap: 18px; }
  .plan-card { padding: 24px; }
  .site-footer { gap: 28px; grid-template-columns: 1fr 1fr; padding-bottom: 32px; padding-top: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .site-header, .site-footer, main > section { padding-left: 16px; padding-right: 16px; }
  .header-end, .header-nav { gap: 12px; }
  .header-link { font-size: 0.9rem; }
  .brand { flex-shrink: 0; }
  .brand-logo { width: 124px; }
  .phone { border-radius: 30px; padding: 12px 12px 18px; }
  .chip { width: 22px; }
}

/* Motion. The hero plays a short load-in with CSS alone. Scroll reveals, the word-by-word
   statement and the drifting phone come from motion.js, which only hides content it is about to
   reveal. Nothing here runs for visitors who ask for reduced motion. */

h1 .line { display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes rise-tilt {
  from { opacity: 0; transform: translateY(60px) rotate(2deg) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.1); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero h1 .line,
  .hero-intro,
  .hero-actions,
  .hero-note,
  .hero .status-note {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero .eyebrow { animation-delay: 0ms; }
  .hero h1 .line:nth-child(1) { animation-delay: 90ms; }
  .hero h1 .line:nth-child(2) { animation-delay: 180ms; }
  .hero h1 .line:nth-child(3) { animation-delay: 270ms; }
  .hero-intro { animation-delay: 380ms; }
  .hero-actions { animation-delay: 470ms; }
  .hero-note,
  .hero .status-note { animation-delay: 560ms; }

  .hero .phone,
  .hero .inbox-card {
    animation: rise-tilt 1s cubic-bezier(0.2, 0.7, 0.2, 1) 250ms both;
    translate: 0 var(--parallax, 0px);
  }

  /* Plotted arrows land one at a time, in the order they were shot. */
  .plot-arrows circle {
    animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both;
    animation-delay: calc(900ms + var(--i, 0) * 28ms);
    transform-box: fill-box;
    transform-origin: center;
  }

  .inbox-rows li { animation: slide-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .inbox-rows li:nth-child(1) { animation-delay: 700ms; }
  .inbox-rows li:nth-child(2) { animation-delay: 820ms; }
  .inbox-rows li:nth-child(3) { animation-delay: 940ms; }

  .feature-card,
  .plan-card {
    transition:
      border-color 0.2s ease,
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .feature-card:hover,
  .plan-card:hover {
    border-color: var(--outline);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
  }

  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
      opacity 0.8s ease,
      transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal-left { transform: translateX(-32px); }
  .reveal.is-in { opacity: 1; transform: none; }

  .motion .statement .word {
    opacity: 0.2;
    transition: opacity 0.35s ease;
  }

  .motion .statement .word.lit { opacity: 1; }

  .site-header { transition: box-shadow 0.2s ease; }
}

.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }

@media (max-width: 480px) {
  .site-footer { grid-template-columns: 1fr; }
}

/* The footer carries the contact address, so the header link can go on the narrowest phones. */
@media (max-width: 359px) {
  .header-link-contact { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .theme-toggle::after { transition: none; }
}
