/* VaultSpec Pass landing — cool zinc + Ember, product-led. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/landing/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/landing/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --raised: #f4f4f5;
  --chrome: #e4e4e7;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --line-hover: #a1a1aa;
  --nav-bg: rgba(244, 244, 245, .82);
  --dot: #d4d4d8;
  --on-accent: #ffffff;
  --device: #18181b;
  --selection: rgba(216, 58, 22, .18);
  --brand-shadow: rgba(150, 30, 20, .25);
  --brand-shadow-deep: rgba(150, 30, 20, .45);
  --text: #18181b;
  --muted: #52525b;
  --faint: #71717a;
  --accent-text: #c4341a;
  --success: #0e7651;
  --ember: #d83a16;
  --icon: #d0401c;
  --tint: rgba(216, 58, 22, .07);
  --tint-strong: rgba(216, 58, 22, .12);
  --tint-line: rgba(216, 58, 22, .22);
  --gradient: linear-gradient(100deg, #d83a16 0%, #d41f63 100%);
  --ink: #141417;
  --ink-raised: #1d1d21;
  --ink-line: rgba(255, 255, 255, .1);
  --ink-line-strong: rgba(255, 255, 255, .22);
  --ink-line-hover: rgba(255, 255, 255, .4);
  --ink-chip: rgba(255, 255, 255, .08);
  --ink-success-tint: rgba(52, 211, 153, .14);
  --ink-text: #f5f5f7;
  --ink-muted: #a1a1aa;
  --ink-code-key: #ff8a6a;
  --ink-code-string: #a7f3d0;
  --ink-success: #34d399;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, .06), 0 2px 6px rgba(24, 24, 27, .04);
  --shadow-md: 0 2px 4px rgba(24, 24, 27, .04), 0 12px 32px -12px rgba(24, 24, 27, .16);
  --shadow-lg: 0 4px 8px rgba(24, 24, 27, .04), 0 40px 90px -30px rgba(24, 24, 27, .28);

  --display: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--bg); accent-color: var(--ember); caret-color: var(--ember);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--selection); color: var(--text); }
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--accent-text); }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.lead { color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; line-height: 1.25; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, filter .2s;
}
.btn-primary { background: var(--gradient); color: var(--on-accent); box-shadow: 0 1px 2px var(--brand-shadow), 0 6px 16px -8px var(--brand-shadow-deep); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 2px 4px var(--brand-shadow), 0 12px 24px -10px var(--brand-shadow-deep); }
.btn-ghost { border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--line-hover); }
.btn-link {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 48px; padding: .7em .2em; font-weight: 600; font-size: .9375rem; color: var(--muted);
  transition: color .2s;
}
.btn-link:hover { color: var(--text); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; min-height: 64px; padding-block: 8px; }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(calc(-100% - 24px)); z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--surface); font-weight: 600; }
.skip:focus { transform: none; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: .875rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav .btn { min-height: 38px; padding: .45em 1.05em; font-size: .875rem; }

.menu { position: relative; display: none; }
.menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu[open] summary { background: var(--raised); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 6px;
  display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md);
}
.menu-panel a { padding: 10px 14px; border-radius: 10px; font-weight: 500; }
.menu-panel a:hover { background: var(--raised); }
@media (max-width: 860px) { .nav-links { display: none; } .menu { display: block; } }
@media (max-width: 480px) { .nav .btn-ghost { display: none; } }

/* Hero */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 0;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% 10% auto;
  height: min(70vh, 640px);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(216, 58, 22, .14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(212, 31, 99, .08), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.hero-copy { text-align: center; max-width: 820px; margin: 0 auto; }
.hero-brand {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em;
}
.hero-brand img {
  width: 56px; height: 56px;
  filter: drop-shadow(0 8px 20px var(--brand-shadow));
}
.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero .lead { margin: 20px auto 0; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin-top: 32px; }

.hero-stage {
  position: relative;
  margin: clamp(40px, 5vw, 56px) auto 0;
  width: 100%;
  max-width: none;
}
.hero-stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 1;
}
.hero-product {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-product img {
  width: 100%;
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
}
.hero-mobile { display: none; }
@media (max-width: 720px) {
  .hero-desktop { display: none; }
  .hero-mobile {
    display: block;
    width: min(300px, 78vw);
    margin: 0 auto;
    border-radius: 28px;
    padding: 8px;
    background: var(--device);
    box-shadow: 0 30px 60px -20px rgba(24, 24, 27, .4);
  }
  .hero-mobile img { border-radius: 22px; }
  .hero-stage::after { height: 18%; }
  .hero-product { padding: 0; }
}

/* Trust strip */
.trust { padding: clamp(48px, 6vw, 72px) 0 0; }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.trust-row span { display: inline-flex; align-items: center; gap: 10px; }
.trust-row span::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gradient);
  flex: none;
}

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: clamp(88px, 11vw, 136px) 0 0; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .security h2 {
  font-size: clamp(2.375rem, 5.2vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.section-note {
  margin-top: clamp(28px, 4vw, 40px);
  text-align: center;
  font-size: .90625rem;
  color: var(--faint);
}

/* Numbered feature rows */
.features { display: grid; gap: clamp(48px, 8vw, 88px); }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }
@media (max-width: 820px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-media { order: unset; }
}
.feature-num {
  display: block;
  font-family: var(--display);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.feature-copy h3 {
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.feature-copy p { color: var(--muted); font-size: 1.0625rem; max-width: 36ch; }
.feature-media {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.feature-media img { width: 100%; }

.passkey-demo {
  margin: 0;
  padding: 8px 22px;
  background: var(--raised);
}
.pk-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.pk-row + .pk-row { border-top: 1px solid var(--line); }
.pk-row > div { min-width: 0; flex: 1; }
.pk-row .key {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--tint-strong); color: var(--icon); flex: none;
}
.pk-row .key svg { width: 17px; height: 17px; }
.pk-row b { display: block; font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.pk-row small { display: block; color: var(--faint); font-size: .78125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-row .ok { flex: none; color: var(--success); font-size: .75rem; font-weight: 600; }

/* Security */
.sec-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step .n {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: .875rem;
  background: var(--gradient); color: var(--on-accent);
}
.step b { display: block; font-family: var(--display); font-size: 1.0625rem; margin-bottom: 2px; }
.step span { color: var(--muted); font-size: .90625rem; }

.cipher {
  border-radius: 24px; background: var(--ink); color: var(--ink-text); overflow: hidden;
  box-shadow: var(--shadow-lg); font-family: var(--mono); font-size: .8125rem;
}
.cipher-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--ink-line);
  color: var(--ink-muted); font-family: var(--font); font-size: .8125rem;
}
.cipher-head .tag { padding: 3px 9px; border-radius: 999px; font-size: .71875rem; font-weight: 600; }
.tag.you { background: var(--ink-success-tint); color: var(--ink-success); }
.tag.server { background: var(--ink-chip); color: var(--ink-muted); }
.cipher pre { margin: 0; padding: 18px; white-space: pre-wrap; word-break: break-all; line-height: 1.7; }
.k { color: var(--ink-code-key); } .s { color: var(--ink-code-string); } .d { color: var(--ink-muted); }
.cipher-arrow {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line);
  font-family: var(--font); font-size: .78125rem; color: var(--ink-muted); background: var(--ink-raised); text-align: center;
}
.cipher-arrow svg { width: 16px; height: 16px; color: var(--ink-code-key); flex: none; }

.algos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: clamp(40px, 5vw, 56px);
}
@media (max-width: 900px) { .algos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .algos { grid-template-columns: 1fr; } }
.algo {
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.algo code { font-family: var(--mono); font-size: .75rem; color: var(--accent-text); }
.algo b { display: block; font-family: var(--display); font-size: 1rem; margin-top: 8px; letter-spacing: -0.01em; }

/* Themes */
.theme-switch { display: flex; justify-content: center; margin-bottom: 28px; }
.seg {
  display: inline-flex; margin: 0; min-width: 0; padding: 4px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  padding: 8px 20px; border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.seg input:checked + label { background: var(--gradient); color: var(--on-accent); }
.seg input:focus-visible + label { outline: 2px solid var(--ember); outline-offset: 2px; }
.window {
  border-radius: 16px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: var(--chrome); border-bottom: 1px solid var(--line);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.window-bar .url {
  margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 8px;
  background: var(--surface); color: var(--muted); font-size: .78125rem;
}
.window-bar .url svg { width: 12px; height: 12px; color: var(--success); }
.window-bar .spacer { width: 49px; }
.theme-shots .dark { position: absolute; inset: 0; opacity: 0; }
.themes:has(#t-dark:checked) .theme-shots .dark { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .theme-shots img { transition: opacity .45s var(--ease); } }
@media (max-width: 720px) { .window-bar .url { display: none; } }

/* Platforms */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .platforms { grid-template-columns: 1fr; } }
.platform {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.platform .card-title {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.platform .card-title svg { width: 22px; height: 22px; flex: none; color: var(--icon); }
.platform h3 { font-size: 1.375rem; font-weight: 700; }
.platform p { color: var(--muted); font-size: .9375rem; }

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

/* Closing CTA — full-bleed accent band (Bitwarden-style) */
.cta {
  margin-top: clamp(88px, 11vw, 136px);
  padding: clamp(64px, 9vw, 112px) 0;
  text-align: center;
  color: var(--on-accent);
  background: var(--gradient);
}
.cta h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto;
}
.cta .lead { margin: 16px auto 0; max-width: 480px; color: rgba(255, 255, 255, .88); }
.cta .hero-actions { margin-top: 32px; }
.btn-on-accent {
  background: var(--surface);
  color: var(--ember);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 20px -8px rgba(0, 0, 0, .28);
}
.btn-on-accent:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .14), 0 14px 28px -10px rgba(0, 0, 0, .32);
}

footer { padding: clamp(72px, 9vw, 112px) 0 48px; color: var(--faint); font-size: .875rem; }
.foot {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.foot .brand { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { padding: 4px 0; }
.foot a:hover { color: var(--text); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
  .hero-copy > * { animation: fade-up .8s var(--ease) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes product-rise {
      from { transform: translateY(36px); opacity: .55; }
    }
    .hero-product {
      animation: product-rise auto ease-out backwards;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    @keyframes row-fade {
      from { opacity: 0; transform: translateY(20px); }
    }
    .feature-row {
      animation: row-fade auto ease-out both;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}
