/*
 * TuloyPass website: one stylesheet, mobile first. The base rules are the phone layout and
 * min-width queries add the rest. Colours, type and spacing are tokens on :root; the dark theme
 * only swaps tokens (the system preference, or data-theme from the theme switch).
 *
 * Look: the product's own (warm stone canvas, ink, the logo's rose gold, Geist and Geist Mono),
 * laid out as a stack of inset rounded panels. Motion is purposeful: the hero's scan loop shows
 * what the product does, sections rise in once, and the navigation floats as a pill.
 */

/* Fonts: Geist and Geist Mono (SIL OFL 1.1, see ../fonts/OFL.txt), self-hosted, so the site makes
   no request to anyone else. Only the latin and latin-ext subsets; each file downloads only when a
   character in its range shows. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-latin-wght-normal.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: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-mono-latin-wght-normal.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: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-mono-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* Arial scaled to Geist's metrics, as in the app (shared/src/styles/fonts/sans.css): while Geist
   loads, text is set in it, so the swap does not move the layout. */
@font-face {
  font-family: 'Geist Fallback';
  src: local('Arial'), local('ArialMT');
  size-adjust: 100.8%;
  ascent-override: 99.7%;
  descent-override: 29.27%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------------------------------ */

:root {
  --font-sans: 'Geist', 'Geist Fallback', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --canvas: #f2f0eb;
  --panel-light: #fbfaf7;
  --surface-sunk: #e8e4dc;
  --line: #dad5cb;
  --line-soft: #e8e4dc;
  --ink: #18181a;
  --ink-2: #4a463f;
  --ink-3: #6d6860;
  --accent-text: #835b3b;
  --violet-text: #5b3a9e;
  --red-text: #b3261e;
  --red-tint: rgba(179, 38, 30, 0.08);
  --gold: #ddb892;
  --gold-hover: #e8c8a6;
  --gold-panel: #ddb892;
  --night: #18181a;
  --night-border: transparent;
  --on-night: #f2f0eb;
  --on-night-2: #cfc9be;
  --on-night-3: #9a948a;
  --brand-tile: #18181a;
  --focus: #1f3a7a;

  --pill-bg: rgba(251, 250, 247, 0.9);
  --pill-line: rgba(24, 24, 26, 0.08);
  --pill-shadow: 0 10px 30px -6px rgba(24, 24, 26, 0.18), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  --pill-hover: rgba(24, 24, 26, 0.05);
  --pill-active: rgba(24, 24, 26, 0.08);
  --btn-ink-bg: #18181a;
  --btn-ink-fg: #f2f0eb;

  --shadow-sm: 0 1px 2px rgba(24, 24, 26, 0.06), 0 4px 12px rgba(24, 24, 26, 0.05);
  --shadow-lg: 0 2px 6px rgba(24, 24, 26, 0.05), 0 30px 60px -24px rgba(24, 24, 26, 0.28);

  --inset: 8px;
  --radius-panel: 24px;
  --radius-card: 20px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --max: 1240px;
  --section-y: clamp(72px, 9vw, 128px);
  --ease-out: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

@media (min-width: 720px) {
  :root {
    --inset: 12px;
    --radius-panel: 32px;
  }
}

/* The dark theme, twice: for the system preference (unless the visitor chose light) and for a
   dark choice made with the theme switch. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --canvas: #0f0f0e;
    --panel-light: #171615;
    --surface-sunk: #24211e;
    --line: #38342f;
    --line-soft: #2a2724;
    --ink: #ede9e1;
    --ink-2: #cfc9be;
    --ink-3: #9a948a;
    --accent-text: #ddb892;
    --violet-text: #cbbcf0;
    --red-text: #ff8a80;
    --red-tint: rgba(255, 138, 128, 0.1);
    --gold-panel: #d2ab83;
    --night: #1a1917;
    --night-border: rgba(237, 233, 225, 0.07);
    --brand-tile: #2a2724;
    --focus: #ddb892;
    --pill-bg: rgba(33, 31, 28, 0.86);
    --pill-line: rgba(237, 233, 225, 0.09);
    --pill-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.6);
    --pill-hover: rgba(237, 233, 225, 0.06);
    --pill-active: rgba(237, 233, 225, 0.1);
    --btn-ink-bg: #ede9e1;
    --btn-ink-fg: #18181a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --canvas: #0f0f0e;
  --panel-light: #171615;
  --surface-sunk: #24211e;
  --line: #38342f;
  --line-soft: #2a2724;
  --ink: #ede9e1;
  --ink-2: #cfc9be;
  --ink-3: #9a948a;
  --accent-text: #ddb892;
  --violet-text: #cbbcf0;
  --red-text: #ff8a80;
  --red-tint: rgba(255, 138, 128, 0.1);
  --gold-panel: #d2ab83;
  --night: #1a1917;
  --night-border: rgba(237, 233, 225, 0.07);
  --brand-tile: #2a2724;
  --focus: #ddb892;
  --pill-bg: rgba(33, 31, 28, 0.86);
  --pill-line: rgba(237, 233, 225, 0.09);
  --pill-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.6);
  --pill-hover: rgba(237, 233, 225, 0.06);
  --pill-active: rgba(237, 233, 225, 0.1);
  --btn-ink-bg: #ede9e1;
  --btn-ink-fg: #18181a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

/* ------------------------------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--canvas);
  scroll-behavior: smooth;
  /* Anchored sections land below the floating navigation. */
  scroll-padding-top: 92px;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

[role='list'] {
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: rgba(221, 184, 146, 0.45);
  color: #18181a;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

/* ------------------------------------------------------------------------------------------------
   Type
   ------------------------------------------------------------------------------------------------ */

h1 {
  font-size: clamp(2.75rem, 1.35rem + 6vw, 5.75rem);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 40rem;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.eyebrow {
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--red {
  color: var(--red-text);
}

.eyebrow--violet {
  color: var(--violet-text);
}

.eyebrow--gold {
  color: var(--gold);
}

.eyebrow--ink {
  color: #503726;
}

.hl {
  color: var(--gold);
}

.fineprint {
  max-width: 44rem;
  margin-top: 24px;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn .icon--arrow {
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn--lg {
  min-height: 52px;
  padding: 0 1.5rem;
  font-size: 1rem;
}

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

.btn--ink:hover {
  box-shadow: 0 10px 24px -8px rgba(24, 24, 26, 0.45);
}

.btn--gold {
  background: var(--gold);
  color: #18181a;
  box-shadow: 0 12px 32px -10px rgba(221, 184, 146, 0.6);
}

.btn--gold:hover {
  background: var(--gold-hover);
  box-shadow: 0 16px 40px -10px rgba(221, 184, 146, 0.75);
}

.btn--ghost-light {
  border-color: rgba(242, 240, 235, 0.24);
  color: var(--on-night);
}

.btn--ghost-light:hover {
  border-color: rgba(242, 240, 235, 0.42);
  background: rgba(242, 240, 235, 0.08);
}

/* ------------------------------------------------------------------------------------------------
   Panels and sections
   ------------------------------------------------------------------------------------------------ */

.panel {
  position: relative;
  isolation: isolate;
  margin-inline: var(--inset);
  border-radius: var(--radius-panel);
}

.panel + .panel {
  margin-top: var(--inset);
}

.panel--night {
  --focus: var(--gold);
  border: 1px solid var(--night-border);
  background: var(--night);
  color: var(--on-night);
}

.panel--night .lead {
  color: var(--on-night-2);
}

.panel--gold {
  --focus: #18181a;
  background: var(--gold-panel);
  color: #18181a;
}

.panel--light {
  border: 1px solid var(--line-soft);
  background: var(--panel-light);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.75);
}

.section-head {
  display: grid;
  gap: 16px;
  justify-items: start;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ------------------------------------------------------------------------------------------------
   Header: a top bar and the navigation pill, floating over the hero; once the page scrolls, the
   pill floats near the top of the window (site.js sets .is-floating).
   ------------------------------------------------------------------------------------------------ */

.site-header {
  position: absolute;
  top: var(--inset);
  left: 0;
  right: 0;
  z-index: 50;
}

.topbar {
  display: none;
  color: var(--on-night-2);
  font-size: 0.875rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 46px;
}

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

.topbar__note .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar__links a {
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.topbar__links a:hover {
  background: rgba(242, 240, 235, 0.08);
  color: var(--on-night);
}

.topbar__links .topbar__signin {
  margin-left: 6px;
  padding: 6px 14px;
  background: rgba(242, 240, 235, 0.12);
  color: var(--on-night);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-night-2);
  transition:
    color 0.2s,
    background-color 0.2s;
}

.theme-toggle:hover {
  background: rgba(242, 240, 235, 0.08);
  color: var(--on-night);
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
}

/* The switch shows what it switches to: a moon in the light theme, a sun in the dark one. */
.icon--sun {
  display: none;
}

:root[data-theme='dark'] .icon--sun {
  display: block;
}

:root[data-theme='dark'] .icon--moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon--sun {
    display: block;
  }

  :root:not([data-theme='light']) .icon--moon {
    display: none;
  }
}

.nav-wrap {
  padding-top: 6px;
}

.nav-wrap.is-floating {
  position: fixed;
  top: var(--inset);
  left: 0;
  right: 0;
  padding-top: 0;
}

/* The pill itself drops in, not its wrapper: an ancestor with an opacity animation would become
   the pill's backdrop root, and the blur would no longer see the page behind it. */
.nav-wrap.is-floating .nav {
  animation: nav-drop 0.5s var(--ease-out) backwards;
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-130%);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--pill-line);
  border-radius: 999px;
  background: var(--pill-bg);
  box-shadow: var(--pill-shadow);
  color: var(--ink);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  transition: height 0.3s var(--ease-out);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: inherit;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-tile);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

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

.nav__cta {
  display: none;
}

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--pill-active);
  color: var(--ink);
}

.nav__toggle .icon {
  width: 22px;
  height: 22px;
}

.nav__toggle .icon--close,
.nav-wrap.is-open .nav__toggle .icon--menu {
  display: none;
}

.nav-wrap.is-open .nav__toggle .icon--close {
  display: block;
}

/* On a phone the menu is a card that drops from the pill. */
.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 10px;
  border: 1px solid var(--pill-line);
  border-radius: 24px;
  background: var(--panel-light);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.3s var(--ease-out),
    visibility 0s linear 0.3s;
}

.nav-wrap.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.3s var(--ease-out),
    visibility 0s;
}

.nav__links {
  display: grid;
  gap: 2px;
}

.nav__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.nav__links a:hover {
  background: var(--pill-hover);
}

.nav__links a.is-active {
  background: var(--pill-active);
}

.nav__extras {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.nav__extras .btn {
  min-height: 48px;
}

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

.nav__signin {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 600;
  text-decoration: none;
}

.theme-toggle--plain {
  width: 44px;
  height: 44px;
  color: var(--ink-2);
}

.theme-toggle--plain:hover {
  background: var(--pill-hover);
  color: var(--ink);
}

@media (min-width: 480px) {
  .nav__cta {
    display: inline-flex;
  }
}

@media (min-width: 860px) {
  .topbar {
    display: block;
  }
}

@media (min-width: 960px) {
  html {
    scroll-padding-top: 100px;
  }

  .nav {
    height: 68px;
    padding: 0 10px 0 20px;
  }

  .nav-wrap.is-floating .nav {
    height: 60px;
  }

  .nav__toggle,
  .nav__extras {
    display: none;
  }

  .nav__menu {
    position: static;
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav__links {
    display: flex;
    gap: 2px;
  }

  .nav__links a {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.96875rem;
  }

  .nav__links a:hover,
  .nav__links a.is-active {
    color: var(--ink);
  }
}

/* ------------------------------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------------------------------ */

.hero {
  margin-top: var(--inset);
  padding: 108px 0 56px;
  overflow: hidden;
}

/* Two slow glows, gold and violet, and a dot grid fading out from the visual. */
.hero::before,
.hero::after,
.cta::before {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -30%;
  right: -15%;
  width: min(900px, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(221, 184, 146, 0.2), transparent);
  animation: drift 18s var(--ease-in-out) infinite alternate;
}

.hero::after {
  bottom: -45%;
  left: -20%;
  width: min(800px, 100vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(91, 58, 158, 0.28), transparent);
  animation: drift 22s var(--ease-in-out) infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-8%, 6%, 0) scale(1.1);
  }
}

.hero__texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(242, 240, 235, 0.09) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 72% 42%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 72% 42%, #000 15%, transparent 72%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  align-items: center;
  gap: 56px;
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.hero__copy > * {
  animation: rise 0.9s var(--ease-out) both;
}

.hero__copy > :nth-child(2) {
  animation-delay: 0.07s;
}

.hero__copy > :nth-child(3) {
  animation-delay: 0.14s;
}

.hero__copy > :nth-child(4) {
  animation-delay: 0.21s;
}

.hero__copy > :nth-child(5) {
  animation-delay: 0.28s;
}

.hero h1 {
  max-width: 11.5ch;
  color: var(--on-night);
}

.hero .lead {
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 8px;
  color: var(--on-night-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__trust .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
  stroke-width: 2.25;
}

.hero__visual {
  animation: rise-in 1.1s var(--ease-out) 0.2s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 860px) {
  .hero {
    padding: 172px 0 96px;
  }
}

@media (min-width: 1000px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 48px;
  }
}

/* The scan loop: the visitor's phone shows its pass, the gate's camera sweeps the QR code, the
   gate's screen turns to the VISITOR card, and a chip says what did not happen. One 7 s loop for
   every part; the static styles are the loop's end state, which is what reduced motion shows. */
.scan {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  aspect-ratio: 26 / 27;
}

.scan__phone {
  position: absolute;
  padding: 1.8%;
  border-radius: 12% / 5.6%;
  background: #2e2d2f;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.scan__screen {
  position: relative;
  overflow: hidden;
  border-radius: 10% / 4.6%;
}

.scan__screen img {
  width: 100%;
}

.scan__phone--gate {
  top: 0;
  right: 3%;
  width: 46%;
  transform: rotate(3deg);
}

.scan__phone--gate::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: flash 7s var(--ease-out) infinite;
}

.scan__phone--visitor {
  bottom: 0;
  left: 9%;
  width: 42%;
  transform: rotate(-6deg);
  animation: present 7s var(--ease-in-out) infinite;
}

.scan__idle {
  opacity: 0;
  animation: idle 7s var(--ease-in-out) infinite;
}

.scan__result {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  animation: result 7s var(--ease-out) infinite;
}

/* Over the QR code of the visitor's pass (its white panel in the screenshot). */
.scan__qr {
  position: absolute;
  top: 46.2%;
  left: 14.6%;
  width: 70.8%;
  height: 32.7%;
  overflow: hidden;
  border-radius: 6%;
  pointer-events: none;
}

.scan__beam {
  position: absolute;
  inset: 0;
  border-bottom: 2px solid #f3d3b0;
  background: linear-gradient(to bottom, rgba(221, 184, 146, 0), rgba(221, 184, 146, 0.3));
  box-shadow: 0 6px 18px rgba(221, 184, 146, 0.7);
  opacity: 0;
  animation: beam 7s var(--ease-in-out) infinite;
}

.scan__chip {
  position: absolute;
  bottom: 3%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(221, 184, 146, 0.45);
  border-radius: 999px;
  background: rgba(24, 24, 26, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  color: var(--on-night);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: chip 7s var(--ease-out) infinite;
}

.scan__chip .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  stroke-width: 2.4;
}

.scan.is-paused *,
.scan.is-paused *::after {
  animation-play-state: paused;
}

@keyframes present {
  0%,
  6% {
    transform: rotate(-6deg) translate(0, 0);
  }

  16%,
  40% {
    transform: rotate(-2deg) translate(6%, -3%);
  }

  54%,
  100% {
    transform: rotate(-6deg) translate(0, 0);
  }
}

@keyframes beam {
  0%,
  12% {
    opacity: 0;
    transform: translateY(-100%);
  }

  16% {
    opacity: 1;
  }

  36% {
    opacity: 1;
    transform: translateY(0);
  }

  42%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes idle {
  0%,
  38% {
    opacity: 1;
  }

  44%,
  88% {
    opacity: 0;
  }

  94%,
  100% {
    opacity: 1;
  }
}

@keyframes result {
  0%,
  38% {
    opacity: 0;
    transform: scale(1.04);
  }

  44%,
  88% {
    opacity: 1;
    transform: scale(1);
  }

  94%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes flash {
  0%,
  40% {
    box-shadow: 0 0 0 0 rgba(179, 155, 230, 0);
  }

  45% {
    box-shadow:
      0 0 0 5px rgba(179, 155, 230, 0.4),
      0 0 70px 12px rgba(179, 155, 230, 0.3);
  }

  64%,
  100% {
    box-shadow:
      0 0 0 16px rgba(179, 155, 230, 0),
      0 0 70px 12px rgba(179, 155, 230, 0);
  }
}

@keyframes chip {
  0%,
  46% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.95);
  }

  52%,
  86% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  92%,
  100% {
    opacity: 0;
    transform: translate(-50%, 0) scale(1);
  }
}

/* ------------------------------------------------------------------------------------------------
   Reveals: an element rises in once when it enters the viewport (site.js adds .reveal-ready to the
   page and .is-in to the element). Without the script everything simply shows.
   ------------------------------------------------------------------------------------------------ */

.reveal-ready [data-reveal] {
  opacity: 0;
}

.reveal-ready [data-reveal].is-in {
  opacity: 1;
  /* backwards, not both: once done the element is back to its own styles, so hover transforms
     still work. */
  animation: reveal 0.9s var(--ease-out) var(--delay, 0s) backwards;
}

.delay-1 {
  --delay: 0.1s;
}

.delay-2 {
  --delay: 0.2s;
}

.delay-3 {
  --delay: 0.3s;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------------------------------------
   The problem
   ------------------------------------------------------------------------------------------------ */

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

.card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--panel-light);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s;
}

.card:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--red-tint);
  color: var(--red-text);
}

.card__icon .icon {
  width: 24px;
  height: 24px;
}

.card p {
  color: var(--ink-2);
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .card {
    padding: 32px;
  }
}

/* ------------------------------------------------------------------------------------------------
   The law
   ------------------------------------------------------------------------------------------------ */

.law {
  padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 4vw, 48px);
}

.law__grid {
  display: grid;
  gap: 44px;
}

.law__statement {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.law h2 {
  max-width: 14ch;
  font-size: clamp(2.375rem, 1.3rem + 4.4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.law__quote p {
  max-width: 36rem;
  color: #2c2119;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}

.law__quote footer {
  margin-top: 10px;
  color: #503726;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #18181a;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease-out);
}

.link-arrow:hover .icon {
  transform: translate(2px, -2px);
}

.rules li {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid rgba(24, 24, 26, 0.18);
}

.rules li:last-child {
  border-bottom: 1px solid rgba(24, 24, 26, 0.18);
}

.rules__ref {
  color: #503726;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.rules li p:last-child {
  color: #18181a;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
}

.law__note {
  margin-top: clamp(32px, 4vw, 56px);
  color: #503726;
  font-size: 0.875rem;
}

@media (min-width: 1000px) {
  .law__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 80px;
  }
}

/* ------------------------------------------------------------------------------------------------
   The passes
   ------------------------------------------------------------------------------------------------ */

.split {
  display: grid;
  align-items: center;
  gap: 48px;
}

.split__copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.split__copy .fineprint {
  margin-top: 4px;
}

.pass-types {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.pass-types li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pass-types h3 {
  font-size: 1.125rem;
}

.pass-types p {
  color: var(--ink-2);
  font-size: 1rem;
}

.swatch {
  flex: none;
  width: 40px;
  height: 56px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.swatch--resident {
  background: #0f1f3d;
  box-shadow:
    inset 0 -8px 0 #0f1f3d,
    inset 0 -13px 0 #c9a227,
    var(--shadow-sm);
}

.swatch--helper {
  border: 1px solid var(--line);
  background: #ffffff;
}

.swatch--visitor {
  background: #2b1a52;
  box-shadow:
    inset 0 0 0 3px #2b1a52,
    inset 0 0 0 5px #b39be6,
    var(--shadow-sm);
}

/* The visitor's card leans on the lower right corner of the printed pair, clear of their titles. */
.passes {
  position: relative;
  padding-bottom: 16%;
}

.passes__printed {
  width: 84%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
}

.passes__visitor {
  position: absolute;
  right: 1%;
  bottom: 0;
  width: 23%;
  border-radius: 7.5% / 4.9%;
  box-shadow: 0 30px 50px -16px rgba(24, 24, 26, 0.5);
  transform: rotate(6deg);
  transition: transform 0.5s var(--ease-out);
}

.passes:hover .passes__visitor {
  transform: rotate(2deg) translateY(-6px);
}

@media (min-width: 1000px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
  }
}

/* ------------------------------------------------------------------------------------------------
   Visitors
   ------------------------------------------------------------------------------------------------ */

.steps {
  display: grid;
  gap: 44px;
}

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

.step__media {
  display: grid;
  /* One row as tall as the box, so the screenshot's height: 100% has something to fill. */
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  height: clamp(380px, 38vw, 470px);
  margin-bottom: 14px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface-sunk);
}

.step__dialog {
  width: auto;
  height: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.device {
  display: block;
  height: 100%;
  padding: 6px;
  border-radius: 30px;
  background: #18181a;
  box-shadow: var(--shadow-lg);
}

.device img {
  width: auto;
  height: 100%;
  border-radius: 24px;
}

.step__num {
  color: var(--violet-text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.step h3 {
  font-size: 1.375rem;
}

.step p:last-child {
  color: var(--ink-2);
}

.facts {
  display: grid;
  gap: 12px;
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  font-size: 1rem;
}

.facts .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--violet-text);
  stroke-width: 2.25;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

/* ------------------------------------------------------------------------------------------------
   At the gate
   ------------------------------------------------------------------------------------------------ */

.gate {
  padding-block: var(--section-y);
  overflow: hidden;
}

.gate h2 {
  color: var(--on-night);
}

/* A swipeable row on a phone, four columns from 900 px. */
.phones {
  display: flex;
  gap: 16px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.phones::-webkit-scrollbar {
  display: none;
}

.phone-card {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  gap: 14px;
  width: min(62vw, 240px);
  scroll-snap-align: start;
}

.device--dark {
  width: 100%;
  height: auto;
  padding: 7px;
  border-radius: 34px;
  background: #2e2d2f;
  box-shadow:
    0 30px 60px -24px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.45s var(--ease-out);
}

.device--dark img {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.phone-card:hover .device--dark {
  transform: translateY(-8px);
}

.phone-card p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--on-night-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot--visitor {
  background: #b39be6;
}

.dot--resident {
  background: #e2c16b;
}

.dot--allowed {
  background: #4cc38a;
}

.dot--denied {
  background: #ff8a80;
}

.gate__points {
  display: grid;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}

.gate__points li {
  padding-top: 18px;
  border-top: 1px solid rgba(242, 240, 235, 0.14);
  color: var(--on-night-2);
  font-size: 1.0625rem;
}

.gate__points strong {
  color: var(--on-night);
  font-weight: 600;
}

@media (min-width: 900px) {
  .phones {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-inline: 0;
    padding: 8px 0 0;
    overflow: visible;
  }

  .phone-card {
    width: auto;
  }

  .gate__points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

/* ------------------------------------------------------------------------------------------------
   Features: copy beside a framed screenshot
   ------------------------------------------------------------------------------------------------ */

.feature {
  display: grid;
  align-items: center;
  gap: 36px;
}

.feature + .feature {
  margin-top: clamp(80px, 10vw, 144px);
}

.feature__copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.checks {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.checks li {
  position: relative;
  padding-left: 36px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.checks li::before,
.checks li::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.checks li::before {
  background: var(--surface-sunk);
}

.checks li::after {
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.6 3.6L17.5 8.5'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.6 3.6L17.5 8.5'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

.specs {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.specs li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.specs .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--surface-sunk);
  color: var(--ink);
  stroke-width: 1.6;
}

.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-light);
  box-shadow: var(--shadow-lg);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--canvas);
}

.browser__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.browser img {
  width: 100%;
}

@media (min-width: 1000px) {
  .feature {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 72px;
  }

  .feature--flip {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .feature--flip .feature__copy {
    order: 2;
  }

  .feature--wide {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 64px;
  }
}

/* ------------------------------------------------------------------------------------------------
   Privacy: a table on wide screens, a list of rows on a phone
   ------------------------------------------------------------------------------------------------ */

.compare {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel-light);
}

.compare table {
  width: 100%;
  border-collapse: collapse;
}

.compare thead {
  display: none;
}

.compare tr {
  display: block;
  padding: 20px;
  border-top: 1px solid var(--line-soft);
}

.compare tbody tr:first-child {
  border-top: 0;
}

.compare th,
.compare td {
  display: block;
  padding: 0;
  text-align: left;
  vertical-align: top;
}

.compare tbody th {
  margin-bottom: 6px;
  font-weight: 600;
}

.compare td {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}

.compare td::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

@media (min-width: 760px) {
  .compare thead {
    display: table-header-group;
  }

  .compare tr {
    display: table-row;
    padding: 0;
    border-top: 0;
    transition: background-color 0.2s;
  }

  .compare tbody tr:hover {
    background: var(--pill-hover);
  }

  .compare th,
  .compare td {
    display: table-cell;
    padding: 22px 28px;
    border-top: 1px solid var(--line-soft);
  }

  .compare thead th {
    padding-block: 16px;
    border-top: 0;
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .compare tbody th {
    width: 38%;
    margin: 0;
  }

  .compare td {
    padding-left: 60px;
  }

  .compare td::before {
    top: 25px;
    left: 28px;
  }
}

/* ------------------------------------------------------------------------------------------------
   Rollout: four steps, each under a rule that draws itself in
   ------------------------------------------------------------------------------------------------ */

.rollout {
  display: grid;
  gap: 32px;
}

.rollout li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 24px;
}

.rollout li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform-origin: left center;
}

.reveal-ready .rollout li[data-reveal]::before {
  transform: scaleX(0);
}

.reveal-ready .rollout li.is-in::before {
  transform: scaleX(1);
  transition: transform 1s var(--ease-out) calc(var(--delay, 0s) + 0.15s);
}

.rollout__num {
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
}

.rollout h3 {
  font-size: 1.375rem;
}

.rollout li p:last-child {
  color: var(--ink-2);
}

@media (min-width: 640px) {
  .rollout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .rollout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }
}

/* ------------------------------------------------------------------------------------------------
   FAQ: native details; where the browser can animate them (::details-content), they glide open
   ------------------------------------------------------------------------------------------------ */

.faq {
  display: grid;
}

.faq__list details {
  border-top: 1px solid var(--line);
}

.faq__list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 18px 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--surface-sunk);
  transition:
    transform 0.35s var(--ease-out),
    background-color 0.2s;
}

.faq__list summary:hover .icon {
  background: var(--line);
}

.faq__list details[open] summary .icon {
  transform: rotate(45deg);
}

.faq__list details p {
  max-width: 62ch;
  padding-bottom: 22px;
  color: var(--ink-2);
}

@supports selector(::details-content) {
  .faq__list details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition:
      block-size 0.4s var(--ease-out),
      content-visibility 0.4s allow-discrete;
  }

  .faq__list details[open]::details-content {
    block-size: auto;
  }
}

@media (min-width: 1000px) {
  .faq {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
    gap: 72px;
  }

  .faq__head {
    position: sticky;
    top: 120px;
  }
}

/* ------------------------------------------------------------------------------------------------
   Call to action and footer
   ------------------------------------------------------------------------------------------------ */

.cta {
  padding-block: clamp(88px, 12vw, 168px);
  overflow: hidden;
  text-align: center;
}

.cta::before {
  top: 50%;
  left: 50%;
  width: min(1100px, 140vw);
  aspect-ratio: 1.6;
  background: radial-gradient(closest-side, rgba(221, 184, 146, 0.18), transparent);
  transform: translate(-50%, -50%);
}

.cta .hero__texture {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 70%);
}

.cta__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.cta h2 {
  max-width: 15ch;
  color: var(--on-night);
  font-size: clamp(2.5rem, 1.3rem + 5vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.site-footer {
  padding: 56px 0 40px;
}

.footer__inner {
  display: grid;
  gap: 28px;
}

.footer__brand p {
  margin-top: 8px;
  color: var(--ink-3);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer__legal {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-3);
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer__legal {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------------------------------------------
   Reduced motion: no loops, no rises, no drops. The static styles are each animation's end state,
   so the hero shows the gate's VISITOR card and the chip, and everything else is simply there.
   ------------------------------------------------------------------------------------------------ */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
  }

  .reveal-ready .rollout li[data-reveal]::before {
    transform: none;
  }
}
