/* Savenova landing page. Colours follow lib/core/constants/app_colors.dart. */
:root {
  color-scheme: dark;
  --navy: #111936;
  --navy-2: #182148;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(220, 228, 255, 0.14);
  --ink: #f8faff;
  --muted: #b4bbd8;
  --purple: #9b7bff;
  --orchid: #c4a7ff;
  --mint: #4de2d1;
  --amber: #fbc024;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--orchid); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
section { padding: 88px 20px; max-width: 1120px; margin: 0 auto; }

/* Starfield, like the app's background */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(155, 123, 255, 0.28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(77, 226, 209, 0.12), transparent 60%),
    var(--navy);
}
.stars::before, .stars::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 34%, #dce4ff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 58%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 81%, #dce4ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 92%, #fff 50%, transparent 51%);
  opacity: 0.55;
}
.stars::after { transform: translate(37%, 41%) scale(1.3); opacity: 0.3; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 20px;
  max-width: 1120px; margin: 0 auto;
  background: rgba(17, 25, 54, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img:first-child { border-radius: 9px; }
.wordmark { height: 16px; width: auto; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--ink); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--purple); color: #fff; border-radius: 14px; padding: 12px 20px;
}
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn:hover { filter: brightness(1.08); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding-top: 56px;
}
.eyebrow {
  margin: 0 0 14px; color: var(--mint); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 700; }
.grad {
  background: linear-gradient(90deg, var(--orchid), var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.fine { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores.center { justify-content: center; }
/* Phone frame */
.phone {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  aspect-ratio: 1320 / 2868;
  border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #2b3460, #0b1027);
  box-shadow: 0 0 0 1px rgba(220, 228, 255, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 120px -40px rgba(155, 123, 255, 0.5);
}
.phone img, .phone video {
  width: 100%; height: 100%; object-fit: cover; border-radius: 35px; background: var(--navy);
}
.phone-lg { max-width: 340px; }
.phone-video { aspect-ratio: 720 / 1606; }

.hero-phone { position: relative; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: rgba(24, 33, 72, 0.9); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
}
.chip-a { top: 47%; left: -10%; }
.chip-b { bottom: 12%; right: -8%; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.mint { background: var(--mint); }
.amber { background: var(--amber); }

/* Section heads */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 14px 0 0; }

/* Demo */
.demo-tabs {
  display: flex; justify-content: center; gap: 6px; margin: 0 auto 40px;
  padding: 5px; border: 1px solid var(--line); border-radius: 16px; width: max-content; max-width: 100%;
  background: var(--card);
}
.demo-tabs button {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
  background: none; border: 0; border-radius: 12px; padding: 10px 18px;
}
.demo-tabs button[aria-selected="true"] { background: var(--purple); color: #fff; }

.tour { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 920px; margin: 0 auto; }
.tour .phone img { cursor: pointer; transition: opacity 0.2s; }
.tour .phone img.fade { opacity: 0.35; }
.tour-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tour-list button {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font: inherit; color: var(--muted); background: none;
  border: 1px solid transparent; border-radius: 16px; padding: 12px 16px;
  transition: background 0.15s, border-color 0.15s;
}
.tour-list button b { display: block; color: var(--ink); font-size: 16px; }
.tour-list button span { display: none; font-size: 14.5px; margin-top: 3px; }
.tour-list button.on { background: var(--card); border-color: var(--line); }
.tour-list button.on span { display: block; }
.tour-list button.on b { color: var(--orchid); }
.tour-list button:hover { background: var(--card); }
.tour-nav { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-left: 16px; color: var(--muted); font-size: 14px; }
.round {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 17px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.round:hover { border-color: var(--purple); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; color: var(--muted); }
.steps li b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(155, 123, 255, 0.18); color: var(--orchid); font-weight: 700; font-size: 15px;
}

/* Features */
.feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  max-width: 960px; margin: 0 auto 96px;
}
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: 30px; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 17.5px; margin: 0; }
.feature .phone { max-width: 280px; }
.tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--mint); background: rgba(77, 226, 209, 0.12);
}
.tag-star { color: var(--amber); background: rgba(251, 192, 36, 0.12); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; }
.card {
  padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.card .tag { margin-bottom: 10px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Privacy */
.privacy-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: 52px 32px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(77, 226, 209, 0.1), rgba(155, 123, 255, 0.1));
  border: 1px solid var(--line);
}
.shield { width: 46px; height: 46px; color: var(--mint); margin: 0 auto 16px; }
.checks { list-style: none; padding: 0; margin: 24px auto; display: grid; gap: 12px; max-width: 520px; text-align: left; }
.checks li { position: relative; padding-left: 30px; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg);
}

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; align-items: start; }
.plan {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.plan h3 { font-size: 24px; }
.price { color: var(--muted); margin: 6px 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 26px; font-size: 15.5px; }
.plan li::before {
  content: ""; position: absolute; left: 3px; top: 7px; width: 11px; height: 6px;
  border-left: 2px solid var(--orchid); border-bottom: 2px solid var(--orchid); transform: rotate(-45deg);
}
.plan-star {
  border-color: rgba(155, 123, 255, 0.6);
  background: linear-gradient(180deg, rgba(155, 123, 255, 0.16), rgba(155, 123, 255, 0.04));
}
.badge {
  position: absolute; top: -12px; left: 26px; padding: 4px 12px; border-radius: 999px;
  background: var(--purple); color: #fff; font-size: 12px; font-weight: 700;
}

/* CTA + footer */
.cta { text-align: center; }
.cta-icon { margin: 0 auto 22px; border-radius: 18px; }
.cta p { color: var(--muted); font-size: 18px; margin: 12px 0 28px; }
footer { border-top: 1px solid var(--line); }
.foot {
  max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px;
  display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between;
  color: var(--muted); font-size: 14px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* Tablet & phone */
@media (max-width: 860px) {
  section { padding: 64px 16px; }
  .links { display: none; }
  .top { justify-content: space-between; padding: 12px 16px; }
  .hero, .tour, .feature { grid-template-columns: 1fr; gap: 40px; }
  .hero { text-align: center; padding-top: 32px; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero .stores { justify-content: center; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
  .feature { margin-bottom: 72px; text-align: center; }
  .feature.flip .feature-copy { order: 0; }
  .grid, .plans { grid-template-columns: 1fr; }
  .plans { gap: 22px; }
  .tour-nav { justify-content: center; padding-left: 0; }
  .demo-tabs button { padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 420px) {
  .chip { font-size: 12px; padding: 7px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.phone-film { aspect-ratio: 720 / 1564; }
.privacy-inner .fine { margin: 0 auto 18px; max-width: 520px; }
.plans-note { text-align: center; max-width: 640px; margin: 22px auto 0; }

/* Official store badges, both at the same height. Google's PNG is trimmed
   to the badge itself; the gap between them is the clear space. */
.badge-link { display: block; flex: none; line-height: 0; border-radius: 9px; }
.badge-apple, .badge-play { display: block; height: 48px; width: auto; }
.stores { align-items: center; gap: 16px; }
.top { max-width: none; padding-left: max(20px, calc((100% - 1080px) / 2)); padding-right: max(20px, calc((100% - 1080px) / 2)); }
@media (max-width: 860px) { .top { padding-left: 16px; padding-right: 16px; } }
