/* Colours come from the app's Theme.swift. Black on orange is readable; white on orange isn't. */
:root {
  --orange: #ff5a1f;
  --iron: #0e0e10;
  --plate: #18181b;
  --rivet: #26262a;
  --seam: #2c2c31;
  --dust: #a1a1aa;
  --chalk: #f5f5f7;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --header: 68px;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); }
body {
  margin: 0;
  background: var(--iron);
  color: var(--chalk);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 { margin: 0; line-height: 1; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
h1 { font-size: clamp(3.9rem, 11vw, 7.25rem); line-height: .9; }
h2 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: .96; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--dust); }
.accent { color: var(--orange); }
.lead { font-size: clamp(1.125rem, 2vw, 1.3rem); line-height: 1.5; color: #d4d4da; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--chalk); color: var(--iron); padding: 10px 14px; border-radius: 10px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  background: var(--orange); color: var(--iron);
  font-weight: 700; text-decoration: none;
  transition: transform .12s ease-out, filter .12s ease-out;
}
.button:hover { filter: brightness(1.08); }
.button:active { transform: scale(.97); }
.button-big { min-height: 64px; padding: 0 40px; font-size: 1.25rem; }
.button-small { min-height: 42px; padding: 0 18px; font-size: .95rem; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 14, 16, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--seam);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header); }
.brand { display: flex; flex-shrink: 1; min-width: 0; }
.brand img { width: 175px; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--dust); text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav-link:hover { color: var(--chalk); }
@media (max-width: 860px) { .nav-link { display: none; } }
/* On the home page, phones have the big button and then the bottom bar, so the header one is spare. */
@media (max-width: 760px) { .home .site-header .button { display: none; } }
@media (max-width: 400px) {
  .brand img { width: 150px; }
  .button-small { padding: 0 14px; font-size: .875rem; }
}

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: 100%; max-width: 320px;
  padding: 9px;
  border-radius: 54px;
  background: #050506;
  box-shadow: 0 0 0 1.5px #4a4a52, 0 40px 80px -24px rgba(0, 0, 0, .85);
}
.phone img { width: 100%; border-radius: 46px; }

/* ---------- Hero ---------- */
.hero { overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; gap: 52px; justify-items: center; text-align: center; }
.hero-copy { max-width: 600px; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 22px; }
.cta-block { margin-top: 30px; }
.cta-note { margin-top: 14px; font-size: .9rem; line-height: 1.5; color: var(--dust); }
.hero-points {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  list-style: none; margin: 26px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--seam);
  font-size: .9rem; font-weight: 600; color: #d4d4da;
}

.hero-phones { position: relative; width: 100%; max-width: 440px; display: flex; justify-content: center; }
.hero-phones .phone-front { z-index: 2; width: 72%; max-width: 310px; }
.hero-phones .phone-back {
  position: absolute; right: -2%; top: 7%;
  width: 60%; max-width: 262px;
  transform: rotate(7deg);
  opacity: .55;
}

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; text-align: left; justify-items: start; gap: 40px; }
  .hero-points { justify-content: flex-start; }
  .hero-phones { justify-self: end; justify-content: flex-start; }
}
@media (max-width: 939px) {
  /* Show the top of the phones and let the next section start sooner. */
  .hero { padding-bottom: 0; }
  .hero-phones { max-height: 560px; overflow: hidden; padding-top: 4px;
    -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
}

/* ---------- Facts strip ---------- */
.facts { border-block: 1px solid var(--seam); background: var(--plate); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; margin-block: 0; padding-block: 30px; text-align: center; }
.facts-grid div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.facts dd { margin: 0; font: 800 3.25rem/1 var(--display); }
.facts dt { margin-top: 4px; font-size: .9rem; line-height: 1.4; color: var(--dust); text-wrap: balance; }
@media (min-width: 760px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding-top: clamp(40px, 6vw, 72px); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head p { margin-top: 18px; color: var(--dust); font-size: 1.15rem; }
.feature-plate { background: var(--plate); }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.steps li {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 32px 22px 0;
  background: var(--plate); border-radius: 32px;
  overflow: hidden; text-align: center;
}
.step-number { display: block; font: 800 2.5rem/1 var(--display); color: var(--orange); }
.steps h3 { margin-top: 8px; font: 800 2rem/1 var(--display); text-transform: uppercase; }
.steps p { margin-top: 10px; max-width: 34ch; margin-inline: auto; color: var(--dust); font-size: 1rem; }
.step-text { flex: 1 0 auto; }
.phone-crop { max-width: 272px; height: 400px; overflow: hidden; border-radius: 48px 48px 0 0; padding-bottom: 0; flex-shrink: 0; }
.phone-crop img { border-radius: 40px 40px 0 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* Feature rows */
.feature-grid { display: grid; gap: 52px; align-items: center; }
.feature-copy { max-width: 540px; margin-inline: auto; }
.feature-copy .lead { margin-top: 20px; }
.feature-media { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature-flip .feature-media { order: -1; }
}

.checks { list-style: none; margin: 30px 0 0; padding: 0; }
.checks li { padding: 15px 0; border-top: 1px solid var(--seam); color: var(--dust); }
.checks strong { color: var(--chalk); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.chips li { padding: 5px 13px; border: 1px solid #3a3a40; border-radius: 999px; font: 700 1rem/1.4 var(--display); text-transform: uppercase; letter-spacing: .01em; }

.demo { width: 100%; max-width: 480px; margin: 0; position: relative; }
.demo video { width: 100%; border-radius: 32px; background: #0c0c0e; }
.demo figcaption { margin-top: 14px; text-align: center; font-size: .9rem; color: var(--dust); }
.demo-toggle {
  position: absolute; top: 14px; right: 14px;
  min-height: 36px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: var(--rivet); color: var(--chalk);
  font: 600 .85rem var(--body); cursor: pointer;
}

/* Styles */
.styles-grid { display: grid; gap: 16px; }
.styles-grid article { background: var(--iron); border: 1px solid var(--seam); border-radius: 24px; padding: 28px; }
.styles-grid h3 { font: 800 2.75rem/1 var(--display); text-transform: uppercase; }
.styles-grid .style-name { margin: 6px 0 14px; color: var(--orange); font-weight: 700; }
.styles-grid p:last-child { color: var(--dust); }
@media (min-width: 800px) { .styles-grid { grid-template-columns: repeat(3, 1fr); } }

/* Pricing */
.plans { display: grid; gap: 22px; max-width: 700px; margin: 0 auto; }
.plan { position: relative; padding: 28px; border-radius: 26px; background: var(--plate); border: 2px solid var(--seam); }
.plan-best { border-color: var(--orange); background: #1d1614; }
.plan h3 { font: 800 1.75rem/1 var(--display); text-transform: uppercase; }
.price { margin-top: 10px; font: 800 3.5rem/1 var(--display); }
.price span { font: 400 1rem var(--body); color: var(--dust); }
.price-note { margin-top: 6px; color: var(--dust); }
.badge { position: absolute; top: -15px; left: 26px; padding: 3px 14px; border-radius: 999px; background: var(--orange); color: var(--iron); font-size: .85rem; font-weight: 700; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }

.timeline { list-style: none; max-width: 860px; margin: 56px auto 44px; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 24px; bottom: 2px; width: 2px; background: var(--seam); }
.timeline h3 { font: 800 1.5rem/1 var(--display); text-transform: uppercase; }
.timeline p { margin-top: 6px; color: var(--dust); font-size: 1rem; }
@media (min-width: 760px) {
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline li { padding: 34px 28px 0 0; }
  .timeline li::before { top: 0; }
  .timeline li:not(:last-child)::after { left: 22px; right: 8px; top: 6px; bottom: auto; width: auto; height: 2px; }
}
.fine { max-width: 620px; margin: 18px auto 0; font-size: .85rem; line-height: 1.55; color: var(--dust); }

/* FAQ */
.faq { border-bottom: 1px solid var(--seam); }
.faq details { border-top: 1px solid var(--seam); }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.1rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 44px 22px 0; color: var(--dust); }
.faq + .muted { margin-top: 30px; }

/* Final call to action */
.final { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--seam); background: radial-gradient(60% 70% at 50% 100%, rgba(255, 90, 31, .16), transparent); }
.app-icon { margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 0 0 1px #3a3a40; }
.final h2 { margin-bottom: 36px; font-size: clamp(2.75rem, 8vw, 5.5rem); }

/* Sticky button on phones */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 20px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 16, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--seam);
  text-align: center;
  transform: translateY(110%); visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.sticky-cta .button { width: 100%; max-width: 420px; }
.sticky-cta p { margin-top: 6px; font-size: .78rem; color: var(--dust); }
.sticky-cta.is-visible { transform: none; visibility: visible; }
@media (min-width: 761px) { .sticky-cta { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--seam); padding: 52px 0 40px; font-size: .95rem; color: var(--dust); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-grid img { margin: -4px 0 10px -3px; }
.site-footer nav { display: flex; flex-direction: column; }
.site-footer nav a { padding: 5px 0; text-decoration: none; color: var(--chalk); }
.site-footer nav a:hover { text-decoration: underline; }
.footer-fine { margin-top: 36px; font-size: .82rem; line-height: 1.6; }
.footer-fine p { padding-top: 14px; max-width: 80ch; }

/* ---------- Legal and contact pages ---------- */
.doc { max-width: 760px; padding-top: clamp(44px, 7vw, 80px); padding-bottom: 96px; }
.doc h1 { font-size: clamp(3rem, 8vw, 4.5rem); }
.doc .updated { margin-top: 14px; color: var(--dust); font-size: .95rem; }
.doc h2 { margin: 52px 0 16px; font-size: 2rem; }
.doc h3 { margin: 28px 0 8px; font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; color: #d4d4da; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--chalk); }
.doc a:not(.button) { color: var(--chalk); text-decoration-color: var(--orange); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.summary-box { margin-top: 32px; padding: 24px 24px 8px; border-radius: 22px; background: var(--plate); }
.summary-box h2 { margin: 0 0 14px; font-size: 1.6rem; }

.contact-card { margin-top: 32px; padding: 30px 24px; border-radius: 26px; background: var(--plate); text-align: center; }
.contact-email { display: block; margin: 6px 0 22px; font-size: clamp(1.15rem, 5.2vw, 2rem); font-weight: 700; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button-quiet { border: 0; background: var(--rivet); color: var(--chalk); font: 700 1rem var(--body); cursor: pointer; }
.contact-card .fine { margin-top: 18px; }

.not-found { padding-block: 110px 130px; text-align: center; }
.not-found p { margin: 18px 0 30px; color: var(--dust); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
