/* Zypher brand: the app's three violets on the same cool ink and off-white surfaces. */
:root {
  --primary: #3C15AD;
  --secondary: #977DE3;
  --tertiary: #6B58CC;
  --banner: #6652D9;
  --lavender: #F3F1FC;
  --seagreen: #2E8B57;

  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --sunken: #E9EDF5;
  --hairline: #DDE2ED;
  --text: #0B0F1A;
  --muted: #5A6579;
  --faint: #8E99AC;
  --accent: #3C15AD;
  --accent-fill: #3C15AD;
  --card: #F3F1FC;
  --highlight: #FFF3B0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0F1A;
    --surface: #141A2A;
    --sunken: #080B14;
    --hairline: #232C45;
    --text: #ECEFF6;
    --muted: #7C89A8;
    --faint: #4E5A75;
    --accent: #977DE3;
    --accent-fill: #6B58CC;
    --card: #141A2A;
    --highlight: #5A4A00;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Poppins", "Inter", system-ui, sans-serif; line-height: 1.2; margin: 0; }

a { color: var(--accent); }

img { max-width: 100%; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.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; }
/* The app icon is two layers, as on Android: the violet tile and the shield mark over it. */
.brand .icon { position: relative; width: 34px; height: 34px; border-radius: 9px; overflow: hidden; flex: none; }
.brand .icon img { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand img.word { height: 18px; width: auto; }
.word-dark { display: block; }
.word-light { display: none; }
@media (prefers-color-scheme: dark) {
  .word-dark { display: none; }
  .word-light { display: block; }
}
nav.links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--text); }
nav.links .cta { color: #fff; background: var(--accent-fill); padding: 8px 16px; border-radius: 10px; font-weight: 600; }
nav.links .cta:hover { color: #fff; }
@media (max-width: 720px) { nav.links a:not(.cta) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; font-size: 15px;
}
.btn-primary { background: var(--accent-fill); color: #fff; }
.btn-ghost { border-color: var(--hairline); color: var(--text); background: var(--surface); }
.btn small { display: block; font-weight: 400; font-size: 11px; opacity: .8; line-height: 1.1; }
.btn span { line-height: 1.2; text-align: left; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.eyebrow { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.hero h1 { font-size: clamp(36px, 6vw, 58px); letter-spacing: -1.2px; margin: 12px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* The phone mock-up: the app's Home screen, drawn in CSS. */
.phone {
  justify-self: center;
  width: min(300px, 100%); aspect-ratio: 9 / 18.5;
  border-radius: 40px; padding: 12px; background: #0B0F1A;
  box-shadow: 0 30px 60px -20px rgba(60, 21, 173, .45);
}
.screen {
  height: 100%; border-radius: 30px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 28px 18px 26px; text-align: center; overflow: hidden;
}
.screen .flag { width: 42px; height: 26px; border-radius: 4px; display: block; margin: 0 auto 8px; }
.screen .loc { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 17px; }
.screen .micro { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }
.route { flex: 1; width: 2px; margin: 10px 0; background: linear-gradient(var(--secondary), var(--tertiary)); border-radius: 2px; position: relative; }
.route::after { content: ""; position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); animation: travel 2.4s ease-in-out infinite; }
@keyframes travel { from { top: 0; } to { top: calc(100% - 10px); } }
@media (prefers-reduced-motion: reduce) { .route::after { animation: none; top: 45%; } }
.power {
  width: 112px; height: 112px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8362dc, #3C15AD 70%);
  display: grid; place-items: center; box-shadow: 0 0 0 10px color-mix(in srgb, var(--secondary) 22%, transparent);
}
.power svg { width: 44px; height: 44px; }
.tag {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--seagreen); color: #fff; font-weight: 600; font-size: 14px;
  padding: 5px 14px 5px 10px; border-radius: 18px;
}
.tag svg { width: 16px; height: 16px; }
.screen .time { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.6px; margin: 8px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }
.center { text-align: center; margin-inline: auto; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 22px;
}
.feature .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--secondary) 18%, transparent); color: var(--accent); margin-bottom: 14px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature .note { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--faint); }

/* Spotlight: Zypher Signal */
.spotlight { background: var(--surface); border-block: 1px solid var(--hairline); }
.spotlight .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .spotlight .wrap { grid-template-columns: 1fr; } }
.signal-card { background: var(--bg); border: 1px solid var(--hairline); border-radius: 18px; padding: 22px; }
.signal-card .rating { font-family: "Poppins", sans-serif; font-size: 26px; font-weight: 600; }
.signal-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.metric .k { font-size: 11px; letter-spacing: 1.4px; color: var(--muted); font-weight: 600; }
.metric .v { font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--muted); }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* Protocols */
.protocols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .protocols { grid-template-columns: 1fr; } }
.protocol { border: 1px solid var(--hairline); border-radius: 16px; padding: 20px; background: var(--surface); }
.protocol h3 { font-size: 18px; margin-bottom: 6px; }
.protocol p { margin: 0; color: var(--muted); font-size: 15px; }

/* Plans */
.banner {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  background: var(--banner); border-radius: 14px; overflow: hidden; margin-bottom: 24px;
}
.banner p { margin: 0; padding: 22px 26px; color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.3; }
.banner img { height: 130px; width: auto; display: block; }
@media (max-width: 560px) { .banner img { height: 96px; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.plan {
  position: relative; background: var(--card); border-radius: 14px; padding: 28px 24px 24px;
  text-align: center; display: flex; flex-direction: column; border: 2px solid transparent;
}
.plan.popular { border-color: var(--banner); }
.plan .badge {
  position: absolute; top: 14px; right: 14px; background: var(--banner); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 10px; border-radius: 10px;
}
.plan img { width: 60px; height: 60px; margin: 0 auto; }
.plan .name { color: var(--banner); letter-spacing: .8px; font-size: 13px; margin-top: 10px; }
@media (prefers-color-scheme: dark) { .plan .name { color: var(--secondary); } }
.price { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 6px 0 2px; }
.price .cur { font-size: 20px; font-weight: 600; }
.price .amt { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 46px; letter-spacing: 1px; }
.price .per { color: var(--muted); font-size: 14px; margin-top: 12px; }
.plan .offer { color: var(--accent); font-size: 13px; min-height: 20px; }
.plan hr { border: 0; border-top: 1px solid var(--hairline); margin: 16px 0; width: 100%; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; color: var(--muted); font-size: 14px; flex: 1; }
.plan .btn { justify-content: center; background: var(--banner); color: #fff; border-radius: 10px; }
.trial {
  margin-top: 22px; text-align: center; color: var(--muted); font-size: 15px;
}
.trial strong { color: var(--text); }
.fineprint { margin: 18px auto 0; max-width: 760px; text-align: center; color: var(--faint); font-size: 12.5px; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
details { border-bottom: 1px solid var(--hairline); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Download band */
.download { background: linear-gradient(135deg, #3C15AD, #6B58CC); color: #fff; border-radius: 22px; padding: 44px 32px; text-align: center; }
.download h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; }
.download p { margin: 0 0 24px; opacity: .9; }
.download .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.download .btn { background: #fff; color: #3C15AD; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -.6px; margin-bottom: 6px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 21px; color: var(--accent); margin: 34px 0 10px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--hairline); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: color-mix(in srgb, var(--secondary) 16%, transparent); }
.draft {
  background: color-mix(in srgb, #E0A800 14%, var(--surface)); border-left: 4px solid #E0A800;
  padding: 12px 16px; border-radius: 8px; margin-bottom: 28px; font-size: 15px;
}
mark { background: var(--highlight); color: inherit; padding: 0 3px; border-radius: 3px; }
.table-scroll { overflow-x: auto; }
