/* ==========================================================================
   NexKey — nexkey.app
   Implements the "NexKey" design: a single dark surface (#060B14) with
   cards one step lighter, a cyan accent, and Plus Jakarta Sans throughout.

   Every component paints itself from the custom properties below. The two
   band modifiers only re-declare tokens (deeper for `.band--dark`, a raised
   panel for `.band--surface`), so no component needs a per-band variant.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted, latin subset, woff2 only)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/plus-jakarta-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/plus-jakarta-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/plus-jakarta-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/plus-jakarta-sans-700.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces, darkest to lightest */
  --color-bg: #060b14;
  --color-bg-deep: #03070e;
  --color-bg-secondary: #0a1322;
  --color-surface: #0d192b;
  --color-surface-raised: #101f34;
  --color-surface-sunken: #0a1322;

  /* Text */
  --color-text: #f5f7fa;
  --color-text-soft: #c5cfdc;
  --color-text-muted: #9ba8ba;
  --color-text-dim: #6b7a8f;

  /* Lines */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.12);
  --color-border-hover: rgba(255, 255, 255, 0.18);

  /* Accent */
  --color-accent: #18d4e5;
  --color-accent-hover: #45dfec;
  --color-accent-soft: #45dfec;
  --color-accent-wash: rgba(24, 212, 229, 0.1);
  --color-accent-selected: rgba(24, 212, 229, 0.12);
  --color-accent-line: rgba(24, 212, 229, 0.3);

  /* Brand constants */
  --color-primary: #18d4e5;
  --color-secondary: #2997ff;
  --brand-ink: #060b14;
  --brand-gradient: linear-gradient(135deg, var(--color-primary), var(--color-secondary));

  /* Primary button */
  --btn-primary-bg: #18d4e5;
  --btn-primary-bg-hover: #45dfec;
  --btn-primary-fg: #060b14;

  /* Secondary button */
  --btn-secondary-bg: #0d192b;
  --btn-secondary-border: rgba(255, 255, 255, 0.1);
  --btn-secondary-border-hover: rgba(255, 255, 255, 0.25);
  --btn-secondary-fg: #f5f7fa;

  /* Countdown ring */
  --ring-fill: #18d4e5;
  --ring-track: rgba(255, 255, 255, 0.12);

  /* Feedback */
  --color-success: #35c88a;
  --color-warning: #f5b94c;
  --color-danger: #ff7a6b;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-btn: 9px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
  --shadow-window: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-device: 0 40px 90px rgba(0, 0, 0, 0.6);
  --shadow-popup: 0 24px 60px rgba(0, 0, 0, 0.55);

  /* Rhythm */
  --space-section: 96px;
  --space-section-sm: 64px;
  --container: 1240px;
  --container-narrow: 820px;
  --gutter: 24px;

  /* Type */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --speed: 150ms;
}

/* --------------------------------------------------------------------------
   3. Bands — the same token names, shifted one step
   -------------------------------------------------------------------------- */

/* Deeper than the page: the security section and closing bands. */
.band--dark {
  --color-bg: #03070e;
  --color-bg-secondary: #0a1322;
  --color-surface: #0a1322;
  --color-surface-raised: #0d192b;
  --color-border: rgba(255, 255, 255, 0.06);
  background: var(--color-bg);
  color: var(--color-text);
}

/* A raised panel band, one step lighter than the page. */
.band--surface {
  --color-bg: #0a1322;
  --color-surface: #0d192b;
  --color-surface-raised: #101f34;
  background: var(--color-bg);
}

.band--ink {
  --color-bg: #060b14;
  background: var(--color-bg);
}

/* --------------------------------------------------------------------------
   4. Reset and base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* Keeps anchored headings clear of the sticky header. */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  overflow-x: hidden;
}

/* Locks background scrolling while the mobile navigation is open. */
body.is-nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

a:hover {
  color: var(--color-accent-hover);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(24, 212, 229, 0.3);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  transform: translateY(-120%);
  padding: 12px 20px;
  background: var(--color-accent);
  color: var(--brand-ink);
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
  transition: transform var(--speed) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--brand-ink);
}

/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.band {
  position: relative;
}

.band--edge {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

.section--tight {
  padding-block: var(--space-section-sm);
}

/* Homepage sections share the bottom rhythm of the design and no top
   padding, so the composition reads as one continuous column. */
.section--flow {
  padding-block: 0 var(--space-section);
}

/* Decorative ambient wash behind page heroes. */
.aura {
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  max-width: 170vw;
  height: 700px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(24, 212, 229, 0.12),
    rgba(41, 151, 255, 0.05) 45%,
    rgba(6, 11, 20, 0) 72%
  );
}

.shell {
  position: relative;
  overflow: hidden;
}

.shell > header,
.shell > main,
.shell > footer,
.section > .container {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   6. Section headings
   -------------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}

.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
}

.section-title .accent,
.accent {
  color: var(--color-accent);
}

.section-lede {
  margin-top: 12px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.section-head {
  margin-bottom: 32px;
  max-width: 640px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .section-lede {
  margin-inline: auto;
}

/* Heading with a short lede beside it, bottom-aligned. */
.section-head--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
  max-width: none;
}

.section-head--row .section-lede {
  margin-top: 0;
  max-width: 460px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease),
    color var(--speed) var(--ease);
}

.btn--primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

.btn--primary:hover {
  background: var(--btn-primary-bg-hover);
  border-color: var(--btn-primary-bg-hover);
  color: var(--btn-primary-fg);
}

.btn--secondary {
  background: var(--btn-secondary-bg);
  border-color: var(--btn-secondary-border);
  color: var(--btn-secondary-fg);
  font-weight: 500;
}

.btn--secondary:hover {
  border-color: var(--btn-secondary-border-hover);
  color: var(--btn-secondary-fg);
}

.btn--small {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.btn--pill {
  border-radius: var(--radius-pill);
}

.btn--block {
  width: 100%;
}

.btn[aria-disabled='true'],
.btn:disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border);
  color: var(--color-text-dim);
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Inline text link with a trailing arrow. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-accent);
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform var(--speed) var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   8. Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  background: rgba(6, 11, 20, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 200ms var(--ease);
}

/* The hairline appears once the page scrolls under the header. Without JS
   it is simply always present. */
.site-header.is-scrolled,
.no-js .site-header {
  border-bottom-color: var(--color-border);
}

.site-nav {
  max-width: var(--container);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--color-text);
}

/* The mark: a gradient tile carrying the key glyph. */
.brand__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--brand-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-ink);
}

.brand__mark svg {
  width: 16px;
  height: 16px;
}

.brand__mark--sm {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.brand__mark--sm svg {
  width: 14px;
  height: 14px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.site-nav__link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav__link[aria-current='page'] {
  color: var(--color-text);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav__signin {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.site-nav__signin:hover {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__close {
  display: block;
}

.mobile-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  padding: 12px var(--gutter) 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: 500;
}

.mobile-nav__link:hover,
.mobile-nav__link[aria-current='page'] {
  color: var(--color-text);
}

.mobile-nav__actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: 56px 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px 24px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 16px;
}

.site-footer__brand:hover {
  color: var(--color-text);
}

.site-footer__tagline {
  margin-top: 12px;
  max-width: 220px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer__heading {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.site-footer__nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer__nav a {
  color: var(--color-text-muted);
  font-size: 14px;
}

.site-footer__nav a:hover {
  color: var(--color-text);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
}

.badge-soon {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   10. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  padding: 72px var(--gutter) 48px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 520px;
}

.hero__title {
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.hero__actions {
  margin-top: 6px;
}

.hero__note {
  font-size: 14px;
  color: var(--color-text-muted);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.pill-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

/* Hero scene ------------------------------------------------------------
   A fixed 724x560 composition (Mac window, menu bar popup, iPhone) that is
   scaled as a unit to fit its column. app.js measures the column and sets
   --hero-scale; the media queries below are the no-JS fallback. */

.hero-scene {
  position: relative;
  width: 100%;
  max-width: 724px;
  margin-left: auto;
  aspect-ratio: 724 / 560;
  min-width: 0;
}

.hero-scene__stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 724px;
  height: 560px;
  transform-origin: top left;
  transform: scale(var(--hero-scale, 1));
}

/* Scoped under the stage so these sizes beat the generic .mac/.iphone
   width rules declared later. */
.hero-scene__stage .hero-scene__mac {
  position: absolute;
  left: 0;
  top: 240px;
  width: 470px;
  height: 320px;
}

.hero-scene__stage .hero-scene__popup {
  position: absolute;
  left: 210px;
  top: 0;
  width: 232px;
}

.hero-scene__stage .hero-scene__phone {
  position: absolute;
  left: 480px;
  top: 40px;
  width: 244px;
  height: 520px;
}

/* --------------------------------------------------------------------------
   11. Product mockups
   All account names, addresses and six-digit values are fixed sample text
   in the markup. Nothing is computed; the rings are a CSS animation only.
   -------------------------------------------------------------------------- */

.mockups {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Shared pieces ----------------------------------------------------------- */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
}

.avatar--c { background: #2e4a8a; }
.avatar--g { background: #3a3f4b; }
.avatar--a { background: #7a4b1e; }

.otp {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text);
  white-space: nowrap;
}

/* Countdown ring: an SVG stroke whose dash offset sweeps over 30 seconds. */
.ring {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.ring__track {
  stroke: var(--ring-track);
}

.ring__fill {
  stroke: var(--ring-fill);
  stroke-dasharray: 50.27;
  stroke-dashoffset: 20;
  animation: nk-ring 30s linear infinite;
}

/* Stagger so the mockups look live rather than synchronised. */
.ring--delay-1 .ring__fill { animation-delay: -8s; }
.ring--delay-2 .ring__fill { animation-delay: -17s; }

.secs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* macOS window ----------------------------------------------------------- */

.mac {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d192b;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  font-size: 12px;
}

.mac__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a1322;
  flex-shrink: 0;
}

.mac__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mac__dot:nth-child(1) { background: #ff5f57; }
.mac__dot:nth-child(2) { background: #febc2e; }
.mac__dot:nth-child(3) { background: #28c840; }

.mac__title {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Balances the title in the centre. */
.mac__title + .mac__spacer {
  margin-left: auto;
}

.mac__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.mac__sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  width: 130px;
  padding: 12px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a1322;
}

.mac__sidebar li {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--color-text-muted);
}

.mac__sidebar li[aria-current='true'] {
  background: var(--color-accent-selected);
  color: var(--color-text);
  font-weight: 500;
}

.mac__sidebar-heading {
  padding: 14px 10px 4px;
  color: var(--color-text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mac__sidebar-heading + li ~ .mac__sidebar-end {
  margin-top: auto;
}

.mac__sidebar-end {
  margin-top: auto;
}

.mac__main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
}

.mac__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mac__heading-title {
  font-size: 14px;
  font-weight: 600;
}

.acct {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #101f34;
}

.acct__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.acct__issuer {
  font-size: 13px;
  font-weight: 500;
}

.acct__login {
  font-size: 11px;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct .otp {
  margin-left: auto;
  font-size: 18px;
}

.acct__action {
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.acct__action--accent {
  color: var(--color-accent);
}

/* Larger variant used in the showcase panel. */
.mac--lg {
  max-width: 820px;
  font-size: 13px;
}

.mac--lg .mac__bar {
  height: 44px;
  padding: 0 16px;
}

.mac--lg .mac__dot {
  width: 12px;
  height: 12px;
}

.mac--lg .mac__title {
  font-size: 13px;
}

.mac--lg .mac__body {
  min-height: 420px;
}

.mac--lg .mac__sidebar {
  width: 190px;
  padding: 14px 10px;
}

.mac--lg .mac__sidebar li {
  padding: 7px 12px;
}

.mac--lg .mac__sidebar-heading {
  padding: 16px 12px 4px;
}

.mac--lg .mac__main {
  gap: 8px;
  padding: 22px 24px;
}

.mac--lg .mac__heading {
  margin-bottom: 8px;
}

.mac--lg .mac__heading-title {
  font-size: 16px;
}

.mac--lg .secs {
  font-size: 12px;
}

.mac--lg .acct {
  gap: 14px;
  padding: 12px 14px;
}

.mac--lg .avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
}

.mac--lg .acct__issuer {
  font-size: 14px;
}

.mac--lg .acct__login {
  font-size: 12px;
}

.mac--lg .acct .otp {
  font-size: 22px;
  letter-spacing: 0.1em;
}

.mac__footnote {
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-dim);
}

/* Trusted device rows inside the Mac window. */
.device-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #0d192b;
  color: var(--color-text-muted);
}

.device-icon svg {
  width: 16px;
  height: 16px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 12px;
  color: var(--color-success);
  white-space: nowrap;
}

.status-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-dot--this { color: var(--color-accent); }
.status-dot--pending { color: var(--color-warning); }

/* Menu bar popup --------------------------------------------------------- */

.popup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #101f34;
  box-shadow: var(--shadow-popup);
  font-size: 12px;
}

.popup__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 8px;
}

.popup__title {
  font-size: 13px;
  font-weight: 600;
}

.popup__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--color-text);
  transition: background var(--speed) var(--ease);
}

.popup__item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.popup__item .otp {
  letter-spacing: 0.06em;
}

.popup__divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--color-border);
}

.popup__action {
  padding: 6px 8px;
  color: var(--color-text-muted);
}

.popup--lg {
  width: 260px;
  max-width: 100%;
  font-size: 13px;
}

.popup--lg .popup__head {
  padding: 6px 10px 10px;
}

.popup--lg .popup__title {
  font-size: 14px;
}

.popup--lg .popup__item {
  padding: 9px 10px;
  border-radius: 7px;
}

.popup--lg .popup__item .otp {
  font-size: 15px;
  letter-spacing: 0.08em;
}

.popup--lg .popup__action {
  padding: 8px 10px;
}

/* The menu bar strip the popup hangs from. */
.menubar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
}

.menubar__strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
  height: 28px;
  padding: 0 14px;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--color-border);
  background: rgba(16, 31, 52, 0.9);
  font-size: 12px;
  color: var(--color-text-muted);
}

.menubar__app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
}

.menubar__app svg {
  width: 12px;
  height: 12px;
}

.menubar .popup {
  margin-top: 6px;
}

/* iPhone ----------------------------------------------------------------- */

.iphone {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 42px;
  border: 7px solid #1b2638;
  background: #060b14;
  box-shadow: var(--shadow-device);
  overflow: hidden;
  position: relative;
}

.iphone__status {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px 0;
  font-size: 12px;
  font-weight: 600;
}

.iphone__island {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 70px;
  height: 20px;
  border-radius: 12px;
  background: #000;
  transform: translateX(-50%);
}

.iphone__screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 16px 0;
}

.iphone__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.iphone__brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.iphone__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #101f34;
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1;
}

.iphone__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #101f34;
  font-size: 13px;
  color: var(--color-text-dim);
}

.iphone__search svg {
  width: 14px;
  height: 14px;
}

.otp-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0d192b;
}

.otp-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.otp-card__head .avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.otp-card__issuer {
  font-size: 13px;
  font-weight: 600;
}

.otp-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.otp-card .otp {
  font-size: 26px;
  letter-spacing: 0.1em;
}

/* Showcase variant: a wider phone with issuer and code stacked. */
.iphone--lg {
  width: 280px;
  max-width: 100%;
  border-radius: 44px;
  padding: 18px 16px 24px;
}

.iphone--lg .iphone__screen {
  gap: 14px;
  padding: 0;
}

.iphone--lg .iphone__head {
  padding-top: 8px;
}

.iphone--lg .iphone__brand {
  font-size: 24px;
}

.iphone--lg .iphone__search {
  padding: 10px 12px;
}

.iphone--lg .otp-card {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.iphone--lg .otp-card__head .avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 12px;
}

.iphone--lg .otp-card__issuer {
  font-size: 14px;
}

.iphone--lg .otp-card .otp {
  font-size: 22px;
  line-height: 1.2;
}

.iphone--lg .ring {
  width: 18px;
  height: 18px;
}

.iphone__cta {
  margin-top: 6px;
  padding: 12px;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--brand-ink);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. Compatibility strip
   -------------------------------------------------------------------------- */

.compat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 22px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.compat__label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.compat__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: var(--color-text-dim);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.compat__note {
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   13. Cards and grids
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.card--interactive:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--color-accent-wash);
  color: var(--color-accent);
}

.card__icon svg {
  width: 18px;
  height: 18px;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
}

.card__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Feature grid: hairline-separated cells on a bordered panel. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-border);
  overflow: hidden;
}

.feature-tile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--color-bg);
  transition: background var(--speed) var(--ease);
}

.feature-tile:hover {
  background: var(--color-bg-secondary);
}

.feature-tile__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.feature-tile__icon svg {
  width: 20px;
  height: 20px;
}

.feature-tile__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-tile__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.feature-tile__note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Chips ------------------------------------------------------------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-soft);
}

.chip--mono {
  font-family: var(--font-mono);
}

.chip--link:hover {
  border-color: var(--color-accent-line);
  color: var(--color-accent);
}

/* Check-marked pill, as in the sync section. */
.chip--check svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
}

/* --------------------------------------------------------------------------
   14. Product showcase tabs
   -------------------------------------------------------------------------- */

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-self: flex-start;
  padding: 4px;
  margin-bottom: 28px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.tabs__btn {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.tabs__btn:hover {
  color: var(--color-text);
}

.tabs__btn[aria-selected='true'] {
  background: var(--color-surface-raised);
  color: var(--color-text);
}

/* Without JS every panel is visible in sequence; the script collapses them
   to one. The panel frame is shared so the switch never shifts layout. */
.tabpanel {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: 560px;
  padding: 40px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  overflow: hidden;
}

.tabpanel + .tabpanel {
  margin-top: 16px;
}

.tabpanel[hidden] {
  display: none;
}

.tabpanel::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: radial-gradient(60% 80% at 50% 100%, rgba(24, 212, 229, 0.08), transparent 70%);
  pointer-events: none;
}

.showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.showcase__caption {
  max-width: 520px;
  text-align: center;
  font-size: 15px;
  color: var(--color-text-muted);
}

/* Copy beside a mockup on inner pages. */
.check-list {
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text-soft);
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  background-color: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* --------------------------------------------------------------------------
   15. Cross-device sync flow
   -------------------------------------------------------------------------- */

.sync-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.sync-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}

.sync-flow > li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-node {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 190px;
  min-height: 118px;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.sync-node--vault {
  background: var(--color-surface-raised);
  border-color: rgba(255, 255, 255, 0.14);
}

.sync-node--vault .sync-node__icon {
  color: var(--color-text-muted);
}

.sync-node--crypto {
  border-color: rgba(53, 200, 138, 0.35);
}

.sync-node--crypto .sync-node__icon {
  color: var(--color-success);
}

.sync-node__icon {
  color: var(--color-text);
}

.sync-node__icon svg {
  width: 22px;
  height: 22px;
}

.sync-node__label {
  font-size: 15px;
  font-weight: 600;
}

.sync-node__note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.sync-flow__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-dim);
}

.sync-callout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   16. Security architecture panel
   -------------------------------------------------------------------------- */

.security-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.security-list {
  display: grid;
  gap: 14px;
}

.security-list__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.security-list__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  background: rgba(53, 200, 138, 0.12);
  color: var(--color-success);
}

.security-list__mark svg {
  width: 12px;
  height: 12px;
}

.security-list__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.security-list__item h3 {
  font-size: 15px;
  font-weight: 600;
}

.security-list__item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.security-list__item .chip-row {
  margin-top: 8px;
}

.security-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.security-copy .section-head {
  margin-bottom: 0;
}

.security-copy .link-arrow {
  align-self: flex-start;
}

/* The "architecture.txt" panel: a monospace tree with the trust boundary
   drawn as a dashed rule. */
.arch {
  margin-top: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-secondary);
  overflow: hidden;
}

.arch__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
}

.arch__body {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--color-text-soft);
  white-space: pre;
  overflow-x: auto;
}

.arch__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.arch__node {
  color: var(--color-text);
  font-weight: 600;
}

.arch__tree {
  color: var(--color-text-dim);
}

.arch__tag {
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--color-border-strong);
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.arch__tag--device {
  border-color: rgba(53, 200, 138, 0.3);
  color: var(--color-success);
}

.arch__gap {
  height: 12px;
}

.arch__boundary {
  position: relative;
  margin: 6px 0 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.arch__boundary span {
  position: absolute;
  right: 0;
  top: -9px;
  padding: 0 6px;
  background: var(--color-bg-secondary);
  font-size: 10px;
  line-height: 1.6;
  color: var(--color-text-dim);
}

/* --------------------------------------------------------------------------
   17. Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-strong);
}

.step__number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
}

.step__title {
  font-size: 19px;
  font-weight: 600;
}

.step__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   18. Standards, platforms, privacy, roadmap
   -------------------------------------------------------------------------- */

.standard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 200ms var(--ease);
}

.standard:hover {
  border-color: var(--color-border-hover);
}

.standard__ref {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
}

.standard__name {
  font-size: 18px;
  font-weight: 600;
}

.standard__body {
  font-size: 13px;
  color: var(--color-text-muted);
}

.standard__link {
  margin-top: 4px;
  font-size: 13px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.platform-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.platform-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.platform-card__title {
  font-size: 22px;
  font-weight: 600;
}

.platform-card__badge {
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border-strong);
  font-size: 12px;
  color: var(--color-warning);
  white-space: nowrap;
}

.platform-card__badge--available {
  color: var(--color-success);
}

.platform-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.platform-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text-soft);
}

.platform-card__list svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.platform-card__reqs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-dim);
}

.platform-card__cta {
  margin-top: auto;
  min-height: 44px;
}

/* Privacy panel with the "no" list. */
.privacy-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.privacy-panel .section-title {
  max-width: 600px;
  font-size: clamp(26px, 3vw, 36px);
}

.privacy-panel__note {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.tick-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 24px;
}

.tick-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.tick-list__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
}

.tick-list__mark svg {
  width: 14px;
  height: 14px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px;
  align-items: center;
}

.panel {
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.roadmap__stage {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.roadmap__items {
  display: grid;
  gap: 10px;
}

.roadmap__items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text-soft);
}

.tag {
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border-strong);
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.tag--now {
  color: var(--color-success);
}

.tag--planned {
  color: var(--color-warning);
}

/* --------------------------------------------------------------------------
   19. Closing call to action
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 56px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  text-align: center;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  width: 420px;
  height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(24, 212, 229, 0.14), transparent);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--brand-gradient);
  box-shadow: 0 12px 32px rgba(24, 212, 229, 0.25);
  color: var(--brand-ink);
}

.cta__mark svg {
  width: 32px;
  height: 32px;
}

.cta__title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
}

.cta__lede {
  font-size: 17px;
  color: var(--color-text-muted);
}

.cta .btn-row {
  justify-content: center;
  margin-top: 4px;
}

.cta__platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  color: var(--color-text-dim);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   20. Inner page header
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding-block: 72px 48px;
}

.page-hero__title {
  max-width: 820px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.page-hero__lede {
  margin-top: 20px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.page-hero__actions {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   21. Download page
   -------------------------------------------------------------------------- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.download-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

/* Highlights the visitor's own OS. Detection is a hint only: every platform
   stays listed and nothing is ever redirected. */
.download-card.is-detected {
  border-color: var(--color-accent-line);
}

.download-card__icon {
  color: var(--color-accent);
}

.download-card__title {
  font-size: 22px;
}

.download-card__meta {
  display: grid;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-text-dim);
}

.download-card__meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.download-card__meta dt {
  flex-shrink: 0;
}

.download-card__meta dd {
  margin: 0;
  text-align: right;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.download-card__cta {
  margin-top: auto;
}

.detected-note {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-accent);
}

.detected-note svg {
  width: 16px;
  height: 16px;
}

.is-detected .detected-note {
  display: flex;
}

.checksum {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-sunken);
}

.checksum__label {
  margin-bottom: 6px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.checksum__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.copy-btn {
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--color-accent-line);
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   22. Support: search, FAQ
   -------------------------------------------------------------------------- */

.faq-search {
  max-width: 520px;
  margin-bottom: 36px;
}

.faq-search__input,
.field__input,
.field__textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 15px;
}

.faq-search__input::placeholder,
.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--color-text-dim);
}

.faq-search__input:focus,
.field__input:focus,
.field__textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: transparent;
}

.faq-group {
  margin-bottom: 36px;
}

.faq-group[hidden] {
  display: none;
}

.faq-group__title {
  margin-bottom: 16px;
  font-size: 20px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

/* <details>/<summary> gives a working accordion with zero JavaScript. */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color var(--speed) var(--ease);
}

.faq-item[hidden] {
  display: none;
}

.faq-item[open],
.faq-item:hover {
  border-color: var(--color-border-hover);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--color-text-dim);
  border-bottom: 1.6px solid var(--color-text-dim);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--speed) var(--ease);
}

.faq-item[open] .faq-item__q::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq-item__a {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.faq-empty {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border-strong);
  color: var(--color-text-dim);
  font-size: 14.5px;
  text-align: center;
}

.faq-empty[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   23. Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 20px;
  max-width: 620px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.field__hint {
  font-size: 12.5px;
  color: var(--color-text-dim);
}

.field__textarea {
  min-height: 160px;
  resize: vertical;
}

.field__error {
  font-size: 13px;
  color: var(--color-danger);
}

.field--invalid .field__input,
.field--invalid .field__textarea {
  border-color: var(--color-danger);
}

/* Honeypot: kept out of the accessibility tree and tab order via markup, and
   positioned off-screen rather than display:none, which bots detect. */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  font-size: 14.5px;
}

.alert--success {
  border-color: rgba(53, 200, 138, 0.45);
  background: rgba(53, 200, 138, 0.08);
  color: var(--color-success);
}

.alert--error {
  border-color: rgba(255, 122, 107, 0.45);
  background: rgba(255, 122, 107, 0.08);
  color: var(--color-danger);
}

/* --------------------------------------------------------------------------
   24. Legal / Markdown prose
   -------------------------------------------------------------------------- */

.legal {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.legal__toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 9px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.legal__toc-title {
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.legal__toc a {
  color: var(--color-text-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.legal__toc a:hover {
  color: var(--color-text);
}

.legal__updated {
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-text-dim);
}

.prose {
  max-width: 72ch;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.prose h2 {
  margin: 44px 0 16px;
  font-size: 24px;
  color: var(--color-text);
  scroll-margin-top: 92px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 30px 0 12px;
  font-size: 18px;
  color: var(--color-text);
  scroll-margin-top: 92px;
}

.prose p {
  margin-bottom: 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 9px;
}

.prose strong {
  color: var(--color-text);
  font-weight: 600;
}

.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--color-surface-raised);
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--color-accent);
}

.prose blockquote {
  margin: 0 0 18px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--color-accent-line);
  color: var(--color-text);
}

.prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose table {
  width: 100%;
  margin-bottom: 18px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--color-border-strong);
  text-align: left;
}

.prose th {
  background: var(--color-surface);
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   25. Error pages
   -------------------------------------------------------------------------- */

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}

.error-page__code {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--color-accent);
}

.error-page__title {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 44px);
}

.error-page__text {
  max-width: 460px;
  margin: 0 auto 30px;
  font-size: 16.5px;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   26. Animation
   -------------------------------------------------------------------------- */

@keyframes nk-ring {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 50.27; }
}

/* Scroll reveal. Content is visible by default and only hidden once JS has
   confirmed it will observe it, so no-JS visitors never see blank space. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   27. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .legal {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal__toc {
    position: static;
  }
}

@media (max-width: 900px) {
  :root {
    --space-section: 72px;
    --space-section-sm: 48px;
  }

  .site-nav__links,
  .site-nav__signin {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    gap: 40px;
  }

  .hero-scene {
    margin-left: 0;
  }

  .security-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .arch {
    margin-top: 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    gap: 32px;
  }
}

/* No-JS fallback for the hero scene; app.js replaces these with an exact
   measurement. */
@media (max-width: 760px) {
  .hero-scene { --hero-scale: 0.9; }
}

@media (max-width: 700px) {
  .mac__sidebar {
    display: none;
  }

  .mac--lg .mac__body {
    min-height: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero-scene { --hero-scale: 0.85; }

  .tabpanel {
    min-height: 0;
    padding: 28px 16px;
  }

  .privacy-panel {
    padding: 32px 24px;
  }
}

@media (max-width: 620px) {
  .hero-scene { --hero-scale: 0.75; }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }

  .hero-scene { --hero-scale: 0.66; }

  .compat {
    justify-content: flex-start;
  }

  .compat__list {
    gap: 8px 18px;
    font-size: 14px;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .acct__action {
    display: none;
  }

  .sync-flow > li {
    width: 100%;
    flex-direction: column;
  }

  .sync-node {
    width: 100%;
  }

  .sync-flow__arrow {
    transform: rotate(90deg);
  }

  .panel,
  .cta {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .hero-scene { --hero-scale: 0.58; }
}

/* Narrowest supported viewport (iPhone SE and similar). */
@media (max-width: 380px) {
  :root {
    --gutter: 16px;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero-scene { --hero-scale: 0.46; }

  .feature-grid,
  .grid,
  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   28. User preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  /* Reveal must never leave content permanently invisible. */
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  /* Hold the countdown rings at a fixed, readable position. */
  .ring__fill {
    stroke-dashoffset: 20;
  }
}

@media (prefers-contrast: more) {
  :root {
    --color-text-muted: #c5cfdc;
    --color-text-dim: #a7b3c4;
    --color-border: rgba(255, 255, 255, 0.24);
    --color-border-strong: rgba(255, 255, 255, 0.38);
  }
}

@media print {
  .site-header,
  .site-footer,
  .aura,
  .mockups,
  .hero-scene {
    display: none;
  }

  body,
  .band--dark,
  .band--surface {
    background: #fff;
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   29. Spacing utilities
   These exist so templates never need an inline style attribute, which would
   otherwise force `style-src-attr 'unsafe-inline'` in the CSP.
   -------------------------------------------------------------------------- */

.mt-xs { margin-top: 12px; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 22px; }
.mt-lg { margin-top: 26px; }
.mt-xl { margin-top: 32px; }
.mt-2xl { margin-top: 40px; }
.gap-sm { gap: 16px; }
.center { justify-content: center; }
/* Flips the visual order of a two-column split without touching DOM order. */
.order-last { order: 2; }
