/* ==========================================================================
   Shoji: light through paper.
   A shoji is the translucent paper screen that slides shut in a Japanese
   room: light still comes through, detail does not. The page is cool paper
   and sumi ink with one indigo accent, the colour of aizome dye. Night
   sections are the black of the lock island. No amber, no cream.
   ========================================================================== */

:root {
  --paper: #f4f5f7;
  --paper-2: #eceef2;
  --paper-3: #e1e5eb;
  --ink: #0f1218;
  --ink-2: #444b58;
  --ink-3: #676f7d;
  --line: rgba(15, 18, 24, 0.1);
  --line-2: rgba(15, 18, 24, 0.06);

  --night: #0a0d13;
  --night-2: #10151f;
  --night-3: #182030;
  --on-night: #eef1f6;
  --on-night-2: #aab2c2;
  --on-night-3: #7f889a;
  --night-line: rgba(255, 255, 255, 0.09);

  --indigo: #2c4a7e;
  --indigo-2: #1d3257;
  --indigo-lit: #a3b9e6;
  --indigo-soft: rgba(44, 74, 126, 0.08);

  --wall-a: #6682b8;
  --wall-b: #34497c;
  --wall-c: #182340;
  --ok: #7fd3a1;
  --danger: #ff8a84;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1160px;
  --gut: clamp(20px, 5vw, 40px);
  --section-y: clamp(84px, 11vw, 144px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.5, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.045;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1000;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(44, 74, 126, 0.18); }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--indigo-lit); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 1001; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3 { font-family: var(--display); margin: 0; color: inherit; }
h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 650; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -0.028em; font-weight: 640; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.012em; font-weight: 620; }
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--indigo);
}
.night h2 em { color: var(--indigo-lit); }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.night .lede { color: var(--on-night-2); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.night .label { color: var(--on-night-3); }

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  height: 1.6em;
  padding: 0 0.42em;
  margin: 0 0.06em;
  border-radius: 0.36em;
  font-family: var(--sans);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(#fff, #f1f3f6);
  box-shadow: 0 0 0 1px rgba(15, 18, 24, 0.12), 0 1.5px 0 rgba(15, 18, 24, 0.14);
  vertical-align: 0.08em;
}
.night kbd { color: var(--on-night); background: linear-gradient(#262e3e, #1b2230); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1.5px 0 rgba(0, 0, 0, 0.5); }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(15, 18, 24, 0.55); }
.btn--ink:hover { background: #1c2230; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(15, 18, 24, 0.16); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(15, 18, 24, 0.32); }
.btn--light { background: #fff; color: var(--ink); }
.btn--line-light { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn__price {
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.btn--ghost .btn__price, .btn--light .btn__price { background: var(--indigo-soft); color: var(--indigo); }
.btn svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(244, 245, 247, 0.72);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 22px; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.wordmark img { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; gap: 10px; }
@media (max-width: 900px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } }
@media (max-width: 520px) { .nav__cta .btn--ghost { display: none; } }

/* ================================================================ gate */
/* The page opens locked: a shoji closed over a desktop full of private
   windows. Scrolling slides the two doors apart; --open runs 0 to 1. */
.gate { position: relative; height: 230vh; --open: 0; --p: 0; }
.gate__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--wall-c); }

.desk { position: absolute; inset: 0; container-type: size; }
.desk__wall {
  position: absolute;
  inset: -4%;
  background:
    radial-gradient(55% 45% at 22% 18%, rgba(173, 196, 240, 0.55), transparent 62%),
    radial-gradient(45% 45% at 82% 30%, rgba(122, 148, 206, 0.35), transparent 65%),
    radial-gradient(70% 60% at 60% 110%, rgba(8, 12, 26, 0.95), transparent 70%),
    linear-gradient(160deg, #6c88bf, #34497c 50%, #121a30);
  transform: scale(calc(1.06 - var(--open) * 0.06));
}
.desk .win { font-size: clamp(11px, 1.05vw, 15px); border-radius: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16), 0 30px 60px -24px rgba(6, 10, 24, 0.7); }
.desk .win__bar { height: 30px; font-size: 12.5px; padding: 0 12px; gap: 7px; }
.desk .win__bar i { width: 11px; height: 11px; }
.desk .win__body { padding: 14px 16px; }
.desk .bubble { font-size: inherit; padding: 8px 13px; border-radius: 16px; }
.desk .chat { gap: 9px; }
.desk .chat__who { font-size: 11px; }
.desk .doc h4 { font-size: 1.6em; margin-bottom: 6px; }
.desk .doc td { padding: 6px 0; font-size: 0.95em; }
.desk .mail__row { grid-template-columns: 30px 1fr; gap: 2px 12px; padding: 9px 0; }
.desk .mail__av { width: 30px; height: 30px; }
.desk .mail__from, .desk .mail__sub { font-size: 0.95em; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos span { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(150deg, var(--a), var(--b)); }
.desk__dock {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 10px; padding: 9px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
.desk__dock span { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(160deg, var(--c1), var(--c2)); }
@media (max-width: 700px) { .desk__dock span { width: 30px; height: 30px; border-radius: 9px; } .desk .win--photos, .desk .win--bank { display: none; } }

/* the doors */
.gate__door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 10;
  will-change: transform;
}
.gate__door--l { left: 0; transform: translateX(calc(var(--open) * -100%)); }
.gate__door--r { right: 0; transform: translateX(calc(var(--open) * 100%)); }
.gate__paper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(180deg, rgba(246, 248, 251, 0.72), rgba(230, 235, 244, 0.66));
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
  backdrop-filter: blur(26px) saturate(1.15);
}
.gate__paper::before {
  /* washi: paper fibre, very quiet */
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: multiply;
}
.gate__paper::after {
  /* kumiko: even strips, panes a little taller than wide, each strip lit on
     one edge and shaded on the other; the solid koshi panel along the bottom
     grounds a real shoji */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, transparent calc(100% - 15vh), rgba(214, 221, 233, 0.92) calc(100% - 15vh)),
    linear-gradient(180deg, transparent calc(100% - 15vh - 4px), rgba(255, 255, 255, 0.7) calc(100% - 15vh - 4px) calc(100% - 15vh - 2px), rgba(40, 50, 72, 0.22) calc(100% - 15vh - 2px) calc(100% - 15vh), transparent calc(100% - 15vh)),
    repeating-linear-gradient(90deg, transparent 0 calc(12.5vw - 4px), rgba(255, 255, 255, 0.75) calc(12.5vw - 4px) calc(12.5vw - 2.5px), rgba(40, 50, 72, 0.15) calc(12.5vw - 2.5px) 12.5vw),
    repeating-linear-gradient(180deg, transparent 0 calc(17vh - 4px), rgba(255, 255, 255, 0.75) calc(17vh - 4px) calc(17vh - 2.5px), rgba(40, 50, 72, 0.15) calc(17vh - 2.5px) 17vh);
}
.gate__door--r .gate__paper::after { background-position: 0 0; }
.gate__stile { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(40, 50, 72, 0.22); }
.gate__door--l .gate__stile { right: 0; }
.gate__door--r .gate__stile { left: 0; }

/* the headline, printed across both doors: each door holds the whole line,
   clipped at its own edge, so it parts down the middle as they slide */
.gate__title {
  position: absolute;
  top: 25vh;
  top: 25svh;
  width: 100vw;
  padding: 0 var(--gut);
  text-align: center;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(46px, 7.8vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.gate__title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--indigo); }
.gate__door--l .gate__title { left: 0; }
.gate__door--r .gate__title { left: -50vw; }

.gate__intro {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(25vh + clamp(46px, 7.8vw, 118px) * 2.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--gut);
  opacity: calc(1 - var(--p) * 5);
  transform: translateY(calc(var(--p) * -60px));
  pointer-events: auto;
}
.gate.is-open .gate__intro { pointer-events: none; }
.gate__intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -20px;
  width: min(900px, 100vw);
  height: calc(100% + 40px);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(241, 244, 249, 0.92), rgba(241, 244, 249, 0.7) 60%, transparent);
}
.gate__intro .lede { margin: 0 auto; max-width: 32em; color: var(--ink-2); }
.gate__intro .hero__cta { margin-top: 30px; }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.hero__fine { margin-top: 16px; font-size: 14px; color: var(--ink-3); text-align: center; }
.hero__fine b { color: var(--ink-2); font-weight: 600; }

/* the island, hanging where the notch would be */
.gate__island {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  border: 0;
  border-radius: 0 0 26px 26px;
  background: #000;
  color: #f4f6f9;
  font: inherit;
  text-align: left;
  transform: translate(-50%, calc(var(--open) * -120%));
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: box-shadow 0.3s;
}
.gate__island:hover { box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
.gate__av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 650; background: linear-gradient(140deg, #9aa0aa, #353a43); }
.gate__who { display: flex; flex-direction: column; line-height: 1.3; }
.gate__who b { font-size: 14px; font-weight: 650; }
.gate__who span { font-size: 12.5px; color: rgba(244, 246, 249, 0.62); }
.gate__tid { width: 34px; height: 34px; margin-left: 6px; color: #f4f6f9; }
.gate__island:hover .gate__tid { animation: tid-pulse 1.4s ease-in-out infinite; }
@keyframes tid-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.gate__hint {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  opacity: calc(1 - var(--p) * 8);
}
/* a short window: the intro reaches the foot of the screen, so the hint steps aside
   (hidden, not removed, so the script can still measure where it would sit) */
.gate__hint.is-crowded { visibility: hidden; }
.gate__hint i { width: 1.5px; height: 30px; background: linear-gradient(var(--ink-3), transparent); animation: hint-drop 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint-drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.gate__after {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, calc((1 - var(--open)) * 20px));
  opacity: calc((var(--open) - 0.85) * 6.6);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 20px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  color: #eef1f6;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.gate__after button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 8px 14px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14px;
}
.gate__after kbd { font-size: 12px; }
@media (max-width: 600px) { .gate__after { font-size: 13px; bottom: 80px; white-space: normal; width: calc(100vw - 32px); justify-content: space-between; } }

/* a first-visit nudge: the doors part a hair and close, to say they move */
.gate.is-hinting .gate__door--l { animation: nudge-l 1.6s var(--ease); }
.gate.is-hinting .gate__door--r { animation: nudge-r 1.6s var(--ease); }
@keyframes nudge-l { 40% { transform: translateX(-3.5%); } }
@keyframes nudge-r { 40% { transform: translateX(3.5%); } }

/* the nav waits until the doors are open */
.nav { transform: translateY(0); transition: transform 0.45s var(--ease), border-color 0.3s; }
body.is-gated .nav { transform: translateY(-110%); }

/* ============================================================ moonlight */
.moon { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 200px) 0; background: linear-gradient(180deg, #0c1322, #131d34 55%, #0c1322); color: var(--on-night); text-align: center; }
.moon__light {
  position: absolute;
  inset: -30% -20%;
  background: radial-gradient(40% 45% at 38% 42%, rgba(186, 206, 250, 0.34), transparent 70%);
  transform: rotate(-9deg) skewX(-10deg);
  animation: moon-drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
.moon__light::after {
  /* the lattice's shadow, cast soft across the wall */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(12, 19, 34, 0.95) 0 9px, transparent 9px 160px),
    repeating-linear-gradient(0deg, rgba(12, 19, 34, 0.95) 0 9px, transparent 9px 210px);
  filter: blur(3px);
}
@keyframes moon-drift { from { transform: rotate(-9deg) skewX(-10deg) translate(-3%, -2%); } to { transform: rotate(-7deg) skewX(-6deg) translate(3%, 2%); } }
.moon .wrap { position: relative; }
.moon h2 { font-size: clamp(40px, 6.4vw, 88px); max-width: 16ch; margin: 18px auto 0; }
.moon h2 em { color: var(--indigo-lit); }
.moon .lede { margin: 28px auto 0; max-width: 34em; color: var(--on-night-2); }
.moon__kanji { font-family: "Hiragino Mincho ProN", "Yu Mincho", var(--serif); font-size: 15px; letter-spacing: 0.5em; color: var(--on-night-3); }

/* ========================================================== the story */
.story__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.story__stage { position: sticky; top: calc(50vh - min(26vw, 300px) + 10px); }
.story__stage .mac { max-width: 720px; }
.chapter { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.5s var(--ease); }
.chapter.is-active { opacity: 1; }
.chapter__n { font-family: "Hiragino Mincho ProN", "Yu Mincho", var(--serif); font-size: 28px; color: var(--indigo); margin-bottom: 14px; }
.chapter h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.025em; margin-bottom: 10px; }
.chapter__keys { display: flex; align-items: center; gap: 4px; margin-bottom: 18px; color: var(--ink-3); font-size: 14px; }
.chapter p { color: var(--ink-2); font-size: 18px; max-width: 26em; }
.chapter .controls { margin-top: 22px; }
.story__controls { margin-top: 22px; display: flex; justify-content: center; }
@media (max-width: 960px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__stage { top: 64px; z-index: 5; padding: 10px 0 14px; background: linear-gradient(var(--paper) 88%, transparent); }
  .story__stage .mac { max-width: 560px; margin: 0 auto; }
  .chapter { min-height: 62vh; }
}

/* ======================================================= the compare */
.compare { width: 100%; max-width: 900px; margin: 0 auto; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, 0.6); }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--display); font-size: 15px; font-weight: 620; color: var(--ink-2); background: var(--paper-2); }
.compare thead th.us { color: var(--ink); }
.compare td:first-child { color: var(--ink); font-weight: 560; width: 46%; }
.compare td { color: var(--ink-2); }
.compare .yes { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.compare .no { color: var(--ink-3); }
.compare col.us { background: rgba(44, 74, 126, 0.045); }
@media (max-width: 640px) { .compare th, .compare td { padding: 14px 12px; font-size: 14.5px; } }

/* =================================================== the closing gate */
.close-gate { position: relative; height: min(88vh, 760px); overflow: hidden; background: var(--wall-c); }
.close-gate .desk { position: absolute; inset: 0; }
.close-gate .gate__door--l { transform: translateX(-100%); transition: transform 1.4s cubic-bezier(0.7, 0, 0.2, 1); }
.close-gate .gate__door--r { transform: translateX(100%); transition: transform 1.4s cubic-bezier(0.7, 0, 0.2, 1); }
.close-gate.is-shut .gate__door { transform: translateX(0); }
.close-gate .gate__title { top: 30%; font-size: clamp(40px, 6.6vw, 96px); }
.close-gate__cta {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(30% + clamp(40px, 6.6vw, 96px) * 1.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease 1.1s, transform 0.8s var(--ease) 1.1s;
}
.close-gate.is-shut .close-gate__cta { opacity: 1; transform: none; }

/* ============================================================ the Mac */
/* A MacBook drawn in CSS. Every size inside the screen is in cqw, so the
   whole thing scales as one picture. */
.mac { position: relative; }
.mac__lid {
  position: relative;
  padding: 1.35%;
  border-radius: 2.4% / 3.6%;
  background: linear-gradient(#1b1f27, #0b0d11);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 60px 90px -40px rgba(20, 30, 60, 0.45),
    0 30px 50px -30px rgba(10, 14, 24, 0.45);
}
.mac__base {
  position: relative;
  height: clamp(10px, 1.7vw, 18px);
  margin: 0 -5.5%;
  border-radius: 0 0 40% 40% / 0 0 100% 100%;
  background: linear-gradient(#d8dce3, #aab1bc 60%, #8e96a3);
  box-shadow: 0 18px 30px -18px rgba(20, 30, 60, 0.5);
}
.mac__base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14%;
  height: 45%;
  transform: translateX(-50%);
  border-radius: 0 0 12px 12px;
  background: linear-gradient(#a3aab6, #c3c9d2);
}

.screen {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.2% / 1.9%;
  background: var(--wall-c);
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
}
.wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 20% 15%, rgba(163, 185, 230, 0.55), transparent 60%),
    radial-gradient(60% 70% at 85% 90%, rgba(20, 30, 58, 0.9), transparent 70%),
    linear-gradient(160deg, var(--wall-a), var(--wall-b) 55%, var(--wall-c));
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease);
}
.wall::after {
  /* a faint lattice in the wallpaper itself: the brand, quietly */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 0.12cqw, transparent 0.12cqw 9cqw),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 0.12cqw, transparent 0.12cqw 9cqw);
  mask-image: radial-gradient(80% 70% at 70% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000, transparent 75%);
}

.menubar {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto 0;
  height: 3.1cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.6cqw;
  font-size: 1.28cqw;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(24, 32, 52, 0.28);
  -webkit-backdrop-filter: blur(1.2cqw) saturate(1.4);
  backdrop-filter: blur(1.2cqw) saturate(1.4);
}
.menubar__left, .menubar__right { display: flex; align-items: center; gap: 1.7cqw; }
.menubar__left b { font-weight: 700; }
.menubar__glyph { width: 1.35cqw; height: 1.35cqw; border-radius: 0.3cqw; background: rgba(255, 255, 255, 0.9); }
.menubar__icon { width: 1.9cqw; height: 1.4cqw; color: #fff; }
.menubar__dot { width: 1.25cqw; height: 1.25cqw; border-radius: 0.35cqw; background: rgba(255, 255, 255, 0.55); }

.notch {
  position: absolute;
  z-index: 60;
  left: 50%;
  top: 0;
  width: 14.5cqw;
  height: 3.1cqw;
  transform: translateX(-50%);
  background: #000;
  border-radius: 0 0 1.2cqw 1.2cqw;
}

.dock {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 1cqw;
  transform: translateX(-50%);
  display: flex;
  gap: 0.9cqw;
  padding: 0.8cqw;
  border-radius: 1.6cqw;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 0.08cqw rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(1.4cqw) saturate(1.5);
  backdrop-filter: blur(1.4cqw) saturate(1.5);
}
.dock span { width: 3.9cqw; height: 3.9cqw; border-radius: 1cqw; background: linear-gradient(160deg, var(--c1, #8aa3d6), var(--c2, #3f5a91)); }

/* ------------------------------------------------------------- windows */
.win {
  position: absolute;
  z-index: 10;
  border-radius: 1.1cqw;
  background: #fbfbfd;
  color: #1a1e27;
  box-shadow: 0 0 0 0.08cqw rgba(0, 0, 0, 0.18), 0 2cqw 4cqw -1.5cqw rgba(8, 14, 32, 0.55);
  overflow: hidden;
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.3s;
  font-size: 1.3cqw;
  line-height: 1.4;
}
.win.is-front { z-index: 15; }
.win__bar {
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  height: 2.9cqw;
  padding: 0 1.1cqw;
  border-bottom: 0.08cqw solid rgba(0, 0, 0, 0.07);
  background: #f2f3f6;
  font-weight: 600;
  font-size: 1.15cqw;
  color: #545b69;
}
.win__bar i { width: 0.95cqw; height: 0.95cqw; border-radius: 50%; background: #d6d9df; }
.win__bar i:nth-child(1) { background: #ff5f57; }
.win__bar i:nth-child(2) { background: #febc2e; }
.win__bar i:nth-child(3) { background: #28c840; margin-right: 0.6cqw; }
.win__body { padding: 1.2cqw 1.4cqw; }

.chat { display: flex; flex-direction: column; gap: 0.75cqw; }
.bubble { max-width: 78%; padding: 0.7cqw 1.1cqw; border-radius: 1.3cqw; font-size: 1.28cqw; }
.bubble--in { background: #e7e9ee; align-self: flex-start; border-bottom-left-radius: 0.4cqw; }
.bubble--out { background: #3f73e6; color: #fff; align-self: flex-end; border-bottom-right-radius: 0.4cqw; }
.chat__who { font-size: 1.1cqw; color: #6b7280; font-weight: 600; }

.doc h4 { margin: 0 0 0.6cqw; font-family: var(--display); font-size: 1.9cqw; letter-spacing: -0.02em; }
.doc p { color: #4a5160; margin-bottom: 0.7cqw; }
.doc table { width: 100%; border-collapse: collapse; font-size: 1.2cqw; }
.doc td { padding: 0.35cqw 0; border-top: 0.08cqw solid #eceef2; }
.doc td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.mail__row { display: grid; grid-template-columns: 2.4cqw 1fr; gap: 0.3cqw 0.9cqw; padding: 0.7cqw 0; border-bottom: 0.08cqw solid #eceef2; }
.mail__row:last-child { border-bottom: 0; }
.mail__av { grid-row: span 2; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: linear-gradient(140deg, #c3cde3, #7f93be); }
.mail__from { font-weight: 650; font-size: 1.2cqw; }
.mail__sub { color: #5d6472; font-size: 1.15cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.slack__ch { font-weight: 650; color: #3b4150; margin-bottom: 0.4cqw; }
.slack__msg { display: grid; grid-template-columns: 2.2cqw 1fr; gap: 0.2cqw 0.8cqw; margin-bottom: 0.8cqw; }
.slack__av { grid-row: span 2; width: 2.2cqw; height: 2.2cqw; border-radius: 0.6cqw; background: linear-gradient(140deg, #9cc7b3, #3f7f69); }
.slack__av--b { background: linear-gradient(140deg, #c7b3e0, #6d5a9c); }
.slack__name { font-weight: 650; font-size: 1.15cqw; }

.notes__title { font-weight: 700; font-size: 1.6cqw; margin-bottom: 0.4cqw; }
.notes li { margin-bottom: 0.25cqw; }
.notes ul { margin: 0; padding-left: 1.6cqw; color: #3f4553; }

/* ---------------------------------------------------- the shoji door */
/* Two paper panels slide shut from the sides. The paper blurs everything
   behind it; the lattice fades once the panels meet, leaving the frosted
   lock itself. */
.door {
  position: absolute;
  z-index: 40;
  top: 0;
  bottom: 0;
  width: 50.2%;
  pointer-events: none;
  background: rgba(214, 222, 238, 0.14);
  -webkit-backdrop-filter: blur(2.4cqw) saturate(1.25);
  backdrop-filter: blur(2.4cqw) saturate(1.25);
  transition: transform 1s cubic-bezier(0.7, 0, 0.2, 1);
}
.door::before {
  /* the lattice: kumiko strips over the paper */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 0.16cqw, transparent 0.16cqw 8.3cqw),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.34) 0 0.16cqw, transparent 0.16cqw 7.8cqw);
  transition: opacity 0.7s ease 0.15s;
}
.door::after {
  /* the stile, the frame edge that leads as the panel slides */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0.55cqw;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18));
  transition: opacity 0.6s ease 0.15s;
}
.door--l { left: 0; transform: translateX(-101%); }
.door--l::after { right: 0; }
.door--r { right: 0; transform: translateX(101%); }
.door--r::after { left: 0; }
.mac[data-phase="closing"] .door,
.mac[data-phase="locked"] .door,
.mac[data-phase="touch"] .door { transform: translateX(0); }
.mac[data-phase="locked"] .door::before,
.mac[data-phase="touch"] .door::before,
.mac[data-phase="locked"] .door::after,
.mac[data-phase="touch"] .door::after { opacity: 0.12; }
.shade {
  position: absolute;
  z-index: 41;
  inset: 0;
  background: rgba(8, 11, 20, 0.34);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.mac[data-phase="locked"] .shade, .mac[data-phase="touch"] .shade { opacity: 1; }

/* ------------------------------------------------------- the island */
.island {
  position: absolute;
  z-index: 70;
  left: 50%;
  top: 0;
  width: 14.5cqw;
  height: 3.1cqw;
  transform: translateX(-50%);
  border-radius: 0 0 1.2cqw 1.2cqw;
  background: #000;
  color: #f4f6f9;
  overflow: hidden;
  transition: width 0.55s var(--spring), height 0.55s var(--spring), border-radius 0.5s var(--ease);
}
.island__in {
  position: absolute;
  inset: 0;
  padding: 3.8cqw 2cqw 1.8cqw;
  display: flex;
  flex-direction: column;
  gap: 1.3cqw;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mac[data-phase="locked"] .island,
.mac[data-phase="touch"] .island { width: 36cqw; height: 15.5cqw; border-radius: 0 0 3.2cqw 3.2cqw; }
.mac[data-phase="locked"] .island__in,
.mac[data-phase="touch"] .island__in { opacity: 1; transition-delay: 0.22s; }
.island__row { display: flex; align-items: center; gap: 1.3cqw; }
.island__av {
  width: 3.9cqw; height: 3.9cqw; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #9aa0aa, #353a43);
  font-weight: 650; font-size: 1.35cqw;
}
.island__who { flex: 1; min-width: 0; }
.island__name { font-weight: 650; font-size: 1.55cqw; }
.island__cap { font-size: 1.25cqw; color: rgba(244, 246, 249, 0.66); transition: color 0.3s; }
.island__tid { width: 3.6cqw; height: 3.6cqw; color: #f4f6f9; transition: color 0.35s, transform 0.4s var(--spring); }
.island__field {
  height: 3cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center;
  padding: 0 1.3cqw;
  font-size: 1.2cqw;
  color: rgba(244, 246, 249, 0.6);
}
.mac[data-phase="touch"] .island__tid { color: var(--ok); transform: scale(1.12); }
.mac[data-phase="touch"] .island__cap { color: var(--ok); }
.island__time { position: absolute; left: 2cqw; top: 0.7cqw; font-size: 1.25cqw; font-weight: 650; opacity: 0; transition: opacity 0.3s 0.3s; }
.mac[data-phase="locked"] .island__time, .mac[data-phase="touch"] .island__time { opacity: 1; }

/* ---------------------------------------------------------- keycaps */
.keys {
  position: absolute;
  z-index: 80;
  left: 50%;
  bottom: 8cqw;
  display: flex;
  gap: 0.8cqw;
  transform: translate(-50%, 1cqw) scale(0.96);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
  pointer-events: none;
}
.keys span {
  display: grid;
  place-items: center;
  min-width: 6cqw;
  height: 6cqw;
  padding: 0 1.4cqw;
  border-radius: 1.3cqw;
  background: linear-gradient(#ffffff, #e9ecf1);
  color: #1a1e27;
  font-weight: 650;
  font-size: 2.6cqw;
  box-shadow: 0 0 0 0.1cqw rgba(0, 0, 0, 0.12), 0 0.5cqw 0 #b9c0cb, 0 1.8cqw 3cqw -1cqw rgba(0, 0, 0, 0.5);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.mac[data-phase="keys"] .keys { opacity: 1; transform: translate(-50%, 0) scale(1); }
.mac[data-phase="keys"].is-pressed .keys span { transform: translateY(0.4cqw); box-shadow: 0 0 0 0.1cqw rgba(0, 0, 0, 0.12), 0 0.1cqw 0 #b9c0cb, 0 0.8cqw 1.6cqw -1cqw rgba(0, 0, 0, 0.5); }

/* --------------------------------------------- the modes on the demo */
/* Blur Screen: everything under one soft layer, and the pill. */
.pill {
  position: absolute;
  z-index: 75;
  left: 50%;
  top: 4.4cqw;
  display: flex;
  align-items: center;
  gap: 0.9cqw;
  padding: 0.8cqw 1.5cqw;
  border-radius: 999px;
  background: #000;
  color: #f4f6f9;
  font-size: 1.3cqw;
  transform: translate(-50%, -0.8cqw);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}
.pill kbd { font-size: 1.1cqw; color: #f4f6f9; background: rgba(255, 255, 255, 0.14); box-shadow: none; height: 1.9cqw; min-width: 2.6cqw; }
.mac[data-quick="on"] .pill { opacity: 1; transform: translate(-50%, 0); }
.mac[data-quick="on"] .win, .mac[data-quick="on"] .wall, .mac[data-quick="on"] .dock, .mac[data-quick="on"] .menubar { filter: blur(1.6cqw) saturate(1.1); }

/* Focus Blur and Private Apps: a window blurs in place. */
.win.is-soft { filter: blur(1.1cqw) saturate(1.05); }
.wall.is-soft { filter: blur(1.1cqw); transform: scale(1.03); }

/* App Lock: the badge over the locked app. */
.badge {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.9cqw;
  padding: 0.75cqw 1.2cqw 0.75cqw 0.8cqw;
  border-radius: 999px;
  background: #000;
  color: #f4f6f9;
  font-size: 1.25cqw;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.45s var(--spring), background-color 0.3s;
  box-shadow: 0 1.4cqw 2.6cqw -1cqw rgba(0, 0, 0, 0.6);
  border: 0;
  font-family: var(--sans);
}
.badge.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.badge svg { width: 1.7cqw; height: 1.7cqw; }
.badge__app { width: 1.9cqw; height: 1.9cqw; border-radius: 0.5cqw; background: linear-gradient(160deg, #ffd66b, #f4b400); }
.badge.is-touch { background: #0c2a1a; }

.win[data-app] { cursor: pointer; }

/* ------------------------------------------------------------ sections */
.section { padding: var(--section-y) 0; position: relative; scroll-margin-top: 64px; }
.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head .label { margin-bottom: 18px; }
.section__head .lede { margin-top: 20px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .lede { margin-left: auto; margin-right: auto; }

.lattice-rule {
  height: 22px;
  background:
    linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 44px) 0 0 / 100% 100%;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* three beats */
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, 0.55); }
.beat { position: relative; padding: clamp(26px, 3vw, 38px); border-right: 1px solid var(--line); }
.beat:last-child { border-right: 0; }
.beat__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-3); }
.beat__key { margin: 22px 0 18px; height: 56px; display: flex; align-items: center; gap: 8px; }
.beat__key kbd { font-size: 22px; }
.beat__key svg { width: 46px; height: 46px; color: var(--indigo); }
.beat h3 { margin-bottom: 10px; }
.beat p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) {
  .beats { grid-template-columns: 1fr; }
  .beat { border-right: 0; border-bottom: 1px solid var(--line); }
  .beat:last-child { border-bottom: 0; }
}

/* the modes */
.modes { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.modes__tabs { display: flex; flex-direction: column; gap: 6px; }
.tab {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  transition: background 0.25s, box-shadow 0.25s;
}
.tab:hover { background: rgba(255, 255, 255, 0.6); }
.tab[aria-selected="true"] { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(20, 30, 60, 0.35); }
.tab__name { font-family: var(--display); font-weight: 620; font-size: 18px; letter-spacing: -0.01em; }
.tab__keys { font-size: 14px; color: var(--ink-3); }
.tab__desc { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); display: none; }
.tab[aria-selected="true"] .tab__desc { display: block; }
.modes__try { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--paper-2); }
.modes__try .label { margin-bottom: 12px; display: block; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.ctl {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 0;
  background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600;
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px -3px rgba(20, 30, 60, 0.3);
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.ctl:hover { transform: translateY(-1px); }
.ctl--main { background: var(--ink); color: #fff; box-shadow: none; }
.ctl[aria-pressed="true"] { background: var(--indigo); color: #fff; box-shadow: none; }
.ctl kbd { font-size: 12px; height: 1.5em; }
.ctl--main kbd, .ctl[aria-pressed="true"] kbd { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: none; }
.modes__hint { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.modes__stage { position: sticky; top: 96px; }
@media (max-width: 960px) {
  .modes { grid-template-columns: 1fr; }
  .modes__stage { position: relative; top: 0; order: -1; }
}

/* night sections */
.night { background: var(--night); color: var(--on-night); }
.night .lattice-rule { --line: var(--night-line); }
.guard { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .guard { grid-template-columns: 1fr; } }
.guard__points { margin-top: 32px; display: grid; gap: 22px; }
.point { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.point__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--night-3); color: var(--indigo-lit); }
.point__ico svg { width: 19px; height: 19px; }
.point h3 { font-size: 17px; margin-bottom: 4px; }
.point p { color: var(--on-night-2); font-size: 15.5px; }

.log {
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.2vw, 14px);
  line-height: 1.9;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  background: var(--night-2);
  box-shadow: 0 0 0 1px var(--night-line);
  color: var(--on-night-2);
  overflow-x: auto;
}
.log__head { display: flex; gap: 7px; margin-bottom: 18px; }
.log__head i { width: 11px; height: 11px; border-radius: 50%; background: #2a3242; }
.log__row { display: grid; grid-template-columns: 7.5em 7.5em 1fr; gap: 12px; white-space: nowrap; opacity: 0.25; transition: opacity 0.5s; }
.log__row.is-in { opacity: 1; }
.log__row time { color: var(--on-night-3); }
.log__row b { color: var(--on-night); font-weight: 600; }
.log__row .ok { color: var(--ok); }

/* privacy */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust__list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.trust__list b { color: var(--ink); font-weight: 620; }
.check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); margin-top: 1px; }
.check svg { width: 12px; height: 12px; }
.proof {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.85;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--ink);
  color: #c8cfdb;
}
.proof .c { color: #8a93a6; }
.proof .ok { color: var(--ok); }

/* details */
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.detail { background: var(--paper); padding: clamp(24px, 2.6vw, 34px); transition: background 0.3s; }
.detail:hover { background: #fff; }
.detail__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--indigo); margin-bottom: 18px; }
.detail__ico svg { width: 21px; height: 21px; }
.detail h3 { font-size: 17.5px; margin-bottom: 8px; }
.detail p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 900px) { .details { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .details { grid-template-columns: 1fr; } }

/* pricing */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .price { grid-template-columns: 1fr; } }
.price__card {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(20, 30, 60, 0.45);
  overflow: hidden;
}
.price__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, var(--line-2) 0 1px, transparent 1px 64px);
  mask-image: linear-gradient(160deg, #000, transparent 55%);
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 55%);
  pointer-events: none;
}
.price__amount { position: relative; display: flex; align-items: baseline; gap: 12px; }
.price__amount b { font-family: var(--display); font-size: clamp(64px, 8vw, 96px); letter-spacing: -0.045em; line-height: 1; font-weight: 650; }
.price__amount span { color: var(--ink-3); font-size: 18px; }
.price__list { position: relative; list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; }
.price__list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--ink-2); font-size: 16px; }
.price__list b { color: var(--ink); font-weight: 620; }
.price__cta { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }
.price__note { position: relative; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__body { padding: 0 0 24px; color: var(--ink-2); display: grid; gap: 12px; max-width: 44em; }
.faq code { font-family: var(--mono); font-size: 0.88em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }


/* footer */
.footer { padding: 56px 0 44px; border-top: 1px solid var(--line); }
.footer__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.footer__brand p { margin-top: 12px; color: var(--ink-3); font-size: 15px; max-width: 30em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.footer__links a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; }
.footer__links a:hover { color: var(--ink); }
.footer__sign { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-3); padding-top: 24px; border-top: 1px solid var(--line-2); }
.footer__sign a { color: var(--ink-2); }
@media (max-width: 700px) { .footer__in { grid-template-columns: 1fr; } .footer__links { justify-content: flex-start; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* simple pages (privacy, thanks) */
.page { padding: clamp(56px, 8vw, 96px) 0; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(38px, 5vw, 56px); max-width: none; }
.page h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.015em; }
.page p, .page li { color: var(--ink-2); }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 20px; display: grid; gap: 8px; }
.page .lede { margin-top: 18px; }
.page .card { margin-top: 32px; padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.page code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }

/* ------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  .gate { height: 100vh; }
  .moon__light { animation: none; }
}
