/* ============================================================
   Acro website — Aurora design system on the web
   Mirrors Acro/Views/DesignSystem/Tokens.swift (dark mode).
   ============================================================ */

:root {
  /* surfaces */
  --bg: #000;
  --bg-surface: rgba(255,255,255,0.04);
  --bg-elevated: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);

  /* text */
  --text-primary: #fff;
  --text-secondary: rgba(255,255,255,0.65);
  --text-tertiary: rgba(255,255,255,0.40);

  /* accents */
  --accent-cyan: #00E5FF;
  --accent-magenta: #FF00C8;
  --accent-violet: #8A4FFF;
  --accent-amber: #FFB700;
  --accent-lime: #B6FF3D;
  --accent-coral-pink: #FF3A8C;

  /* composites */
  --aurora-text: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
  --aurora-bg-tl: radial-gradient(ellipse 900px 700px at 10% -10%, rgba(0,229,255,0.16) 0%, transparent 60%);
  --aurora-bg-br: radial-gradient(ellipse 800px 600px at 90% 110%, rgba(255,0,200,0.14) 0%, transparent 60%);
}

/* ------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--aurora-bg-tl), var(--aurora-bg-br);
}
main, header, footer, nav { position: relative; z-index: 1; }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: 56px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; font-weight: 600; }
p  { margin: 0 0 16px; color: var(--text-secondary); }
p.lede { font-size: 19px; color: var(--text-secondary); max-width: 720px; }

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(0,229,255,0.30); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; border-radius: 4px; }

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

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bg-elevated); color: var(--text-primary);
  padding: 8px 12px; border-radius: 8px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 680px; }

@media (min-width: 720px) {
  .container { padding: 0 48px; }
}

section { padding: 80px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
}

/* ------------------------------------------------------------
   Aurora text gradient
   ------------------------------------------------------------ */
.aurora-text {
  background: var(--aurora-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ------------------------------------------------------------
   Eyebrow label
   ------------------------------------------------------------ */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

/* ------------------------------------------------------------
   Top nav
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: transparent;
  transition: background 0.2s ease, backdrop-filter 0.2s ease;
}
.nav-scrolled {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-primary);
}
.nav-brand:hover { text-decoration: none; }
.nav-logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: block;
  background: #000;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }

/* Mobile hamburger — CSS-only with a hidden checkbox */
.nav-toggle, .nav-toggle-icon { display: none; }
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 64px; right: 24px;
    flex-direction: column; align-items: flex-end;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 14px;
    padding: 16px 24px;
    gap: 12px;
    display: none;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle-icon {
    display: block; cursor: pointer;
    width: 28px; height: 24px; position: relative;
  }
  .nav-toggle-icon::before,
  .nav-toggle-icon::after,
  .nav-toggle-icon span {
    content: ""; position: absolute; left: 0; right: 0;
    height: 2px; background: var(--text-primary); border-radius: 2px;
  }
  .nav-toggle-icon::before { top: 4px; }
  .nav-toggle-icon span    { top: 11px; }
  .nav-toggle-icon::after  { top: 18px; }
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 16px; font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 24px rgba(0,229,255,0.20);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(138,79,255,0.12));
  border-color: rgba(0,229,255,0.45);
  color: #fff;
}

/* App Store "coming soon" pill — swap to Apple's official badge image once shipped */
.app-store-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
a.app-store-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.app-store-pill .pill-tag {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent-cyan); font-weight: 700;
}

/* ------------------------------------------------------------
   Card
   ------------------------------------------------------------ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,229,255,0.30);
  box-shadow: 0 0 24px rgba(0,229,255,0.18);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card-magenta { border-color: rgba(255,0,200,0.30); }
.card-magenta:hover { border-color: rgba(255,0,200,0.50); box-shadow: 0 0 24px rgba(255,0,200,0.18); }

/* ------------------------------------------------------------
   Pill
   ------------------------------------------------------------ */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0,229,255,0.10);
  border: 1px solid rgba(0,229,255,0.30);
  color: var(--accent-cyan);
}
.pill-amber { background: rgba(255,183,0,0.10); border-color: rgba(255,183,0,0.30); color: var(--accent-amber); }
.pill-magenta { background: rgba(255,0,200,0.10); border-color: rgba(255,0,200,0.30); color: var(--accent-magenta); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  padding: 96px 0 80px;
  text-align: left;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero .lede {
  font-size: 19px;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-shot {
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow:
    0 0 80px rgba(0,229,255,0.18),
    0 30px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  background: var(--bg-elevated);
}
.hero-shot-placeholder {
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0,229,255,0.40) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(255,0,200,0.35) 0%, transparent 50%),
    #0a0a0f;
}

/* Real-screenshot variants of the placeholder boxes. Cover-fits the image
   inside the existing `.hero-shot` / `.feature-shot` framing so the cyan-glow
   shadow, border, and aspect-ratio stay consistent with the placeholders.
   `object-position: top` keeps the iPad's status bar + active content
   visible when the portrait shot is taller than the container. */
.hero-shot > img,
.feature-shot > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}
.feature-shot { background: #0a0a0f; }   /* fallback if img is slow / missing */

/* ------------------------------------------------------------
   Grids
   ------------------------------------------------------------ */
.grid-3 {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  display: grid; gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Feature row alternating layout */
.feature-row { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr 1fr; margin-bottom: 96px; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 24px; direction: ltr; }
}
.feature-shot {
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  /* Match the iPad Pro 13" portrait screenshots dropped into the site. */
  aspect-ratio: 2064 / 2752;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0,229,255,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(255,0,200,0.20) 0%, transparent 60%),
    #0a0a0f;
}
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li {
  padding-left: 28px; position: relative;
  margin-bottom: 12px; color: var(--text-secondary);
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 12px; height: 2px; background: var(--accent-cyan); border-radius: 2px;
}

/* ------------------------------------------------------------
   Disclaimer callout (coral-pink left bar)
   ------------------------------------------------------------ */
.callout {
  padding: 20px 24px;
  border-left: 3px solid var(--accent-coral-pink);
  background: rgba(255,58,140,0.06);
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent-coral-pink); }

/* ------------------------------------------------------------
   FAQ accordion (pure CSS via <details>)
   ------------------------------------------------------------ */
.faq details {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px; font-weight: 400; color: var(--accent-cyan);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 14px; }

/* ------------------------------------------------------------
   Doc page (Privacy / Terms / Support narrow reading layout)
   ------------------------------------------------------------ */
.doc-page h1 { font-size: 40px; margin-bottom: 8px; }
.doc-page .updated { color: var(--text-tertiary); font-size: 13px; margin-bottom: 48px; }
.doc-page h2 { font-size: 24px; margin-top: 48px; }
.doc-page p { color: var(--text-secondary); font-size: 16px; }
.doc-page ul { color: var(--text-secondary); padding-left: 24px; }
.doc-page ul li { margin-bottom: 8px; }

/* ------------------------------------------------------------
   Changelog
   ------------------------------------------------------------ */
.changelog-entry { margin-bottom: 32px; }
.changelog-entry header {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 12px;
}
.changelog-entry .date { color: var(--text-tertiary); font-size: 13px; font-family: ui-monospace, "SF Mono", monospace; }
/* Each release card's h2 is semantically a section heading but visually a
   card title — keep the 22px / 600 weight while preserving the h2 hierarchy
   so screen readers don't skip levels. Same treatment for the magenta
   Roadmap card. */
.changelog-entry h2,
.card-magenta h2 { margin: 0; flex: 1 1 100%; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 80px;
  color: var(--text-tertiary);
  font-size: 14px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: flex-start;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); text-decoration: none; }

/* ------------------------------------------------------------
   Motion preferences
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
