/* PilotDocs — brand site. Light, crisp, cobalt-on-paper: the feel of well-organized
   flight-deck paperwork. Palette sampled from the app icon (cobalt gradient + white document).
   Deliberately NOT the dark expedition look of /sourcetosea — sibling products, not twins. */
:root {
  --cobalt: #24549C;
  --cobalt-deep: #17376B;
  --cobalt-bright: #3A70C4;
  --cobalt-tint: #EAF0F9;      /* washed cobalt for section bands */
  --paper: #FFFFFF;
  --bg: #F6F8FB;
  --ink: #16233A;
  --ink-2: #43526B;
  --muted: #6B7A93;
  --line: #DCE3EE;
  --maxw: 1080px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand b { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  margin-left: 22px; transition: color 0.18s ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--cobalt); } }

/* ---- hero ---- */
.hero {
  text-align: center; padding: 96px 0 84px;
  background:
    radial-gradient(900px 480px at 50% -20%, rgba(36, 84, 156, 0.10), transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .logo-badge {
  width: 116px; height: 116px; margin: 0 auto 28px;
  border-radius: 27px; overflow: hidden;
  box-shadow: 0 16px 44px rgba(23, 55, 107, 0.28);
}
.hero .logo-badge img { display: block; width: 100%; height: 100%; }
.hero-kicker {
  font-size: 1rem; font-weight: 700; color: var(--cobalt);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
  text-wrap: balance; margin-bottom: 18px; color: var(--ink);
}
.hero h1 .accent { color: var(--cobalt); }
.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--ink-2); max-width: 58ch;
  margin: 0 auto 34px; text-wrap: pretty;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.platform-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn-ghost { background: var(--paper); color: var(--cobalt); border: 1.5px solid var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { transform: translateY(-2px); border-color: var(--cobalt-bright); }
}

.appstore-badge {
  display: inline-flex; align-items: center;
  border-radius: 10px;
  transition: transform 0.16s ease, filter 0.16s ease;
}
.appstore-badge img { display: block; width: 160px; height: auto; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) {
  .appstore-badge:hover { transform: translateY(-2px); filter: brightness(1.15); }
}
.appstore-badge:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

/* ---- coming-soon pill (App Store not live yet) ---- */
.coming-soon {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; color: var(--cobalt);
  background: var(--paper); border: 1.5px solid var(--cobalt);
  padding: 12px 22px; border-radius: 12px; white-space: nowrap;
}
.coming-soon::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cobalt);
}
.coming-soon-invert {
  color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5);
}
.coming-soon-invert::before { background: #fff; }

/* ---- section scaffolding ---- */
section.block { padding: 72px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; text-wrap: balance; color: var(--ink); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }

/* ---- pricing / tiers ---- */
#pricing { background: var(--cobalt-tint); border-block: 1px solid var(--line); }
.tiers {
  display: grid; gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px; margin: 0 auto;
}
.tier {
  padding: 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 2px 10px rgba(23, 55, 107, 0.05);
}
.tier-pro {
  border: 2px solid var(--cobalt);
  box-shadow: 0 10px 34px rgba(36, 84, 156, 0.16);
}
.tier-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.tier-price { font-size: 1.55rem; font-weight: 800; color: var(--cobalt-deep); }
.tier-price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tier li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 0.95rem; }
.tier li .check { flex: 0 0 auto; color: var(--cobalt); font-weight: 800; margin-top: 1px; }
.tier-badge {
  align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  color: #fff; background: var(--cobalt); padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase;
}

.tier-note {
  text-align: center; margin: 18px auto 0; max-width: 60ch;
  font-size: 0.85rem; color: var(--muted);
}

@media (max-width: 640px) {
  .tiers { grid-template-columns: 1fr; }
}

/* ---- feature grid ---- */
.features { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.feature {
  padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(23, 55, 107, 0.04);
}
.feature .icon { font-size: 1.6rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.feature p { color: var(--ink-2); font-size: 0.95rem; }

@media (max-width: 820px) {
  .features { grid-template-columns: 1fr; }
}

/* ---- pilot line ---- */
.pilot-line { text-align: center; padding: 40px 0 2px; }
.pilot-line p {
  display: inline-block;
  font-size: 1rem; font-weight: 700; color: var(--cobalt-deep);
  border: 1px solid var(--line); background: var(--paper);
  padding: 10px 22px; border-radius: 999px;
}

/* ---- privacy band ---- */
.privacy-band { background: var(--cobalt-tint); border-block: 1px solid var(--line); }
.privacy-band .section-head { margin-bottom: 24px; }
.privacy-copy { max-width: 62ch; margin: 0 auto; text-align: center; }
.privacy-copy p { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 16px; text-wrap: pretty; }
.privacy-punch { font-weight: 700; color: var(--cobalt-deep); }
.privacy-link { font-weight: 700; color: var(--cobalt); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .privacy-link:hover { text-decoration: underline; } }

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-list details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 20px; margin-bottom: 10px;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; color: var(--ink);
  padding: 16px 0; list-style: none; position: relative; padding-right: 28px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--cobalt); font-weight: 800; font-size: 1.2rem;
}
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { color: var(--ink-2); padding-bottom: 18px; font-size: 0.98rem; }
.faq-list details a { color: var(--cobalt); }

/* ---- final cta ---- */
.final-cta {
  text-align: center; padding: 84px 0;
  background: linear-gradient(160deg, var(--cobalt-deep), var(--cobalt));
  color: #fff;
}
.final-cta h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; text-wrap: balance; }
.final-cta p { color: rgba(255, 255, 255, 0.78); font-size: 1.1rem; margin-bottom: 30px; }
.final-cta .platform-note { color: rgba(255, 255, 255, 0.6); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--paper); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.site-footer .brand b { font-size: 0.95rem; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; font-weight: 600; margin-left: 20px; }
@media (hover: hover) and (pointer: fine) { .site-footer nav a:hover { color: var(--cobalt); } }
.site-footer .copyright { color: var(--muted); font-size: 0.85rem; width: 100%; }

/* ---- doc pages (privacy / terms) ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 0 72px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--ink); }
.doc .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 32px; }
.doc h2 { font-size: 1.35rem; font-weight: 700; margin: 32px 0 10px; color: var(--ink); }
.doc p, .doc li { color: var(--ink-2); margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--cobalt); }
.doc strong { color: var(--ink); }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
@media (hover: hover) and (pointer: fine) { .back-link:hover { color: var(--cobalt); } }

@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 56px; }
  section.block { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .appstore-badge:hover { transform: none; }
}
