/* Sonara website — "Night Drive" theme. Dark-only. No dependencies. */
:root {
  --amber: #FF9438;
  --amber-hover: #FFB061;
  --teal: #1FC8B6;
  --bg-root: #080F1C;
  --surface-1: #0E1726;
  --surface-2: #16223A;
  --hairline: rgba(244, 247, 251, 0.08);
  --text-1: #F4F7FB;
  --text-2: #AEB9CC;
  --text-3: #6F7C93;
  --maxw: 1080px;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-root);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }

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

/* Accessibility: skip link + focus */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--bg-root); padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* Buttons / App Store CTA */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; border-radius: 12px; padding: 13px 22px; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 8px 14px; border-radius: 10px; font-size: .9rem; }
.btn-appstore { background: var(--text-1); color: var(--bg-root); }
.btn-appstore:hover { background: #fff; }
.btn-amber { background: var(--amber); color: var(--bg-root); }
.btn-amber:hover { background: var(--amber-hover); }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); position: sticky; top: 0; background: rgba(8,15,28,0.85); backdrop-filter: blur(10px); z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text-1); font-weight: 800; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a { color: var(--text-2); font-size: .95rem; }
.site-nav > a.btn { color: var(--bg-root); }

/* Hero */
.hero { padding: 64px 0; background:
  radial-gradient(120% 80% at 85% 0%, rgba(255,148,56,0.10), transparent 55%),
  radial-gradient(90% 70% at 0% 100%, rgba(31,200,182,0.08), transparent 55%); }
.hero-inner { display: flex; align-items: center; gap: 48px; }
.hero-copy { flex: 1.1; }
.hero h1 { font-size: clamp(2rem, 1rem + 4vw, 3.4rem); font-weight: 800; }
.hero .lede { color: var(--text-2); font-size: 1.15rem; max-width: 36ch; margin: 18px 0 28px; }
.hero-art { flex: 0 0 auto; }

/* Phone frame (placeholder for a real screenshot) */
.phone { width: 220px; height: 446px; border-radius: 40px; border: 6px solid var(--surface-2);
  background: var(--surface-1); padding: 10px; box-shadow: 0 22px 60px rgba(0,0,0,.5); }
.phone-screen { height: 100%; border-radius: 30px; background: linear-gradient(165deg, var(--surface-2), var(--surface-1));
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.phone-ring { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--amber);
  box-shadow: 0 0 30px rgba(255,148,56,.5); position: relative; }
.phone-ring::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: var(--amber); }
.phone-ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 2px solid var(--teal); }
.phone-station { color: var(--text-1); font-weight: 700; }
.phone-tag { position: absolute; top: 10px; color: var(--text-3); font-size: .7rem; }

/* Features */
.features { padding: 56px 0; }
.section-label { text-align: center; color: var(--text-3); text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; margin-bottom: 26px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.feature .icon { font-size: 1.6rem; margin-bottom: 10px; }
.icon-amber { color: var(--amber); }
.icon-teal { color: var(--teal); }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--text-2); margin: 4px 0 0; font-size: .95rem; }

/* CTA band */
.cta-band { margin: 8px 0 64px; text-align: center; padding: 36px 24px; border-radius: var(--radius);
  border: 1px solid rgba(255,148,56,0.3);
  background: linear-gradient(100deg, rgba(255,148,56,0.14), rgba(31,200,182,0.12)); }
.cta-band h2 { font-size: 1.5rem; }
.cta-band p { color: var(--text-2); margin: 6px 0 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 26px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.copyright { color: var(--text-3); margin: 0; font-size: .9rem; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-2); font-size: .9rem; }

/* Legal / prose pages */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 1rem + 3vw, 2.4rem); }
.legal .effective { color: var(--text-3); margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; margin-top: 36px; color: var(--text-1); }
.legal p, .legal li { color: var(--text-2); }
.legal a { color: var(--teal); }
.legal ul { padding-left: 20px; }

/* FAQ */
.faq-item { border-top: 1px solid var(--hairline); padding: 18px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.faq-item p { color: var(--text-2); margin: 0; }

/* Responsive */
@media (max-width: 880px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .header-inner { flex-wrap: wrap; }
}

/* Reduced motion: drop the glow/transitions */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .phone-ring, .phone { box-shadow: none; }
}
