/* SYNC'D marketing site — layout & components.
   Brand variables live in tokens.css. Idiom ported from design/*_mockups.html. */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Alexandria', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  /* Soft brand light-leak, matching the mockups' radial wash. */
  background-image:
    radial-gradient(1200px 600px at 15% -8%, rgba(255, 210, 94, 0.10) 0%, transparent 55%),
    radial-gradient(1000px 520px at 100% 0%, rgba(247, 147, 30, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: clamp(19px, 2.4vw, 24px); }
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: var(--r-btn);
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  font-family: inherit; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--gradient); color: var(--on-gradient);
  box-shadow: 0 10px 22px -8px rgba(247, 147, 30, 0.6);
}
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: 0.3px; }
.brand img { width: 34px; height: 34px; }
.brand .gradient-text { letter-spacing: 0.5px; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted);
}
.nav a:hover { color: var(--ink); background: var(--card); }
.nav a.active { color: var(--ink); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 14px; margin-left: 6px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 11px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.nav-toggle { display: none; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .lead { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; max-width: 30ch; }
.hero-art { display: flex; justify-content: center; }

/* Store screenshot tiles — the App Store assets already include a device frame,
   caption, and gradient backdrop, so we present each as a self-contained rounded
   card rather than wrapping it in a second phone frame. */
.shot {
  width: 320px; border-radius: 30px; overflow: hidden; flex: none;
  box-shadow: 0 30px 60px -18px rgba(20, 30, 45, 0.5), 0 8px 18px rgba(20, 30, 45, 0.18);
}
.shot img { width: 100%; display: block; }

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 11px; height: 54px; padding: 0 20px;
  border-radius: var(--r-btn); background: #0c0d0e; color: #fff;
  transition: transform .12s ease, opacity .12s ease;
}
.badge:hover { transform: translateY(-1px); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge .b-small { font-size: 10px; line-height: 1; opacity: 0.85; display: block; }
.badge .b-big { font-size: 17px; font-weight: 700; line-height: 1.15; }
.badge[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.badge[aria-disabled="true"]:hover { transform: none; }
.badge[aria-disabled="true"] .b-small::after { content: " · coming soon"; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px;
}
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.icon-badge {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: #FFF3E0; color: var(--accent); margin-bottom: 16px;
}
:root[data-theme="dark"] .icon-badge,
.icon-badge { /* keep warm tint readable in dark too */ }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-badge { background: rgba(242, 151, 46, 0.16); }
}
:root[data-theme="dark"] .icon-badge { background: rgba(242, 151, 46, 0.16); }
.icon-badge svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-weight: 500; font-size: 15px; }

/* ---------- Feature rows (alternating image/text) ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 40px 0;
}
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text .eyebrow { color: var(--accent); }
.feature-text h2 { margin-bottom: 14px; }
.feature-text p { color: var(--muted); font-size: 17px; font-weight: 500; }
.feature-text ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.feature-text li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.feature-text li svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 1px; }
.feature-art { display: flex; justify-content: center; }
.feature-art .shot { width: 290px; }

/* ---------- Mission band ---------- */
.band { background: var(--gradient); color: var(--on-gradient); }
.band .container { text-align: center; max-width: 820px; }
.band h2 { color: var(--on-gradient); }
.band p { font-size: clamp(17px, 2.2vw, 20px); font-weight: 600; margin-top: 16px; opacity: 0.92; }
.band .attribution { margin-top: 22px; font-size: 14px; font-weight: 700; opacity: 0.8; }

/* ---------- Logos band ---------- */
.logos { text-align: center; }
.logos p { font-weight: 700; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.logos .row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 38px; margin-top: 22px;
  font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; color: var(--ink); opacity: 0.55;
}

/* ---------- CTA block ---------- */
.cta { text-align: center; }
.cta .card { padding: 56px 32px; max-width: 760px; margin: 0 auto; }
.cta .badges { justify-content: center; margin-top: 28px; }

/* ---------- Pricing ---------- */
.price-card { max-width: 460px; margin: 0 auto; text-align: center; border: 2px solid var(--accent); }
.price-card .price { font-size: 46px; font-weight: 800; margin: 8px 0; }
.price-card .price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price-list { list-style: none; text-align: left; margin: 24px 0; display: grid; gap: 12px; }
.price-list li { display: flex; gap: 10px; font-weight: 500; }
.price-list li svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s ease; color: var(--muted); flex: none; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .answer { padding: 0 24px 22px; color: var(--muted); font-weight: 500; }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-weight: 500; margin-bottom: 32px; }
.prose h2 { font-size: 22px; margin: 32px 0 12px; }
.prose h3 { font-size: 18px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 12px; }
.prose a { color: var(--accent); font-weight: 600; }
.notice {
  background: #FFF3E0; border: 1px solid rgba(242, 151, 46, 0.4); color: #8a5a12;
  border-radius: var(--r-card); padding: 16px 20px; margin-bottom: 28px; font-size: 14px; font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .notice { background: rgba(242, 151, 46, 0.12); color: var(--amber); }
}
:root[data-theme="dark"] .notice { background: rgba(242, 151, 46, 0.12); color: var(--amber); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { text-align: center; padding-top: 72px; padding-bottom: 24px; }
.page-hero .lead { max-width: 620px; margin: 16px auto 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-grid p { color: var(--muted); font-size: 14px; font-weight: 500; max-width: 30ch; }
.footer-col h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; font-weight: 500; padding: 5px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 13px; font-weight: 500;
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-size: clamp(80px, 18vw, 160px); font-weight: 800; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { max-width: none; }
  .hero .badges { justify-content: center; }
  .hero-art { order: -1; }
  .feature { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature-text ul { display: inline-grid; text-align: left; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0; padding: 14px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open .btn { margin: 8px 0 0; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto; width: 40px; height: 40px;
    border-radius: 11px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  }
  .site-header .container { position: relative; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
}
