/* Propeus.com — one stylesheet for every page.
   Palette is Accelerus's design system (specs/design-system.md §2): the icon
   teal #0F5E7A, the graphite accent #3B4450, the START green #17693C. */

:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --tile: #edeef2;
  --fill: #e9e9ee;
  --separator: #d5d5da;
  --label: #000000;
  --label-2: #4a4a4e;
  --label-3: #636368;
  --brand: #0f5e7a;
  --accent: #3b4450;
  --on-accent: #ffffff;
  --go: #17693c;
  --pass: #17693c;
  --pass-fill: #dcefe3;
  --radius: 22px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --tile: #111114;
    --fill: #2c2c2e;
    --separator: #38383a;
    --label: #ffffff;
    --label-2: #c6c6cb;
    --label-3: #98989e;
    --brand: #4fc4e8;
    --accent: #c0c7d1;
    --on-accent: #10151c;
    --pass: #57da9b;
    --pass-fill: #10331f;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 500 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); margin-inline: auto; }

/* ---------- header / footer ---------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--separator);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--label); text-decoration: none; font: 800 19px/1 var(--font-display); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--label-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--label); }

.site-footer { border-top: 1px solid var(--separator); margin-top: 96px; padding: 40px 0 56px; color: var(--label-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--label-2); text-decoration: none; }
.site-footer a:hover { color: var(--label); }
.site-footer p { margin: 0; max-width: 560px; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 8px; }

.eyebrow { font: 700 12px/1 var(--font); letter-spacing: 0.15em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--label-2); max-width: 620px; margin: 0 0 28px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 700 16px/1 var(--font); text-decoration: none;
  background: var(--accent); color: var(--on-accent);
  border: 0;
}
.btn:hover { filter: brightness(1.12); }
.btn.secondary { background: var(--fill); color: var(--label); }
/* Plain text until launch: Apple's marketing guidelines allow only the official
   App Store badge, and only for a live listing (APP_STORE.md § At launch). */
.availability { font: 700 16px/1.3 var(--font); color: var(--label); margin: 0; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 40px; overflow: hidden; }
.hero.compact { padding-bottom: 24px; }
.after-hero { padding-top: 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-icon { width: 92px; height: 92px; border-radius: 21px; box-shadow: 0 10px 30px rgb(15 94 122 / 0.18); margin-bottom: 26px; }
.hero h1 span { color: var(--brand); }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--label-3); }

.phones { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone {
  width: 270px; aspect-ratio: 552 / 1200;
  border-radius: 44px; padding: 10px;
  background: #1d1d1f;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.22), inset 0 0 0 2px #3a3a3c;
}
.phone picture, .phone img { width: 100%; height: 100%; border-radius: 34px; object-fit: cover; }
.phones .phone.back { position: absolute; transform: translate(-46%, 38px) rotate(-6deg) scale(0.9); opacity: 0.96; }
.phones .phone.front { position: relative; transform: translate(22%, 0) rotate(3deg); }

/* ---------- sections ---------- */

section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.card p { margin: 0; color: var(--label-2); }
.card .num { font: 700 13px/1 var(--mono); color: var(--brand); margin-bottom: 18px; letter-spacing: 0.04em; }

.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery .phone { width: 100%; border-radius: 34px; padding: 7px; }
.gallery .phone img { border-radius: 28px; }
.gallery figcaption { text-align: center; font-size: 14px; font-weight: 600; color: var(--label-2); margin-top: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font: 700 12px/1 var(--font); letter-spacing: 0.05em; text-transform: uppercase; padding: 8px 11px; border-radius: 8px; background: var(--fill); color: var(--label-2); }

.privacy-band { background: var(--surface); border-radius: 32px; padding: 48px; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.badge-big { width: 112px; height: 112px; border-radius: 28px; background: var(--pass-fill); color: var(--pass); display: grid; place-items: center; }
.badge-big svg { width: 54px; height: 54px; }
.privacy-band ul { margin: 14px 0 0; padding-left: 20px; color: var(--label-2); }
.privacy-band li + li { margin-top: 6px; }
.privacy-band .more { margin: 18px 0 0; }

.faq details { background: var(--surface); border-radius: 16px; padding: 4px 22px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 22px/1 var(--font); color: var(--label-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--label-2); }

.fineprint { font-size: 14px; color: var(--label-3); }

/* ---------- prose (policy pages) ---------- */

.prose { padding-top: 56px; }
.prose.not-found { padding-top: 120px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: 26px; margin-top: 44px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--label-2); }
.prose strong { color: var(--label); }
.prose .meta { color: var(--label-3); font-size: 15px; }
.prose .summary-box { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; margin: 28px 0; }
.prose .summary-box p:last-child, .prose .summary-box ul:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--separator); vertical-align: top; }
.prose th { color: var(--label); }

/* ---------- home (Propeus) ---------- */

.product { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--surface); border-radius: 28px; padding: 32px; text-decoration: none; color: inherit; }
.product:hover { box-shadow: 0 0 0 2px var(--brand); }
.product img { width: 96px; height: 96px; border-radius: 22px; }
.product h2 { font-size: 28px; margin: 0 0 6px; }
.product p { margin: 0; color: var(--label-2); }
.product .go { font-weight: 700; color: var(--brand); white-space: nowrap; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { min-height: 520px; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery figure:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .hero { padding-top: 44px; }
  .phone { width: 200px; }
  .phones { min-height: 420px; }
  .phones .phone.back { transform: translate(-34%, 30px) rotate(-6deg) scale(0.9); }
  .phones .phone.front { transform: translate(16%, 0) rotate(3deg); }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:nth-child(n+3) { display: none; }
  .privacy-band { grid-template-columns: 1fr; padding: 32px; }
  .product { grid-template-columns: 1fr; text-align: left; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
