/* Forgetmykey — public website. Large, calm, high-contrast; light and dark. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #5f5f64;
  --line: #d2d2d7;
  --brand: #0071e3;
  --brand-strong: #0058b0;
  --brand-soft: #e8f1fc;
  --accent: #1d7a46;
  --accent-soft: #e3f3ea;
  --warm: #f0a500;
  --on-brand: #ffffff;
  --shadow: none;
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #161617;
    --surface: #1d1d1f;
    --ink: #f5f5f7;
    --ink-soft: #a1a1a6;
    --line: #3a3a3c;
    --brand: #2997ff;
    --brand-strong: #6bb8ff;
    --brand-soft: #0d2440;
    --accent: #52c98a;
    --accent-soft: #15301f;
    --on-brand: #ffffff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 20px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 4px solid var(--warm); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 16px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .8em; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 40ch; }
.muted { color: var(--ink-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo svg { width: 36px; height: 36px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .9rem; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(29, 122, 70, .7); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06170d; } }
.btn-primary:hover { color: #fff; background: color-mix(in srgb, var(--accent) 88%, black); }
@media (prefers-color-scheme: dark) { .btn-primary:hover { color: #06170d; background: color-mix(in srgb, var(--accent) 88%, white); } }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-small { min-height: 46px; padding: 10px 20px; font-size: .9rem; }
.btn svg { width: 22px; height: 22px; }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(900px 480px at 85% -10%, var(--brand-soft), transparent 70%), radial-gradient(700px 420px at -10% 110%, var(--accent-soft), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* Sections */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.center { text-align: center; margin-inline: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } section { padding: 64px 0; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.step-num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }
.icon-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.icon-badge svg { width: 30px; height: 30px; }
.icon-badge.green { background: var(--accent-soft); color: var(--accent); }

/* Things you can keep */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .88rem; }

/* Security diagram */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.diagram svg { width: 100%; height: auto; }
.diagram .d-ink { fill: var(--ink); }
.diagram .d-soft { fill: var(--ink-soft); }
.diagram .d-line { stroke: var(--line); }
.diagram .d-brand { fill: var(--brand); }
.diagram .d-accent { fill: var(--accent); }
.diagram .d-card { fill: var(--bg-soft); stroke: var(--line); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.checks svg { width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }

/* Tips */
.tip { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.tip .icon-badge { margin: 0; width: 52px; height: 52px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; color: var(--ink-soft); }

/* CTA */
.cta { text-align: center; background: linear-gradient(135deg, var(--brand) 0%, #2d62d8 60%, var(--accent) 140%); color: #fff; border-radius: 28px; padding: 64px 28px; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .cta { background: linear-gradient(135deg, #1b2c5c 0%, #1f3d86 60%, #1d5a3a 140%); } }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 46ch; margin-inline: auto; }
.cta .btn-primary { background: #fff; color: #173d96; box-shadow: none; margin-top: 12px; }
.cta .btn-primary:hover { background: #eef3ff; color: #173d96; }

/* Footer */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: .95rem; color: var(--ink); margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a, .link-btn { color: var(--ink-soft); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.link-btn:hover, .site-footer a:hover { color: var(--ink); }
.legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: .82rem; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .88rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.legal th { background: var(--bg-soft); }
.table-wrap { overflow-x: auto; }
.pending { background: #fff4d6; color: #5a3d00; border-radius: 6px; padding: 0 6px; font-weight: 700; }
.updated { color: var(--ink-soft); font-size: .88rem; }

/* Cookie consent */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin-inline: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); padding: 22px 24px; }
.cookie-banner[hidden], .cookie-panel[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: .4em; }
.cookie-banner p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 160px; min-height: 50px; font-size: .92rem; background: var(--surface); color: var(--brand); border-color: var(--brand); box-shadow: none; }
.cookie-actions .btn:hover { background: var(--brand-soft); color: var(--brand-strong); }
.cookie-panel { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.cookie-option { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.cookie-option strong { display: block; font-size: .95rem; }
.cookie-option span { font-size: .82rem; color: var(--ink-soft); }
.switch { position: relative; width: 58px; height: 32px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(26px); }
.switch input:disabled + .track { opacity: .6; }
.switch input:focus-visible + .track { outline: 4px solid var(--warm); outline-offset: 2px; }

/* Hero app window: the main way into the app */
.app-tile { justify-self: center; width: min(400px, 100%); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow), 0 40px 80px -30px rgba(31, 79, 191, .45); transition: transform .2s ease, box-shadow .2s ease; }
.app-tile:hover { transform: translateY(-4px); color: var(--ink); box-shadow: var(--shadow), 0 50px 90px -30px rgba(31, 79, 191, .6); }
.app-tile-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.app-tile-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.app-tile-bar b { margin-left: 10px; font-size: .78rem; font-weight: 600; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-tile-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 28px 34px; background: radial-gradient(420px 220px at 50% 0%, var(--brand-soft), transparent 75%); }
.app-tile-icon { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 18px 40px -16px rgba(31, 79, 191, .7); margin-bottom: 14px; }
.app-tile-name { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.app-tile-sub { color: var(--ink-soft); font-size: .95rem; }
.app-tile-go { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 14px 30px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem; }
.app-tile-go svg { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .app-tile-go { color: #06170d; } }

/* Small screens: the app window comes first, header stays on one line */
.logo svg { flex: none; }
.nav .btn { white-space: nowrap; }
@media (max-width: 900px) {
  .hero .wrap { gap: 32px; }
  .app-tile { order: -1; }
  .hero-actions .btn-primary { display: none; }
}
@media (max-width: 480px) {
  .nav .btn { min-height: 42px; padding: 8px 16px; font-size: .8rem; }
  .logo { font-size: 1.02rem; }
  .app-tile-body { padding: 30px 20px 26px; }
  .app-tile-icon { width: 104px; height: 104px; }
}

.label-short { display: none; }
@media (max-width: 480px) { .label-long { display: none; } .label-short { display: inline; } }

/* Language selector */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-left: auto; order: 2; }
.lang-switch a { min-width: 44px; min-height: 36px; display: grid; place-items: center; border-radius: 999px; font-weight: 800; font-size: .8rem; color: var(--ink-soft); text-decoration: none; }
.lang-switch a[aria-current] { background: var(--brand); color: var(--on-brand); }
.site-header .nav { margin-left: 16px; order: 3; }
@media (max-width: 820px) { .site-header .nav { margin-left: 10px; } }
@media (max-width: 480px) { .lang-switch a { min-width: 38px; } .site-header .wrap { gap: 8px; } }

/* ---------- Visual style: clean, centred, generous whitespace ---------- */
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
h3 { font-weight: 700; letter-spacing: -.015em; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 600; color: var(--brand); }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.45; letter-spacing: -.01em; max-width: 34ch; }

.site-header { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(1.8) blur(20px); border-bottom: 0; box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 60%, transparent); }
.site-header .wrap { min-height: 56px; }
.logo { font-weight: 600; }
.logo svg { width: 30px; height: 30px; }
.nav a:not(.btn) { font-weight: 500; font-size: .82rem; }

.btn { border-radius: 980px; font-weight: 600; letter-spacing: -.01em; }
.btn:hover { transform: none; }
.btn-primary, .app-tile-go { background: var(--brand); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover, .app-tile-go { color: #fff; } }
.btn-ghost { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }

.hero { padding: 64px 0 88px; background: var(--bg); text-align: center; }
.hero .wrap { grid-template-columns: 1fr; gap: 44px; justify-items: center; }
.hero .lead { margin-inline: auto; }
.hero-actions, .hero-points { justify-content: center; }
.hero-points svg { color: var(--brand); }

.app-tile { width: min(460px, 100%); border: 0; background: var(--bg-soft); border-radius: 30px; box-shadow: none; }
.app-tile:hover { transform: scale(1.01); box-shadow: none; }
.app-tile-bar { background: transparent; border-bottom: 0; }
.app-tile-bar b { background: var(--bg); border: 0; }
.app-tile-body { background: none; padding-top: 24px; }
.app-tile-icon { box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .35); }

section { padding: 104px 0; }
@media (max-width: 760px) { section { padding: 72px 0; } }
.section-soft { background: var(--bg-soft); border: 0; }
.section-head { text-align: center; margin-inline: auto; margin-bottom: 56px; }
.section-head .lead { margin-inline: auto; }
.card { background: var(--bg-soft); border: 0; box-shadow: none; border-radius: var(--radius); padding: 32px; }
.section-soft .card { background: var(--surface); }
.step-num { background: var(--ink); color: var(--bg); }
.icon-badge, .icon-badge.green { background: var(--brand-soft); color: var(--brand); }
.checks svg { color: var(--brand); }
.chips li { border: 0; background: var(--surface); }
.diagram { border: 0; box-shadow: none; background: var(--bg-soft); }
.faq details { border: 0; background: var(--surface); }
.faq summary::after { color: var(--brand); }

.cta { background: #000; color: #f5f5f7; border-radius: 30px; box-shadow: none; }
@media (prefers-color-scheme: dark) { .cta { background: var(--bg-soft); } }
.cta p { color: #a1a1a6; }
.cta .btn-primary { background: var(--brand); color: #fff; }
.cta .btn-primary:hover { background: var(--brand-strong); color: #fff; }

.site-footer { background: var(--bg-soft); border-top: 0; font-size: .8rem; }
.lang-switch { border: 0; background: var(--bg-soft); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--bg); }
.cookie-banner { border: 0; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .4); border-radius: 22px; }
.cookie-actions .btn { background: var(--bg-soft); border-color: transparent; color: var(--ink); }
.cookie-actions .btn:hover { background: var(--line); color: var(--ink); }
.pending { background: #fff4d6; }
.nav a:not(.btn) { white-space: nowrap; }
