/* PLANR website — no external fonts, scripts or trackers. */

:root {
  --bg: #0b0c10;
  --bg-2: #11131b;
  --card: #151826;
  --card-2: #1b1f30;
  --line: #262a3a;
  --text: #f2f4fb;
  --text-2: #b8c3e6;
  --muted: #7c819a;
  --accent: #7c9cff;
  --accent-ink: #0b0c10;
  --accent-soft: rgba(124, 156, 255, 0.14);
  --green: #5bd6a0;
  --warn: #ffb86b;
  --phone: #0e0f13;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --radius: 20px;
  --max: 1120px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7fb;
    --bg-2: #eef0f7;
    --card: #ffffff;
    --card-2: #f1f3fa;
    --line: #dfe3ee;
    --text: #12141c;
    --text-2: #3b4462;
    --muted: #6a7089;
    --accent: #4f6fe8;
    --accent-ink: #ffffff;
    --accent-soft: rgba(79, 111, 232, 0.1);
    --green: #1f9e6b;
    --warn: #c46a12;
    --shadow: 0 30px 70px -35px rgba(30, 40, 80, 0.35);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eef0f7;
  --card: #ffffff;
  --card-2: #f1f3fa;
  --line: #dfe3ee;
  --text: #12141c;
  --text-2: #3b4462;
  --muted: #6a7089;
  --accent: #4f6fe8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(79, 111, 232, 0.1);
  --green: #1f9e6b;
  --warn: #c46a12;
  --shadow: 0 30px 70px -35px rgba(30, 40, 80, 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
code { background: var(--card-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 2px; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: none; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text-2); cursor: pointer; display: grid; place-items: center;
}
.theme-btn:hover { color: var(--text); }
.theme-btn svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 14px;
  font-weight: 650; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.1; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto 0; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 320px at 78% 30%, var(--accent-soft), transparent 70%),
    radial-gradient(500px 300px at 10% 0%, rgba(91, 214, 160, 0.08), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; } .hero { padding: 80px 0 100px; } }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(91,214,160,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(91,214,160,0); } }

h1 {
  font-size: clamp(40px, 7vw, 68px); line-height: 1.03; letter-spacing: -0.035em;
  margin: 22px 0 18px; font-weight: 800;
}
h1 .soft { color: var(--accent); }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 560px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .cta .btn { flex: 0 0 auto; } }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--green); }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 8px; margin: 0 0 28px; }
.countdown div {
  min-width: 64px; padding: 10px 8px; text-align: center; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
}
.countdown b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Phone mockup ---------- */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone {
  width: 300px; max-width: 86vw; aspect-ratio: 9 / 19; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2b2f40, #0d0e13); box-shadow: var(--shadow), inset 0 0 0 1.5px #3a3f55;
  position: relative;
}
.screen {
  height: 100%; border-radius: 34px; overflow: hidden; background: var(--phone); color: #eef1fb;
  display: flex; flex-direction: column; font-size: 12.5px; position: relative;
}
.screen .status { display: flex; justify-content: space-between; padding: 12px 22px 6px; font-size: 11px; color: #9aa2c0; font-weight: 600; }
.screen .notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 70px; height: 18px; border-radius: 10px; background: #000; }
.screen .head { padding: 10px 18px 6px; }
.screen .head small { color: #8a92b2; font-weight: 600; }
.screen .head h4 { margin: 2px 0 0; font-size: 20px; letter-spacing: -0.02em; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 10px 14px; text-align: center; }
.week span { font-size: 9.5px; color: #6f7799; }
.week b { display: grid; place-items: center; height: 28px; border-radius: 9px; font-size: 12px; font-weight: 600; color: #c9d0ea; }
.week b.on { background: #7c9cff; color: #0b0c10; }
.week b.mk { position: relative; }
.week b.mk::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: #5bd6a0; }
.input {
  margin: 6px 14px 10px; padding: 10px 12px; border-radius: 14px; background: #1a1d2b; border: 1px solid #2a2f45;
  color: #dfe5ff; display: flex; align-items: center; gap: 8px; min-height: 40px;
}
.input .caret { width: 1.5px; height: 14px; background: #7c9cff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.input .ph { color: #6f7799; }
.agenda { padding: 0 14px; display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #161927; border: 1px solid #23273a; }
.item .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 14px; }
.item .t { flex: 1; min-width: 0; }
.item .t b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .t span { color: #8a92b2; font-size: 11px; }
.item .chip { font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(91,214,160,.15); color: #5bd6a0; font-weight: 700; }
.item.new { animation: slidein .5s ease both; border-color: #3a4a85; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 6px 16px; border-top: 1px solid #1e2233; }
.tabbar span { text-align: center; font-size: 9.5px; color: #6f7799; }
.tabbar span i { display: block; margin: 0 auto 3px; width: 18px; height: 4px; border-radius: 3px; background: #2a2f45; }
.tabbar span.on { color: #7c9cff; }
.tabbar span.on i { background: #7c9cff; }

.float-card {
  position: absolute; display: none; padding: 12px 14px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; max-width: 210px; z-index: 2;
}
.float-card b { display: block; font-size: 14px; }
.float-card span { color: var(--muted); }
@media (min-width: 1080px) {
  .float-card { display: block; }
  .float-card.a { left: -10px; top: 18%; }
  .float-card.b { right: -6px; bottom: 16%; }
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
@media (min-width: 960px) { section { padding: 104px 0; } }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 800; }
.section-lede { color: var(--text-2); font-size: 18px; max-width: 640px; margin: 0 0 44px; }
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* Pillars */
.pillars { display: grid; gap: 16px; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.pillar .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.pillar .ico svg { width: 24px; height: 24px; }
.pillar h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--text-2); }

/* Feature grid */
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); }
.feature .em { font-size: 24px; line-height: 1; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Split */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.rev > :first-child { order: 2; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; color: var(--text-2); }
.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c9cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks b { color: var(--text); }

/* Smart input demo */
.demo { padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.demo-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); font-size: 17px; min-height: 56px; }
.demo-input .caret { width: 2px; height: 20px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.demo-out { margin-top: 14px; display: grid; gap: 10px; }
.demo-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--line); font-size: 15px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.demo-row.show { opacity: 1; transform: none; }
.demo-row span { color: var(--muted); }
.demo-row b { text-align: right; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; opacity: 0; transition: opacity .35s; }
.demo-actions.show { opacity: 1; }
.demo-actions span { padding: 7px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips button { font: inherit; font-size: 13.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; }
.chips button:hover, .chips button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }

/* Off-Grid lock visual */
.lock {
  max-width: 420px; margin: 0 auto; padding: 34px 28px; border-radius: 28px; text-align: center;
  background: radial-gradient(circle at 50% 0%, #1d2440, #0b0c10 70%); color: #eef1fb; border: 1px solid #262a3a; box-shadow: var(--shadow);
}
.ring { width: 190px; height: 190px; margin: 4px auto 22px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .time { position: absolute; inset: 0; display: grid; place-content: center; }
.ring .time b { font-size: 38px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ring .time span { font-size: 12px; color: #8a92b2; letter-spacing: 1.5px; text-transform: uppercase; }
.lock-apps { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.lock-apps span { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: #1a1d2b; border: 1px solid #2a2f45; font-size: 20px; }
.lock small { color: #8a92b2; }

/* Privacy band */
.privacy-band { display: grid; gap: 16px; }
@media (min-width: 820px) { .privacy-band { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 30px; letter-spacing: -0.03em; color: var(--text); margin-bottom: 4px; }
.stat span { color: var(--text-2); font-size: 15px; }
.manifest {
  margin-top: 28px; padding: 20px 22px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.8; color: var(--text-2); overflow-x: auto;
}
.manifest .c { color: var(--muted); }
.manifest .x { color: #ff7b8a; text-decoration: line-through; }
.manifest .k { color: var(--accent); }

/* Download */
.dl { display: grid; gap: 16px; }
@media (min-width: 860px) { .dl { grid-template-columns: repeat(3, 1fr); } }
.dl-card { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.dl-card.featured { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--card) 60%); }
.dl-card h3 { margin: 0 0 4px; font-size: 21px; display: flex; align-items: center; gap: 10px; }
.dl-card h3 svg { width: 24px; height: 24px; }
.dl-card .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--text-2); margin-bottom: 14px; width: fit-content; }
.dl-card.featured .tag { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dl-card p { color: var(--text-2); margin: 0 0 22px; flex: 1; }
.dl-card .btn { width: 100%; }
.req { margin-top: 22px; color: var(--muted); font-size: 14px; text-align: center; }

/* Family */
.family { display: grid; gap: 14px; }
@media (min-width: 760px) { .family { grid-template-columns: repeat(3, 1fr); } }
.fam { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.fam:hover { text-decoration: none; border-color: var(--accent); }
.fam b { letter-spacing: 1.5px; font-size: 17px; }
.fam p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

/* Final CTA */
.final { text-align: center; padding: 56px 24px; border-radius: 28px; background: radial-gradient(600px 260px at 50% 0%, var(--accent-soft), var(--card) 70%); border: 1px solid var(--line); }
.final .cta { justify-content: center; }

/* Footer */
footer { padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 0 90px; }
.doc h1 { font-size: clamp(34px, 6vw, 50px); margin: 12px 0 10px; }
.doc .meta { color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.callout { padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }
.callout p { margin: 0; color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th:first-child, td:first-child { width: 36%; }
@media (max-width: 560px) {
  table, thead, tbody, tr, th, td { display: block; width: auto !important; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 12px 16px; }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 2px 0; }
}
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--card-2); color: var(--text); font-weight: 650; }
td { color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
td b { color: var(--text); }
