/* YanDunLock: graphite and macOS blue, the same look as the app and the extension. */
:root {
  --bg: #fbfbfc;
  --card: #ffffff;
  --sunken: #f3f3f5;
  --ink: #111113;
  --soft: #3f3f46;
  --mute: #71717a;
  --line: #e4e4e7;
  --blue: #007aff;
  --blue-ink: #0062d6;
  --blue-soft: #e9f2ff;
  --night: #0b0c0f;
  --night-2: #131419;
  --night-line: rgb(255 255 255 / 0.08);
  --shadow: 0 1px 2px rgb(17 17 19 / 0.04), 0 12px 32px -12px rgb(17 17 19 / 0.12);
  --float: 0 30px 80px -24px rgb(10 14 30 / 0.45), 0 2px 8px rgb(10 14 30 / 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e10;
    --card: #151517;
    --sunken: #111113;
    --ink: #f4f4f5;
    --soft: #d4d4d8;
    --mute: #8e8e96;
    --line: #27272a;
    --blue: #0a84ff;
    --blue-ink: #6cb2ff;
    --blue-soft: #10264a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e10; --card: #151517; --sunken: #111113; --ink: #f4f4f5; --soft: #d4d4d8; --mute: #8e8e96; --line: #27272a;
  --blue: #0a84ff; --blue-ink: #6cb2ff; --blue-soft: #10264a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgb(11 12 15 / 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--night-line); }
.bar .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #f4f4f5; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { color: #8e8e96; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bar nav a { color: #b4b4bc; font-size: 14px; font-weight: 550; padding: 8px 12px; border-radius: 10px; }
.bar nav a:hover { color: #fff; background: rgb(255 255 255 / 0.07); text-decoration: none; }
.bar nav a.on { color: #fff; }
@media (max-width: 520px) { .bar nav a.hide-sm { display: none; } }

/* Buttons: almost rectangular, never pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: background 0.15s, box-shadow 0.15s; }
.btn:hover { text-decoration: none; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 8px 24px -8px rgb(0 122 255 / 0.6); }
.btn-blue:hover { background: #2b8fff; }
.btn-ghost { color: #e4e4e7; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.06); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--night); color: #f4f4f5; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; padding-top: 96px; padding-bottom: 112px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #cfe3ff; background: rgb(10 132 255 / 0.12); box-shadow: inset 0 0 0 1px rgb(10 132 255 / 0.3); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #0a84ff; }
.hero h1 { margin: 22px 0 0; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.hero h1 em { font-style: normal; color: #5aa9ff; }
.hero p.lead { margin: 22px 0 0; max-width: 34rem; font-size: 18.5px; line-height: 1.6; color: #a1a1aa; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 14px; color: #8e8e96; }
.hero .facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero .facts svg { width: 16px; height: 16px; color: #4ade80; }
.shot-stack { position: relative; justify-self: center; width: min(100%, 470px); }
.shot-stack .main { border-radius: 22px; overflow: hidden; box-shadow: var(--float), 0 0 0 1px rgb(255 255 255 / 0.08); }
.shot-stack .side { position: absolute; width: 62%; right: -14%; bottom: -12%; border-radius: 18px; overflow: hidden; box-shadow: var(--float), 0 0 0 1px rgb(255 255 255 / 0.1); }
@media (max-width: 959px) { .shot-stack .side { right: -4%; width: 56%; } }

/* Sections */
.section { padding: 96px 0; }
.section.tight { padding-top: 24px; }
.kicker { font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-ink); }
.section h2 { margin: 12px 0 0; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; max-width: 40rem; }
.section .intro { margin: 16px 0 0; max-width: 38rem; font-size: 17.5px; color: var(--mute); }
.grid { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border-radius: 18px; padding: 26px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.card .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.card .ic svg { width: 21px; height: 21px; }
.card h3 { margin: 18px 0 0; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.card p { margin: 8px 0 0; font-size: 15px; color: var(--mute); }
.t-blue { color: #007aff; background: color-mix(in srgb, #007aff 13%, var(--card)); }
.t-green { color: #30b85a; background: color-mix(in srgb, #30b85a 14%, var(--card)); }
.t-orange { color: #ff8a00; background: color-mix(in srgb, #ff8a00 14%, var(--card)); }
.t-purple { color: #a55eea; background: color-mix(in srgb, #a55eea 14%, var(--card)); }
.t-teal { color: #14b8a6; background: color-mix(in srgb, #14b8a6 14%, var(--card)); }
.t-red { color: #ff453a; background: color-mix(in srgb, #ff453a 13%, var(--card)); }

/* Showcase rows */
.show { display: grid; gap: 40px; align-items: center; margin-top: 72px; }
@media (min-width: 900px) { .show { grid-template-columns: 1fr 1fr; gap: 72px; } .show.flip .media { order: 2; } }
.show .media { border-radius: 22px; padding: 28px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.show .media img { margin: 0 auto; max-height: 460px; width: auto; border-radius: 16px; box-shadow: 0 24px 60px -24px rgb(10 14 30 / 0.4), 0 0 0 1px rgb(0 0 0 / 0.06); }
.show h3 { margin: 10px 0 0; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }
.show p { margin: 14px 0 0; font-size: 17px; color: var(--mute); }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: 15.5px; color: var(--soft); }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--blue); }

/* Privacy band */
.band { background: var(--night); color: #f4f4f5; border-radius: 28px; padding: 56px 28px; position: relative; overflow: hidden; }
@media (min-width: 720px) { .band { padding: 72px 64px; } }
.band h2 { color: #f4f4f5; }
.band .intro { color: #a1a1aa; }
.band .pillars { display: grid; gap: 28px; margin-top: 44px; }
@media (min-width: 820px) { .band .pillars { grid-template-columns: repeat(3, 1fr); } }
.band .pillars h3 { margin: 14px 0 0; font-size: 17px; font-weight: 650; }
.band .pillars p { margin: 8px 0 0; color: #a1a1aa; font-size: 15px; }
.band .pillars .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); color: #5aa9ff; }
.band .pillars svg { width: 20px; height: 20px; }
.band .more { margin-top: 40px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--mute); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot .brand { color: var(--ink); font-size: 15px; }
.foot .brand span { color: var(--mute); }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot nav a { color: var(--mute); }
.foot nav a:hover { color: var(--ink); }

/* Policy page */
.doc-hero { background: var(--night); color: #f4f4f5; position: relative; overflow: hidden; }
.doc-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, #000 25%, transparent 75%); pointer-events: none; }
.doc-hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.doc-hero h1 { margin: 18px 0 0; font-size: clamp(2.3rem, 5vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; }
.doc-hero p { margin: 16px 0 0; max-width: 40rem; color: #a1a1aa; font-size: 18px; }
.doc-hero .meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 9px; font-size: 13px; font-weight: 550; color: #d4d4d8; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.chip svg { width: 14px; height: 14px; color: #4ade80; }
.doc { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 96px; }
@media (min-width: 980px) { .doc { grid-template-columns: 240px 1fr; gap: 64px; } }
.toc { align-self: start; position: sticky; top: 88px; display: none; }
@media (min-width: 980px) { .toc { display: block; } }
.toc p { margin: 0 0 10px; font-size: 12px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.toc a { display: block; padding: 7px 12px; margin-left: -12px; border-radius: 9px; font-size: 14.5px; color: var(--soft); }
.toc a:hover { background: var(--sunken); color: var(--ink); text-decoration: none; }
.summary { background: var(--card); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.summary h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.summary p { margin: 10px 0 0; color: var(--soft); font-size: 16.5px; }
.prose { max-width: 46rem; }
.prose section { padding-top: 44px; scroll-margin-top: 80px; }
.prose h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 23px; letter-spacing: -0.02em; font-weight: 700; }
.prose h2 .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--blue-ink); background: var(--blue-soft); }
.prose p { margin: 14px 0 0; color: var(--soft); font-size: 16.5px; }
.prose ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 22px; color: var(--soft); font-size: 16.5px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.contact { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--card); border-radius: 18px; padding: 24px 28px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.contact .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #007aff; background: color-mix(in srgb, #007aff 13%, var(--card)); }
.contact .ic svg { width: 21px; height: 21px; }
.contact h3 { margin: 0; font-size: 16px; }
.contact p { margin: 2px 0 0; font-size: 15px; color: var(--mute); }
.contact .btn { margin-left: auto; background: var(--ink); color: var(--bg); }
.contact .btn:hover { opacity: 0.9; }
.wm { font-weight: inherit; }
