/* Entrare brochure site — tokens from assets/brand/Entrare-Logo-Kit/tokens */
:root {
  --midnight: #16202E;
  --brass: #B38B59;       /* key bar + rare highlights only; never small text on light */
  --deep-brass: #8A6A3F;  /* accessible accent text on light */
  --stone: #E8E3DA;
  --ivory: #FAF8F4;
  --graphite: #5E646E;
  --white: #FFFFFF;
  --line: #E3DDD2;

  --font-display: 'Sora', 'Avenir Next', sans-serif;
  --font-ui: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--midnight);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--midnight); }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-family: var(--font-ui); font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--midnight); color: var(--ivory); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--deep-brass); outline-offset: 3px; border-radius: 4px; }
.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; }

/* Labels — Manrope 600, tracked caps, Deep Brass on light */
.label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep-brass);
  margin-bottom: 18px;
}
.label-brass { color: var(--brass); } /* allowed on Midnight (5.3:1) */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 0.98rem/1 var(--font-ui);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--midnight); color: var(--ivory); }
.btn-primary:hover { background: #22303F; }
.btn-ghost { border-color: #CFC8BB; color: var(--midnight); background: transparent; }
.btn-ghost:hover { border-color: var(--midnight); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { width: 132px; height: auto; } /* ≥ 96px min lockup width */
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  margin: 0 -12px; padding: 7px 12px; border: 1.5px solid transparent; border-radius: 999px;
  text-decoration: none; white-space: nowrap; font-weight: 500; font-size: 0.96rem; color: var(--graphite);
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--midnight); }
.nav a.is-current { border-color: var(--brass); color: var(--midnight); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; background: var(--stone); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font: 600 0.78rem/1 var(--font-ui); letter-spacing: 0.08em; color: var(--graphite);
  padding: 8px 11px; border-radius: 999px; min-width: 38px;
}
.lang button[aria-pressed="true"] { background: var(--white); color: var(--midnight); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--midnight); transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 12ch; }
.lead { margin-top: 26px; font-size: 1.16rem; color: var(--graphite); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-points li { position: relative; padding-left: 18px; font-weight: 600; font-size: 0.92rem; color: var(--midnight); }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 4px; margin-top: -2px; background: var(--brass); }

.hero-visual { position: relative; }

/* App preview — mirrors the resident app (reservation card + access code sheet) */
.app-preview { display: grid; gap: 14px; width: 100%; max-width: 400px; margin-left: auto; }
.app-res, .app-sheet { background: var(--white); border: 1px solid #E5E3DF; border-radius: 22px; }
.app-res { display: flex; align-items: center; gap: 14px; padding: 16px; box-shadow: 0 10px 30px rgba(20, 16, 8, .05); }
.app-res-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #EAEAEB; display: grid; place-items: center; }
.app-res-icon svg, .app-code-btn svg, .app-sheet-head svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-res-icon svg { width: 20px; height: 20px; color: #58595B; }
.app-res-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-res-title { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.app-res-meta { font-size: 0.84rem; line-height: 1.35; color: var(--graphite); }
.app-badge { align-self: flex-start; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: #E4EEE7; color: #4C7A5C; font-size: 0.74rem; font-weight: 700; }
.app-code-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; background: #EFECE3; color: var(--deep-brass); font-size: 0.84rem; font-weight: 600; }
.app-code-btn svg { width: 15px; height: 15px; }
.app-sheet { display: flex; flex-direction: column; align-items: center; padding: 22px 24px 24px; box-shadow: 0 24px 60px rgba(10, 8, 4, .14); }
.app-sheet-head { align-self: stretch; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-weight: 700; font-size: 1.1rem; }
.app-sheet-head svg { width: 20px; height: 20px; color: var(--graphite); }
.app-qr { padding: 18px; border-radius: 22px; border: 1px solid #E5E3DF; background: var(--ivory); }
.app-qr img { width: 164px; height: 164px; }
.app-pin-label { margin-top: 18px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite); }
.app-pin { display: flex; gap: 6px; margin-top: 8px; }
.app-pin span { width: 36px; height: 44px; border-radius: 10px; background: #ECEAE4; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.app-sheet-zone { margin-top: 16px; font-weight: 700; font-size: 1rem; }
.app-sheet-time { font-size: 0.9rem; color: var(--graphite); }
.app-sheet-hint { margin-top: 10px; max-width: 30ch; text-align: center; font-size: 0.8rem; line-height: 1.45; color: var(--graphite); }

/* Key-bar slide-in (bar travels horizontally into its slot; never rotates or recolours) */
.keybar { transform-box: fill-box; }
.js .statement .keybar { transform: translateX(160%); opacity: 0; }
.js .is-visible .keybar { transform: none; opacity: 1; transition: transform .9s var(--ease) .35s, opacity .4s ease .35s; }

/* Facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 34px 24px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact-value { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; }
.fact-text { color: var(--graphite); font-size: 0.95rem; }

/* Sections */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section-stone { background: var(--stone); }
.section-head { max-width: 44rem; margin-bottom: clamp(44px, 6vw, 72px); }
.section-lead { margin-top: 20px; font-size: 1.1rem; color: var(--graphite); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px 34px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.feature:hover { border-color: #CFC8BB; transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--ivory); border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 26px;
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--midnight); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon svg .accent { stroke: var(--brass); stroke-width: 2; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--graphite); font-size: 0.98rem; }

/* End-to-end delivery */
.delivery-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.delivery-intro { position: sticky; top: 120px; }
.terminal { margin-top: 44px; display: flex; align-items: flex-end; gap: 20px; }
.terminal svg { width: 96px; height: auto; }
.stages { list-style: none; margin: 0; padding: 0; counter-reset: stage; }
.stage { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid #D6CFC2; }
.stage:last-child { border-bottom: 1px solid #D6CFC2; }
.stage-num { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--deep-brass); padding-top: 3px; }
.stage h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.35rem; margin-bottom: 8px; }
.stage p { color: var(--graphite); }

/* Roles */
.roles { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); }
.role-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.role-tabs button {
  border: 1.5px solid transparent; background: transparent; cursor: pointer;
  font: 600 0.95rem/1 var(--font-ui); color: var(--graphite);
  padding: 12px 20px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.role-tabs button:hover { color: var(--midnight); }
.role-tabs button[aria-selected="true"] { background: var(--midnight); color: var(--ivory); }
.role-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; animation: fade .4s var(--ease); }
.role-panel[hidden] { display: none; }
.role-panel h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; margin-bottom: 14px; }
.role-panel p { color: var(--graphite); font-size: 1.05rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checks li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); font-weight: 500; }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 16px; height: 9px; margin-top: -6px;
  border-left: 2px solid var(--midnight); border-bottom: 2px solid var(--midnight); transform: rotate(-45deg);
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Steps */
.how-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; }
.how-seg { position: relative; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.how-seg::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px;
  background: var(--midnight); transition: height .2s var(--ease), margin-top .2s var(--ease);
}
.how-seg:hover::before { height: 3px; margin-top: -1.5px; }
.how-bar {
  position: absolute; top: 50%; left: calc(var(--step, 0) * 100% / 3); width: calc(100% / 3);
  height: 4px; margin-top: -2px; background: var(--brass); pointer-events: none;
  transition: left .6s var(--ease);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; padding-right: 20px; }
.step:last-child { padding-right: 0; }
.js .step > * { transition: opacity .45s var(--ease); }
.js .step:not(.is-active) { cursor: pointer; }
.js .step:not(.is-active) > * { opacity: .45; }
.js .step:not(.is-active):hover > * { opacity: .7; }
.step-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--graphite); margin-bottom: 18px; }
.step h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.6rem; margin-bottom: 12px; }
.step p { color: var(--graphite); max-width: 22rem; margin-bottom: 28px; }

/* Step views — simplified screens of the resident app (light theme) */
.step-view {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  height: 400px; max-width: 360px; margin-top: auto; padding: 18px;
  background: #F7F7F7; border: 1px solid #E5E3DF; border-radius: 28px;
  box-shadow: 0 22px 60px rgba(22, 32, 46, .08);
  color: var(--midnight); font-size: 0.85rem; line-height: 1.35;
}
.step-view svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hv-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite); margin: 0 0 8px 4px; }
.hv-label ~ .hv-label { margin-top: 14px; }
.hv-zone { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--white); border: 1.5px solid #B26B2F; border-radius: 18px; }
.hv-zone-icon { width: 40px; height: 40px; border-radius: 50%; background: #F5E8DB; color: #B26B2F; display: grid; place-items: center; flex: 0 0 auto; }
.hv-zone-icon svg { width: 21px; height: 21px; }
.hv-zone-body { display: flex; flex-direction: column; gap: 4px; }
.hv-zone-name { font-weight: 700; font-size: 0.95rem; }
.hv-occ { display: flex; align-items: center; gap: 4px; }
.hv-occ i { width: 6px; height: 6px; border-radius: 50%; background: #ECEAE4; }
.hv-occ i.on { background: #B26B2F; }
.hv-occ span { margin-left: 6px; font-size: 0.7rem; font-weight: 600; color: var(--graphite); }
.hv-days { display: flex; gap: 6px; }
.hv-days span { padding: 7px 12px; border-radius: 999px; border: 1px solid #E5E3DF; background: var(--white); font-weight: 600; font-size: 0.78rem; white-space: nowrap; }
.hv-days .is-on { background: var(--midnight); border-color: var(--midnight); color: #F7F7F7; }
.hv-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; background: var(--white); border: 1px solid #E5E3DF; border-radius: 18px; }
.hv-slots > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 0; border: 1px solid #E5E3DF; border-radius: 10px; background: #F7F7F7; }
.hv-slots b { font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hv-slots i { width: 6px; height: 6px; border-radius: 50%; }
.hv-slots i.ok { background: #4C7A5C; }
.hv-slots i.few { background: #A8823C; }
.hv-slots i.full { background: #AA0719; }
.hv-slots .is-full { background: #ECEAE4; opacity: .55; }
.hv-slots .hv-pick { background: var(--deep-brass); border-color: var(--deep-brass); color: var(--white); }
.hv-slots .hv-pick i.ok { background: var(--white); }
.hv-cta {
  margin-top: auto; padding: 12px; border-radius: 16px; text-align: center;
  background: var(--deep-brass); color: var(--white); font-weight: 700; font-size: 0.85rem;
}

.hv-code { align-items: center; text-align: center; }
.hv-badge { width: 48px; height: 48px; border-radius: 50%; background: #E4EEE7; color: #4C7A5C; display: grid; place-items: center; }
.hv-badge svg { width: 24px; height: 24px; stroke-width: 2.2; }
.hv-title { margin-top: 10px; font-weight: 700; font-size: 1rem; }
.hv-qr { margin-top: 14px; padding: 12px; border-radius: 18px; border: 1px solid #E5E3DF; background: var(--ivory); }
.hv-qr img { width: 116px; height: 116px; }
.hv-pin-label { margin-top: 14px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite); }
.hv-pin { display: flex; gap: 5px; margin-top: 7px; }
.hv-pin span { width: 30px; height: 38px; border-radius: 9px; background: #ECEAE4; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hv-meta { margin-top: auto; font-size: 0.8rem; color: var(--graphite); }

.hv-enter { align-items: center; gap: 18px; }
.hv-push {
  align-self: stretch; display: flex; gap: 10px; padding: 11px 12px;
  background: rgba(255, 255, 255, .92); border: 1px solid #E5E3DF; border-radius: 18px;
  box-shadow: 0 10px 28px rgba(22, 32, 46, .1);
}
.hv-push-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--midnight); display: grid; place-items: center; }
.hv-push-icon svg { width: 11px; height: auto; stroke: none; }
.hv-push-body { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.hv-push-head { display: flex; justify-content: space-between; gap: 8px; font-size: 0.68rem; color: var(--graphite); }
.hv-push-head b { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.hv-push-title { font-weight: 700; font-size: 0.82rem; }
.hv-push-text { font-size: 0.76rem; color: var(--graphite); }
.hv-terminal {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 172px; padding: 14px 14px 16px; border-radius: 24px; background: var(--midnight);
  box-shadow: 0 18px 40px rgba(22, 32, 46, .25);
}
.hv-camera { width: 6px; height: 6px; border-radius: 50%; background: #3A4656; }
.hv-screen { position: relative; width: 100%; height: 118px; border-radius: 14px; background: #0E1520; overflow: hidden; }
.hv-scan, .hv-open { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #A7ADB6; font-size: 0.72rem; }
.hv-frame { position: relative; width: 52px; height: 52px; border: 2px solid var(--brass); border-radius: 10px; overflow: hidden; }
.hv-line { position: absolute; left: 4px; right: 4px; top: 6px; height: 2px; background: var(--brass); opacity: .8; }
.hv-open { background: #4C7A5C; color: #E4EEE7; }
.hv-open b { color: var(--white); font-size: 0.9rem; }
.hv-open-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: var(--white); display: grid; place-items: center; }
.hv-open-icon svg { width: 20px; height: 20px; stroke-width: 2.4; }
.hv-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 96px; }
.hv-keys i { height: 14px; border-radius: 5px; background: #233042; }

/* Inactive screens show their final state; the active one replays from the start */
.step.is-active .hv-pick { animation: hv-pick .3s var(--ease) .9s both; }
.step.is-active .hv-pick i { animation: hv-pick-dot .3s var(--ease) .9s both; }
.step.is-active .hv-cta { animation: hv-rise .4s var(--ease) 1.6s both; }
.step.is-active .hv-badge { animation: hv-pop .5s cubic-bezier(.3, 1.6, .5, 1) .2s both; }
.step.is-active .hv-title { animation: hv-rise .4s var(--ease) .45s both; }
.step.is-active .hv-qr { animation: hv-zoom .5s var(--ease) .7s both; }
.step.is-active .hv-pin span { animation: hv-rise .3s var(--ease) both; }
.step.is-active .hv-pin span:nth-child(1) { animation-delay: 1.1s; }
.step.is-active .hv-pin span:nth-child(2) { animation-delay: 1.18s; }
.step.is-active .hv-pin span:nth-child(3) { animation-delay: 1.26s; }
.step.is-active .hv-pin span:nth-child(4) { animation-delay: 1.34s; }
.step.is-active .hv-pin span:nth-child(5) { animation-delay: 1.42s; }
.step.is-active .hv-pin span:nth-child(6) { animation-delay: 1.5s; }
.step.is-active .hv-push { animation: hv-drop .45s var(--ease) .2s both; }
.step.is-active .hv-line { animation: hv-scan 1.1s ease-in-out .6s 2 alternate; }
.step.is-active .hv-open { animation: hv-fade .35s var(--ease) 2.4s both; }
.step.is-active .hv-open-icon { animation: hv-pop .5s cubic-bezier(.3, 1.6, .5, 1) 2.5s both; }
@keyframes hv-pick { from { background: #F7F7F7; border-color: #E5E3DF; color: var(--midnight); } to { background: var(--deep-brass); border-color: var(--deep-brass); color: var(--white); } }
@keyframes hv-pick-dot { from { background: #4C7A5C; } to { background: var(--white); } }
@keyframes hv-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes hv-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes hv-zoom { from { opacity: 0; transform: scale(.94); } }
@keyframes hv-drop { from { opacity: 0; transform: translateY(-16px); } }
@keyframes hv-fade { from { opacity: 0; } }
@keyframes hv-scan { from { top: 6px; } to { top: 40px; } }

/* Statement */
.statement { background: var(--midnight); color: var(--stone); padding: clamp(80px, 11vw, 144px) 0; }
.statement-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.statement-mark { width: clamp(88px, 11vw, 136px); height: auto; }
.statement-text {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3.1vw, 2.5rem); line-height: 1.25; color: var(--ivory); max-width: 30ch;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-list { margin: 40px 0 0; display: grid; gap: 20px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphite); }
.contact-list dd { margin: 0; font-weight: 600; font-size: 1.1rem; }
.contact-list a { color: var(--deep-brass); text-decoration: none; border-bottom: 1px solid currentColor; }

.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px;
}
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--midnight); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-ui); color: var(--midnight);
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235E646E' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--midnight); background: var(--white); }
.field input[aria-invalid="true"] { border-color: #B4432F; }
.form-note { font-size: 0.9rem; color: var(--graphite); min-height: 1.4em; }
.form-note.error { color: #B4432F; }

/* Footer */
.site-footer { background: var(--midnight); color: #A7ADB6; padding: 72px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid rgba(232, 227, 218, 0.12); }
.footer-brand img { width: 132px; height: auto; }
.footer-brand p { margin-top: 18px; max-width: 26rem; font-size: 0.95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 32px; align-content: flex-start; }
.footer-nav a, .footer-bottom a { text-decoration: none; color: var(--stone); font-weight: 500; font-size: 0.95rem; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--ivory); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 0.88rem; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .app-preview { margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .role-panel, .contact-grid, .delivery-grid { grid-template-columns: 1fr; }
  .delivery-intro { position: static; }
  .terminal { display: none; }
}

@media (max-width: 1120px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { margin: 0; padding: 14px 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--midnight); }
  .nav a.is-current { color: var(--deep-brass); }
  .nav a:last-child { border-bottom: 0; }
}

@media (max-width: 820px) {
  .hide-sm { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-right: 0; }
  .js .step:not(.is-active) { display: none; }
  .step-view { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { height: 68px; }
  .nav { top: 68px; }
  .brand img { width: 112px; }
  .features { grid-template-columns: 1fr; }
  .app-res { gap: 12px; padding: 14px; }
  .app-code-btn { padding: 8px 12px; }
  .app-pin span { width: 34px; height: 42px; }
  .statement-inner { grid-template-columns: 1fr; }
  .statement-mark { width: 72px; }
  .field-row { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { padding: 24px 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .stage { grid-template-columns: 40px 1fr; gap: 12px; padding: 24px 0; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .statement .keybar { transform: none; opacity: 1; }
}

/* Account deletion page */
.account-deletion-page {
  min-height: 70vh;
  padding: clamp(48px, 7vw, 80px) 0 clamp(72px, 10vw, 104px);
}
.account-deletion-wrap { width: min(920px, calc(100% - 40px)); margin: 0 auto; }
.account-deletion-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--midnight);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.account-deletion-back:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.account-deletion-kicker { margin: 0 0 14px; }
.account-deletion-page h1 { max-width: 18ch; }
.account-deletion-intro { max-width: 68ch; margin-top: 24px; color: var(--graphite); font-size: 1.08rem; }
.account-deletion-card {
  margin-top: 36px;
  padding: clamp(24px, 5vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(22, 32, 46, .07);
}
.account-deletion-card p { color: var(--graphite); }
.account-deletion-card p + p { margin-top: 16px; }
.account-deletion-action { margin-top: 32px; }
.account-deletion-action .btn { gap: 10px; }
.account-deletion-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-deletion-note { margin-top: 10px; color: var(--graphite); font-size: 0.86rem; }

@media (max-width: 640px) {
  .account-deletion-wrap { width: min(calc(100% - 28px), 920px); }
  .account-deletion-card { border-radius: 16px; }
}

/* Instructions page */
.guides-page { padding: clamp(48px, 7vw, 80px) 0 clamp(72px, 10vw, 104px); }
.guides-page h1 { max-width: 16ch; }
.guides-intro { max-width: 62ch; margin-top: 24px; color: var(--graphite); font-size: 1.08rem; }
.guides-grid {
  list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.guide-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 28px;
}
.guide-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--ivory); border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 24px;
}
.guide-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--midnight); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.guide-icon svg .accent { stroke: var(--brass); stroke-width: 2; }
.guide-card h2 { font-size: 1.45rem; line-height: 1.2; margin-bottom: 10px; }
.guide-card > p { color: var(--graphite); font-size: 0.98rem; margin-bottom: 26px; }
.guide-file {
  margin-top: auto; display: grid; gap: 2px;
  padding: 18px; border-radius: var(--radius-sm); background: var(--ivory); border: 1px solid var(--line);
}
.guide-file-name { font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.guide-file-meta { font-size: 0.84rem; color: var(--graphite); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.guide-actions .btn { flex: 1 1 0; padding: 0 16px; }
.guide-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guides-help { margin-top: 40px; color: var(--graphite); }
.guides-help a { color: var(--deep-brass); text-decoration: none; border-bottom: 1px solid currentColor; font-weight: 600; }

@media (max-width: 980px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .guides-grid { grid-template-columns: 1fr; }
  .guide-card { padding: 24px 20px 20px; }
}
