/* Aura landing page — colours match src/theme/colors.ts */
:root {
  --primary: #0D9488;
  --primary-2: #0891B2;
  --mint: #4ADE80;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --fg: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --tint: #F0FDFA;
  --urgent: #DC2626;
  --urgent-soft: #FEF2F2;
  --mild: #16A34A;
  --moderate: #D97706;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --grad: linear-gradient(135deg, var(--primary), var(--primary-2));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --card: #111A2B;
    --fg: #E2E8F0;
    --muted: #94A3B8;
    --border: #1E293B;
    --tint: #0F1D2A;
    --urgent-soft: #2A1215;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 12px; }
h3 { font-size: 1.05rem; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sub { color: var(--muted); margin: 0 auto 28px; max-width: 560px; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 20px; }
.eyebrow {
  color: var(--primary); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em; margin: 0 0 10px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 14px;
  background: var(--grad); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 20px rgba(13, 148, 136, .25); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 12px; }
.btn-ghost { background: var(--card); color: var(--fg); border: 1px solid var(--border); box-shadow: none; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px; border-radius: 14px;
  background: #0F172A; color: #fff; text-decoration: none; transition: transform .15s ease;
}
.store-btn:hover { transform: translateY(-1px); }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 1.1rem; }
.store-btn small { font-weight: 500; font-size: .7rem; opacity: .8; }
.store-btn-light { background: #fff; color: #0F172A; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--fg); }

/* Hero */
.hero {
  padding: 64px 0 80px;
  overflow-x: clip;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(34, 211, 238, .18), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, rgba(74, 222, 128, .15), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.03em; margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); font-size: .92rem; }
.trust li::before { content: "\2713"; color: var(--primary); font-weight: 800; margin-right: 6px; }

/* Hero phones (real screenshots) */
.hero-phones { position: relative; justify-self: center; width: 100%; max-width: 440px; aspect-ratio: 440 / 560; }
.hero-phones .shot { position: absolute; width: 62%; }
.hero-front { right: 4%; top: 0; z-index: 2; box-shadow: 0 30px 60px rgba(15, 23, 42, .3); }
.hero-back { left: 0; top: 12%; transform: rotate(-6deg); opacity: .9; }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.grid { display: grid; gap: 16px; margin-top: 36px; }
.features { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); font-size: .93rem; margin: 8px 0 0; }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); font-size: 1.35rem; margin-bottom: 14px;
}
.card-urgent { border-color: color-mix(in srgb, var(--urgent) 35%, var(--border)); background: var(--urgent-soft); }
.card-urgent .ic { background: var(--urgent); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); font-size: .93rem; margin: 8px 0 0; }
.num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px;
}

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 36px 0 0; }
.shots figure { margin: 0; text-align: center; }
.shot {
  padding: 8px; border-radius: 34px; background: #0F172A;
  box-shadow: 0 20px 40px rgba(15, 23, 42, .18);
}
.shot img { width: 100%; height: auto; border-radius: 26px; }
.shots figcaption { margin-top: 14px; font-weight: 600; font-size: .95rem; }

/* Languages */
.langs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.langs li {
  padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--border);
  font-weight: 600; font-size: 1.02rem; box-shadow: var(--shadow);
}

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 20px; margin-top: 36px; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
}
.plan-plus { border: 2px solid var(--primary); }
.plan .badge {
  position: absolute; top: -13px; left: 28px; padding: 3px 12px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700;
}
.plan-price { font-size: 1.6rem; font-weight: 800; margin: 6px 0 16px; }
.plan-plus .plan-price { font-size: 1.15rem; color: var(--primary); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; font-size: .95rem; }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 4px 20px; margin-top: 12px;
}
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--primary); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin: 0 0 16px; }

/* Final CTA */
.cta-band { padding: 0 0 80px; }
.cta-band-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--grad); color: #fff; border-radius: 28px; padding: 32px;
}
.cta-band-inner > div { flex: 1; min-width: 220px; }
.cta-band h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 4px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band img { background: #fff; border-radius: 22px; padding: 6px; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.02em; margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.legal h3 { font-size: 1rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--fg); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--primary); }
.legal section { scroll-margin-top: 80px; }
.legal-meta { color: var(--muted); font-size: .9rem; margin: 0 0 28px; }
.legal-meta code { font-size: .85em; }
.legal-summary {
  background: var(--tint); border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
  border-radius: var(--radius); padding: 6px 22px 10px;
}
.legal-summary h2 { margin-top: 16px; font-size: 1.1rem; }
.legal-warning { background: var(--urgent-soft); border-color: color-mix(in srgb, var(--urgent) 35%, var(--border)); }
.toc { margin: 28px 0 8px; padding: 16px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal th { background: var(--tint); font-weight: 700; }
.legal-note { margin-top: 40px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
/* Details the owner still has to fill in */
mark.todo { background: #FEF08A; color: #713F12; padding: 0 4px; border-radius: 4px; }
.nav-links a[aria-current="page"] { color: var(--fg); font-weight: 700; }
@media (max-width: 720px) { .toc ol { columns: 1; } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0 40px; font-size: .88rem; color: var(--muted); }
.disclaimer { margin: 0 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.credits { margin: 0 0 20px; font-size: .75rem; }
.credits a { text-decoration: underline; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-row nav { display: flex; gap: 18px; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  /* Swipe through the screenshots instead of shrinking them */
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin-left: -4px; margin-right: -4px;
  }
  .shots figure { scroll-snap-align: center; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phones { margin-top: 12px; max-width: 380px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .steps, .plans { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 60px; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .cta-band-inner { padding: 24px; }
}
