/* AVSpot website. Palette mirrors plane_flutter/lib/app/theme.dart. */
:root {
  --primary: #168ED6;
  --primary-dark: #0F6FAB;
  --primary-container: #EAF6FB;
  --navy: #11408A;
  --success: #109B81;
  --background: #F7FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-secondary: #64748B;
  --border: #DCE7EC;
  --sky-top: #5FA9E8;
  --radius: 16px;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1; }
.wordmark .av { color: var(--navy); }
.wordmark .spot { color: var(--primary); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--primary); }
.site-nav a.btn { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
}
.btn:hover { background: var(--primary-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #EAF4FC 0%, var(--background) 100%);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--primary); }
.hero .lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 34em;
}
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  padding: 9px 18px 9px 14px;
  text-decoration: none;
  min-width: 172px;
}
.store-badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: 0.7rem; opacity: 0.75; font-weight: 500; }
.store-badge strong { font-size: 1.05rem; font-weight: 600; }
.store-badge[aria-disabled="true"] { cursor: default; }
a.store-badge:hover { background: #1E293B; color: #fff; }
.store-note { color: var(--text-secondary); font-size: 0.9rem; margin: 14px 0 0; }

.hero-art { position: relative; }
.hero-art > img {
  border-radius: 28px;
  box-shadow: 0 30px 60px -20px rgba(17, 64, 138, 0.35);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}
.spot-card {
  position: absolute;
  left: -28px;
  top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: 18px;
  padding: 12px 18px 12px 12px;
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.3);
}
.spot-card .thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--primary-container);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.spot-card .thumb svg { width: 26px; height: 26px; }
.spot-card b { display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.spot-card .type { color: var(--text-secondary); font-size: 0.85rem; display: block; }
.spot-card .new { color: var(--success); font-size: 0.8rem; font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
#features { padding-top: 40px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-head p { color: var(--text-secondary); font-size: 1.1rem; margin: 0; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 940px;
  margin: 0 auto 96px;
}
.feature:last-child { margin-bottom: 0; }
.feature.flip .phone { order: 2; }
.feature h3 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.feature p { color: var(--text-secondary); font-size: 1.05rem; margin: 0 0 14px; }
.feature .tag {
  display: inline-block;
  background: var(--primary-container);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.phone {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  padding: 10px;
  background: #0F172A;
  border-radius: 44px;
  box-shadow: 0 40px 80px -30px rgba(17, 64, 138, 0.45);
}
.phone img { border-radius: 34px; width: 100%; aspect-ratio: 1080 / 2424; object-fit: cover; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mini .shot {
  background: linear-gradient(180deg, #EAF4FC, #F7FAFC);
  padding: 28px 28px 0;
  height: 260px;
  overflow: hidden;
}
.mini .shot img {
  border-radius: 22px 22px 0 0;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.25);
}
.mini .body { padding: 22px 24px 26px; border-top: 1px solid var(--border); }
.mini h3 { margin: 0 0 6px; font-size: 1.15rem; }
.mini p { margin: 0; color: var(--text-secondary); font-size: 0.97rem; }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--background);
}
.pillar .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-container);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.pillar .icon svg { width: 22px; height: 22px; }
.pillar h3 { margin: 0 0 6px; font-size: 1.1rem; }
.pillar p { margin: 0; color: var(--text-secondary); font-size: 0.97rem; }

.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
}
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -0.025em; margin: 0 0 12px; line-height: 1.15; }
.cta p { margin: 0 auto 28px; opacity: 0.85; font-size: 1.1rem; max-width: 34em; }
.cta .store-row { justify-content: center; }
.cta .store-badge { background: #fff; color: var(--text); }
.cta a.store-badge:hover { background: #F1F5F8; color: var(--text); }

/* ---------- Document pages (privacy, terms, support) ---------- */
.doc-header { padding: 56px 0 24px; }
.doc-header h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.025em; margin: 0 0 6px; line-height: 1.15; }
.doc-header p { color: var(--text-secondary); margin: 0; }
.doc { max-width: 760px; margin: 0 auto; padding: 0 24px 88px; }
.doc .wrap { padding: 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
.card h2 { font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.card h2:not(:first-child) { margin-top: 28px; }
.card p, .card li { color: var(--text); }
.card ul, .card ol { padding-left: 22px; }
.card li { margin-bottom: 6px; }
.card > :last-child { margin-bottom: 0; }

.faq details { border-top: 1px solid var(--border); padding: 16px 0; }
.faq details:first-of-type { border-top: 0; padding-top: 4px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 500; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--text-secondary); }

.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.contact-card h2 { margin: 0 0 4px; }
.contact-card p { margin: 0; color: var(--text-secondary); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; }
.site-footer nav a:hover { color: var(--primary); }
.site-footer small { color: var(--text-secondary); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .spot-card { left: 12px; top: 12px; }
  .feature { grid-template-columns: 1fr; gap: 36px; margin-bottom: 72px; text-align: center; }
  .feature.flip .phone { order: 0; }
  .phone { max-width: 260px; }
  .mini-grid, .pillars { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  section { padding: 64px 0; }
  #features { padding-top: 24px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .doc { padding: 0 16px 64px; }
  .site-nav .hide-sm { display: none; }
  .site-nav { gap: 16px; }
  .card { padding: 22px; }
  .cta { padding: 48px 22px; border-radius: 22px; }
  .store-badge { min-width: 0; flex: 1 1 150px; }
}
