/* PassAuth website. Colours from the logo: navy shield, signal blue, cyan highlight. */
/* IBM Plex (SIL Open Font License 1.1), served from this site: no third-party requests. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --navy: #082052;
  --navy-2: #0d2a63;
  --navy-line: #24407a;
  --on-navy: #ffffff;
  --on-navy-2: #b9c6dd;
  --cyan: #23d5f4;
  --ink: #0b1a3a;
  --ink-2: #3a4a68;
  --ink-3: #5a6a85;
  --paper: #f4f7fc;
  --surface: #ffffff;
  --line: #d6dfec;
  --blue: #0866ed;
  --blue-fill: #0866ed;   /* behind white text: 4.9:1 */
  --blue-ink: #0650c4;    /* links on paper */
  --soft: #e3eeff;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  /* type scale, ratio ~1.25 from 17px */
  --t-sm: 0.88rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.75rem, 3vw, 2.35rem);
  --t-xxl: clamp(2.5rem, 5.4vw, 3.9rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e7edf7; --ink-2: #b3c0d6; --ink-3: #8a9ab5;
    --paper: #0a1120; --surface: #111b2e; --line: #26344d;
    --blue: #3d8bff; --blue-ink: #8cbcff; --soft: #13284d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-md)/1.6 "IBM Plex Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
code, pre { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.9em; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--navy) 94%, transparent); backdrop-filter: blur(10px); color: var(--on-navy); border-bottom: 1px solid color-mix(in srgb, var(--navy-line) 60%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.brand img { height: 30px; width: auto; }
.brand b { color: #4aa3ff; font-weight: 600; }
.top nav { margin-left: auto; display: flex; gap: 26px; font-size: 0.95rem; }
.top nav a { color: var(--on-navy-2); text-decoration: none; padding: 12px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--on-navy); }

/* hero */
.hero { background: var(--navy); color: var(--on-navy); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 88px 0 104px; }
.hero h1 { font-size: var(--t-xxl); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 24px; font-weight: 600; max-width: 15ch; text-wrap: balance; }
.hero-copy > p { color: var(--on-navy-2); font-size: var(--t-lg); line-height: 1.55; max-width: 36ch; margin: 0 0 36px; }
.hero .fine { font-size: var(--t-sm); margin: 20px 0 0; color: var(--on-navy-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: var(--r-md); font-weight: 600; text-decoration: none; border: 1px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--blue-fill); color: #fff; }
.btn-primary:hover { background: #0650c4; }
.btn-line { border-color: #6f86b3; color: var(--on-navy); }
.btn-line:hover { border-color: var(--on-navy-2); }
.top a:focus-visible, .hero a:focus-visible, footer a:focus-visible { outline-color: var(--cyan); }

/* the pair: one login, as you see it and as the server stores it */
.pair { display: grid; gap: 0; max-width: 460px; justify-self: end; width: 100%; }
.pair figure { margin: 0; }
.pair figcaption { font-size: var(--t-sm); color: var(--on-navy-2); margin: 0 0 10px; }
.item { background: #fff; color: #0b1a3a; border-radius: var(--r-lg); padding: 22px 24px; box-shadow: 0 24px 60px rgb(0 8 30 / 0.45); }
.item-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #e4eaf3; }
.item-head b { display: block; font-size: 1.12rem; }
.item-head span:not(.avatar) { font-size: var(--t-sm); color: #5a6a85; }
.avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #e3eeff; color: #0866ed; font-weight: 600; }
.item dl { margin: 0; }
.item dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eef2f8; }
.item dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.item dt { color: #5a6a85; font-size: var(--t-sm); }
.item dd { margin: 0; font-weight: 600; }
.item .dots { letter-spacing: 0.08em; }
.item .code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 400; color: #0866ed; font-size: 1.2rem; letter-spacing: 0.06em; }
.seal { display: flex; align-items: center; gap: 10px; margin: 0; padding: 18px 0 18px 22px; color: var(--cyan); font-size: var(--t-sm); font-weight: 600; position: relative; }
.seal::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; border-left: 1px dashed color-mix(in srgb, var(--cyan) 55%, transparent); z-index: 0; }
.seal svg { width: 18px; height: 18px; flex: none; background: var(--navy); position: relative; z-index: 1; box-sizing: content-box; padding: 4px 0; }
.stored code { display: block; background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--r-lg); padding: 20px 24px; color: #8fb3e8; font-size: 0.84rem; line-height: 1.7; word-break: break-all; min-height: 8.6em; }

/* sections */
section { padding: 96px 0; }
section h2 { font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 14px; font-weight: 600; max-width: 26ch; text-wrap: balance; }
section .lead { color: var(--ink-2); font-size: var(--t-lg); line-height: 1.55; max-width: 58ch; margin: 0 0 48px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.more { margin: 40px 0 0; color: var(--ink-2); }
.more a { font-weight: 600; }

/* features */
.screen { margin: 0 auto 72px; max-width: 920px; }
.screen img { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: 0 24px 60px rgb(8 32 82 / 0.12); }
.screen figcaption { margin: 16px auto 0; color: var(--ink-3); font-size: var(--t-sm); max-width: 62ch; text-align: center; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; }
.features svg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 14px; }
.features h3 { margin: 0 0 6px; font-size: var(--t-lg); font-weight: 600; line-height: 1.3; }
.features p { margin: 0; color: var(--ink-2); }

/* security */
.ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ledger .col { padding: 28px 32px 32px; }
.ledger .hidden-col { background: var(--soft); }
.ledger .seen-col { border-left: 1px solid var(--line); }
.ledger h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: var(--t-md); font-weight: 600; }
.ledger h3 svg { width: 20px; height: 20px; flex: none; }
.hidden-col h3 { color: var(--blue-ink); }
.ledger ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ledger li { padding-left: 30px; position: relative; color: var(--ink-2); }
.ledger li::before { content: ""; position: absolute; left: 9px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.45; }
.crypto { margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; }
.crypto div { border-top: 2px solid var(--blue); padding-top: 16px; }
.crypto dt { font-weight: 600; margin-bottom: 6px; }
.crypto dd { margin: 0; color: var(--ink-2); }

/* self-host */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split .lead { margin-bottom: 32px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; color: var(--ink-2); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05em; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--blue-ink); font-weight: 600; font-size: var(--t-sm); }
.steps b { color: var(--ink); }
.terminal { margin: 0; background: var(--navy); color: #dbe6f7; border-radius: var(--r-lg); padding: 28px 30px; overflow-x: auto; line-height: 1.75; font-size: 0.86rem; box-shadow: 0 24px 60px rgb(8 32 82 / 0.18); }
.terminal code { font-size: inherit; }
.terminal .c { color: #7f95bb; }
.terminal:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
:not(pre) > code { background: var(--soft); padding: 1px 6px; border-radius: 5px; }

/* apps */
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.app { margin: 0; }
.app .frame { height: 400px; display: flex; align-items: flex-end; justify-content: center; padding: 28px 28px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.app .frame img { max-height: 100%; width: auto; border-radius: 14px 14px 0 0; box-shadow: 0 16px 40px rgb(8 32 82 / 0.16); }
/* the desktop window is wide: show its left part, running off the card's right edge */
.app-wide .frame { justify-content: flex-start; padding: 40px 0 0 24px; }
.app-wide .frame img { width: 150%; max-width: none; border-radius: 12px 0 0 0; }
.app h3 { margin: 20px 0 4px; font-size: var(--t-lg); font-weight: 600; }
.app p { margin: 0; color: var(--ink-2); }
.app .state { display: block; margin-top: 6px; color: var(--ink-3); font-size: var(--t-sm); }
.downloads { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-weight: 600; }

/* documents (privacy, support) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 740px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 600; }
.doc .updated { color: var(--ink-3); margin: 0 0 40px; font-size: var(--t-lg); }
.doc h2 { font-size: var(--t-lg); margin: 44px 0 10px; font-weight: 600; padding-top: 24px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }

/* footer */
footer { background: var(--navy); color: var(--on-navy-2); padding: 44px 0; font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer .brand { font-size: 1rem; }
footer .brand img { height: 25px; }
footer .grow { flex: 1; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
footer a { color: #d3ddee; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1099px) {
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .app .frame { height: 440px; }
}
@media (max-width: 1099px) {
  .crypto { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
}
@media (max-width: 920px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero .wrap { padding: 56px 0 72px; }
  .pair { justify-self: start; }
  .features, .crypto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav { gap: 18px; }
  section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .features, .crypto, .ledger { grid-template-columns: minmax(0, 1fr); }
  .apps { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .ledger .seen-col { border-left: 0; border-top: 1px solid var(--line); }
  .ledger .col { padding: 24px; }
  .top nav a.opt { display: none; }
  .top nav { gap: 16px; font-size: 0.9rem; }
  .terminal { padding: 20px; font-size: 0.8rem; }
  .app .frame { height: 380px; }
}
