/* Calculator Vault home page.
   Palette: vault teal (the app's #009688, deepened for the hero), mineral grey-green
   paper, brass for the lock hardware. Display: Bricolage Grotesque. Text: Atkinson Hyperlegible. */

:root {
  --bg: #eef2f0;
  --surface: #ffffff;
  --surface-2: #e2e9e6;
  --ink: #0f2624;
  --muted: #4a5d5a;
  --line: #c9d5d1;
  --teal: #00796b;
  --teal-2: #009688;
  --teal-soft: #d8ece8;
  --brass: #94600f;
  --brass-bright: #e3b04b;
  --vault: #06302c;
  --vault-2: #0c4741;
  --vault-ink: #eaf4f2;
  --vault-muted: #a9c7c2;
  --ring: #00796b;
  --shadow: 0 30px 60px -36px rgba(6, 48, 44, .45);

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(16px, 4vw);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1615;
    --surface: #12201e;
    --surface-2: #172927;
    --ink: #e4eeec;
    --muted: #a0b5b1;
    --line: #26413d;
    --teal: #5fc4b8;
    --teal-2: #4db6ac;
    --teal-soft: #173a36;
    --brass: #e3b04b;
    --vault: #041f1c;
    --vault-2: #0a3531;
    --ring: #e3b04b;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; }
h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 650; letter-spacing: -.005em; }
p { margin: 0; }
a { color: var(--teal); text-underline-offset: .18em; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: .05em .4em;
  border-radius: .4em;
  border: 1px solid currentColor;
  border-bottom-width: 2px;
  font: 600 .85em/1.4 var(--display);
  text-align: center;
  vertical-align: .05em;
}
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brass-bright); color: #1b1404; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--brass-bright); color: #1b1404; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.pro {
  display: inline-block;
  margin-left: .35em;
  padding: .1em .55em;
  border-radius: 999px;
  background: var(--brass-bright);
  color: #2a1d03;
  font: 700 .72rem/1.5 var(--text);
  letter-spacing: .02em;
  vertical-align: .2em;
}

/* ---------- Google Play button (drawn here, not Google's image) ---------- */
.play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 20px 7px 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid #8a9593;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.play:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(227, 176, 75, .55), 0 14px 28px -14px rgba(0, 0, 0, .6); }
.play:active { transform: translateY(0); }
.play:focus-visible { outline-color: var(--brass-bright); outline-offset: 3px; border-radius: 12px; }
.play-ico { width: 24px; height: 26px; flex: none; }
.play-text { display: flex; flex-direction: column; line-height: 1.1; }
.play-text small { font: 400 .7rem/1.1 var(--text); letter-spacing: .02em; }
.play-text b { font: 600 1.3rem/1.05 var(--display); letter-spacing: -.01em; }
.play-lg { min-height: 62px; padding: 9px 24px 9px 18px; gap: 12px; }
.play-lg .play-ico { width: 30px; height: 32px; }
.play-lg .play-text b { font-size: 1.55rem; }
.play-sm { min-height: 42px; padding: 5px 14px 5px 10px; gap: 8px; border-radius: 10px; }
.play-sm .play-ico { width: 18px; height: 20px; }
.play-sm .play-text small { font-size: .62rem; }
.play-sm .play-text b { font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 48, 44, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--vault-ink);
  --ring: var(--brass-bright);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(4, 31, 28, .88); }
  .pro-band { border-block: 1px solid rgba(227, 176, 75, .22); }
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font: 700 1.1rem/1 var(--display); letter-spacing: -.01em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--vault-muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: #fff; }
.header-row .play { margin-left: 0; }
@media (max-width: 880px) {
  .nav { display: none; }
  .header-row .play { margin-left: auto; }
}
@media (max-width: 400px) {
  .site-header .brand-name { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--vault-ink);
  background:
    radial-gradient(1200px 600px at 78% 40%, var(--vault-2), transparent 70%),
    var(--vault);
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
  --ring: var(--brass-bright);
}
.hero-ring {
  position: absolute;
  z-index: -1;
  width: min(1000px, 140vw);
  right: -18%;
  top: 50%;
  color: rgba(227, 176, 75, .13);
  transform: translate3d(0, calc(-50% + var(--py, 0px)), 0) rotate(var(--rot, 0deg));
  will-change: transform;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-title {
  font-size: clamp(2.5rem, 1.25rem + 5.2vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 760;
  font-variation-settings: "opsz" 96;
}
.hero-title .line { display: block; }
.hero-lede {
  margin-top: 24px;
  max-width: 34rem;
  font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem);
  color: var(--vault-muted);
}
.hero-lede kbd { color: var(--vault-ink); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.downloads { display: flex; align-items: baseline; gap: 10px; }
.downloads-num {
  font: 750 2.4rem/1 var(--display);
  letter-spacing: -.03em;
  color: var(--brass-bright);
  font-variant-numeric: tabular-nums;
  min-width: 3.1ch;
}
.downloads-label { color: var(--vault-muted); font-size: .95rem; line-height: 1.25; max-width: 12rem; }
.hero-note { margin-top: 22px; color: var(--vault-muted); font-size: .95rem; }

.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo-hint { max-width: 20rem; text-align: center; color: var(--vault-muted); font-size: .92rem; line-height: 1.5; }
.demo-hint kbd { color: var(--vault-ink); margin-inline: 1px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-ring { right: auto; left: 50%; top: 72%; transform: translate3d(-50%, calc(-50% + var(--py, 0px)), 0) rotate(var(--rot, 0deg)); }
}

/* ---------- Phone and calculator demo ---------- */
.phone {
  position: relative;
  width: min(300px, 80vw, max(250px, calc((100svh - 300px) * .4839)));
  aspect-ratio: 300 / 620;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a3e3b, #0e1a19 60%);
  box-shadow:
    inset 0 0 0 2px #3c5853,
    inset 0 0 0 6px #0b1514,
    0 50px 90px -40px rgba(0, 0, 0, .75),
    0 0 0 1px rgba(255, 255, 255, .04);
}
.phone-notch {
  position: absolute; z-index: 5; top: 20px; left: 50%;
  width: 22%; height: 18px; transform: translateX(-50%);
  border-radius: 999px; background: #0b1514;
}
.screen {
  position: absolute;
  inset: 10px;
  border-radius: 37px;
  overflow: hidden;
  background: #0f2523;
  container-type: inline-size;
  perspective: 1300px;
}

.door {
  position: absolute; inset: 0; z-index: 2;
  transform-origin: 0 50%;
  backface-visibility: hidden;
  transition: transform 1s cubic-bezier(.65, 0, .25, 1);
}
.calc {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 16cqw 6cqw 7cqw;
  background: #f6f7fb;
  color: #14211f;
}
.calc-display {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end;
  padding: 0 1cqw 5cqw;
  min-height: 0;
}
.calc-expr {
  min-height: 1.4em;
  font: 500 6.4cqw/1.4 var(--display);
  color: #5d6d6a;
  white-space: nowrap; overflow: hidden; max-width: 100%;
}
.calc-out {
  display: block;
  max-width: 100%;
  font: 600 17cqw/1.05 var(--display);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: clip;
  direction: ltr;
}
.calc-out.is-long { font-size: 11cqw; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3cqw; }
.key {
  aspect-ratio: 1;
  border: 0; border-radius: 50%;
  background: #ffffff;
  color: #1d2b29;
  font: 500 7.6cqw/1 var(--display);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .07), 0 4px 10px -6px rgba(0, 0, 0, .18);
  transition: transform .12s ease, background-color .12s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.key:hover { background: #eef3f2; }
.key:active, .key.is-pressed { transform: scale(.9); background: #dce9e6; }
.key:focus-visible { outline: 3px solid var(--brass-bright); outline-offset: 2px; border-radius: 50%; }
.k-fn { background: #e4f1ee; color: #00695c; }
.k-op { background: #cfe7e3; color: #00594f; font-size: 9cqw; }
.k-eq { background: #009688; color: #fff; font-size: 9cqw; }
.k-eq:hover { background: #00897b; }
.k-eq.is-pressed, .k-eq:active { background: #00695c; }
.k-zero { grid-column: span 2; aspect-ratio: auto; border-radius: 999px; }
.k-zero:focus-visible { border-radius: 999px; }

/* Steel face that appears when the right code is typed */
.door-steel {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, transparent 31cqw, rgba(0, 0, 0, .18) 31.5cqw, transparent 33cqw),
    linear-gradient(150deg, #c7d1cf, #8d9b98 55%, #6e7d7a);
  box-shadow: inset 0 0 0 4cqw #a6b2b0, inset 0 0 0 4.6cqw #5f6e6b;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.wheel { width: 52cqw; height: 52cqw; color: #3f4d4b; transition: transform .8s cubic-bezier(.5, 0, .3, 1) .15s; filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .4)); }
.bolt {
  position: absolute; right: 0; width: 12cqw; height: 4.5cqw;
  border-radius: 2cqw 0 0 2cqw;
  background: linear-gradient(#f2cf7e, #b7832a);
  transition: transform .35s ease .75s;
}
.b1 { top: 22%; } .b2 { top: 49%; } .b3 { top: 76%; }

.phone.is-unlocking .door-steel { opacity: 1; }
.phone.is-unlocking .wheel { transform: rotate(270deg); }
.phone.is-unlocking .bolt { transform: translateX(-10cqw); }
.phone.is-open .door { transform: rotateY(-112deg); }

/* The vault behind the door */
.vault {
  position: absolute; inset: 0; z-index: 1;
  padding: 15cqw 5cqw 5cqw;
  background: radial-gradient(120% 70% at 50% 0%, #17403b, #0c201e 70%);
  color: #e9f3f1;
  display: flex; flex-direction: column; gap: 4cqw;
}
.vault-bar { display: flex; align-items: center; justify-content: space-between; }
.vault-title { font: 700 7.5cqw/1 var(--display); letter-spacing: -.02em; }
.vault-lock {
  border: 1px solid rgba(227, 176, 75, .7);
  background: transparent;
  color: #f2cf7e;
  font: 700 4.4cqw/1 var(--text);
  padding: 2.2cqw 4cqw;
  border-radius: 999px;
  cursor: pointer;
}
.vault-lock:hover { background: rgba(227, 176, 75, .15); }
.vault-lock:focus-visible { outline: 3px solid var(--brass-bright); outline-offset: 2px; border-radius: 999px; }
.vault-tabs { display: flex; gap: 2cqw; font-size: 4cqw; color: #9dbab5; overflow: hidden; }
.vault-tabs span { padding: 1.4cqw 3cqw; border-radius: 999px; white-space: nowrap; }
.vault-tabs .on { background: #e3b04b; color: #2a1d03; font-weight: 700; }
.vault-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }

.tile {
  position: relative; overflow: hidden;
  aspect-ratio: 1;
  border-radius: 3.5cqw;
  opacity: 0;
  transform: scale(.82) translateY(4cqw);
  transition: opacity .4s ease, transform .5s var(--ease);
}
.phone.is-open .tile {
  opacity: 1; transform: none;
  transition-delay: calc(.55s + var(--i, 0) * 70ms);
}
.tile:nth-child(1) { --i: 0; } .tile:nth-child(2) { --i: 1; } .tile:nth-child(3) { --i: 2; }
.tile:nth-child(4) { --i: 3; } .tile:nth-child(5) { --i: 4; } .tile:nth-child(6) { --i: 5; }
.tile:nth-child(7) { --i: 6; } .tile:nth-child(8) { --i: 7; } .tile:nth-child(9) { --i: 8; }

.t-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: rgba(24, 12, 34, .5);
  clip-path: polygon(0 100%, 0 55%, 22% 18%, 42% 58%, 64% 8%, 100% 62%, 100% 100%);
}
.t-photo::before {
  content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%;
  top: 18%; right: 20%; background: rgba(255, 246, 220, .85);
}
.t-sunset { background: linear-gradient(#ffc27a, #ff7a63 55%, #7b3c66); }
.t-sea { background: linear-gradient(#a7dcf7, #4ea2d4 55%, #1a5a86); }
.t-sea::after { background: rgba(8, 40, 70, .5); clip-path: polygon(0 100%, 0 70%, 30% 52%, 55% 66%, 80% 46%, 100% 60%, 100% 100%); }
.t-forest { background: linear-gradient(#d7ecca, #74ad72 50%, #2e5b39); }
.t-forest::before { display: none; }
.t-forest::after { background: rgba(14, 44, 24, .7); clip-path: polygon(0 100%, 10% 40%, 20% 100%, 25% 100%, 37% 25%, 49% 100%, 54% 100%, 68% 35%, 82% 100%, 86% 100%, 95% 50%, 100% 70%, 100% 100%); }
.t-dusk { background: linear-gradient(#2d3477, #8b5fbf 60%, #f2a57d); }
.t-dusk::before { background: rgba(255, 255, 255, .9); width: 14%; top: 14%; right: 30%; }

.t-video { background: linear-gradient(135deg, #34505e, #15242c); }
.t-v2 { background: linear-gradient(135deg, #5b3b52, #1f1520); }
.t-video::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 26%; aspect-ratio: 1;
  transform: translate(-40%, -50%);
  background: rgba(255, 255, 255, .92);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.t-dur { position: absolute; right: 6%; bottom: 6%; font: 700 3.3cqw/1 var(--text); color: #fff; font-style: normal; }

.t-audio { background: #e3b04b; display: flex; align-items: center; justify-content: center; gap: 3.5%; }
.t-audio i { display: block; width: 6%; border-radius: 99px; background: #3a2704; height: 30%; }
.t-audio i:nth-of-type(2) { height: 55%; } .t-audio i:nth-of-type(3) { height: 75%; }
.t-audio i:nth-of-type(4) { height: 45%; } .t-audio i:nth-of-type(5) { height: 65%; }
.t-audio i:nth-of-type(6) { height: 35%; } .t-audio i:nth-of-type(7) { height: 20%; }
.phone.is-open .t-audio i { animation: eq 1.1s ease-in-out infinite alternate; }
.t-audio i:nth-of-type(2n) { animation-delay: -.4s !important; }
.t-audio i:nth-of-type(3n) { animation-delay: -.7s !important; }
@keyframes eq { to { transform: scaleY(.45); } }

.t-doc {
  background:
    repeating-linear-gradient(#f4f6f5 0 9%, #c5cfcc 9% 11%) 18% 28% / 64% 56% no-repeat,
    #f4f6f5;
}
.t-doc b {
  position: absolute; left: 10%; bottom: 10%;
  padding: 1cqw 1.6cqw; border-radius: 1cqw;
  background: #d84a3a; color: #fff; font: 700 3.2cqw/1 var(--text);
}
.t-note {
  background:
    linear-gradient(#5c7a74, #5c7a74) 36% 26% / 44% 6% no-repeat,
    linear-gradient(#5c7a74, #5c7a74) 36% 50% / 44% 6% no-repeat,
    linear-gradient(#5c7a74, #5c7a74) 36% 74% / 30% 6% no-repeat,
    #fff4d6;
}
.t-note::before {
  content: ""; position: absolute; left: 14%; top: 20%; width: 12%; height: 62%;
  background:
    linear-gradient(#009688, #009688) 0 0 / 100% 20% no-repeat,
    linear-gradient(#009688, #009688) 0 50% / 100% 20% no-repeat,
    linear-gradient(transparent, transparent) 0 100% / 100% 20% no-repeat;
  border-radius: 1px;
}
.t-note::after {
  content: ""; position: absolute; left: 14%; bottom: 18%; width: 12%; height: 12.4%;
  border: 2px solid #5c7a74; border-radius: 2px;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 128px); }
section[id] { scroll-margin-top: 68px; }
.section-head { max-width: 42rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 36rem; }
.disguise, .tools { background: var(--surface); }

/* What it hides */
.hide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.kinds { display: grid; }
.kind {
  display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.kind:last-child { border-bottom: 1px solid var(--line); }
.kind p { color: var(--muted); margin-top: 4px; }
.kind-art { position: relative; width: 68px; height: 68px; border-radius: 18px; overflow: hidden; }
.k-photos { background: var(--teal-soft); }
.k-photos i {
  position: absolute; width: 34px; height: 40px; border-radius: 6px; left: 17px; top: 14px;
  border: 3px solid #fff; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35);
}
.k-photos i:nth-child(1) { background: linear-gradient(#a7dcf7, #1a5a86); transform: rotate(-14deg) translateX(-6px); }
.k-photos i:nth-child(2) { background: linear-gradient(#d7ecca, #2e5b39); transform: rotate(9deg) translateX(6px); }
.k-photos i:nth-child(3) { background: linear-gradient(#ffc27a, #7b3c66); }
.k-videos { background: linear-gradient(135deg, #34505e, #15242c); }
.k-videos::before { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 24px; translate: 3px 0; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.k-audio { background: #e3b04b; display: flex; align-items: center; justify-content: center; gap: 4px; }
.k-audio i { width: 5px; border-radius: 9px; background: #3a2704; height: 18px; }
.k-audio i:nth-child(2) { height: 32px; } .k-audio i:nth-child(3) { height: 44px; } .k-audio i:nth-child(4) { height: 28px; } .k-audio i:nth-child(5) { height: 14px; }
.k-docs { background: var(--surface-2); }
.k-docs::before {
  content: ""; position: absolute; left: 18px; top: 12px; width: 32px; height: 44px; border-radius: 4px;
  background: repeating-linear-gradient(#fff 0 7px, #c5cfcc 7px 9px) 6px 12px / 20px 26px no-repeat, #fff;
  clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3);
}
.k-docs::after { content: ""; position: absolute; left: 40px; top: 12px; width: 10px; height: 10px; background: #c5cfcc; clip-path: polygon(0 0, 100% 100%, 0 100%); }

/* Notes mock */
.notes-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 22px 26px;
  box-shadow: var(--shadow);
}
.nm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nm-title { font: 700 1.35rem/1.2 var(--display); }
.nm-tools { display: flex; gap: 6px; color: var(--muted); }
.nm-tool { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: var(--surface-2); font-size: .95rem; }
.nm-find { background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.nm-find-bar {
  display: flex; justify-content: space-between; margin-top: 14px;
  padding: 9px 14px; border-radius: 12px; border: 2px solid var(--teal-2);
  font-size: .95rem;
}
.nm-count { color: var(--muted); font-size: .85rem; }
.nm-list { margin: 16px 0 22px; display: grid; gap: 4px; }
.nm-list li { display: flex; align-items: center; gap: 12px; padding: 8px 2px; border-bottom: 1px dashed var(--line); }
.nm-list .box {
  position: relative; flex: none; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--muted);
  transition: background-color .25s ease, border-color .25s ease;
}
.nm-list .box::after {
  content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0);
  transition: transform .3s var(--ease) .1s;
}
.nm-list .done .box, .is-in .nm-list .tick .box { background: var(--teal-2); border-color: var(--teal-2); }
.nm-list .done .box::after, .is-in .nm-list .tick .box::after { transform: rotate(45deg) scale(1); }
.nm-list .done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted); }
.is-in .nm-list .tick { color: var(--muted); }
.nm-list .tick .box { transition-delay: .9s; }
.nm-list .tick .box::after { transition-delay: 1s; }
.nm-list mark { background: rgba(227, 176, 75, .45); color: inherit; border-radius: 3px; padding: 0 2px; }
.notes-mock figcaption p { color: var(--muted); margin-top: 6px; }

/* Disguise */
.disguise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.disguise-copy > p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 9px;
  border: solid var(--teal); border-width: 0 0 3px 3px; transform: rotate(-45deg);
}
.icon-pick {
  margin: 32px 0 0; padding: 20px 20px 22px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg);
}
.icon-pick legend { padding: 0 8px; margin-left: -8px; font: 650 1.1rem/1.3 var(--display); }
.icon-pick-help { color: var(--muted); font-size: .95rem; }
.icon-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.icon-options label {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.icon-options input { accent-color: var(--teal-2); width: 18px; height: 18px; margin: 0; }
.icon-options label:has(input:checked) { border-color: var(--teal-2); background: var(--teal-soft); font-weight: 700; }
.icon-options label:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.icon-options input:focus-visible { outline: none; }

.home-mock { display: flex; justify-content: center; }
.home-screen {
  width: min(380px, 100%);
  padding: 28px 22px 34px;
  border-radius: 36px;
  background:
    radial-gradient(90% 70% at 20% 10%, rgba(255, 210, 140, .55), transparent 60%),
    radial-gradient(80% 80% at 90% 100%, rgba(77, 182, 172, .7), transparent 60%),
    linear-gradient(160deg, #3c4f7a, #20343f);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #fff;
}
.home-time { font: 300 3.4rem/1 var(--display); letter-spacing: -.03em; margin: 6px 4px 26px; }
.home-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 8px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: .74rem; text-align: center; line-height: 1.2; }
.app > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-ico { position: relative; width: min(58px, 100%); aspect-ratio: 1; border-radius: 30%; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); }
.a1 { background: linear-gradient(140deg, #5d6b78, #2c343d); }
.a1::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; border: 4px solid #e8edf2; }
.a2 { background: linear-gradient(140deg, #6fd47c, #2e9e48); }
.a2::after { content: ""; position: absolute; inset: 28% 24% 34%; border-radius: 40% 40% 40% 8%; background: #fff; }
.a3 { background: linear-gradient(140deg, #fff 0 45%, #9ad6a0 45% 60%, #6cb2f0 60%); }
.a4 { background: linear-gradient(140deg, #ff7a8a, #c4325a); }
.a4::after {
  content: ""; position: absolute; inset: 22% 26%;
  background:
    radial-gradient(circle at 34% 78%, #fff 0 20%, transparent 21%),
    linear-gradient(#fff, #fff) 58% 8% / 12% 66% no-repeat,
    linear-gradient(#fff, #fff) 58% 8% / 40% 12% no-repeat;
}
.a5 { background: linear-gradient(140deg, #6fb6ff, #2f6fd6); }
.a5::after { content: ""; position: absolute; inset: 32% 22%; background: #fff; clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); }
.a6 { background: conic-gradient(#ffcf4a 0 25%, #ff6b6b 0 50%, #6b8cff 0 75%, #47c89a 0); }
.a7 { background: linear-gradient(140deg, #ffd27a, #e19a2b); }
.a7::after { content: ""; position: absolute; inset: 32% 22% 28%; background: #fff6df; border-radius: 3px; }

.ours { display: grid; place-items: center; background: #009688; transition: background-color .35s ease; }
.ours .ic { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.home-screen[data-skin="calc"] .ic-calc,
.home-screen[data-skin="budget"] .ic-budget,
.home-screen[data-skin="compass"] .ic-compass,
.home-screen[data-skin="weather"] .ic-weather { opacity: 1; }
.home-screen[data-skin="budget"] .ours { background: #2e7d32; }
.home-screen[data-skin="compass"] .ours { background: #37474f; }
.home-screen[data-skin="weather"] .ours { background: #3d8fd9; }
.app-ours .app-ico { outline: 2px dashed rgba(255, 220, 150, .9); outline-offset: 4px; }
.app-ours .app-label { font-weight: 700; }
.app-ico.flip { animation: flip .55s var(--ease); }
@keyframes flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg) scale(.9); } 100% { transform: rotateY(0); } }

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.security-copy > div > p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.guards { margin-top: 36px; display: grid; }
.guards li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.guards li:last-child { border-bottom: 1px solid var(--line); }
.guards svg, .tool-grid svg {
  width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.guards svg { margin-top: 2px; }
.guards p { color: var(--muted); margin-top: 4px; }
.guards kbd { color: var(--ink); }

.security-art { display: grid; gap: 28px; position: sticky; top: 100px; }
.decoy, .crash {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.decoy figcaption, .crash figcaption { margin-top: 20px; }
.decoy figcaption p, .crash figcaption p { color: var(--muted); margin-top: 6px; }
.decoy-rows { display: grid; gap: 14px; }
.decoy-row { display: grid; grid-template-columns: auto minmax(20px, 1fr) auto; align-items: center; gap: 12px; }
.code {
  padding: 8px 14px; border-radius: 12px;
  background: #f6f7fb; color: #14211f;
  border: 1px solid var(--line);
  font: 600 1.3rem/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.arrow { position: relative; height: 2px; background: var(--muted); }
.arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--muted); border-right: 0; }
.mini-vault { display: grid; grid-template-columns: repeat(2, 26px); gap: 4px; padding: 7px; border-radius: 12px; }
.mini-vault i { height: 26px; border-radius: 6px; }
.real { background: #0f2523; }
.real i:nth-child(1) { background: linear-gradient(#ffc27a, #7b3c66); }
.real i:nth-child(2) { background: linear-gradient(135deg, #34505e, #15242c); }
.real i:nth-child(3) { background: #e3b04b; }
.real i:nth-child(4) { background: linear-gradient(#a7dcf7, #1a5a86); }
.fake { background: var(--surface-2); }
.fake i { background: linear-gradient(#e9efe9, #b9c9bb); }
.fake i:nth-child(2) { background: linear-gradient(#f6ead2, #d9c09a); }
.fake i:nth-child(3) { background: linear-gradient(#dfe8f2, #aebfd3); }

.crash-dialog {
  position: relative;
  padding: 44px 28px;
  border-radius: 18px;
  background: repeating-linear-gradient(180deg, #cfd7d5 0 14px, #dfe5e3 14px 28px);
  overflow: hidden;
}
.crash-dialog::before { content: ""; position: absolute; inset: 0; background: rgba(10, 20, 19, .45); }
.crash-dialog > * { position: relative; }
.crash-title {
  background: #fff; color: #1b2422; border-radius: 16px 16px 0 0;
  padding: 18px 20px 14px; font: 600 1.05rem/1.3 var(--text);
}
.crash-btn {
  background: #fff; color: #00796b; border-radius: 0 0 16px 16px;
  padding: 4px 20px 16px; font-weight: 700; font-size: .95rem;
}

/* Tools */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  column-gap: clamp(20px, 3vw, 40px);
}
.tool-grid li { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.tool-grid h3 { margin-top: 14px; }
.tool-grid p { color: var(--muted); margin-top: 6px; }

/* Recovery + languages */
.pair { padding-top: clamp(64px, 10vw, 128px); }
.pair-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
}
.panel h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.panel > p { margin-top: 14px; color: var(--muted); }
.reset-mock {
  display: grid; gap: 8px; margin-top: 26px;
  padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line);
}
.rm-q { font-size: .95rem; font-weight: 700; }
.rm-a {
  position: relative; height: 44px; border-radius: 10px;
  border: 2px solid var(--teal-2); background: var(--surface);
}
.rm-a::before {
  content: "●●●●●●●"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  letter-spacing: .25em; color: var(--ink); font-size: .8rem;
  clip-path: inset(0 100% 0 0);
}
.is-in .rm-a::before { animation: typeIn 1.6s steps(7) .4s forwards; }
@keyframes typeIn { to { clip-path: inset(0 0 0 0); } }
.lang-list { display: flex; flex-wrap: wrap; gap: 10px 10px; margin-top: 22px; }
.lang-list li {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
  font: 500 1.02rem/1.4 var(--display);
}

/* Pro band */
.pro-band {
  background:
    radial-gradient(800px 400px at 90% 0%, var(--vault-2), transparent 70%),
    var(--vault);
  color: var(--vault-ink);
  --ring: var(--brass-bright);
}
.pro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 64px; align-items: center; }
.pro-grid p { margin-top: 14px; color: var(--vault-muted); font-size: 1.1rem; }
.pro-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.pro-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14);
  font: 600 1.2rem/1.3 var(--display);
}
.pro-list li::before {
  content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brass-bright); box-shadow: 0 0 0 5px rgba(227, 176, 75, .2);
}

/* FAQ */
.faq-wrap { max-width: calc(52rem + 2 * var(--gutter)); }
.faq-list { margin-top: clamp(28px, 4vw, 44px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 52px 22px 0;
  font: 650 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 12px; top: 50%;
  width: 18px; height: 2px; background: var(--teal); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--teal); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 44rem; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: faqIn .35s var(--ease); }
}
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* Final */
.final { padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 10vw, 128px); }
.final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.final-mark { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow); }
.final h2 { max-width: 20ch; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-footer .brand { color: var(--ink); }
.site-footer .brand-mark { width: 30px; height: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--ink); }
.footer-links a:hover { color: var(--teal); }
.copy { color: var(--muted); margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hide-grid, .disguise-grid, .security-grid, .pair-grid, .pro-grid { grid-template-columns: minmax(0, 1fr); }
  .security-art { position: static; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
}
@media (max-width: 560px) {
  .pro-list { grid-template-columns: minmax(0, 1fr); }
  .copy { margin-left: 0; }
  .home-screen { padding: 22px 14px 26px; border-radius: 28px; }
  .home-apps { gap: 16px 4px; }
  .decoy, .crash, .notes-mock { padding: 18px; border-radius: 22px; }
  .code { font-size: 1.1rem; padding: 7px 10px; }
  .crash-dialog { padding: 32px 16px; }
}
@media (max-width: 360px) {
  .hero-cta .play-lg { padding-inline: 14px 18px; }
  .mini-vault { grid-template-columns: repeat(2, 20px); }
  .mini-vault i { height: 20px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line, .hero-lede, .hero-cta, .hero-note {
    animation: rise .9s var(--ease) both;
  }
  .hero-title .line:nth-child(2) { animation-delay: .08s; }
  .hero-lede { animation-delay: .18s; }
  .hero-cta { animation-delay: .28s; }
  .hero-note { animation-delay: .36s; }
  .hero-demo { animation: phoneIn 1.1s var(--ease) .15s both; }

  .js [data-reveal] {
    opacity: 0;
    translate: 0 22px;
    transition: opacity .8s var(--ease), translate .8s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }
  .js .hide-grid [data-reveal]:nth-child(2),
  .js .security-art [data-reveal]:nth-child(2),
  .js .pair-grid [data-reveal]:nth-child(2) { transition-delay: .12s; }

  [data-tilt] {
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .5s var(--ease), opacity .8s var(--ease), translate .8s var(--ease);
  }
  [data-tilt].is-tilting { transition: transform .12s linear, opacity .8s var(--ease), translate .8s var(--ease); }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(3deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .phone.is-open .t-audio i { animation: none; }
}

@media (forced-colors: active) {
  .play, .key, .vault-lock { border: 1px solid ButtonText; }
}
.phone.is-open .door { pointer-events: none; }
