/* CabinetPass home page ("Quiet Cabinet"). Hand-written; the legal and SEO pages keep using site.css. */

:root {
  color-scheme: light;
  --bg: #ECEEE9;
  --surface: #FFFFFF;
  --surface-2: #F7F7F3;
  --band: #DFE4DF;
  --ink: #1F2A2E;
  --muted: #4F5B5F;
  --faint: #5D686C;
  --line: #D3D9D4;
  --accent: #34557A;
  --accent-hover: #243E5C;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3EAF2;
  --yes: #2F6B4F;
  --no: #8A4B3C;
  --shadow-soft: #DCE0DA;
  --shadow: 0 30px 60px -30px rgba(31, 42, 46, .35);
  /* hero 3D scene (read by hero-cabinet.js) */
  --vault-body: #4B5860;
  --vault-door: #56646D;
  --vault-trim: #6E7E88;
  --vault-inside: #2B3338;
  --vault-metal: #D3DAE0;
  --vault-led: #BFD6F2;
  --card-3d: #FFFFFF;
  --folder: #B9C8C2;
  --folder-front: #CFDAD5;
  --radius: 24px;
  --font: 'Commissioner', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Dark theme: off for now, the site is light only. The colours are kept here so it can be switched on later:
   - one fixed theme: set data-theme="dark" on <html>;
   - follow the visitor's system setting: wrap this rule in @media (prefers-color-scheme: dark) and use :root,
     then restore the dark <meta name="theme-color">, color-scheme "light dark" and the mac-dark.jpg <source> in index.html. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151A1C;
  --surface: #1E2528;
  --surface-2: #192022;
  --band: #1A2124;
  --ink: #E6EAE7;
  --muted: #A9B4B1;
  --faint: #95A29E;
  --line: #2E373A;
  --accent: #9DBBE0;
  --accent-hover: #BED3EE;
  --accent-ink: #10181F;
  --accent-soft: #263443;
  --yes: #8FCBAE;
  --no: #E0A595;
  --shadow-soft: #0E1213;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  --vault-body: #56646C;
  --vault-door: #627179;
  --vault-trim: #7C8C96;
  --vault-inside: #1D2427;
  --vault-metal: #C4CDD3;
  --vault-led: #9DBBE0;
  --card-3d: #2F3A3F;
  --folder: #3F534D;
  --folder-front: #4D645D;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
b, strong { font-weight: 600; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h2 { font-weight: 300; font-size: clamp(32px, 4vw, 44px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
h3 { font-weight: 500; font-size: 19px; line-height: 1.35; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--surface); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 112px; padding-bottom: 112px; }
.section-tail { padding-bottom: 112px; }
.band { background: var(--band); }
.center { text-align: center; }
.intro { max-width: 720px; margin: 0 auto 56px; }
.intro.center p { color: var(--muted); max-width: 38em; margin-left: auto; margin-right: auto; }
.intro p { color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--accent); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 6px; }
.eyebrow svg { width: 15px; height: 15px; }
.small { font-size: 15px; color: var(--faint); }
.fine { font-size: 13px; color: var(--faint); margin-top: 18px; }
.col-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.text-link { font-weight: 500; }

/* Icons from lucide: thin, quiet */
[data-lucide], .lucide { width: 20px; height: 20px; stroke-width: 1.5; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0;
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-quiet:hover { color: var(--accent); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 19px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.pass { color: var(--accent); }
.nav-links { display: flex; gap: 26px; flex: 1; justify-content: center; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 6px; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--muted); }
.icon-link:hover { color: var(--ink); background: var(--surface); }
.icon-link svg { width: 19px; height: 19px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; background: var(--surface); border-radius: 20px; padding: 10px; min-width: 220px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.menu-panel a { padding: 12px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.menu-panel a:hover { background: var(--surface-2); }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 520px) {
  .icon-link { display: none; }
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 88px; }
.hero h1 { font-weight: 300; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.06; letter-spacing: -.028em; margin-bottom: 24px; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 31em; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.stores-label { font-size: 14px; color: var(--faint); margin-right: 4px; }
.store { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; }
.store svg { width: 16px; height: 16px; }
.free-plan { font-size: 14px; color: var(--faint); max-width: 34em; }
.free-plan summary { cursor: pointer; list-style: none; }
.free-plan summary::-webkit-details-marker { display: none; }
.free-plan summary::after { content: ' · What’s free?'; color: var(--accent); }
.free-plan[open] summary::after { content: ''; }
.free-plan summary a { text-decoration: none; }
.free-plan-body { margin-top: 12px; background: var(--surface); border-radius: 18px; padding: 18px 20px; color: var(--muted); font-size: 15px; }
.free-plan-body .ticks { margin: 10px 0 12px; }

.hero-visual { margin: 0; position: relative; }
.stage { position: relative; aspect-ratio: 1 / .92; width: 100%; color: var(--ink); }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .8s ease; }
.stage.live canvas { opacity: 1; }
.stage-fallback { position: absolute; inset: 12% 18% 6%; width: 64%; height: auto; margin: auto; transition: opacity .6s ease; }
.stage.live .stage-fallback { opacity: 0; }
.stage-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--faint); margin-top: 8px; }
.stage-steps li { display: inline-flex; align-items: center; gap: 8px; transition: color .4s; }
.stage-steps span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 600; transition: background-color .4s, color .4s; }
.stage-steps li.on { color: var(--ink); }
.stage-steps li.on span { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 24px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
}

/* Trust strip */
.trust { padding-bottom: 24px; }
.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border-radius: 28px; padding: 8px; }
.trust-row > div { padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.trust-row > div + div { border-left: 1px solid var(--line); }
.trust-row svg { color: var(--accent); margin-bottom: 8px; }
.trust-row b { font-weight: 500; font-size: 22px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.trust-row span { font-size: 15px; color: var(--muted); line-height: 1.45; }
@media (max-width: 860px) {
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-row > div:nth-child(3) { border-left: 0; }
  .trust-row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 460px) {
  .trust-row { grid-template-columns: 1fr; }
  .trust-row > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* Panels and grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; gap: 12px; }
.panel p { color: var(--muted); font-size: 16px; }
.panel > svg[data-lucide], .panel > .lucide { color: var(--accent); width: 26px; height: 26px; }
.panel-empty { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--faint) 60%, transparent); }
.band .panel { background: var(--surface-2); }
.glyph { width: 44px; height: 44px; color: var(--ink); }
.glyph.faint { color: var(--faint); }

.curious { margin-top: 24px; background: var(--surface-2); border-radius: 20px; padding: 20px 26px; }
.curious summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-size: 16px; color: var(--accent); }
.curious summary::-webkit-details-marker { display: none; }
.curious summary svg { transition: transform .3s; }
.curious[open] summary svg { transform: rotate(180deg); }
.curious dl { margin: 20px 0 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 40px; font-size: 15px; }
.curious dt { font-weight: 500; }
.curious dd { margin: 2px 0 0; color: var(--muted); }

/* App section */
.app-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.app-copy p { color: var(--muted); }
.chapters { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.chapters li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; color: var(--faint); font-size: 15px; transition: background-color .35s, color .35s; }
.chapters li svg { margin-top: 2px; color: inherit; }
.chapters li b { display: block; font-weight: 500; color: var(--muted); font-size: 16px; }
.chapters li.on { background: var(--surface); color: var(--muted); }
.chapters li.on b { color: var(--ink); }
.chapters li.on svg { color: var(--accent); }
.devices { position: relative; padding-bottom: 40px; }
.mac { border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); width: 92%; }
.mac-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.mac-bar span { width: 10px; height: 10px; border-radius: 99px; background: var(--line); }
.mac-bar em { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 6px; }
.mac img { width: 100%; height: auto; }
.phone { position: absolute; right: 4px; bottom: 0; width: 34%; max-width: 230px; margin: 0; }
/* iPhone (16 Pro proportions): thin black bezel inside a titanium band, action + volume buttons on the
   left, side button on the right. Radii are percentages (horizontal / vertical) so the shape holds at any size. */
.phone-frame {
  position: relative; padding: 2.4%; border: 2px solid transparent; border-radius: 15.5% / 7.5%;
  background: linear-gradient(#0b0b0c, #0b0b0c) padding-box,
    linear-gradient(140deg, #d6d3cd, #8a8680 28%, #c8c4bd 52%, #6e6b66 78%, #b3afa8) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--shadow);
}
.phone-frame::before, .phone-frame::after { content: ''; position: absolute; width: 2.5px; background: #8f8b85; }
.phone-frame::before { /* action button, volume up, volume down */
  left: -4.5px; top: 18%; height: 23%; border-radius: 2px 0 0 2px; background:
    linear-gradient(#8f8b85 0 15%, transparent 15% 35%, #8f8b85 35% 63%, transparent 63% 72%, #8f8b85 72%);
}
.phone-frame::after { right: -4.5px; top: 28%; height: 11%; border-radius: 0 2px 2px 0; }
.phone-screen { position: relative; border-radius: 13.3% / 6.1%; overflow: hidden; aspect-ratio: 600 / 1304; background: #000; }
.phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rail { display: flex; gap: 3px; margin-top: 12px; }
.rail button { flex: 1; height: 16px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.rail button::before { content: ''; display: block; height: 4px; border-radius: 4px; background: var(--line); }
.rail button { position: relative; }
.rail button > span { position: absolute; left: 0; top: 6px; height: 4px; border-radius: 4px; background: var(--accent); width: 0; }
.media-cap { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--faint); margin-top: 8px; }
.play-toggle { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; }
.play-toggle svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }
  .chapters { display: none; }
}

/* Import marquee */
.switch { overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; padding: 4px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 500; white-space: nowrap; }
.marquee-track svg { width: 20px; height: 20px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
  .marquee-track li[aria-hidden] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px 56px; }
.feature-grid > div { display: flex; gap: 18px; }
.feature-grid > div > svg { color: var(--accent); width: 26px; height: 26px; margin-top: 2px; }
.feature-grid h3 { margin-bottom: 6px; }
.feature-grid p { font-size: 16px; color: var(--muted); }

.all-features summary { list-style: none; margin: 0 auto; display: flex; width: max-content; }
.all-features summary::-webkit-details-marker { display: none; }
.all-features summary svg { transition: transform .3s; }
.all-features[open] summary svg { transform: rotate(180deg); }
.all-features .when-open { display: none; }
.all-features[open] .when-open { display: inline; }
.all-features[open] .when-closed { display: none; }
.af-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.af-group { background: var(--surface); border-radius: 22px; padding: 26px 24px; }
.af-group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 17px; }
.af-group h3 svg { color: var(--accent); }
.af-group .ticks { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

.ticks { display: flex; flex-direction: column; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 10px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }

/* Two-factor */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split > div > p { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.otp-stack { display: flex; flex-direction: column; gap: 14px; max-width: 460px; width: 100%; justify-self: center; }
.otp { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: 22px; padding: 18px 20px; }
.otp > div { flex: 1; min-width: 0; }
.otp-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c); color: #fff; font-weight: 600; flex: none; }
.otp-name { font-size: 14px; color: var(--faint); }
.otp-code { font-size: 30px; font-weight: 300; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--accent); line-height: 1.2; }
.otp-user { font-size: 13px; color: var(--faint); }
.ring { width: 34px; height: 34px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.ring .ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.gen { background: var(--surface); border-radius: 22px; padding: 20px 22px; }
.gen-pw { font-family: var(--mono); font-size: 18px; letter-spacing: .02em; word-break: break-all; min-height: 1.6em; }
.gen-meter { height: 5px; border-radius: 9px; background: var(--line); margin: 14px 0 10px; overflow: hidden; }
.gen-meter span { display: block; height: 100%; width: 92%; background: var(--yes); border-radius: inherit; }
.gen-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--faint); }
.gen-foot span:first-child { color: var(--yes); font-weight: 500; }

/* SSH */
.points { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.points li { display: flex; gap: 14px; font-size: 16px; color: var(--muted); }
.points li svg { color: var(--accent); margin-top: 3px; }
.points b { color: var(--ink); }
.ipad { margin: 0; }
.ipad-frame { background: #1d1d1f; border-radius: 28px; padding: 10px; box-shadow: var(--shadow); }
.ipad-frame video { width: 100%; height: auto; border-radius: 19px; background: #000; }

/* Security */
.cipher { max-width: 720px; margin: 0 auto 32px; background: var(--surface); border-radius: 22px; padding: 20px 24px; }
.cipher-head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--faint); }
.cipher-head [data-cipher-step] { margin-left: auto; font-variant-numeric: tabular-nums; }
.cipher-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); }
.cipher-val { font-family: var(--mono); font-size: 15px; line-height: 1.5; margin: 10px 0 14px; min-height: 3em; word-break: break-all; color: var(--ink); }
.cipher-track { height: 3px; border-radius: 9px; background: var(--line); overflow: hidden; }
.cipher-track span { display: block; height: 100%; width: 0; background: var(--accent); }
.steps-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.steps-5 li { background: var(--surface-2); border-radius: 20px; padding: 22px 20px; position: relative; transition: background-color .4s, box-shadow .4s; }
.steps-5 li > svg { color: var(--accent); margin-bottom: 18px; }
.steps-5 .n { position: absolute; top: 20px; right: 20px; font-size: 13px; color: var(--faint); }
.steps-5 b { display: block; font-weight: 500; margin-bottom: 6px; }
.steps-5 p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.steps-5 li.hot { background: var(--surface); box-shadow: 0 0 0 1.5px var(--accent); }
@media (max-width: 1000px) { .steps-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.facts { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 32px; }
.facts p { display: flex; gap: 12px; font-size: 15px; color: var(--muted); margin: 0; }
.facts svg { color: var(--accent); margin-top: 2px; }
.facts b { color: var(--ink); }
.verify { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; background: var(--surface); border-radius: var(--radius); padding: 28px 32px; }
.verify > svg { color: var(--accent); width: 28px; height: 28px; }
.verify > div { flex: 1 1 420px; color: var(--muted); font-size: 16px; }
.verify b { color: var(--ink); }
.verify .btn { background: var(--surface-2); }

/* Sync */
.sync-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 40px; }
/* runs from the first circle's centre to the last one's (3 columns, 40px gaps) */
.sync-line { position: absolute; left: calc((100% - 80px) / 6); top: 22px; width: calc(100% - (100% - 80px) / 3); height: 20px; overflow: visible; color: var(--line); }
.sync-line path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; opacity: .55; }
.sync-step { position: relative; text-align: center; }
.sync-step .dot { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 999px; background: var(--surface); color: var(--accent); box-shadow: 0 0 0 8px var(--bg); }
.sync-step h3 { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.sync-step h3 span { font-size: 14px; color: var(--faint); }
.sync-step p { font-size: 16px; color: var(--muted); max-width: 22em; margin: 0 auto; }
@media (max-width: 760px) {
  .sync-steps { grid-template-columns: 1fr; }
  .sync-line { display: none; }
}

/* Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 48px; align-items: center; background: var(--surface); border-radius: 28px; padding: 56px 52px; }
.privacy p { color: var(--muted); }
.privacy .ticks { margin: 22px 0 26px; color: var(--muted); font-size: 16px; }
.padlock { width: 150px; justify-self: center; color: var(--ink); overflow: visible; }
@media (max-width: 760px) {
  .privacy { grid-template-columns: 1fr; padding: 40px 28px; }
  .padlock { width: 110px; grid-row: 1; justify-self: start; }
}

/* Compare */
.table-box { margin-top: 40px; overflow-x: auto; background: var(--surface); border-radius: var(--radius); padding: 8px 8px 4px; }
.table-box table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14.5px; }
.table-box caption { text-align: left; padding: 16px 16px 8px; font-size: 14px; color: var(--faint); }
.table-box th, .table-box td { text-align: left; vertical-align: top; padding: 13px 16px; border-top: 1px solid var(--line); }
.table-box thead th { border-top: 0; font-weight: 500; font-size: 14px; color: var(--muted); position: sticky; top: 0; }
.table-box thead th:nth-child(2) { color: var(--accent); }
.table-box tbody th[scope="row"] { font-weight: 500; min-width: 210px; }
.table-box th[scope="colgroup"] { background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: .03em; padding-top: 10px; padding-bottom: 10px; }
.table-box td:nth-child(2) { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.table-box td > span:not(.mark) { color: var(--muted); font-size: 13.5px; display: block; margin-top: 2px; line-height: 1.4; }
.mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; }
.mark svg { width: 14px; height: 14px; stroke-width: 2; }
.mark.yes { color: var(--yes); background: color-mix(in srgb, var(--yes) 14%, transparent); }
.mark.no { color: var(--no); background: color-mix(in srgb, var(--no) 12%, transparent); }
.mark.part { color: var(--faint); background: color-mix(in srgb, var(--faint) 14%, transparent); }
.only-narrow { display: none; }
@media (max-width: 900px) { .only-narrow { display: inline; } }
.keepass { margin-top: 48px; background: var(--surface-2); border-radius: var(--radius); padding: 40px 36px; }
.keepass > h3 { font-size: 24px; font-weight: 400; margin-bottom: 12px; }
.keepass > p { color: var(--muted); max-width: 52em; }
.keepass-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 48px; margin: 28px 0; }
.keepass-cols .ticks { font-size: 15.5px; color: var(--muted); }
.keepass-cols b { color: var(--ink); }

/* Pricing */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; color: var(--faint); margin: -24px 0 40px; }
.platforms span { display: inline-flex; align-items: center; gap: 6px; }
.platforms svg { width: 16px; height: 16px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { position: relative; background: var(--surface); border-radius: var(--radius); padding: 34px 30px; }
.plan-best { box-shadow: 0 0 0 1.5px var(--accent); }
.plan h3 { font-size: 18px; }
.price { font-weight: 300; font-size: 52px; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.price small { font-size: 17px; color: var(--faint); letter-spacing: 0; }
.plan-note { font-size: 14px; color: var(--faint); margin-bottom: 22px; }
.tag { position: absolute; top: 30px; right: 28px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; }
.plan-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; border-top: 1px solid var(--line); padding-top: 20px; }
.plan-list li { display: flex; gap: 10px; }
.plan-list li svg { width: 16px; height: 16px; margin-top: 3px; }
.plan-list li.yes svg { color: var(--accent); }
.plan-list li.no { color: var(--faint); }
.plan-list li.no > span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--faint) 50%, transparent); }
.storage-note { display: flex; gap: 14px; max-width: 820px; margin: 32px auto 0; font-size: 15px; color: var(--muted); background: var(--surface-2); border-radius: 20px; padding: 20px 24px; }
.storage-note svg { color: var(--accent); margin-top: 2px; }
.storage-note b { color: var(--ink); }
.honest { margin-top: 72px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: center; background: var(--surface); border-radius: 28px; padding: 48px 44px; }
.honest h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.honest p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .honest { grid-template-columns: 1fr; padding: 36px 28px; } }

/* Notify */
.notify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.notify p { color: var(--muted); }
@media (max-width: 860px) { .notify { grid-template-columns: 1fr; } }
.notify-card { background: var(--surface); border-radius: 28px; padding: 32px; }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.field { width: 100%; font: inherit; font-size: 17px; padding: 14px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); margin-bottom: 20px; }
.field:focus { outline: none; border-color: var(--accent); }
.devices-pick { border: 0; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.devices-pick legend { grid-column: 1 / -1; }
.choice { position: relative; display: flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { flex: 1; border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 16px; font-size: 13px; color: var(--faint); transition: border-color .2s, background-color .2s; }
.choice b { display: block; font-size: 16px; color: var(--ink); font-weight: 500; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.notify-done { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--muted); }
.notify-done svg { color: var(--yes); width: 26px; height: 26px; }
.notify-done b { color: var(--ink); }
.notify-error { margin-top: 14px; color: var(--no); font-size: 14px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px 80px; }
.faq > div:first-child p { color: var(--muted); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 500; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { color: var(--faint); transition: transform .3s; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 40em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; font-size: 15px; }
.footer-grid p { color: var(--muted); max-width: 26em; margin-top: 14px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Hero: "How it works" (3D story) and "Watch the demo" (screen recordings) */
.view-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); margin: 0 auto 8px; position: relative; left: 50%; transform: translateX(-50%); }
.view-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background-color .25s, color .25s; }
.view-switch button svg { width: 15px; height: 15px; }
.view-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.view-switch button:not([aria-pressed="true"]):hover { color: var(--ink); }
.hero-panel[hidden] { display: none; }
.hero-panel.enter { animation: panel-in .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.hero-panel .devices { padding: 48px 0 56px; }
.hero-panel .mac { width: 90%; }
.hero-panel .phone { width: 30%; }
.hero-panel .media-cap { margin-top: 6px; }
.hero-panel .fine { margin-top: 4px; }
@media (max-width: 520px) { .hero-panel .devices { padding-top: 64px; } }
.chapter-now { margin-top: 4px; min-height: 52px; }
.chapter-now li { display: none; justify-content: center; text-align: left; background: none; padding: 0; }
.chapter-now li.on { display: flex; background: none; animation: panel-in .4s ease both; }
.chapter-now li:first-child:not(.on) { display: none; }

/* Padlock: the brand mark locking. The shackle hinges on its long right leg,
   swings shut, drops in with a soft click, and the body settles once. */
.lock { position: relative; display: inline-block; flex: none; width: 28px; height: 28px; transform-origin: 50% 88%; }
.lock > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lock-sh { transform-origin: 68.4% 50%; }
.lock-ring { position: absolute; left: 47%; top: 66%; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--accent); translate: -50% -50%; opacity: 0; pointer-events: none; }
.lock-md { width: 44px; height: 44px; }
.lock-xl { width: 180px; height: 180px; justify-self: center; }
@media (max-width: 760px) { .lock-xl { width: 120px; height: 120px; justify-self: start; grid-row: 1; } }

@media (prefers-reduced-motion: no-preference) {
  html.lockmotion .lock:not(.locked):not(.play) .lock-sh { translate: 0 -14%; transform: perspective(700px) rotateY(55deg); }
  .lock.play { animation: lock-body 1.6s cubic-bezier(.3, .7, .3, 1) both; }
  .lock.play .lock-sh { animation: lock-sh 1.6s both; }
  .lock.play .lock-ring { animation: lock-ring 1.6s ease-out both; }
}
@keyframes lock-sh {
  0% { translate: 0 -14%; transform: perspective(700px) rotateY(55deg); animation-timing-function: cubic-bezier(.3, .8, .3, 1.1); }
  34% { translate: 0 -14%; transform: perspective(700px) rotateY(0deg); animation-timing-function: ease-in-out; }
  40% { translate: 0 -16%; transform: none; animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  50% { translate: 0 .6%; transform: none; animation-timing-function: ease-out; }
  56% { translate: 0 -.6%; transform: none; }
  62%, 100% { translate: 0 0; transform: none; }
}
@keyframes lock-body {
  0%, 48% { transform: none; }
  51% { transform: translateY(1.5%) scale(1.03, .96); }
  58% { transform: none; }
  68% { transform: rotate(-3deg); }
  80% { transform: rotate(1.5deg); }
  100% { transform: none; }
}
@keyframes lock-ring {
  0%, 49% { opacity: 0; scale: .4; }
  52% { opacity: .9; scale: .6; }
  78%, 100% { opacity: 0; scale: 1.9; }
}

/* Footer wordmark: the padlock and the name, rising out of the footer edge */
.wordmark { display: flex; align-items: flex-end; justify-content: center; gap: .08em; font-weight: 300; font-size: clamp(48px, 13vw, 184px); letter-spacing: -.04em; line-height: 1; margin-top: 56px; white-space: nowrap; user-select: none; overflow: hidden; padding: .12em 0 .14em; }
.wm-text > span { padding: 0 .015em; margin: 0 -.015em; }
.wordmark .lock { width: .72em; height: .72em; margin-bottom: .02em; margin-right: .06em; }
.wm-text { display: inline-flex; color: color-mix(in srgb, var(--ink) 14%, var(--bg)); }
.wm-text.pass { color: color-mix(in srgb, var(--accent) 55%, var(--bg)); }
.wm-text > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html.lockmotion .wm-text > span { translate: 0 105%; transition: translate 1s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 45ms + 150ms); }
  html.lockmotion .wordmark.in .wm-text > span { translate: 0 0; }
}

/* Large monitors: widen the column, scale the type and let the hero fill the first screen. */
@media (min-width: 1600px) {
  body { font-size: 19px; }
  .wrap { max-width: 1360px; }
  .hero { min-height: min(calc(100svh - 150px), 1000px); gap: 72px; }
  .hero h1 { font-size: clamp(66px, 4.3vw, 80px); }
  .hero .lead { font-size: 22px; }
  h2 { font-size: clamp(44px, 2.8vw, 54px); }
  .section { padding-top: 136px; padding-bottom: 136px; }
}
@media (min-width: 2200px) {
  body { font-size: 20px; }
  .wrap { max-width: 1560px; }
  .hero h1 { font-size: clamp(80px, 3.9vw, 96px); }
  .hero .lead { font-size: 24px; }
  h2 { font-size: clamp(54px, 2.5vw, 62px); }
  .stage-steps { font-size: 16px; }
}

/* Enterprise enquiry */
.enterprise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; background: var(--surface-2); border-radius: 32px; padding: 56px 52px; }
.enterprise-copy > p { color: var(--muted); }
.ent-points { display: flex; flex-direction: column; gap: 18px; margin: 28px 0; }
.ent-points li { display: flex; gap: 14px; font-size: 16px; color: var(--muted); }
.ent-points li > svg { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.ent-points b { color: var(--ink); }
.ent-card { background: var(--surface); border-radius: 28px; padding: 32px; }
.ent-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
select.field { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
select.field:invalid { color: var(--faint); }
.field-area { border-radius: 20px; resize: vertical; min-height: 110px; line-height: 1.5; font-size: 16px; }
.optional { font-weight: 400; color: var(--faint); margin-left: 4px; }
.ent-needs { border: 0; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ent-needs legend { width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 15px; font-weight: 500; color: var(--muted); transition: border-color .2s, background-color .2s, color .2s; }
.chip span svg { width: 16px; height: 16px; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ent-link { margin-top: 24px; }
@media (max-width: 900px) {
  .enterprise { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; }
}
@media (max-width: 520px) {
  .ent-row { grid-template-columns: 1fr; }
  .ent-card { padding: 24px 20px; }
}

/* Item types */
.item-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; background: var(--surface); border-radius: 999px; width: max-content; max-width: 100%; margin: 0 auto 40px; }
.item-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background-color .25s, color .25s; }
.item-tabs button svg { width: 17px; height: 17px; }
.item-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.item-tabs button:not([aria-selected="true"]):hover { color: var(--ink); }
@media (max-width: 640px) { .item-tabs { border-radius: 24px; } }
.item-pane { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.item-pane[hidden] { display: none; }
.item-pane.enter { animation: panel-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.pane-copy h3 { font-weight: 400; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.015em; margin-bottom: 14px; }
.pane-copy > p { color: var(--muted); }
.pane-copy .ticks { margin: 20px 0; color: var(--muted); font-size: 16px; }
.pane-demo { background: var(--surface-2); border-radius: 28px; padding: 32px; min-height: 440px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.demo-hint { text-align: center; font-size: 13px; color: var(--faint); margin: 0; }
@media (max-width: 900px) { .item-pane { grid-template-columns: minmax(0, 1fr); gap: 28px; } .pane-demo { padding: 16px; min-height: 0; } }
.item-pane > * { min-width: 0; }
.login-row > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Wallet */
.wallet { position: relative; width: 100%; max-width: 400px; margin: 0 auto; height: var(--h, 420px);
  /* tucked cards below an open one are cut off at the wallet's bottom edge; room left for hover lift and shadows */
  clip-path: inset(-16px -24px -2px -24px round 0 0 18px 18px); }
.wcard { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1.586; border: 0; padding: 0; border-radius: 18px; cursor: pointer; text-align: left; color: var(--cink);
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.14) 0 40%, transparent 41%), linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 -1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -14px rgba(0,0,0,.45);
  transform: translateY(var(--y, 0)) scale(var(--s, 1)); transition: transform .55s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; font-family: var(--font); }
.wcard:hover { --lift: -6px; }
.wcard:not(.open):hover { transform: translateY(calc(var(--y, 0) + var(--lift, 0px))) scale(var(--s, 1)); }
.wcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wc-top { position: absolute; left: 20px; right: 20px; top: 16px; display: flex; align-items: center; gap: 12px; }
.wc-name { font-weight: 600; font-size: 17px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-last { font-size: 15px; font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; opacity: .9; }
.wc-face { position: absolute; inset: 0; opacity: 0; transition: opacity .35s .1s; pointer-events: none; }
.wcard.open .wc-face { opacity: 1; }
.wcard.open .wc-last { opacity: 0; }
.wc-chip { position: absolute; left: 22px; top: 40%; width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #E8D58A, #B89A45); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.wc-chip::after { content: ''; position: absolute; inset: 9px 14px; border: 1px solid rgba(0,0,0,.25); border-radius: 4px; }
.wc-num { position: absolute; left: 20px; bottom: 54px; font-size: 21px; font-weight: 500; letter-spacing: .12em; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.12); padding: 3px 8px; border-radius: 8px; }
.wc-holder { position: absolute; left: 20px; bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .12em; background: rgba(255,255,255,.12); padding: 3px 8px; border-radius: 6px; }
.wc-exp { position: absolute; right: 20px; bottom: 14px; text-align: right; font-size: 15px; font-weight: 600; background: rgba(255,255,255,.12); padding: 2px 8px; border-radius: 6px; }
.wc-exp small { display: block; font-size: 9px; letter-spacing: .14em; opacity: .8; }
.wc-back { position: absolute; inset: 0; border-radius: 18px; background: inherit; opacity: 0; transition: opacity .3s; pointer-events: none; }
.wc-back::before { content: ''; position: absolute; left: 0; right: 0; top: 22%; height: 18%; background: rgba(0,0,0,.65); }
.wc-cvv { position: absolute; right: 20px; top: 50%; background: rgba(255,255,255,.9); color: #111; font-weight: 600; letter-spacing: .1em; padding: 6px 12px; border-radius: 6px; font-size: 16px; }
.wc-cvv small { display: block; font-size: 9px; letter-spacing: .12em; color: #555; }
.wcard.flipped .wc-back { opacity: 1; }
.wcard.flipped .wc-face, .wcard.flipped .wc-top { opacity: 0; }
/* network marks: plain type, no logos */
.net { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.net-visa { font-style: italic; font-size: 20px; letter-spacing: .04em; }
.net-amex { background: #1F72CD; color: #fff; font-size: 9px; line-height: 1.05; padding: 4px 6px; border-radius: 4px; text-align: center; }
.net-mc { display: inline-flex; } .net-mc i { width: 22px; height: 22px; border-radius: 50%; background: #EB001B; } .net-mc i + i { background: #F79E1B; margin-left: -9px; mix-blend-mode: multiply; }
.net-diners { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #0079BE; background: #0079BE; }
.net-rupay { font-style: italic; font-size: 17px; }
.wallet-actions { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-radius: 16px; overflow: hidden; opacity: 0; transform: translateY(var(--ay, 0)) scale(.98); transition: opacity .3s, transform .5s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.wallet.has-open .wallet-actions { opacity: 1; pointer-events: auto; transform: translateY(var(--ay, 0)); }
.wallet-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--accent); cursor: pointer; }
.wallet-actions button + button { border-left: 1px solid var(--line); }
.wallet-actions svg { width: 16px; height: 16px; }

/* SSH */
.ssh-item { background: var(--surface); border-radius: 18px; padding: 16px 18px; }
.ssh-head { display: flex; align-items: center; gap: 12px; }
.ssh-head > div { flex: 1; min-width: 0; }
.ssh-head b { display: block; font-weight: 500; }
.ssh-head span { font-size: 13px; color: var(--faint); }
.ssh-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #2F4A5C; color: #fff; flex: none; }
.ssh-badge svg { width: 20px; height: 20px; }
.ssh-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 12px; }
.ssh-meta span { padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-family: var(--mono); }
.term { --tbg: #14191B; --tfg: #DCE3E0; --tacc: #8FD0A8; --tdim: #7E8C88; --tbar: #1C2326; border-radius: 16px; overflow: hidden; background: var(--tbg); color: var(--tfg); transition: background-color .35s, color .35s; }
.term[data-theme="light"] { --tbg: #FBFBF8; --tfg: #1F2A2E; --tacc: #2F6B4F; --tdim: #6B7773; --tbar: #EEF0EC; }
.term[data-theme="midnight"] { --tbg: #0A0D1C; --tfg: #E6E3FF; --tacc: #9D8CFF; --tdim: #7C79A6; --tbar: #12162B; }
.term[data-theme="linen"] { --tbg: #F3EDE3; --tfg: #2A2420; --tacc: #B8572E; --tdim: #7D7064; --tbar: #E8DFD1; }
.term-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 14px; background: var(--tbar); transition: background-color .35s; }
.term-title { font-family: var(--mono); font-size: 12px; color: var(--tdim); }
.term-themes { display: flex; gap: 2px; }
.term-themes button { border: 0; background: none; color: var(--tdim); font: inherit; font-size: 12px; padding: 5px 9px; min-height: 30px; border-radius: 99px; cursor: pointer; }
.term-themes button[aria-pressed="true"] { background: var(--tacc); color: var(--tbg); }
.term-body { margin: 0; padding: 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.55; height: 250px; overflow-y: auto; scrollbar-width: none; white-space: pre-wrap; word-break: break-all; }
.t-dim { color: var(--tdim); } .t-acc { color: var(--tacc); } .t-ok { color: var(--tacc); font-weight: 600; }
.t-caret { display: inline-block; width: .55em; height: 1.05em; background: var(--tfg); vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.term-keys { display: flex; gap: 4px; padding: 8px 10px; background: var(--tbar); overflow: hidden; transition: background-color .35s; }
.term-keys span { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; padding: 5px 0; border-radius: 6px; background: var(--tbg); color: var(--tdim); }

/* Notes */
.note { background: var(--surface); border-radius: 20px; overflow: hidden; }
.note-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.note-bar b { font-weight: 500; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 99px; }
.seg button { border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); padding: 6px 12px; min-height: 32px; border-radius: 99px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.note-preview, .note-source { padding: 18px 22px 22px; min-height: 300px; margin: 0; }
.note-preview h4 { margin: 4px 0 10px; font-weight: 600; font-size: 19px; }
.note-preview h4 + ul { margin-bottom: 18px; }
.note-preview p { color: var(--muted); font-size: 16px; }
.md-check { display: flex; flex-direction: column; gap: 8px; }
.md-check label { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 16px; }
.md-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.md-check input:checked + span { text-decoration: line-through; color: var(--faint); }
.note-source { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; }

/* Logins */
.login, .wifi { position: relative; background: var(--surface); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.login-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.login-head > div b { display: block; font-weight: 500; font-size: 18px; }
.login-head > div span { font-size: 13px; color: var(--faint); }
.login-head .otp-badge svg { width: 20px; height: 20px; }
.login-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px 14px; border: 0; border-radius: 14px; background: var(--surface-2); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.login-row > span { width: 110px; flex: none; font-size: 13px; color: var(--faint); }
.login-row > b { flex: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.login-row > svg:not(.ring) { width: 16px; height: 16px; color: var(--faint); }
.login-pw { cursor: default; }
.login-otp { color: var(--accent); font-size: 22px; font-weight: 400 !important; letter-spacing: .06em; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 99px; background: none; color: var(--faint); cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--surface); }
.icon-btn svg { width: 17px; height: 17px; }
.login-foot { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); margin-top: 6px; padding-left: 4px; }
.login-foot svg { width: 15px; height: 15px; }
.toast { position: absolute; left: 50%; bottom: -18px; transform: translate(-50%, 8px); background: var(--ink); color: var(--bg); font-size: 13px; padding: 8px 14px; border-radius: 99px; white-space: nowrap; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 520px) { .login-row > span { width: 78px; } }

/* Wi-Fi */
.qr { width: 220px; height: 220px; margin: 8px auto; padding: 14px; background: #fff; border-radius: 16px; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; }

/* Nav: Download dropdown (store links go in at launch) */
.nav-links { align-items: center; }
.dl { position: relative; }
.dl summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--muted); padding: 6px 0; }
.dl summary::-webkit-details-marker { display: none; }
.dl summary:hover, .dl[open] summary { color: var(--ink); }
.dl summary svg { width: 15px; height: 15px; transition: transform .25s; }
.dl[open] summary svg { transform: rotate(180deg); }
.dl-panel { position: absolute; right: -24px; top: calc(100% + 12px); width: 270px; background: var(--surface); border-radius: 18px; padding: 8px; box-shadow: var(--shadow); z-index: 50; animation: panel-in .25s ease both; }
.dl-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dl-row svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.dl-row b { font-weight: 500; flex: 1; }
.dl-row em { font-style: normal; font-size: 12px; color: var(--faint); }
a.dl-row:hover { background: var(--surface-2); }
.menu-dl { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.menu-dl > p { margin: 6px 14px 2px; font-size: 13px; font-weight: 600; color: var(--faint); }

/* Hero: text button and the three-step stepper */
.text-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 8px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 500; color: var(--accent); cursor: pointer; }
.text-btn svg { width: 22px; height: 22px; }
.text-btn:hover { color: var(--accent-hover); }
.cta-row { align-items: center; gap: 14px; }
.hero .free-plan { margin-top: 4px; }
.back-btn { min-height: 40px; font-size: 15px; padding: 0; margin-bottom: 4px; }
.back-btn svg { width: 18px; height: 18px; }
.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 520px; margin: 4px auto 0; }
.stepper button { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 6px 2px; border: 0; background: none; font: inherit; text-align: left; color: var(--faint); cursor: pointer; }
.stepper .bar { display: block; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.stepper .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s ease, opacity .3s; }
.stepper .lbl { font-size: 16px; font-weight: 500; transition: color .3s; }
.stepper em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--faint); margin-right: 6px; opacity: .8; }
.stepper button.on { color: var(--ink); }
.stepper button.on .bar i { width: 100%; }
.stepper button.done .bar i { width: 100%; opacity: .35; }
.stepper button:hover { color: var(--ink); }
@media (max-width: 520px) { .stepper { gap: 14px; } .stepper .lbl { font-size: 14px; } }
/* Phones: intro, then the vault and its steps, then the button and the small print */
@media (max-width: 900px) {
  .hero-copy { display: contents; }
  .hero > .hero-copy > .eyebrow, .hero > .hero-copy > h1, .hero > .hero-copy > .lead { order: 1; }
  .hero > .hero-visual { order: 2; }
  .hero > .hero-copy > .cta-row { order: 3; flex-direction: column; align-items: stretch; margin: 16px 0 4px; }
  .hero > .hero-copy > .cta-row .btn { min-height: 52px; }
  .hero > .hero-copy > .cta-row .text-btn { justify-content: center; }
  .hero > .hero-copy > .free-plan { order: 4; text-align: center; margin: 0 auto; }
  .hero { gap: 12px; }
  .hero h1, .hero .lead, .hero .eyebrow { margin-bottom: 0; }
  .hero .lead { margin-bottom: 4px; }
}
.menu-panel { min-width: 260px; }
/* While one card is open, the tucked cards show just their name line */
.wallet.has-open .wcard:not(.open) .wc-top { top: 7px; transition: top .4s; }
.wallet .wc-top { transition: top .4s; }

/* Get in touch: one section, two forms, a toggle between them */
.contact .anchor { position: relative; top: -84px; display: block; height: 0; }
.contact-switch { display: flex; width: max-content; max-width: 100%; margin: 0 auto 48px; padding: 5px; gap: 4px; border-radius: 999px; background: var(--surface); }
.contact-switch button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background-color .25s, color .25s; }
.contact-switch button svg { width: 17px; height: 17px; }
.contact-switch button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.contact-switch button:not([aria-selected="true"]):hover { color: var(--ink); }
.contact-pane[hidden] { display: none; }
.contact-pane.enter { animation: panel-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.contact .notify { padding: 0; }
.contact .enterprise { background: none; padding: 0; border-radius: 0; }
.contact .ent-card, .contact .notify-card { background: var(--surface); }
@media (max-width: 520px) {
  .contact-switch { width: 100%; }
  .contact-switch button { flex: 1; justify-content: center; padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 520px) { .wide-only { display: none; } }
/* Footer wordmark padlock: muted to sit with the soft wordmark, colour returns faintly on hover */
.wordmark .lock > img { filter: grayscale(1) sepia(.25) hue-rotate(175deg) saturate(1.4); opacity: .32; transition: opacity .4s, filter .4s; }
.wordmark:hover .lock > img { opacity: .55; }
.wordmark .lock-ring { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

/* iPhone Duo: the folded phone opens like a book into the inner screen, holds, and closes again.
   Paused at its first frame (open) until home.js marks it .run; still and open with reduced motion. */
.split.flip > figure { order: -1; }
@media (max-width: 860px) { .split.flip > figure { order: 0; } }
.duo { margin: 0; }
.duo-stage { perspective: 2400px; padding: 6px 0 10px; }
.duo-device { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; aspect-ratio: 2853 / 2007; transform-style: preserve-3d; filter: drop-shadow(0 26px 30px rgba(31, 42, 46, .22)); }
.duo-half, .duo-back { background: #1d1d1f url(duo/duo-open.webp) no-repeat; background-size: 200% 100%; background-origin: content-box; border: 7px solid #1d1d1f; }
.duo-left { height: 100%; border-right: 0; border-radius: 26px 0 0 26px; background-position: left center; backface-visibility: hidden; }
.duo-right { grid-column: 2; grid-row: 1; border-left: 0; border-radius: 0 26px 26px 0; background-position: right center; }
.duo-leaf { grid-column: 1; grid-row: 1; position: relative; transform-origin: right center; transform-style: preserve-3d; z-index: 1; }
/* While open and still, one whole screenshot covers the two halves so no seam shows at the hinge. */
.duo-full { grid-column: 1 / -1; grid-row: 1; z-index: 2; border: 7px solid #1d1d1f; border-radius: 26px; background: #1d1d1f url(duo/duo-open.webp) no-repeat center / 100% 100%; background-origin: content-box; pointer-events: none; transform: translateZ(1px); }
.duo-back { position: absolute; inset: 0; border-radius: 26px; background-image: url(duo/duo-folded.webp); background-size: cover; background-position: center; transform: rotateY(180deg); backface-visibility: hidden; }
.duo-device, .duo-leaf, .duo-right, .duo-full, .duo-cap-folded, .duo-cap-open { animation: 11s cubic-bezier(.6, 0, .3, 1) infinite paused; }
.duo-device { animation-name: duo-shift; }
.duo-leaf { animation-name: duo-leaf; }
.duo-right { animation-name: duo-corners; }
.duo-full { animation-name: duo-full; animation-timing-function: step-end; }
.duo-stage.run .duo-device, .duo-stage.run .duo-leaf, .duo-stage.run .duo-right, .duo-stage.run .duo-full,
.duo:has(.duo-stage.run) .duo-cap-folded, .duo:has(.duo-stage.run) .duo-cap-open { animation-play-state: running; }
@keyframes duo-leaf { 0%, 35% { transform: rotateY(0); } 48%, 75% { transform: rotateY(-180deg); } 88%, 100% { transform: rotateY(0); } }
@keyframes duo-full { 0% { opacity: 1; } 35% { opacity: 0; } 88% { opacity: 1; } }
/* Folded, the hinge-side corners round off so they don't peek out behind the outer screen. */
@keyframes duo-corners { 0%, 40% { border-radius: 0 26px 26px 0; } 46%, 77% { border-radius: 26px; } 83%, 100% { border-radius: 0 26px 26px 0; } }
/* Folded, the phone is the right half: slide it to the middle. */
@keyframes duo-shift { 0%, 35% { transform: translateX(0); } 48%, 75% { transform: translateX(-25%); } 88%, 100% { transform: translateX(0); } }
.duo-state { display: inline-grid; }
.duo-state > span { grid-area: 1 / 1; }
.duo-cap-folded { animation-name: duo-cap-folded; opacity: 0; }
.duo-cap-open { animation-name: duo-cap-open; }
@keyframes duo-cap-folded { 0%, 40% { opacity: 0; } 46%, 77% { opacity: 1; } 83%, 100% { opacity: 0; } }
@keyframes duo-cap-open { 0%, 40% { opacity: 1; } 46%, 77% { opacity: 0; } 83%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .duo-device, .duo-leaf, .duo-right, .duo-full, .duo-cap-folded, .duo-cap-open { animation: none; }
  #duoToggle { display: none; }
}
