/* Doc 10 tokens, dark values only (no light theme on the web). Sizes in rem so 1.3x text scales. */
@font-face { font-family: Nunito; font-weight: 700; src: url("/fonts/nunito-700.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: Nunito; font-weight: 800; src: url("/fonts/nunito-800.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #1c1c1c;
  --text: #ffffff;
  --mute: #a3a3a3;
  --line: #2e2e2e;
  --neon: #5cf22e;
  --navy: #0a1a3f;
  /* doc 10 brand colours, for the feature card panels only (marketing art, not app chrome) */
  --lime: #c8ff52;
  --royal: #1e3f8f;
  --forest: #0a5c10;
  --deep-green: #18a324;
  --radius: 12px;
  --gutter: 16px;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --head: Nunito, var(--body);
}

* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--body); overflow-wrap: anywhere;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--neon); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }  /* inner column: keeps the left edge of the wrap */

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { display: flex; align-items: center; min-height: 48px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; margin-right: -0.75rem; }  /* last link's text on the page edge */
.nav-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.75rem;
  color: var(--text); font-weight: 500; text-decoration: none;
}
.nav-section { display: none; }  /* phone: Pricing only; the section links show from 960 px */
.nav-link:hover { text-decoration: underline; text-decoration-color: var(--neon); text-underline-offset: 6px; }

/* the one primary button (404 page): neon fill with navy text */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem;
  border-radius: 999px; font: 700 1rem/1 var(--body); text-decoration: none;
  background: var(--neon); color: var(--navy); border: 0; cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
}
.btn:hover { background: #18a324; }
.btn:active { transform: scale(0.98); }

/* Google's badge, as given (never redrawn); the PNG carries its own clear space */
.play { display: inline-block; border-radius: 10px; transition: transform 0.15s; }
.play img { height: 72px; width: auto; }
.play:hover { transform: translateY(-2px); }
.play:active { transform: translateY(0); }

/* a plain phone frame around an app screen (no real phone brand) */
.phone {
  width: 100%; max-width: 280px; margin: 0 auto; padding: 8px;
  border: 1px solid var(--line); border-radius: 36px; background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.phone img { width: 100%; aspect-ratio: 9 / 20; border-radius: 28px; }

section { padding: 4rem 0; }
section h2 { font-size: 1.875rem; margin-bottom: 2rem; }

/* hero: the photo band with the text, then the framed Win chance screen over its lower edge */
.hero { padding: 0 0 1rem; position: relative; }
.hero-band { position: relative; overflow: hidden; padding: 3.5rem 0 5.5rem; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero-band::after {  /* keeps the text at 4.5:1 or more over the photo (check.py measures it) */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.72) 60%, #000 100%);
}
.hero-band .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: 2.5rem; line-height: 1.08; margin-bottom: 1rem; max-width: 12ch; }
.lead { font-size: 1.125rem; color: var(--text); max-width: 32rem; margin-bottom: 1.5rem; }
.hero .play { margin-left: -11px; }  /* line the badge's black edge up with the text */
.offer { font: 800 1.125rem/1.3 var(--head); color: var(--neon); margin: 0.5rem 0 0; }
.offer-note { color: var(--mute); font-size: 0.9375rem; margin: 0.25rem 0 0; }  /* the fine-print style */
.hero-phone { position: relative; z-index: 1; margin-top: -3.5rem; }

/* feature cards: a colour panel with a big line and a framed screen cut off by the panel edge */
.cards { display: grid; gap: 2.5rem 1.5rem; }
.card h3 { margin: 1.25rem 0 0.5rem; }
.card p { color: var(--mute); margin: 0; }
.panel { height: 26rem; overflow: hidden; border-radius: 20px; padding: 1.75rem 1.5rem 0; }
.card .panel-line { font: 800 1.75rem/1.15 var(--head); color: inherit; margin: 0 0 1.5rem; max-width: 14ch; }
.panel .phone { max-width: 240px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); border-color: rgba(0, 0, 0, 0.25); transition: transform 0.3s; }
.card:hover .phone { transform: translateY(-4px); }
.panel-neon .phone img { aspect-ratio: 9 / 15; object-fit: cover; object-position: 50% 100%; }  /* card 1: Win chance and Over by Over, not the hero's top part */
.panel-neon { background: var(--neon); color: var(--navy); }
.panel-lime { background: var(--lime); color: var(--navy); }
.panel-green { background: var(--deep-green); color: var(--navy); }  /* white on this green is 3.2:1; navy is 5.2:1 */
.panel-royal { background: var(--royal); color: var(--text); }
.panel-forest { background: var(--forest); color: var(--text); }
.panel-navy { background: var(--navy); color: var(--text); border: 1px solid var(--line); }
.langs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0; margin: 0 0 0.75rem; }
.langs li { margin: 0; padding: 0.25rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9375rem; }
.fine { color: var(--mute); font-size: 0.9375rem; margin: 1.5rem 0 0; }

/* how it works: step cards joined by a line (phone) or arrows (laptop) */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.5rem; padding: 0 0 0 2.75rem; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 1rem; top: 1.5rem; bottom: 1.5rem; border-left: 1px solid var(--line); }
.step {
  counter-increment: step; position: relative; margin: 0; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem;
}
.step::before {
  content: counter(step); position: absolute; left: -2.75rem; top: 1.25rem; width: 2rem; height: 2rem; border-radius: 50%;
  text-align: center; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: 800 1rem/1.9rem var(--head);
}
.step-n { color: var(--mute); font-size: 0.875rem; font-weight: 600; margin: 0 0 0.5rem; }
.step h3 { margin-bottom: 0.5rem; }
.step > p:not(.step-n) { color: var(--mute); margin: 0 0 1.25rem; }
.step-ui {  /* an equal stage for each step's UI piece */
  margin-top: auto; min-height: 15rem; padding: 1rem; border-radius: 14px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap;
}
.launcher { width: 64px; height: 64px; border-radius: 16px; }
.step-get .play img { height: 64px; }
.shot { width: 100%; max-width: 260px; border-radius: 16px; }

/* Plus card: big price, the badge, then the Plus list, with a soft neon light from above */
.plus { background: radial-gradient(ellipse 50% 40% at 50% 32%, rgba(92, 242, 46, 0.16), transparent 75%); }
.plus-card {
  max-width: 480px; margin: 0 auto; padding: 2rem 1.5rem; text-align: center;
  background: var(--surface); border: 1px solid rgba(92, 242, 46, 0.35); border-radius: 24px;
  box-shadow: 0 -12px 60px rgba(92, 242, 46, 0.08);
}
.plus-head { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1rem; }
.plus-head img { width: 40px; height: 40px; }
.plus-head h2 { font-size: 1.5rem; margin: 0; }
.price { font: 800 1.375rem/1 var(--head); margin: 0 0 1rem; }
.price .big { font-size: 6rem; line-height: 1; letter-spacing: -0.02em; }
.plus-note { color: var(--mute); max-width: 24rem; margin: 0 auto 1.25rem; }
.checks { list-style: none; text-align: left; padding: 1.5rem 0 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.checks li { position: relative; padding-left: 2rem; margin-bottom: 0.75rem; font-weight: 600; }
.checks li::before {  /* the neon check */
  content: ""; position: absolute; left: 0.25rem; top: 0.3rem; width: 0.5rem; height: 0.9rem;
  border-right: 2px solid var(--neon); border-bottom: 2px solid var(--neon); transform: rotate(45deg);
}
.checks .sub { display: block; color: var(--mute); font-weight: 400; font-size: 0.9375rem; }
.plus-card .fine { margin: 0.5rem 0 0; text-align: left; }

/* FAQ: details and summary, closed by default, no JS */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px;
  padding: 0.75rem 0; cursor: pointer; font-weight: 700; font-size: 1.0625rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.25rem;
  border-right: 2px solid var(--neon); border-bottom: 2px solid var(--neon);
  transform: rotate(45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--neon); }
.faq summary:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
.faq .answer { margin: 0 0 0.75rem; color: var(--mute); max-width: 45rem; }  /* rows run full width; answer lines stay readable */
.more { display: inline-flex; align-items: center; min-height: 48px; }

/* legal pages */
.legal { padding: 2.5rem 0 3rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.updated { color: var(--mute); font-size: 0.9375rem; }
.block-links { list-style: none; padding: 0; }
.block-links li { margin: 0; }
.block-links a { display: flex; align-items: center; min-height: 48px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.5rem; padding: 0; margin: 0 -0.5rem 0.5rem; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.5rem; }
.site-footer p { color: var(--mute); font-size: 0.875rem; margin: 0; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .nav-section { display: inline-flex; }
  h1 { font-size: 3rem; }
  section { padding: 6rem 0; }
  section h2 { font-size: 3rem; margin-bottom: 3rem; }

  /* laptop hero: about one screen; text left over the photo, the phone right over the photo's lower edge */
  .hero { min-height: calc(100svh - 65px); padding: 0; }
  .hero-band { min-height: calc(100svh - 65px - 6rem); display: flex; align-items: center; padding: 3rem 0; }
  .hero-band .wrap { width: 100%; }
  .hero-band::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.78) 45%, rgba(0, 0, 0, 0.2) 72%, rgba(0, 0, 0, 0.3) 100%),
      linear-gradient(180deg, transparent 70%, #000 100%);
  }
  .hero-text { max-width: calc(100% - 290px - 4rem); }  /* clear of the phone (290 px + its 2rem margin + a gap), at 1.3x text too */
  .hero h1 { font-size: 4rem; }
  .lead { font-size: 1.25rem; }
  .hero-phone { position: absolute; left: 0; right: 0; bottom: 1.5rem; margin: 0 auto; pointer-events: none; }
  .hero-phone .phone { margin: 0 2rem 0 auto; max-width: min(290px, calc((100svh - 65px - 5rem) * 0.45)); pointer-events: auto; }

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

  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; padding: 0; }
  .steps::before, .step::before { display: none; }
  .step:not(:last-child)::after {  /* thin arrow in the gap to the next card */
    content: ""; position: absolute; top: 50%; right: -2.4rem; width: 1.8rem;
    border-top: 1px solid var(--mute);
  }
  .step:not(:last-child) .step-n::after {
    content: ""; position: absolute; top: calc(50% - 4px); right: -2.45rem; width: 8px; height: 8px;
    border-top: 1px solid var(--mute); border-right: 1px solid var(--mute); transform: rotate(45deg);
  }
  .plus-card { padding: 2.5rem 2.5rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .play, .faq summary::after, .panel .phone { transition: none; }
  .play:hover, .card:hover .phone { transform: none; }
}
