/* Gatecraft website
   Layout concept: full-bleed colour fields (ink, red, steel) that change with each gate of the event,
   one living crowd in the hero, product moments drawn as real interface pieces. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0B0B0C;
  --red: #D40000;
  --red-deep: #A30000;
  --steel: #1F4B5E;
  --steel-light: #8FB1BF;
  --mist: #E7EEF1;
  --paper: #FFFFFF;
  --muted: #4E5A63;
  --line: #D3DDE2;
  --on-dark: rgba(255, 255, 255, 0.74);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); color: var(--ink); padding: 10px 14px; z-index: 50; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(52px, 9.2vw, 132px); font-weight: 820; letter-spacing: -0.055em; line-height: 0.9; }
h2 { font-size: clamp(38px, 6vw, 80px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.dark .lede, .steel .lede, .redf .lede { color: var(--on-dark); }
.kicker { font-size: 16px; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.dark .kicker, .steel .kicker { color: var(--steel-light); }
.redf .kicker { color: var(--paper); }

/* colour fields */
.dark { background: var(--ink); color: var(--paper); }
.steel { background: var(--steel); color: var(--paper); }
.redf { background: var(--red); color: var(--paper); }
.mist { background: var(--mist); }
section { padding-block: clamp(80px, 11vw, 150px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: var(--paper); }
.btn-red:hover { background: var(--red-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-white { background: var(--paper); color: var(--ink); }
.btn-line { border-color: currentColor; background: transparent; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 12, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.logo { display: flex; }
.logo img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 16px; font-weight: 600; color: var(--on-dark); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav .btn { color: var(--paper); min-height: 42px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: var(--paper); border-radius: 999px; min-height: 42px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 0; min-height: min(860px, calc(100svh - 74px)); display: flex; align-items: center; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 72px; padding-bottom: 96px; pointer-events: none; }
.hero-copy { max-width: 640px; display: flex; flex-direction: column; gap: 30px; pointer-events: auto; }
.hero h1 span { display: block; }
.hero .lede { max-width: 30ch; }

/* marquee */
.marquee { overflow: hidden; padding-block: 26px; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 42px; align-items: center; font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; animation: slide 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 42px; }
.marquee-track span::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); }
@keyframes slide { to { transform: translateX(-50%); } }

/* journey */
.journey-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 80px; }
.journey { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.stage-wrap { position: relative; }
.stage { position: sticky; top: 110px; height: 560px; border-radius: 28px; background: var(--mist); overflow: hidden; }
.stage .shot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 36px; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.stage .shot.is-on { opacity: 1; transform: none; }
.rail { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; z-index: 2; }
.rail i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.rail i.is-past { background: var(--ink); }
.rail i.is-now { background: var(--red); transform: scale(1.35); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-block: 24px; opacity: .32; transition: opacity .4s ease; }
.step.is-on { opacity: 1; }
.step .num { font-size: 16px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.step ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.step li { padding-left: 24px; position: relative; }
.step li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.step-visual { display: none; }

/* interface pieces */
.ui { background: var(--paper); color: var(--ink); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(11, 25, 32, 0.45), 0 0 0 1px rgba(11, 25, 32, 0.06); font-size: 15px; line-height: 1.4; width: 100%; max-width: 380px; overflow: hidden; }
.ui-pad { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.ui-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.ui-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ui-banner { height: 130px; background: var(--steel); position: relative; overflow: hidden; }
.ui-banner .gatebox { position: absolute; right: 18px; bottom: 14px; width: 92px; }
.ui-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--mist); color: var(--steel); }
.ui-tag.red { background: #FCE5E5; color: var(--red-deep); }
.stepper { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper b { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.ui-line { height: 1px; background: var(--line); }
.ui-btn { background: var(--red); color: var(--paper); border-radius: 12px; padding: 13px; text-align: center; font-weight: 700; }
.pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pay span { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; font-weight: 600; font-size: 14px; }
.pay span.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.phone { width: 270px; border-radius: 40px; background: var(--ink); padding: 12px; box-shadow: 0 40px 70px -30px rgba(11, 25, 32, 0.6); }
.phone .screen { border-radius: 30px; overflow: hidden; background: var(--paper); min-height: 470px; display: flex; flex-direction: column; }
.ticket-top { background: var(--ink); color: var(--paper); padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.ticket-cut { height: 22px; background: radial-gradient(circle at 0 50%, var(--ink) 11px, transparent 12px), radial-gradient(circle at 100% 50%, var(--ink) 11px, transparent 12px); border-top: 2px dashed var(--line); margin-top: -1px; }
.qr { width: 150px; margin: 6px auto 0; }
.mail { max-width: 400px; }
.mail-head { background: var(--mist); padding: 14px 22px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.phone .screen.scan, .scan { background: #0E1215; color: var(--paper); min-height: 470px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.viewfinder { position: relative; margin: 18px auto; width: 170px; height: 170px; }
.viewfinder::before, .viewfinder::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--paper); clip-path: polygon(0 0, 28% 0, 28% 4px, 4px 4px, 4px 28%, 0 28%, 0 72%, 4px 72%, 4px calc(100% - 4px), 28% calc(100% - 4px), 28% 100%, 72% 100%, 72% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 72%, 100% 72%, 100% 28%, calc(100% - 4px) 28%, calc(100% - 4px) 4px, 72% 4px, 72% 0, 100% 0, 100% 100%, 0 100%); border-radius: 18px; }
.viewfinder .qr { width: 120px; margin: 25px auto; opacity: .9; }
.admit { background: var(--steel); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.admit strong { font-size: 24px; letter-spacing: -0.02em; }

/* two ways in */
.ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 72px; }
.way { border-radius: 32px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 22px; min-height: 100%; }
.way.light { background: var(--paper); color: var(--ink); }
.way.ink { background: var(--ink); color: var(--paper); }
.way h3 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.way p { color: var(--muted); }
.way.ink p { color: var(--on-dark); }
.way ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.way li { padding-left: 24px; position: relative; }
.way li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.way .btns { margin-top: auto; }
.way-visual { height: 200px; border-radius: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.way.light .way-visual { background: var(--mist); }
.way.ink .way-visual { background: #16191C; }
.plugin-card { background: var(--paper); border-radius: 14px; box-shadow: 0 20px 40px -24px rgba(11,25,32,.5); padding: 16px 18px; width: 300px; display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--ink); }
.plugin-card img { width: 52px; height: 52px; border-radius: 12px; }
.plugin-card .on { margin-left: auto; width: 46px; height: 26px; border-radius: 999px; background: var(--steel); position: relative; flex-shrink: 0; }
.plugin-card .on::after { content: ""; position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); }
.browser { width: 330px; border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); color: var(--ink); font-size: 13px; }
.browser-bar { background: #E9EDEF; padding: 9px 12px; display: flex; align-items: center; gap: 6px; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C7CFD3; }
.browser-bar span { margin-left: 8px; background: var(--paper); border-radius: 8px; padding: 3px 10px; flex-grow: 1; color: var(--muted); }
.browser-body { padding: 16px; display: flex; gap: 14px; align-items: center; }
.browser-body .gatebox { width: 70px; flex-shrink: 0; }

/* statement */
.statement { font-size: clamp(44px, 8vw, 116px); font-weight: 820; letter-spacing: -0.055em; line-height: .92; max-width: 13ch; }
.statement em { font-style: normal; color: var(--red); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 72px; }
.fact { border-top: 2px solid rgba(255,255,255,.22); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.fact p { color: var(--on-dark); }

/* living gate demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.demo-board { background: var(--ink); border-radius: 32px; padding: 44px; display: flex; flex-direction: column; gap: 26px; align-items: center; }
.demo-board .gatebox { width: min(320px, 100%); }
.demo-status { color: var(--paper); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; min-height: 1.2em; text-align: center; }
.controls { width: 100%; display: flex; flex-direction: column; gap: 14px; color: var(--paper); }
.controls label { font-size: 15px; font-weight: 600; color: var(--on-dark); display: flex; justify-content: space-between; }
input[type=range] { width: 100%; accent-color: var(--red); height: 28px; }
.toggle { align-self: center; }

/* care list */
.care { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin-top: 64px; }
.care div { border-top: 1px solid var(--line); padding-block: 26px; display: flex; flex-direction: column; gap: 8px; }
.care p { color: var(--muted); }

/* faq */
.faq { max-width: 860px; margin-top: 56px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; padding: 24px 52px 24px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--red); transition: transform .25s; }
.faq summary::before { content: "+"; position: absolute; right: 6px; top: 50%; width: 22px; line-height: 22px; margin-top: -12px; text-align: center; color: var(--paper); font-weight: 700; z-index: 1; transition: transform .25s; }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 52px 26px 0; max-width: 64ch; }

/* call to action */
.cta-big h2 { font-size: clamp(56px, 11vw, 168px); letter-spacing: -0.06em; line-height: .88; }
.cta-big .wrap { display: flex; flex-direction: column; gap: 36px; }

/* inner pages */
.page-hero { padding-block: clamp(72px, 9vw, 120px); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.page-hero .copy { display: flex; flex-direction: column; gap: 26px; }
.page-hero h1 { font-size: clamp(48px, 7.5vw, 104px); }
.page-hero .visual { display: flex; justify-content: center; }
.solo .wrap { grid-template-columns: minmax(0, 1fr); }

.matrix-wrap { overflow-x: auto; margin-top: 56px; border-radius: 24px; border: 1px solid var(--line); }
table.matrix { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; background: var(--paper); }
.matrix th, .matrix td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.matrix thead th { font-size: 20px; letter-spacing: -0.02em; vertical-align: bottom; }
.matrix thead th small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.matrix td:not(:first-child), .matrix th:not(:first-child) { text-align: center; width: 26%; }
.matrix tbody tr:last-child td { border-bottom: 0; }
.yes { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.no { display: inline-block; width: 14px; height: 2px; background: var(--line); vertical-align: middle; }
.matrix .group td { background: var(--mist); font-weight: 700; font-size: 14px; color: var(--steel); }

.howto { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: how; }
.howto li { counter-increment: how; background: var(--paper); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.howto li::before { content: counter(how); width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.howto li:last-child::before { background: var(--red); }
.howto p { color: var(--muted); }

.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.area { background: var(--paper); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.area ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.area li { padding-left: 22px; position: relative; }
.area li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.only { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.only div { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--red); padding-top: 20px; }
.only p { color: var(--on-dark); }

.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 24px; }
.prose p { font-size: 20px; line-height: 1.7; }
.prose h2 { font-size: clamp(32px, 4vw, 52px); margin-top: 36px; }
.prose .gatebox { width: 220px; margin-block: 8px; }

/* forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 16px; }
.field label span { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(212, 0, 0, 0.18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { max-width: 760px; border-radius: 16px; padding: 16px 20px; font-weight: 600; }
.notice.err { background: #FCE5E5; color: var(--red-deep); }
.form-note { font-size: 15px; color: var(--muted); grid-column: 1 / -1; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: 90px 40px; font-size: 15px; overflow: hidden; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 56px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot-grid h4 { color: var(--paper); font-size: 16px; letter-spacing: -0.01em; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--paper); }
.foot-brand { display: flex; flex-direction: column; gap: 18px; max-width: 34ch; }
.foot-brand img { height: 30px; width: auto; align-self: flex-start; }
.foot-word { font-size: clamp(80px, 19vw, 280px); font-weight: 830; letter-spacing: -0.065em; line-height: .78; color: #16191C; user-select: none; margin-bottom: -0.12em; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* gate drawing */
.gatebox svg { width: 100%; height: auto; }
.gate-dot { opacity: 0.12; transition: opacity .35s ease; }
.gate-dot.is-in { opacity: 1; }
.gate-door { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1.3); }
.gate-door.is-in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1040px) {
  .journey { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage-wrap { display: none; }
  .step { min-height: 0; opacity: 1; padding-block: 36px; border-top: 1px solid var(--line); }
  .step-visual { display: flex; justify-content: center; background: var(--mist); border-radius: 24px; padding: 28px 16px; margin-top: 8px; }
  .journey-head, .demo, .page-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .only { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .howto { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(24px, env(safe-area-inset-left, 0px)) 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 19px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 16px; min-height: 52px; font-size: 17px; border-bottom: 0; }
  .ways, .facts, .care, .areas, .foot-grid, .form { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 300px; padding-bottom: 72px; }
  body { font-size: 17px; }
}
@media (max-width: 560px) {
  .only { grid-template-columns: minmax(0, 1fr); }
  .phone { width: 250px; }
  .browser, .plugin-card { width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .stage .shot, .step, .gate-dot, .gate-door, .btn { transition: none; }
}

/* gate sizes by context */
.gatebox { width: 100%; }
.visual > .gatebox { width: min(320px, 70vw); }

/* four qualities */
.quals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 64px; }
.qual { border-radius: 28px; padding: 30px 28px 34px; display: flex; flex-direction: column; gap: 18px; min-height: 340px; }
.qual h3 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 820; letter-spacing: -0.05em; line-height: 1; }
.qual ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.qual li { padding-left: 20px; position: relative; }
.qual li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .7; }
.q-red { background: var(--red); color: var(--paper); }
.q-steel { background: var(--steel); color: var(--paper); }
.q-paper { background: var(--mist); color: var(--ink); }
.q-ink { background: var(--ink); color: var(--paper); }
@media (max-width: 1040px) { .quals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .quals { grid-template-columns: minmax(0, 1fr); } .qual { min-height: 0; } }
@media (max-width: 860px) { #privacy-rights .facts { grid-template-columns: minmax(0, 1fr) !important; } }

/* ===================== features page ===================== */
.feat-hero { overflow: hidden; }
.feat-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.collage { position: relative; height: 560px; }
.collage > div { position: absolute; }
.collage .c1 { left: 0; top: 40px; width: 340px; transform: rotate(-4deg); animation: bob 7s ease-in-out infinite; }
.collage .c2 { right: 10px; top: 0; transform: rotate(5deg) scale(.86); transform-origin: top right; animation: bob 8s ease-in-out -2s infinite; }
.collage .c3 { left: 38%; bottom: 0; width: 150px; background: #16191C; border-radius: 28px; padding: 22px; animation: bob 6s ease-in-out -4s infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }

.chapnav { position: sticky; top: 74px; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 0; }
.chapnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.chapnav .wrap::-webkit-scrollbar { display: none; }
.chapnav a { flex-shrink: 0; text-decoration: none; font-size: 15px; font-weight: 700; padding: 9px 16px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.chapnav a:hover { color: var(--ink); background: var(--mist); }
.chapnav a.is-on { background: var(--ink); color: var(--paper); }
#selling, #paying, #tickets, #door, #running, #secure, #editions-at-a-glance { scroll-margin-top: 140px; }

.ribbon { padding-block: 44px; }
.ribbon .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ribbon div { display: flex; flex-direction: column; gap: 6px; }
.ribbon b { font-size: clamp(52px, 6vw, 84px); font-weight: 830; letter-spacing: -0.06em; line-height: .9; }
.ribbon span { font-size: 16px; font-weight: 600; color: var(--on-dark); max-width: 22ch; }

.chapter .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.chapter.flip .chap-copy { order: 2; }
.chap-copy { display: flex; flex-direction: column; gap: 24px; }
.chap-copy h2 { font-size: clamp(38px, 5vw, 68px); }
.flist { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; }
.flist li { padding: 13px 0 13px 28px; position: relative; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.dark .flist li, .steel .flist li { border-top-color: rgba(255,255,255,.14); }
.flist li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.steel .flist li::before { background: var(--paper); }
.chip { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0; line-height: 1.5; }
.chip.pro { background: var(--steel); color: var(--paper); }
.chip.be { background: var(--ink); color: var(--paper); }
.steel .chip.pro { background: var(--paper); color: var(--steel); }
.dark .chip.be { background: var(--paper); color: var(--ink); }

.chap-visual { position: relative; border-radius: 32px; padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px); display: flex; justify-content: center; background: var(--mist); }
.mist .chap-visual { background: var(--paper); }
.steel .chap-visual { background: #173a49; }
.dark .chap-visual { background: #16191C; }
.vstack { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 70px; }
.vstack > .offset { position: absolute; right: 0; bottom: 0; width: min(330px, 78%); }
.vstack.phone-mix { align-items: flex-start; padding-left: 4%; min-height: 520px; }
.float-card { box-shadow: 0 34px 60px -26px rgba(0,0,0,.55), 0 0 0 1px rgba(11,25,32,.06); }
.ui.wide { max-width: 470px; }
.ui-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px; background: var(--mist); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--mist); border-radius: 12px; padding: 4px; font-size: 13px; font-weight: 700; text-align: center; }
.seg span { padding: 8px 4px; border-radius: 9px; color: var(--muted); }
.seg .sel { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.tt { display: flex; flex-direction: column; gap: 14px; }
.tt-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 76px; gap: 14px; align-items: center; }
.tt-row > :last-child { justify-self: end; }
.bar { display: block; height: 10px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.bar.big { height: 16px; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--steel); }
.bar i.full { background: var(--red); }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--mist); border-radius: 8px; padding: 4px 8px; }
.mini-btns { display: inline-flex; gap: 6px; flex-shrink: 0; }
.mini-btns span { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; border: 1.5px solid var(--line); }
.mini-btns .ok { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpis div { background: var(--mist); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.kpis b { font-size: 26px; letter-spacing: -0.03em; }
.kpis div:last-child { background: #FCE5E5; }
.kpis div:last-child b { color: var(--red); }
.chart { height: 150px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; }
.chart .col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.chart i { display: block; width: 100%; height: var(--h); border-radius: 8px 8px 3px 3px; background: var(--steel); }
.chart .col:last-child i { background: var(--red); }
.chart small { font-size: 11px; font-weight: 600; color: var(--muted); }
.exports { display: flex; gap: 8px; flex-wrap: wrap; }
.exports span { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); }
.exports span:last-child { background: var(--steel); color: var(--paper); border-color: var(--steel); }
.who { display: inline-flex; align-items: center; gap: 10px; }
.who i { width: 26px; height: 26px; border-radius: 50%; }
.role { font-size: 12px; font-weight: 700; color: var(--muted); }

.secs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.sec { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 12px; transition: background .25s, transform .25s; }
.sec:hover { background: rgba(255,255,255,.16); transform: translateY(-4px); }
.sec h3 { font-size: 21px; }
.sec p { color: var(--on-dark); font-size: 16px; line-height: 1.5; }
.ico { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.eds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.ed { background: var(--paper); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.ed h3 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 820; letter-spacing: -0.05em; line-height: 1; }
.ed p { color: var(--muted); }
.ed .btn { margin-top: auto; align-self: flex-start; }
.ed.ink { background: var(--ink); color: var(--paper); }
.ed.ink p { color: var(--on-dark); }
.ed-tag { font-size: 14px; font-weight: 700; color: var(--red); }
.ed.ink .ed-tag { color: var(--steel-light); }

/* motion: reveal on scroll, bars grow, chart rises */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal .grow { width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1) .35s; }
.js .reveal.in .grow { width: var(--w); }
.js .reveal .rise { height: 0; transition: height .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in .rise { height: var(--h); }
.js .reveal .col:nth-child(2) .rise { transition-delay: .06s; } .js .reveal .col:nth-child(3) .rise { transition-delay: .12s; }
.js .reveal .col:nth-child(4) .rise { transition-delay: .18s; } .js .reveal .col:nth-child(5) .rise { transition-delay: .24s; }
.js .reveal .col:nth-child(6) .rise { transition-delay: .30s; } .js .reveal .col:nth-child(7) .rise { transition-delay: .36s; }
.js .reveal .offset { opacity: 0; transform: translate(24px, 24px); transition: opacity .6s ease .35s, transform .8s cubic-bezier(.2,.8,.2,1) .35s; }
.js .reveal.in .offset { opacity: 1; transform: none; }
.secs .sec:nth-child(4n+2) { transition-delay: .06s; } .secs .sec:nth-child(4n+3) { transition-delay: .12s; } .secs .sec:nth-child(4n+4) { transition-delay: .18s; }

@media (max-width: 1040px) {
  .feat-hero .wrap, .chapter .wrap { grid-template-columns: minmax(0, 1fr); }
  .chapter.flip .chap-copy { order: 0; }
  .collage { height: 500px; max-width: 560px; width: 100%; margin: 0 auto; }
  .secs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ribbon .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eds { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .collage { height: 430px; }
  .collage .c1 { width: 270px; }
  .collage .c2 { transform: rotate(5deg) scale(.7); }
  .collage .c3 { width: 110px; padding: 16px; left: 30%; }
  .secs, .ribbon .wrap { grid-template-columns: minmax(0, 1fr); }
  .vstack { padding-bottom: 0; gap: 16px; align-items: center; }
  .vstack > .offset { position: static; width: 100%; max-width: 380px; }
  .vstack.phone-mix { padding-left: 0; min-height: 0; }
  .tt-row { grid-template-columns: 80px minmax(0, 1fr) 70px; gap: 10px; }
  .kpis b { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .collage > div { animation: none; }
  .js .reveal, .js .reveal .offset { opacity: 1; transform: none; transition: none; }
  .js .reveal .grow { width: var(--w); transition: none; }
  .js .reveal .rise { height: var(--h); transition: none; }
}
/* features: keep floating cards clear of the key parts of each mockup */
.vstack { padding-bottom: 150px; }
.vstack.phone-mix { min-height: 0; padding-bottom: 110px; }
.vstack.phone-mix > .offset { width: min(300px, 62%); }
.collage .c3 { left: auto; right: 44px; bottom: 6px; }
@media (max-width: 560px) {
  .vstack, .vstack.phone-mix { padding-bottom: 0; }
  .vstack.phone-mix > .offset { width: 100%; }
  .collage .c3 { right: 8px; left: auto; }
}
#paying .vstack { padding-bottom: 215px; }
@media (max-width: 560px) { #paying .vstack { padding-bottom: 0; } }

/* ===================== real product screens ===================== */
.frame-b, .frame-p, .frame-c { margin: 0; }
.frame-b img, .frame-p img, .frame-c img { display: block; width: 100%; height: auto; }
.frame-b { width: 100%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -36px rgba(11,25,32,.55), 0 0 0 1px rgba(11,25,32,.08); }
.fb-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #E9EDEF; }
.fb-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C7CFD3; flex-shrink: 0; }
.fb-bar span { margin-left: 8px; background: #fff; border-radius: 7px; padding: 2px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.dark .frame-b, .steel .frame-b { box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.frame-p { width: 250px; padding: 10px; border-radius: 44px; background: #0B0B0C; box-shadow: 0 44px 80px -30px rgba(11,25,32,.65), inset 0 0 0 1px rgba(255,255,255,.12); }
.frame-p img { border-radius: 34px; }
.frame-c { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(11,25,32,.55), 0 0 0 1px rgba(11,25,32,.08); background: #fff; }

/* features chapters with real screens */
.chap-visual { padding: clamp(24px, 3.4vw, 44px); }
.vstack { padding-bottom: 0; }
.vstack > .frame-b { width: 100%; }
.vstack > .offset { position: absolute; }
.vstack > .offset.op { right: -14px; bottom: -36px; width: auto; }
.vstack > .offset.op .frame-p { width: 168px; padding: 7px; border-radius: 30px; }
.vstack > .offset.op .frame-p img { border-radius: 24px; }
.vstack > .offset.ob { right: -18px; bottom: -48px; width: 62%; }
.vstack > .offset.oc { right: 0; bottom: 30px; width: 230px; }
.vstack { padding-bottom: 60px; }
.vstack.solo-p { align-items: center; padding: 0 0 10px; }
.vstack.solo-p > .frame-p { width: 270px; margin-right: 160px; }
#paying .vstack { padding-bottom: 70px; }

/* hero collage */
.collage { height: 560px; }
.collage .c1 { left: 0; top: 30px; width: 560px; transform: rotate(-2deg); }
.collage .c2 { right: 0; left: auto; top: 110px; width: 200px; padding: 8px; border-radius: 36px; transform: rotate(4deg); }
.collage .c2 img { border-radius: 28px; }
.collage .c3 { left: 40px; right: auto; bottom: 0; width: 240px; padding: 0; background: #fff; border-radius: 18px; }

/* home: five gates stage and step pictures */
.stage .shot .frame-p { width: auto; height: 100%; max-height: 500px; }
.stage .shot .frame-p img { height: 100%; width: auto; }
.stage .shot .frame-c, .stage .shot .frame-b { width: 100%; max-width: 520px; }
.step-visual .frame-p { width: 220px; }
.step-visual .frame-b, .step-visual .frame-c { width: 100%; max-width: 520px; }

.way-visual .frame-b.mini { width: 88%; max-width: 420px; }
.wp-mark { display: flex; align-items: center; gap: 18px; font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.wp-mark .gatebox { width: 92px; }
.wp-mark small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.be-visual { position: relative; padding: 0 0 60px; }
.be-visual .frame-b { width: 100%; max-width: 600px; }
.be-visual .be-phone { position: absolute; right: -10px; bottom: 0; width: 150px; padding: 7px; border-radius: 28px; }
.be-visual .be-phone img { border-radius: 22px; }
.page-hero .visual .frame-p { width: 270px; }
.screens-note { padding: 0; background: var(--paper); }
.screens-note .wrap { display: block; font-size: 14px; color: var(--muted); padding-block: 12px; }

@media (max-width: 1040px) {
  .collage { height: 470px; }
  .collage .c1 { width: 78%; }
  .collage .c2 { width: 170px; }
}
@media (max-width: 560px) {
  .collage { height: 380px; }
  .collage .c1 { width: 92%; top: 10px; }
  .collage .c2 { width: 120px; padding: 5px; border-radius: 24px; top: 120px; }
  .collage .c2 img { border-radius: 19px; }
  .collage .c3 { width: 170px; left: 0; }
  .vstack { padding-bottom: 0; }
  .vstack > .offset.op, .vstack > .offset.ob, .vstack > .offset.oc { position: static; width: 100%; margin-top: 14px; display: flex; justify-content: center; }
  .vstack > .offset.op .frame-p { width: 200px; }
  .vstack.solo-p > .frame-p { width: 240px; margin-right: 0; }
  .vstack > .offset.oc .frame-c { width: 240px; }
  .be-visual .be-phone { width: 110px; }
}

/* chapters: text above, the real screens full width below so they can be read */
.chapter .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; }
.chapter.flip .chap-copy { order: 0; }
.chap-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); row-gap: 22px; align-items: start; }
.chap-copy > .kicker, .chap-copy > h2, .chap-copy > .lede { grid-column: 1; }
.chap-copy > .flist { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
.chap-visual { padding: clamp(28px, 4vw, 64px) clamp(20px, 4vw, 64px) clamp(40px, 5vw, 84px); }
.vstack > .frame-b { width: 86%; }
.vstack > .offset.op { right: 0; bottom: -30px; }
.vstack > .offset.op .frame-p { width: 230px; padding: 9px; border-radius: 40px; }
.vstack > .offset.op .frame-p img { border-radius: 31px; }
.vstack > .offset.ob { right: 0; bottom: -44px; width: 56%; }
#paying .vstack > .frame-b { width: 64%; }
#paying .vstack > .offset.ob { width: 62%; bottom: -30px; }
.vstack.solo-p { flex-direction: row; justify-content: center; align-items: flex-end; gap: 40px; padding: 0; }
.vstack.solo-p > .frame-p { width: 300px; margin: 0; }
.vstack.solo-p > .offset.oc { position: static; width: 300px; margin-bottom: 60px; }
@media (max-width: 860px) {
  .chap-copy { grid-template-columns: minmax(0, 1fr); }
  .chap-copy > .flist { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .vstack > .frame-b, #paying .vstack > .frame-b { width: 100%; }
  .vstack.solo-p { flex-direction: column; align-items: center; gap: 16px; }
  .vstack.solo-p > .offset.oc { width: 240px; margin: 0; }
  .vstack > .offset.ob, #paying .vstack > .offset.ob { width: 100%; }
}
.page-hero .visual.be-visual { display: block; width: 100%; }
.page-hero .be-visual .frame-p.be-phone { position: absolute; right: -6px; bottom: 0; width: 150px; padding: 7px; border-radius: 28px; }
@media (max-width: 560px) { .page-hero .be-visual .frame-p.be-phone { width: 104px; padding: 5px; border-radius: 20px; } .page-hero .be-visual .frame-p.be-phone img { border-radius: 16px; } }
