:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #eef2f8;
  --text: #111827;
  --muted: #4b5563;
  --border: #d8dee9;
  --primary: #0772cd;
  --primary-dark: #055a9f;
  --primary-900: #0b3a72;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --accent: #c79535;
  --accent-soft: #f4ead4;
  --shadow: 0 16px 44px rgba(11, 58, 114, 0.08);
  --shadow-sm: 0 1px 2px rgba(11, 58, 114, 0.06), 0 1px 1px rgba(11, 58, 114, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ───────── Header ───────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 12px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--text);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ───────── Typography ───────── */
h1,
h2,
h3,
p {
  margin-top: 0;
  text-wrap: pretty;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

p {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-50);
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 20px;
  color: var(--text);
}

.lead.muted {
  color: var(--muted);
}

/* ───────── Buttons ───────── */
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 18px;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ───────── Sections ───────── */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section.first {
  border-top: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-label {
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* ───────── 1. Hero ───────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0 72px;
}

.hero-copy h1 {
  margin-bottom: 16px;
}

.hero-copy .lead {
  margin-bottom: 20px;
}

.hero-copy .hero-body {
  max-width: 540px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
}

.hero-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--primary-50), #ffffff);
  border: 1px solid var(--primary-100);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.phone-frame {
  position: relative;
  display: block;
  aspect-ratio: 1290 / 2796;
  border-radius: 22px;
  background: #0b1726;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(11, 58, 114, 0.18),
    0 1px 2px rgba(11, 58, 114, 0.12);
}

.phone-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-caption {
  display: block;
  margin-top: 10px;
  color: var(--primary-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ───────── 2. Operational problem ───────── */
.problem {
  max-width: 860px;
}

.problem h2 {
  font-size: 36px;
  line-height: 1.15;
}

.problem p {
  font-size: 18px;
  max-width: 760px;
}

/* ───────── 3. Capabilities ───────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 120ms ease, transform 120ms ease;
}

.cap-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.cap-card .cap-num {
  display: block;
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.cap-card h3 {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cap-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ───────── 4. Screenshots ───────── */
.screen-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.screen-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-tile .phone-frame {
  border-radius: 18px;
}

.screen-tile figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.screen-tile figcaption strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ───────── 5. Use cases ───────── */
.use-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.use-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 24px;
}

.use-card h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.use-card h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  transform: translateY(-2px);
}

.use-card p {
  margin: 0;
  font-size: 14.5px;
}

/* ───────── 6. Trust ───────── */
.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.trust-body p {
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
}

.trust-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 24px;
}

.trust-panel h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.trust-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.trust-list li::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border: 1.5px solid var(--primary);
  border-radius: 3px;
  background: var(--primary-50);
}

.trust-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ───────── 7. Install CTA / 8. Contact CTA ───────── */
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}

.cta-panel.accent {
  background: linear-gradient(180deg, var(--primary-50), #ffffff);
  border-color: var(--primary-100);
}

.cta-copy {
  max-width: 620px;
}

.cta-copy h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.cta-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.cta-action {
  flex-shrink: 0;
}

/* ───────── Footer ───────── */
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 56px auto 0;
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand img {
  height: 22px;
  width: auto;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--primary);
}

.privacy-note {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 820px;
}

.copyline {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

/* ───────── Existing install / TestFlight pages ─────────
   Kept intact so /install/ and /install/ios-testflight/ continue to work
   with these tokens after the retheme. */
.hero-compact {
  max-width: 760px;
  padding: 70px 0 46px;
}

.page-title {
  padding: 70px 0 46px;
}

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

.feature-card,
.quick-check,
.support-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 210px;
  padding: 22px;
}

.feature-card.muted {
  background: #fbfcfc;
  box-shadow: none;
}

.feature-card p {
  min-height: 72px;
}

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

.status-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7d5b18;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
}

.guide-list {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.guide-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 18px;
  text-decoration: none;
}

.guide-row:hover {
  border-color: var(--primary);
}

.guide-row.disabled {
  color: var(--muted);
}

.guide-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.quick-check,
.support-note {
  margin-bottom: 26px;
  padding: 24px;
}

.quick-check ul {
  margin: 0 0 24px 0;
  padding-left: 20px;
  color: var(--muted);
}

.quick-check ul:last-child {
  margin-bottom: 0;
}

.steps {
  display: grid;
  gap: 18px;
  padding: 8px 0 34px;
}

.step {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.phone-shot {
  width: min(100%, 300px);
  margin: 0 auto;
}

.phone-shot img {
  width: 100%;
  aspect-ratio: 750 / 1334;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  object-fit: cover;
}

.step-copy {
  max-width: 680px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.step-copy h3 {
  margin-top: 24px;
  color: var(--primary-dark);
}

.support-note {
  margin-bottom: 80px;
}

.support-note p:last-child {
  margin-bottom: 0;
}

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
  }
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .screen-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }
  main {
    width: min(100% - 28px, 1120px);
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-nav {
    justify-content: flex-start;
  }
  .section {
    padding: 48px 0;
  }
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 26px;
  }
  .problem h2 {
    font-size: 28px;
  }
  .lead {
    font-size: 17px;
  }
  .hero-compact,
  .page-title {
    padding: 42px 0 30px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card p {
    min-height: 0;
  }
  .step {
    grid-template-columns: 1fr;
  }
  .phone-shot {
    width: min(100%, 330px);
  }
}

@media (max-width: 600px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .screen-strip {
    grid-template-columns: 1fr 1fr;
  }
  .use-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-shots {
    padding: 18px 14px;
  }
  h1 {
    font-size: 34px;
  }
}

@media (max-width: 520px) {
  .guide-row {
    grid-template-columns: 48px 1fr;
  }
  .guide-row > :last-child {
    grid-column: 2;
  }
  .guide-icon {
    width: 48px;
    height: 48px;
  }
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }
  .action-row .button {
    justify-content: center;
    width: 100%;
  }
}
