/* =========================================================
   SecondDisk — design system (draft)
   Android backup app: photos, contacts, files → your own email
   Brand-new visual style. Built mobile-first.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* clean blue / light-blue / cyan palette */
  --blue-900:   #0b1f4d;
  --blue-700:   #1d4ed8;
  --blue-600:   #2563eb;
  --blue-500:   #3b82f6;
  --blue-400:   #60a5fa;
  --blue-100:   #dbeafe;
  --blue-50:    #eff6ff;
  --cyan-400:   #22d3ee;

  --brand:      #2563eb;   /* blue-600 */
  --brand-600:  #1d4ed8;   /* blue-700 (hover) */
  --brand-700:  #1e40af;   /* blue-800 (deep text) */
  --accent:     #0891b2;   /* cyan-600 — "backed up / safe" */
  --accent-600: #0e7490;
  --cyan:       #22d3ee;

  --ink:        #0f172a;   /* slate-900 */
  --body:       #475569;   /* slate-600 */
  --muted:      #94a3b8;   /* slate-400 */
  --line:       #e2e8f0;   /* slate-200 */
  --surface:    #f3f7fd;   /* light blue-gray */
  --surface-2:  #eff6ff;   /* blue-50 */
  --white:      #ffffff;

  --hero-grad:  linear-gradient(135deg, #2563eb 0%, #3b82f6 48%, #22d3ee 100%);
  --accent-grad: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);

  --radius:     16px;
  --radius-lg:  28px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow:     0 10px 30px -12px rgba(15,23,42,.18);
  --shadow-lg:  0 24px 50px -20px rgba(37,99,235,.28);

  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--surface { background: var(--surface); }
.section--ink { background: #0b1020; color: #cbd5e1; }
.section--ink h2, .section--ink h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--body); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin: 0 auto 52px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.lucide, i[data-lucide] {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: none;
  stroke-width: 2;
}
.btn .lucide, .btn i[data-lucide] {
  width: 18px;
  height: 18px;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(37,99,235,.5); }
.btn--primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(8,145,178,.5); }
.btn--accent:hover { background: var(--accent-600); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }

/* Google Play style pill */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0b1020; color: #fff; padding: 11px 22px; border-radius: 14px; transition: .2s ease;
}
.btn-store:hover { color: #fff; transform: translateY(-2px); background: #1a2238; }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store .s { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-store .s small { font-size: .68rem; opacity: .8; letter-spacing: .04em; }
.btn-store .s b { font-size: 1.18rem; font-weight: 700; }

/* "coming soon" state for not-yet-live download buttons */
.is-soon { opacity: .55; cursor: default; pointer-events: none; }
.soon-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

/* ===========================================================
   Header / nav
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
}
.brand-mark img { width: 36px; height: 36px; object-fit: contain; }
.brand b { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a.navlink { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav a.navlink:hover { color: var(--brand); }
.nav .btn { padding: 10px 20px; font-size: .95rem; }

.nav-toggle {
  margin-left: auto; display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .lucide, .nav-toggle i[data-lucide] { width: 22px; height: 22px; color: var(--ink); }

/* ===========================================================
   Hero
   =========================================================== */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 720px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(37,99,235,.12), transparent 70%),
              radial-gradient(50% 50% at 90% 0%, rgba(34,211,238,.14), transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 76px 0 88px; }
.hero h1 .grad { background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 18px 0 28px; font-size: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-trust span {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.88);
  border: 1px solid rgba(37,99,235,.13); border-radius: 999px; padding: 8px 14px;
  font-size: .85rem; font-weight: 650; color: var(--ink); box-shadow: var(--shadow-sm);
}
.hero-trust .lucide, .hero-trust i[data-lucide] { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Product screenshots */
.phone-wrap { position: relative; width: -moz-fit-content; width: fit-content; margin: 0 auto; }
.phone {
  width: 310px;
  border-radius: 52px;
  background: linear-gradient(150deg, #3d4453 0%, #171c28 26%, #0b1020 72%);
  padding: 8px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.12);
  position: relative;
  z-index: 1;
}
/* right-side power button */
.phone::before {
  content: "";
  position: absolute; right: -2px; top: 168px;
  width: 3px; height: 66px; border-radius: 2px;
  background: linear-gradient(#2c3444, #11151e);
}
.phone--shot { height: auto; }
/* punch-hole selfie camera */
.phone--shot::after {
  content: "";
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: #04060b;
  box-shadow: inset 0 0 0 2px rgba(80,100,140,.45);
  z-index: 5;
}
.phone--shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 2220;
  border-radius: 44px;
  object-fit: cover;
  object-position: center top;
}
/* hero phone: subtle radar backdrop + feature "blips" around the phone */
.radar {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 500px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at center, rgba(37,99,235,.13) 0 1px, transparent 1px 56px);
  -webkit-mask-image: radial-gradient(circle, #000 48%, transparent 74%);
  mask-image: radial-gradient(circle, #000 48%, transparent 74%);
}
.radar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(37,99,235,.22), rgba(37,99,235,.05) 22%, transparent 38%);
  -webkit-mask-image: radial-gradient(circle, #000 48%, transparent 74%);
  mask-image: radial-gradient(circle, #000 48%, transparent 74%);
  animation: radar-sweep 6s linear infinite;
}
@keyframes radar-sweep { to { transform: rotate(360deg); } }

.feat-tags { position: static; }
.blip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px; }
.blip--l { flex-direction: row-reverse; }
.blip-dot {
  position: relative; width: 11px; height: 11px; border-radius: 50%; flex: none;
  background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.16);
}
.blip-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(239,68,68,.55); animation: blip-ping 2.4s ease-out infinite;
}
@keyframes blip-ping {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(2.6); opacity: 0; }
}
.blip-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(148,163,184,.26); border-radius: 999px;
  padding: 7px 13px; font-size: .84rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow); white-space: nowrap;
}
.blip-tag .lucide, .blip-tag i[data-lucide] { width: 15px; height: 15px; color: var(--brand); flex: none; }
.ft-1 { top: 44px;   right: calc(100% + 14px); }
.ft-2 { top: 230px;  right: calc(100% + 24px); }
.ft-3 { bottom: 58px; right: calc(100% + 10px); }
.ft-4 { top: 88px;   left: calc(100% + 12px); }
.ft-5 { top: 272px;  left: calc(100% + 6px); }
.ft-6 { bottom: 50px; left: calc(100% + 12px); }

.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(239,246,255,.72)),
    radial-gradient(70% 70% at 16% 8%, rgba(37,99,235,.12), transparent 70%);
  box-shadow: var(--shadow);
}
.preview-shot {
  margin: 0;
}
.preview-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 2220;
  object-fit: cover;
  object-position: center top;
  border: 7px solid #0b1020;
  border-radius: 24px;
  box-shadow: 0 18px 34px -18px rgba(15,23,42,.42);
  background: #fff;
}
.preview-shot figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 750;
}

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat span { color: var(--body); font-size: .95rem; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
/* feature sub-groups ("What you can back up" / "Why SecondDisk is different") */
.feature-group + .feature-group { margin-top: 52px; }
.group-title { font-size: .9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 22px; padding-left: 2px; }
.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid rgba(148,163,184,.24); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: .2s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, rgba(37,99,235,.9), rgba(34,211,238,.72));
  opacity: .86;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfdbfe; }
.card .ico {
  width: 60px; height: 60px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  color: var(--brand); margin-bottom: 20px; box-shadow: inset 0 0 0 1px rgba(37,99,235,.08);
}
.card .ico .lucide, .card .ico i[data-lucide] { width: 29px; height: 29px; }
.grid-3 .card:nth-child(2) .ico { background: linear-gradient(135deg, #ecfeff 0%, #d1fae5 100%); color: #0f766e; }
.grid-3 .card:nth-child(3) .ico { background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%); color: #b45309; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .98rem; }

/* ---------- How it works (icon flow) ---------- */
.howflow { display: flex; align-items: flex-start; justify-content: center; gap: 10px; }
.howflow-node { flex: 1; min-width: 0; max-width: 190px; text-align: center; }
.howflow-node .b {
  width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--hero-grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(37,99,235,.45);
}
.howflow-node .b .lucide, .howflow-node .b i[data-lucide] { width: 30px; height: 30px; }
.howflow-node small { display: block; color: var(--ink); font-weight: 700; font-size: .98rem; }
.howflow-arrow { flex: none; color: var(--muted); margin-top: 24px; }
.howflow-arrow .lucide, .howflow-arrow i[data-lucide] { width: 24px; height: 24px; }

/* ---------- Split / highlight ---------- */
.split { display: grid; grid-template-columns: 0.74fr 1.26fr; gap: 48px; align-items: center; }
/* difference: compact icon benefits (replaces the long bullet copy) */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.benefit {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid rgba(148,163,184,.28); border-radius: 14px; padding: 12px 14px;
  color: var(--ink); font-weight: 700; font-size: .98rem; box-shadow: var(--shadow-sm);
}
.benefit .b-ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #eff6ff, #ecfeff); color: var(--brand);
}
.benefit .b-ico .lucide, .benefit .b-ico i[data-lucide] { width: 21px; height: 21px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote .stars { color: #fbbf24; display: flex; gap: 3px; margin-bottom: 12px; }
.quote .stars .lucide, .quote .stars i[data-lucide] { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.quote p { color: var(--ink); font-size: 1rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.quote .who b { color: var(--ink); display: block; font-size: .95rem; }
.quote .who span { color: var(--muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; font-size: 1.05rem; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-q .lucide, .faq-q i[data-lucide] { width: 20px; height: 20px; color: var(--brand); flex: none; transition: transform .25s ease; }
.faq-item.open .faq-q .lucide { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 22px; }
.faq-a p { padding-bottom: 20px; margin: 0; }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 55%, #22d3ee 100%); border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff; box-shadow: 0 18px 45px rgba(37,99,235,.22); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; }
.cta-band .hero-cta { justify-content: center; }

/* ===========================================================
   Inner page (guide / privacy / terms / about)
   =========================================================== */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 54px 0; }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--body); }
.page-hero h1 { margin: 0; }
.page-hero p { margin: 12px 0 0; max-width: 680px; }

.doc { padding: 60px 0 84px; }
.doc-wrap { max-width: 820px; margin: 0 auto; }
.doc h2 { margin-top: 40px; font-size: 1.6rem; }
.doc h3 { margin-top: 28px; }
.doc p, .doc li { color: var(--body); }
.doc ul.bullet { margin: 0 0 18px; padding-left: 0; }
.doc ul.bullet li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.doc ul.bullet li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.doc .updated { color: var(--muted); font-size: .92rem; margin-bottom: 30px; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 36px; }
.toc b { color: var(--ink); display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 5px 0; font-weight: 600; }

/* guide steps */
.gstep { display: flex; gap: 18px; margin-bottom: 26px; }
.gstep .n { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.gstep .c h3 { margin: 4px 0 6px; }
.gstep .c p { margin: 0; }

.note { background: var(--surface-2); border-left: 4px solid var(--brand); border-radius: 8px; padding: 16px 20px; margin: 22px 0; }
.note p { margin: 0; color: var(--ink); }

/* user-guide app screenshots */
.shot { margin: 18px 0 6px; }
.shot > img { display: block; width: 100%; max-width: 250px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.shots { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 6px; }
.shots figure { flex: 1 1 170px; max-width: 220px; margin: 0; }
.shots figure img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.shot figcaption, .shots figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.shots figcaption { text-align: center; }

/* about */
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }

/* ===========================================================
   404 page
   =========================================================== */
.notfound {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 58%, #ffffff 100%);
}
.notfound-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 58px;
}
.notfound-copy .lead { margin: 18px 0 28px; }
.notfound-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.notfound-code {
  position: relative;
  font-size: clamp(7rem, 15vw, 13rem);
  line-height: .82;
  font-weight: 800;
  letter-spacing: 0;
  color: rgba(37, 99, 235, .16);
  white-space: nowrap;
}
.notfound-panel {
  padding: 24px 0 84px;
}
.notfound-panel .section-head { margin-bottom: 30px; }
.notfound-card {
  display: block;
  min-height: 100%;
  color: var(--body);
}
.notfound-card h3 { margin-top: 2px; }
.notfound-card:hover h3 { color: var(--ink); }
.notfound-help {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.notfound-help b {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.notfound-help p { margin: 0; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: #0b1020; color: #94a3b8; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand b { color: var(--blue-400); }
.footer-about { font-size: .95rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: #94a3b8; padding: 6px 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .25s ease; z-index: 60; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top .lucide, .to-top i[data-lucide] { width: 22px; height: 22px; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  max-width: 660px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap;
  transform: translateY(180%); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; flex: 1 1 300px; font-size: .9rem; color: var(--body); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-banner .btn { padding: 10px 22px; }
.cookie-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 520px) {
  .cookie-banner { padding: 16px; }
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-banner .cookie-actions .btn { width: 100%; }
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1200px) {
  /* below large desktop the radar + orbiting tags get cramped against the
     text, so drop them — the full feature list lives in the Features section */
  .radar { display: none; }
  .feat-tags { display: none; }
}
@media (max-width: 940px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid { padding: 48px 0 60px; }
  .phone-wrap { order: -1; width: auto; }
  .phone-wrap .phone { margin-left: auto; margin-right: auto; }
  .product-preview-grid {
    max-width: 620px;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr;
  }
  .preview-shot:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
  .notfound-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 56px; text-align: center; }
  .notfound-copy .lead { margin-left: auto; margin-right: auto; }
  .notfound-hero .hero-cta { justify-content: center; }
  .notfound-visual { min-height: 280px; order: -1; }
  .grid-3, .quotes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px 22px; margin: 0;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100vh - 72px); overflow: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a.navlink { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 56px 0; }
  .hero-grid { padding: 36px 0 44px; gap: 32px; }
  .hero h1 { text-wrap: balance; }
  /* lighter feature cards on mobile */
  .grid { gap: 14px; }
  .card { padding: 22px; }
  .card .ico { width: 54px; height: 54px; margin-bottom: 14px; }
  .card .ico svg { width: 27px; height: 27px; }
  .feature-group + .feature-group { margin-top: 36px; }
  .grid-3, .grid-2, .quotes, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .flow { flex-direction: column; }
  .flow-arrow svg { transform: rotate(90deg); }
  .howflow { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 14px; }
  .howflow-arrow { display: none; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid > div:first-child { margin-bottom: 22px; }
  .footer-about { max-width: none; }
  .footer-col { border-top: 1px solid rgba(255,255,255,.12); }
  .footer-col:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
  .footer-col h4 {
    margin: 0; padding: 16px 2px; font-size: 1rem; cursor: pointer; user-select: none;
    display: flex; align-items: center; justify-content: space-between;
  }
  .footer-col h4::after {
    content: ""; width: 9px; height: 9px; flex: none; margin-right: 4px; opacity: .7;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .25s ease;
  }
  .footer-col.open h4::after { transform: rotate(-135deg); }
  .footer-links { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .footer-col.open .footer-links { max-height: 260px; padding-bottom: 10px; }
  .footer-col .footer-links a { padding: 9px 2px; }
  .notfound-hero { min-height: auto; padding: 44px 0 34px; }
  .notfound-visual { min-height: 230px; }
  .notfound-panel { padding-bottom: 58px; }
  .notfound-help { align-items: stretch; flex-direction: column; }
  .notfound-help .btn { width: 100%; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero-grid { padding: 24px 0 32px; gap: 26px; }
  .hero-trust { gap: 12px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn, .hero-cta .btn-store { width: 100%; }
  .phone { width: min(84vw, 300px); }
  .product-preview-grid { gap: 12px; padding: 16px; }
  .preview-shot img { border-width: 6px; border-radius: 18px; }
  .preview-shot figcaption { font-size: .78rem; margin-top: 7px; }
  .stat b { font-size: 1.8rem; }
  .cta-band h2 { font-size: 1.5rem; }
  .benefits { grid-template-columns: 1fr; }
  .notfound-code { font-size: 6.4rem; }
}

/* ===========================================================
   Motion: header scroll state, scroll-reveal, micro-interactions
   =========================================================== */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px -12px rgba(15,23,42,.35); background: rgba(255,255,255,.92); }

/* anchor targets clear the sticky header */
:target, section[id], [id="download"], [id="features"], [id="how"] { scroll-margin-top: 92px; }

/* scroll reveal — base state only applied when JS adds .anim to <html> (no flash) */
.anim .reveal { opacity: 0; transform: translateY(26px); }
.anim .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}

/* hero phone gentle float */
.phone-wrap { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* button press feedback */
.btn:active, .btn-store:active { transform: translateY(0) scale(.98); }

/* card icon pop on hover */
.card .ico { transition: transform .25s ease, background .25s ease, color .25s ease; }
.card:hover .ico { transform: translateY(-2px) scale(1.06); background: var(--brand); color: #fff; }

/* how-flow node icon pop on hover */
.howflow-node .b { transition: transform .25s ease, box-shadow .25s ease; }
.howflow-node:hover .b { transform: translateY(-3px) scale(1.05); }

/* respect reduced-motion: disable all non-essential motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .anim .reveal { opacity: 1 !important; transform: none !important; }
  .card:hover, .card:hover .ico, .howflow-node:hover .b { transform: none !important; }
}
