/* Veilatch landing page. Same palette and building blocks as veymica.com (the two apps are a family);
   Veilatch-only mock-ups (lock screen, protected apps, vaults, themes) are at the end of the file. */
:root {
  --bg: #0b0c12;
  --bg2: #0f1019;
  --panel: #141622;
  --panel2: #1b1e2d;
  --line: #262a3d;
  --line-soft: rgba(255, 255, 255, .06);
  --text: #e9eaf3;
  --muted: #8c91a8;
  --faint: #5d6178;
  --accent: #7c6bff;
  --accent-hi: #a397ff;
  --accent-lo: #3b2fb8;
  --live: #ef4444;
  --ok: #22c55e;
  --warn: #f59e0b;
  --radius: 18px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.1; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 18, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600;
}
.lang a { padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--panel2); color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-right { margin-left: auto; } }
@media (max-width: 420px) { .nav .btn-sm { display: none; } }

/* ---------- Buttons & form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 600 16px/1 var(--font); color: #fff; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #8a7bff, #6a58f5);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 24px -8px rgba(124, 107, 255, .7);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: transparent; box-shadow: 0 0 0 1px var(--line) inset; color: var(--text); }
.btn-ghost:hover { background: var(--panel); }

.notify { display: flex; gap: 8px; max-width: 460px; }
.notify input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(20, 22, 34, .8); color: var(--text);
  font: 400 16px var(--font); transition: border-color .15s, box-shadow .15s;
}
.notify input::placeholder { color: var(--faint); }
.notify input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 107, 255, .18); }
.notify-note { margin-top: 12px; font-size: 13.5px; color: var(--faint); }
.notify-note.ok { color: var(--ok); }
.notify-note.err { color: var(--warn); }
@media (max-width: 480px) { .notify { flex-direction: column; } .notify input { flex: none; } .notify .btn { width: 100%; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 20%, rgba(124, 107, 255, .22), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(59, 47, 184, .25), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: -64px 0 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; margin-bottom: 24px;
  border: 1px solid rgba(124, 107, 255, .35); border-radius: 999px; background: rgba(124, 107, 255, .1);
  font-size: 13.5px; font-weight: 600; color: var(--accent-hi);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 0 0 rgba(163,151,255,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(163,151,255,.6); } 70% { box-shadow: 0 0 0 8px rgba(163,151,255,0); } 100% { box-shadow: 0 0 0 0 rgba(163,151,255,0); } }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 750; }
.grad {
  background: linear-gradient(100deg, #c9c2ff 0%, #8b7cff 45%, #6a58f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 22px 0 32px; max-width: 540px; font-size: 19px; color: var(--muted); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent-hi); }
@media (max-width: 1080px) {
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}

/* ---------- Hero visual: Veilatch window + lock screen ---------- */
.stage { position: relative; height: 560px; }
.mac {
  position: absolute; z-index: 1; top: 0; left: 0; right: 96px;
  border-radius: 14px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.mac-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.mac-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3e52; }
.mac-bar i:nth-child(1) { background: #ff5f57; } .mac-bar i:nth-child(2) { background: #febc2e; } .mac-bar i:nth-child(3) { background: #28c840; }
.mac-bar b { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mac-body { display: grid; grid-template-columns: 136px minmax(0, 1fr); min-height: 410px; }
.mac-side { display: flex; flex-direction: column; padding: 14px 10px; border-right: 1px solid var(--line); background: rgba(0,0,0,.12); font-size: 12.5px; color: var(--muted); }
.mac-side > div { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; margin-bottom: 2px; }
.mac-side > div i { flex: none; width: 15px; height: 15px; border-radius: 4px; background: #3a3e52; }
.mac-side .on { background: rgba(124, 107, 255, .16); color: var(--text); }
.mac-side .s1 { background: #6a58f5; } .mac-side .s2 { background: #e0803a; } .mac-side .s3 { background: #2f9e8a; }
.mac-side .s4 { background: #d9488f; } .mac-side .s5 { background: #3b82f6; } .mac-side .s6 { background: #6b7085; }
.mac-side .guard { margin-top: auto; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 11px; color: var(--text); display: block; }
.mac-side .guard span { display: flex; align-items: center; gap: 6px; }
.mac-side .guard span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.mac-side .guard b { display: block; margin-top: 8px; padding: 5px 0; border-radius: 7px; background: var(--accent); text-align: center; font-weight: 600; }
.mac-main { padding: 16px; min-width: 0; }
.page-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.page-h b { display: block; font: 700 17px/1.2 var(--font-display); letter-spacing: -.01em; }
.page-h small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.mini-btn { flex: none; padding: 5px 10px; border-radius: 8px; background: var(--accent); font-size: 11px; font-weight: 600; white-space: nowrap; }

.applist { border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,.02); }
.app { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.app:first-child { border-top: 0; }
.app .t { flex: 1; min-width: 0; }
.app .t b { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.app .t small { display: block; margin-top: 1px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .t small .st { display: inline-block; margin-right: 5px; vertical-align: 1px; }
.st { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.st.off { background: var(--faint); } .st.open { background: var(--warn); }
.tag { flex: none; padding: 1px 6px; border-radius: 5px; font-size: 9.5px; font-weight: 600; background: rgba(124,107,255,.16); color: var(--accent-hi); }
.tag.amber { background: rgba(245,158,11,.14); color: #fbbf24; }
.switch { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: var(--accent); }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch.off { background: #3a3e52; } .switch.off::after { right: auto; left: 2px; }

/* App tiles – generic glyphs on colour, not anyone's real app icon. */
.tile { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #fff; }
.tile svg { width: 15px; height: 15px; }
.c-pink   { background: linear-gradient(160deg, #f472b6, #f59e0b); }
.c-green  { background: linear-gradient(160deg, #4ade80, #16a34a); }
.c-blue   { background: linear-gradient(160deg, #60a5fa, #2563eb); }
.c-red    { background: linear-gradient(160deg, #fb7185, #dc2626); }
.c-yellow { background: linear-gradient(160deg, #fde68a, #eab308); color: #3b2c00; }
.c-cyan   { background: linear-gradient(160deg, #67e8f9, #0284c7); }
.c-violet { background: linear-gradient(160deg, #8b7cff, #5b4be0); }
.c-teal   { background: linear-gradient(160deg, #5eead4, #2f9e8a); }

/* Lock screen mock-up – the app's "Midnight" theme (Features/LockOverlay/OverlayTheme.swift). */
.lockscr {
  position: absolute; z-index: 2; right: 0; bottom: 0; width: 310px; height: 262px; padding: 14px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(91,75,224,.45), transparent 70%),
    radial-gradient(50% 50% at 10% 100%, rgba(59,47,184,.5), transparent 70%),
    linear-gradient(160deg, #0b0c1a, #101233 55%, #0a0b16);
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04) inset;
  animation: drop .8s cubic-bezier(.2,.8,.2,1) .2s both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.wm { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .24em; color: rgba(255,255,255,.85); }
.wm img { width: 14px; height: 14px; }
.lock-app { position: relative; margin: 20px 0 11px; }
.lock-app .tile { width: 52px; height: 52px; border-radius: 13px; }
.lock-app .tile svg { width: 27px; height: 27px; }
.lock-app .lk { position: absolute; right: -7px; bottom: -7px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--accent); border: 2px solid #101233; }
.lock-app .lk svg { width: 10px; height: 10px; color: #fff; }
.lockscr h4 { margin: 0; font: 700 16px/1.2 var(--font-display); }
.lockscr p { margin-top: 3px; font-size: 11px; color: rgba(255,255,255,.62); }
.pw {
  display: flex; align-items: center; gap: 7px; width: 210px; height: 32px; margin-top: 14px; padding: 0 10px;
  border-radius: 9px; border: 1.5px solid rgba(124,107,255,.85); background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 3px rgba(124,107,255,.18); font-size: 11px; color: rgba(255,255,255,.8); text-align: left;
}
.pw svg { flex: none; width: 12px; height: 12px; color: rgba(255,255,255,.55); }
.pw .dots { letter-spacing: .18em; font-size: 13px; line-height: 1; }
.pw .caret { width: 1.5px; height: 13px; margin-left: -4px; background: #fff; animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.methods { display: flex; gap: 6px; margin-top: 12px; }
.methods span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); font-size: 10.5px; font-weight: 600; }
.methods svg { width: 12px; height: 12px; }
.lockscr .cancel { margin-top: 10px; font-size: 10.5px; color: rgba(255,255,255,.55); }

@media (max-width: 1080px) { .stage { max-width: 600px; margin: 0 auto; width: 100%; } }
@media (max-width: 560px) {
  .stage { height: 560px; }
  .mac { right: 0; }
  .mac-body { grid-template-columns: minmax(0, 1fr); min-height: 300px; }
  .mac-side { display: none; }
  .lockscr { right: 50%; width: 300px; margin-right: -150px; }
}

.ic.red { background: rgba(239,68,68,.14); color: #f87171; }
.ic.amber { background: rgba(245,158,11,.14); color: #fbbf24; }
.ic.green { background: rgba(34,197,94,.14); color: #4ade80; }
.ic.violet { background: rgba(124,107,255,.16); color: var(--accent-hi); }

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

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 720; }
.section-head p { margin-top: 18px; font-size: 18.5px; color: var(--muted); }
.section.tight { padding-top: 24px; border-top: 0; }
@media (max-width: 600px) { .section { padding: 80px 0; } .section-head { margin-bottom: 40px; } }

/* Trust strip */
.strip { padding: 28px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg2); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--muted); }
.strip li { display: inline-flex; align-items: center; gap: 9px; }
.strip svg { width: 18px; height: 18px; color: var(--accent-hi); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27,30,45,.7), rgba(20,22,34,.5));
  border: 1px solid var(--line-soft);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(124,107,255,.35); transform: translateY(-2px); }
.card .ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card.wide { grid-column: span 2; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } .card.wide { grid-column: span 2; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } .card.wide { grid-column: auto; } }

/* Spotlight (alternating text + visual) */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.spot + .spot { margin-top: 120px; }
.spot.flip .spot-text { order: 2; }
.spot-text h3 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 720; }
.spot-text > p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.ticks { margin: 26px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 30px; margin-top: 12px; font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(124,107,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a397ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat;
}
.panel {
  padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
@media (max-width: 900px) {
  .spot { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .spot.flip .spot-text { order: 0; }
  .spot + .spot { margin-top: 88px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 30px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 22px; border-radius: 50%;
  background: linear-gradient(180deg, #8a7bff, #5d4ee6); font-weight: 700; font-size: 15px;
}
.step h3 { font-size: 19px; font-weight: 650; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pitem { padding: 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-soft); }
.pitem svg { width: 22px; height: 22px; margin-bottom: 14px; color: var(--accent-hi); }
.pitem h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 6px; letter-spacing: -.005em; }
.pitem p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .privacy { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-4px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); font-size: 16.5px; }

/* Final CTA */
.cta {
  position: relative; overflow: hidden; padding: 72px 48px; border-radius: 28px; text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(124,107,255,.35), transparent 70%),
    linear-gradient(180deg, #171930, #10111c);
  border: 1px solid rgba(124,107,255,.25);
}
.cta img { width: 72px; height: 72px; margin: 0 auto 26px; filter: drop-shadow(0 16px 30px rgba(124,107,255,.45)); }
.cta h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 720; }
.cta > p { max-width: 520px; margin: 16px auto 32px; font-size: 18px; color: var(--muted); }
.cta .notify { margin: 0 auto; }
@media (max-width: 600px) { .cta { padding: 52px 20px; border-radius: 22px; } }

/* Footer */
footer { padding: 48px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
footer .brand { font-size: 15px; color: var(--muted); }
footer .brand img { width: 24px; height: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a:hover { color: var(--text); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }


/* ---------- Spotlight visuals ---------- */
/* Per-app rule sheet */
.sheet-h { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; }
.sheet-h .tile { width: 40px; height: 40px; border-radius: 10px; }
.sheet-h .tile svg { width: 21px; height: 21px; }
.sheet-h b { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 650; }
.sheet-h small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.row > span:first-child { color: var(--muted); }
.row .val { font-weight: 600; text-align: right; }
.row .val small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.seg i { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-style: normal; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg i.on { background: var(--accent); color: #fff; }
.pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(124,107,255,.16); color: var(--accent-hi); border: 1px solid rgba(124,107,255,.3); white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.panel .switch { width: 36px; height: 21px; }
.panel .switch::after { width: 17px; height: 17px; }
@media (max-width: 480px) { .seg i { padding: 4px 7px; font-size: 11px; } .row { flex-wrap: wrap; } }

/* Vaults */
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vault { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); min-width: 0; }
.vault-h { display: flex; align-items: center; gap: 10px; }
.vault-h .tile { width: 38px; height: 38px; border-radius: 10px; }
.vault-h .tile svg { width: 19px; height: 19px; }
.vault-h b { display: block; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vault-h small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.bar { height: 4px; margin: 16px 0 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.07); }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.vmeta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.aes { flex: none; padding: 2px 6px; border-radius: 5px; font: 600 10px var(--mono); background: rgba(255,255,255,.06); color: var(--text); }
.vbtns { display: flex; gap: 6px; margin-top: 14px; }
.vbtns span { flex: 1; padding: 7px 0; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.06); }
.vbtns .pri { background: var(--accent); }
.vbtns .teal { background: #2f9e8a; }
.import { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 14px; border-radius: 12px; border: 1px dashed rgba(124,107,255,.4); font-size: 13.5px; }
.import > svg { flex: none; width: 20px; height: 20px; color: var(--accent-hi); }
.import div { flex: 1; min-width: 0; }
.import small { display: block; font-size: 12px; color: var(--muted); }
.import .okc { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #4ade80; }
.import .okc svg { width: 14px; height: 14px; }
@media (max-width: 520px) { .vgrid { grid-template-columns: 1fr; } }

/* Lock-screen themes – colours from Features/LockOverlay/OverlayTheme.swift */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.theme { margin: 0; }
.scr { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.theme.on .scr { outline: 2px solid var(--accent); outline-offset: 3px; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 42%; }
.mini i { width: 15px; height: 15px; border-radius: 4px; background: var(--acc); }
.mini b { width: 70%; height: 4px; border-radius: 2px; background: currentColor; opacity: .85; }
.mini u { width: 100%; height: 9px; margin-top: 2px; border-radius: 3px; border: 1px solid var(--acc); }
.theme figcaption { margin-top: 9px; font-size: 13px; font-weight: 600; }
.theme figcaption small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.th-midnight { --acc: #7c6bff; color: #fff; background: radial-gradient(60% 60% at 50% 45%, rgba(91,75,224,.55), transparent 70%), linear-gradient(160deg, #0b0c1a, #101233, #0a0b16); }
.th-frosted { --acc: #5b4be0; color: #1a1b2e; background: radial-gradient(50% 60% at 25% 30%, #a9b8ff, transparent 70%), radial-gradient(50% 60% at 80% 75%, #e6b8f5, transparent 70%), radial-gradient(40% 50% at 80% 10%, #b8e6f5, transparent 70%), linear-gradient(160deg, #eef0fa, #dde2f6, #f3eefa); }
.th-obsidian { --acc: #f2f2f7; color: #fff; background: #000; }
.th-aurora { --acc: #5eead4; color: #fff; background: radial-gradient(45% 55% at 18% 30%, rgba(34,211,238,.5), transparent 70%), radial-gradient(45% 55% at 82% 22%, rgba(139,92,246,.5), transparent 70%), radial-gradient(45% 55% at 35% 95%, rgba(52,211,153,.4), transparent 70%), radial-gradient(40% 50% at 88% 88%, rgba(244,114,182,.4), transparent 70%), linear-gradient(160deg, #07101f, #0b1b2e, #0a0f1f); }
.th-minimal { --acc: #111114; color: #111114; background: linear-gradient(180deg, #f5f5f7, #ececef); }
.th-graphite { --acc: #f5a65b; color: #fff; background: radial-gradient(60% 60% at 50% 40%, rgba(58,61,70,.9), transparent 70%), repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 2px, transparent 2px 4px), linear-gradient(160deg, #1c1d21, #26282e, #17181b); }
.layouts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.layouts .chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); }
.layouts .chip.on { color: var(--text); background: rgba(124,107,255,.16); border-color: rgba(124,107,255,.35); }
@media (max-width: 440px) { .themes { grid-template-columns: repeat(2, 1fr); } }

/* "Honest scope" note under the privacy grid */
.scope { grid-column: 1 / -1; display: flex; gap: 14px; padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(245,158,11,.28); background: rgba(245,158,11,.06); }
.scope svg { flex: none; width: 22px; height: 22px; color: #fbbf24; }
.scope h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 6px; }
.scope p { font-size: 14.5px; color: var(--muted); }

/* Sibling app link in the footer */
.sib { display: inline-flex; align-items: center; gap: 7px; }
.sib img { width: 18px; height: 18px; }
