/* AwayPro — marketing site. Design system mirrors the iOS app:
   deep aviation navy + steel blue, elevated white cards, gradient icon chips. */

:root {
  --navy: #0B2A55;
  --navy-deep: #06183A;
  --blue: #507EC1;
  --cyan: #7CA5D9;
  --ink: #10233f;
  --muted: #5a6b84;
  --bg: #f3f7fc;
  --bg-2: #e7eff9;
  --card: #ffffff;
  --hair: #e3eaf4;
  --brand-grad: linear-gradient(135deg, #0B2A55, #507EC1 78%, #7CA5D9);
  --deep-grad: linear-gradient(160deg, #06183A 0%, #0B2A55 55%, #21467f 100%);
  --shadow-card: 0 18px 40px -22px rgba(11, 42, 85, 0.28);
  --radius: 20px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

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

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
  padding: 6px 13px; border: 1px solid var(--hair); border-radius: 100px; background: #fff;
}
.eyebrow.on-navy { color: var(--cyan); border-color: rgba(124,165,217,.28); background: rgba(124,165,217,.08); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 1rem; font-weight: 650; padding: 13px 26px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(80,126,193,.7); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(80,126,193,.8); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--hair); }
.btn-ghost:hover { background: #fff; border-color: var(--blue); color: var(--navy); }
.btn-ghost.on-navy { color: #eaf1fb; border-color: rgba(255,255,255,.28); }
.btn-ghost.on-navy:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(243,247,252,.82); border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav .brand img { height: 26px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--navy); font-weight: 550; font-size: .96rem; }
.nav-links a:hover { color: var(--blue); }
.nav-links .btn { padding: 9px 18px; font-size: .92rem; }
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden; color: #eaf1fb;
  background: var(--deep-grad);
  padding: clamp(64px, 9vw, 120px) 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 15% 0%, rgba(124,165,217,.28), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { color: #fff; }
.hero .lede { color: #c3d4ec; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: .86rem; color: #9fb3d0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-shots { position: relative; height: 100%; min-height: 420px; }
.hero-shots img {
  position: absolute; width: 60%; border-radius: 30px; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 70px -28px rgba(0,0,0,.7);
}
.hero-shots img:nth-child(1) { left: 4%; top: 8%; z-index: 2; }
.hero-shots img:nth-child(2) { right: 2%; top: 22%; width: 56%; z-index: 1; opacity: .96; }
.hero-wave { display: block; width: 100%; margin-top: 40px; color: var(--bg); }

/* ---- Sections ---- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 620px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head .lede { margin: 14px auto 0; }
.alt { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }

/* ---- Feature grid ---- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-card);
}
.icon-badge {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; margin-bottom: 16px;
  box-shadow: 0 8px 18px -8px rgba(80,126,193,.6);
}
.icon-badge svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---- Showcase (screens on cards) ---- */
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.showcase-row.reverse .showcase-text { order: 2; }
.showcase-phone { display: flex; justify-content: center; }
.showcase-phone img {
  width: 300px; max-width: 100%; border-radius: 30px; border: 1px solid var(--hair);
  box-shadow: 0 30px 60px -24px rgba(11,42,85,.35); background: #fff;
}
.showcase-text h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.showcase-text ul { list-style: none; padding: 0; margin: 18px 0 0; }
.showcase-text li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--muted); }
.showcase-text li::before {
  content: ""; position: absolute; left: 4px; top: .5em; width: 9px; height: 9px;
  border-radius: 3px; background: var(--brand-grad);
}

/* ---- CTA band ---- */
.cta {
  background: var(--deep-grad); color: #fff; text-align: center; border-radius: 28px;
  padding: clamp(44px, 6vw, 72px); position: relative; overflow: hidden;
}
.cta::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 60% at 50% 0%, rgba(124,165,217,.26), transparent 65%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta .lede { color: #c3d4ec; max-width: 46ch; margin: 14px auto 26px; }

/* ---- Prose (support / privacy / terms) ---- */
.page-head { background: var(--deep-grad); color: #fff; padding: clamp(56px,8vw,88px) 0 clamp(40px,6vw,64px); }
.page-head h1 { color: #fff; }
.page-head .lede { color: #c3d4ec; margin-top: 12px; }
.prose { max-width: 760px; margin: 0 auto; padding: clamp(44px,6vw,72px) 0; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: #33455f; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.prose .support-card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); margin: 22px 0; }
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); padding: 18px 0; }
.faq summary { font-weight: 650; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* ---- Footer ---- */
.footer { background: var(--navy-deep); color: #b9cae4; padding: 56px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer img { height: 26px; margin-bottom: 12px; }
.footer .tag { max-width: 30ch; font-size: .92rem; color: #8ea6c9; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols h4 { color: #eaf1fb; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.footer-cols a { display: block; color: #b9cae4; margin-bottom: 9px; font-size: .95rem; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; font-size: .85rem; color: #7f97ba; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

.badge-soon { display:inline-block; background: rgba(124,165,217,.16); color: var(--cyan); border:1px solid rgba(124,165,217,.3); border-radius:100px; padding:5px 12px; font-size:.8rem; font-weight:650; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shots { min-height: 340px; margin-top: 12px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .showcase-row { grid-template-columns: 1fr; }
  .showcase-row.reverse .showcase-text { order: 0; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 24px; background: rgba(243,247,252,.98); border-bottom: 1px solid var(--hair); }
  .nav-toggle { display: inline-flex; background: none; border: 0; cursor: pointer; padding: 8px; }
  .nav-toggle svg { width: 26px; height: 26px; color: var(--navy); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
