/* たびかん — tabican.jp
   アプリの Strato-Atlas デザイン（Theme.swift）と同じ色・角丸・書体で組む。 */

:root {
  --deep: #070b14;
  --mid: #0e1629;
  --high: #132238;
  --ink: #f4f6fb;
  --ink-2: rgba(244, 246, 251, 0.74);
  --ink-3: rgba(244, 246, 251, 0.5);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --gold: #f5c97b;
  --amber: #e5a94c;
  --gold-hi: #fce7b8;
  --gold-deep: #b67a2c;
  --gold-ink: #231704;
  --gold-grad: linear-gradient(100deg, #fce7b8 0%, #f5c97b 46%, #e5a94c 100%);

  --law: #7ea6ff;
  --ykn: #f2b866;
  --dom: #4fd1a5;
  --int: #ff7a90;
  --ok: #34d399;
  --ng: #fb7185;

  --paper: #f3eee4;
  --paper-hi: #fbf8f2;
  --paper-ink: #131b2d;
  --paper-ink-2: rgba(19, 27, 45, 0.74);
  --paper-ink-3: rgba(19, 27, 45, 0.52);
  --paper-line: rgba(19, 27, 45, 0.14);
  --paper-gold: #8f5d14;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 12px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 12vw, 168px);

  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.32;
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
}

p,
li,
dd,
summary,
td,
th {
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

.nowrap {
  display: inline-block;
  white-space: nowrap;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

/* ── Labels ───────────────────────────────────────────── */

.code {
  font-family: var(--mono), var(--font);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--ink-3);
  font-feature-settings: normal;
}

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

.code--rose {
  color: var(--int);
}

.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.dot--law {
  color: var(--law);
}

.dot--ykn {
  color: var(--ykn);
}

.dot--dom {
  color: var(--dom);
}

.dot--int {
  color: var(--int);
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 78%);
}

/* ── Buttons, status, badge ───────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn svg {
  transition: transform 0.35s var(--ease);
}

.btn--gold {
  background: var(--gold-grad);
  color: var(--gold-ink);
  box-shadow: 0 0 0 1px rgba(252, 231, 184, 0.5) inset, 0 18px 44px -14px rgba(229, 169, 76, 0.7);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(252, 231, 184, 0.7) inset, 0 24px 56px -14px rgba(229, 169, 76, 0.85);
}

.btn--gold:hover svg {
  transform: translateX(4px);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.soon__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(245, 201, 123, 0.7);
  animation: beacon 2.4s ease-out infinite;
}

.soon--nav {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.8rem;
}

.soon--lg {
  min-height: 60px;
  padding: 0 28px;
  font-size: 1rem;
}

@keyframes beacon {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 201, 123, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 12px rgba(245, 201, 123, 0);
  }
}

.badge {
  display: inline-block;
  line-height: 0;
  margin: 10px;
}

.badge img {
  height: 50px;
  width: auto;
}

.badge--nav {
  margin: 0;
}

.badge--nav img {
  height: 40px;
}

.final .badge img {
  height: 60px;
}

/* ── Nav ──────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(7, 11, 20, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100% - var(--gutter) * 2, 1320px);
  height: 72px;
  margin-inline: auto;
}

.nav__brand {
  flex: none;
  display: block;
}

.nav__brand img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  margin-left: auto;
  font-size: 0.84rem;
  font-weight: 500;
}

.nav__links a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

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

.nav__links a:hover::after {
  transform: scaleX(1);
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 72px;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--deep) url("/assets/img/poster-horizon.jpg") center / cover no-repeat;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.5) 0%, rgba(7, 11, 20, 0) 22%, rgba(7, 11, 20, 0) 62%, var(--deep) 100%),
    linear-gradient(96deg, rgba(7, 11, 20, 0.9) 0%, rgba(7, 11, 20, 0.62) 38%, rgba(7, 11, 20, 0.12) 70%, rgba(7, 11, 20, 0.2) 100%);
}

.hero__arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__arc-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: arc-draw 3.2s 0.5s var(--ease) forwards;
}

@keyframes arc-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding-block: clamp(40px, 7vh, 96px) clamp(32px, 5vh, 64px);
}

.hero__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hero__code span {
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 201, 123, 0.5);
  color: var(--gold);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.5rem, 6.3vw, 5.5rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 40px rgba(7, 11, 20, 0.6);
}

.hero__title em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 34em;
  margin-top: 26px;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.hero__device {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

/* ── Phone ────────────────────────────────────────────── */

.phone {
  --pw: clamp(240px, 24vw, 340px);
  position: relative;
  width: var(--pw);
  aspect-ratio: 780 / 1695;
  padding: calc(var(--pw) * 0.03);
  border-radius: calc(var(--pw) * 0.17);
  background: linear-gradient(145deg, #3a4563 0%, #10151f 22%, #05070c 60%, #2a3350 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 60px 120px -40px rgba(0, 0, 0, 0.9),
    0 0 140px -30px rgba(245, 201, 123, 0.28);
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: calc(var(--pw) * 0.142);
  overflow: hidden;
  background: var(--deep);
}

.phone__screen::before {
  content: "";
  position: absolute;
  top: 2%;
  left: 50%;
  z-index: 1;
  width: 30%;
  height: 3.3%;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone--hero {
  --pw: clamp(230px, min(25vw, 33vh), 350px);
  transform: rotateY(calc(-12deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg))) rotateZ(1.5deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  animation: phone-in 1.4s 0.2s var(--ease) both;
}

@keyframes phone-in {
  from {
    opacity: 0;
    translate: 0 60px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ── Hero stats ───────────────────────────────────────── */

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.hero__stats > div {
  padding: 22px 0 28px 24px;
  border-left: 1px solid var(--line);
}

.hero__stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero__stats dt {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.hero__stats dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: 2px;
}

.hero__stats b {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero__stats span {
  font-size: 0.84rem;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ── Section heads ────────────────────────────────────── */

.head {
  max-width: 820px;
}

.head__title {
  margin-top: 14px;
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.005em;
}

.head__lead {
  max-width: 40em;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(0.96rem, 1.15vw, 1.06rem);
}

/* ── Modes ────────────────────────────────────────────── */

.modes {
  position: relative;
  padding-block: var(--section);
  background: var(--deep);
}

.mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 112px);
  margin-top: clamp(72px, 10vw, 144px);
}

.mode--flip .mode__copy {
  order: 2;
}

.mode__title {
  margin-top: 16px;
  font-size: clamp(1.5rem, 2.9vw, 2.4rem);
  font-weight: 700;
  line-height: 1.42;
}

.mode__body {
  margin-top: 20px;
  color: var(--ink-2);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 28px;
  font-size: 0.9rem;
  font-weight: 500;
}

.steps li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.steps li + li::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--ink-3);
}

.steps__n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(245, 201, 123, 0.55);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.facts {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.facts li {
  position: relative;
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.55em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.mode__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mode__visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 201, 123, 0.16), transparent 72%);
  filter: blur(20px);
}

.mode__visual > * {
  position: relative;
}

.caption {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--ink-3);
  text-align: center;
}

/* Boarding passes */

.mode__visual--passes {
  gap: 0;
  padding-block: 8px;
}

.bpass {
  --notch: var(--deep);
  position: relative;
  display: flex;
  width: min(100%, 480px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, #1a2742 0%, #0f182c 55%, #0b1222 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  transform: rotate(-2deg);
}

.bpass--dom {
  margin-top: -18px;
  margin-left: clamp(0px, 6vw, 72px);
  transform: rotate(1.6deg);
  background: linear-gradient(155deg, #162a36 0%, #0e1a29 55%, #0a1220 100%);
}

.bpass__main {
  flex: 1;
  min-width: 0;
  padding: 24px 24px 22px;
}

.bpass__title {
  margin-top: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
}

.bpass__sub {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.bpass__rows {
  margin-top: 14px;
  font-size: 0.86rem;
}

.bpass__rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}

.bpass__rows b {
  margin-left: auto;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.bpass__rows i {
  width: 4em;
  font-style: normal;
  text-align: right;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.bpass__stub {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 132px;
  padding: 22px 18px;
  border-left: 1px dashed rgba(255, 255, 255, 0.22);
}

.bpass__stub::before,
.bpass__stub::after {
  content: "";
  position: absolute;
  left: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--notch);
  border: 1px solid var(--line-strong);
}

.bpass__stub::before {
  top: -11px;
  clip-path: inset(50% 0 0 0);
}

.bpass__stub::after {
  bottom: -11px;
  clip-path: inset(0 0 50% 0);
}

.bpass__big {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bpass__big span {
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  -webkit-text-fill-color: var(--ink-3);
}

/* Gap panel */

.gap {
  width: min(100%, 440px);
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(170deg, #17233d 0%, #0d1526 60%, #0a101d 100%);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9);
}

.gap__head {
  display: flex;
  justify-content: space-between;
}

.gap__dial {
  position: relative;
  width: min(100%, 280px);
  margin: 10px auto 0;
  aspect-ratio: 1;
}

.gap__dial svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dial__ticks {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 4;
  stroke-dasharray: 0.4 1.6;
}

.dial__ticks--major {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 7;
  stroke-dasharray: 0.5 9.5;
}

.dial__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-linecap: round;
}

.dial__value {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 1.6s var(--ease);
  filter: drop-shadow(0 0 8px rgba(229, 169, 76, 0.55));
}

.dial__value--inner {
  stroke: var(--int);
  transition-delay: 0.15s;
  filter: drop-shadow(0 0 6px rgba(255, 122, 144, 0.6));
}

.dial__needle {
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.dial__pass {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-anchor: middle;
}

.gap__readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 6%;
  text-align: center;
}

.gap__num {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.gap__num b {
  font-size: clamp(3.2rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gap__num span {
  margin-left: 2px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.gap__label {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-2);
}

.gap__low {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--ink-2);
}

.gap__low .dot {
  width: 6px;
  height: 6px;
}

.gap__beacons {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3%;
  display: flex;
  justify-content: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.gap__beacons li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.gap__beacons .dot {
  background: transparent;
  border: 1.2px solid currentColor;
  opacity: 0.6;
}

.gap__beacons .is-on {
  color: var(--ink);
}

.gap__beacons .is-on .dot {
  background: currentColor;
  opacity: 1;
  box-shadow: 0 0 8px currentColor;
}

.gap__alert {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 122, 144, 0.3);
  border-radius: var(--r-lg);
  background: rgba(255, 122, 144, 0.09);
}

.gap__alert-title {
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 700;
}

.gap__alert-body {
  margin-top: 4px;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ── Demo ─────────────────────────────────────────────── */

.demo {
  position: relative;
  padding-block: var(--section);
  background: linear-gradient(180deg, var(--deep), var(--mid) 32%, var(--mid) 68%, var(--deep));
}

.demo__wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

.demo .head {
  position: sticky;
  top: 120px;
}

.quiz__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.quiz__tab:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.32);
}

.quiz__tab[aria-selected="true"] {
  background: var(--gold-grad);
  border-color: transparent;
  color: var(--gold-ink);
  font-weight: 700;
}

.quiz__tab[aria-selected="true"] .dot {
  color: var(--gold-ink);
}

.quiz__card {
  margin-top: 16px;
  padding: clamp(22px, 3.2vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 50px 100px -60px rgba(0, 0, 0, 0.9);
}

.quiz__loading {
  color: var(--ink-3);
  font-size: 0.9rem;
}

.quiz__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
}

.quiz__lesson {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.quiz__prompt {
  margin-top: 14px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.75;
}

.quiz__hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.quiz__choices {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.45);
  text-align: left;
  line-height: 1.7;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease);
}

.choice:not([disabled]):hover {
  border-color: rgba(245, 201, 123, 0.7);
  transform: translateX(4px);
}

.choice[disabled] {
  cursor: default;
}

.choice__key {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
}

.choice__text {
  font-size: 0.95rem;
}

.choice__note {
  grid-column: 2;
  display: none;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-2);
}

.is-answered .choice__note {
  display: block;
  animation: note-in 0.5s var(--ease) both;
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.choice.is-correct {
  border-color: rgba(52, 211, 153, 0.75);
  background: rgba(52, 211, 153, 0.09);
}

.choice.is-correct .choice__key {
  border-color: transparent;
  background: var(--ok);
  color: #04261a;
}

.choice.is-wrong {
  border-color: rgba(251, 113, 133, 0.75);
  background: rgba(251, 113, 133, 0.09);
}

.choice.is-wrong .choice__key {
  border-color: transparent;
  background: var(--ng);
  color: #3a0711;
}

.choice__you {
  display: none;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: 2px;
  opacity: 0.8;
}

.choice.is-picked .choice__you {
  display: inline-block;
}

.quiz__result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  animation: note-in 0.6s 0.1s var(--ease) both;
}

.quiz__verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.quiz__verdict.is-ok {
  color: var(--ok);
}

.quiz__verdict.is-ng {
  color: var(--ng);
}

.quiz__explain {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.quiz__extra {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.quiz__extra > div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(7, 11, 20, 0.5);
  font-size: 0.86rem;
}

.quiz__extra dt {
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}

.quiz__extra dd {
  color: var(--ink-2);
}

.quiz__next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 20px;
  padding: 0 22px;
  border: 1px solid rgba(245, 201, 123, 0.6);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.quiz__next:hover {
  background: var(--gold);
  color: var(--gold-ink);
}

/* ── Paper sections ───────────────────────────────────── */

.paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.paper .code {
  color: var(--paper-gold);
}

.paper .head__lead {
  color: var(--paper-ink-2);
}

.paper a {
  color: var(--paper-ink);
  text-decoration-color: var(--paper-gold);
  text-underline-offset: 4px;
}

.paper :focus-visible {
  outline-color: var(--paper-gold);
}

/* ── Scope ────────────────────────────────────────────── */

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

.tickets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 72px);
}

.ticket {
  overflow: hidden;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-xl);
  background: var(--paper-hi);
  box-shadow: 0 40px 80px -60px rgba(19, 27, 45, 0.5);
}

.ticket__media {
  position: relative;
  height: clamp(170px, 20vw, 250px);
  background: var(--mid);
}

.ticket__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 40%, rgba(7, 11, 20, 0.75) 100%);
}

.ticket__code {
  position: absolute;
  left: 24px;
  bottom: 16px;
  z-index: 1;
  color: var(--gold-hi) !important;
}

.ticket__body {
  padding: clamp(22px, 3vw, 36px);
}

.ticket__title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
}

.ticket__meta {
  margin-top: 16px;
  border-top: 1px solid var(--paper-line);
  font-size: 0.9rem;
}

.ticket__meta > div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--paper-line);
}

.ticket__meta dt {
  color: var(--paper-ink-3);
}

.ticket__table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.ticket__table caption {
  padding-bottom: 8px;
  text-align: left;
  font-size: 0.78rem;
  color: var(--paper-ink-3);
}

.ticket__table th,
.ticket__table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--paper-line);
  font-weight: 400;
  text-align: left;
  vertical-align: baseline;
}

.ticket__table thead th {
  font-size: 0.76rem;
  color: var(--paper-ink-3);
}

.ticket__table td,
.ticket__table thead th:not(:first-child) {
  width: 4.6em;
  text-align: right;
  white-space: nowrap;
}

.ticket__table tbody th .dot {
  margin-right: 10px;
  vertical-align: 1px;
}

.ticket__table tfoot th,
.ticket__table tfoot td {
  border-bottom: 0;
  font-weight: 700;
}

.scope__source {
  max-width: 62em;
  margin-top: 28px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--paper-ink-3);
}

.scope__source a {
  color: var(--paper-ink-2);
}

.syllabus {
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--paper-ink);
}

.syllabus__title {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 700;
}

.syllabus__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.syllabus__grid section {
  padding: 4px 24px 8px;
  border-left: 1px solid var(--paper-line);
}

.syllabus__grid section:first-child {
  padding-left: 0;
  border-left: 0;
}

.syllabus__grid h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.syllabus__grid small {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--paper-ink-3);
}

.syllabus__grid ul {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--paper-ink-2);
}

.syllabus__grid li {
  padding: 5px 0;
}

/* ── Law ──────────────────────────────────────────────── */

.law {
  position: relative;
  padding-block: var(--section);
  background: linear-gradient(180deg, var(--deep) 0%, var(--mid) 50%, var(--deep) 100%);
  overflow: hidden;
}

.law__wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

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

.law__head .head__title span:first-child {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.route {
  position: relative;
  padding-left: 34px;
}

.route::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(245, 201, 123, 0.15), var(--gold) 50%, var(--gold-hi));
}

.route li {
  position: relative;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
}

.route li:last-child {
  border-bottom: 0;
}

.route li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 25px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--deep);
  border: 1.5px solid var(--gold);
}

.route li:last-child::before {
  background: var(--gold-hi);
  box-shadow: 0 0 0 5px rgba(245, 201, 123, 0.18), 0 0 18px rgba(245, 201, 123, 0.8);
}

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

.route h3 {
  margin-top: 4px;
  font-size: 1.12rem;
  font-weight: 700;
}

.route li > p:last-child {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* ── Pass ─────────────────────────────────────────────── */

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

.fare {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin-top: clamp(40px, 6vw, 72px);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #17233d 0%, #0c1424 55%, #070b14 100%);
  color: var(--ink);
  box-shadow: 0 60px 120px -60px rgba(19, 27, 45, 0.9);
  overflow: hidden;
}

.fare .code {
  color: var(--gold);
}

.fare__main {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
}

.fare__name {
  margin-top: 10px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
}

.fare__price {
  margin-top: 6px;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fare__price small {
  margin-left: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  -webkit-text-fill-color: var(--ink-3);
}

.fare__terms {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.fare__line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  font-size: 0.74rem;
  color: var(--ink-3);
}

.fare__line span {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  white-space: nowrap;
}

.fare__line span:last-child {
  text-align: right;
}

.fare__line b {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.fare__line i {
  position: relative;
  flex: 1;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 50%, transparent 0);
  background-size: 8px 1px;
}

.fare__line i::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 18px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 24% 50%);
  animation: fly 5s var(--ease) infinite;
}

@keyframes fly {
  0% {
    left: 0;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  80% {
    left: calc(100% - 18px);
    opacity: 1;
  }
  100% {
    left: calc(100% - 18px);
    opacity: 0;
  }
}

.fare__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
  border-left: 1px dashed rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.fare__list li {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.fare__list li:last-child {
  border-bottom: 0;
}

.fare__list b {
  font-size: 1rem;
  color: var(--ink);
}

.pass__note {
  max-width: 54em;
  margin-top: 24px;
  font-size: 0.84rem;
  color: var(--paper-ink-3);
}

/* ── Device ───────────────────────────────────────────── */

.device {
  padding-block: var(--section);
  background: radial-gradient(ellipse 60% 60% at 80% 40%, rgba(19, 34, 56, 0.9), transparent 70%), var(--deep);
}

.device__wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

.device__list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.device__list li:first-child {
  padding-top: 8px;
}

.device__list svg {
  width: 36px;
  height: 36px;
  margin-top: 4px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device__list h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

.device__list p {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* ── FAQ ──────────────────────────────────────────────── */

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

.faq__wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(24px, 6vw, 96px);
}

.faq .head .code {
  display: none;
}

.faq__list {
  border-top: 1px solid var(--paper-ink);
}

.faq details {
  border-bottom: 1px solid var(--paper-line);
}

.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 1.04rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--paper-ink);
  transition: transform 0.35s var(--ease);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq details p {
  padding: 0 48px 24px 0;
  font-size: 0.94rem;
  color: var(--paper-ink-2);
}

/* ── Final ────────────────────────────────────────────── */

.final {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(92vh, 860px);
  padding-block: var(--section);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.final__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--deep) url("/assets/img/poster-runway.jpg") center / cover no-repeat;
}

.final__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--deep) 0%, rgba(7, 11, 20, 0.45) 30%, rgba(7, 11, 20, 0.5) 60%, var(--deep) 100%);
}

.final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final__mark {
  width: 72px;
  height: 72px;
}

.final__title {
  margin-top: 18px;
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  font-weight: 900;
  line-height: 1.22;
  text-shadow: 0 2px 40px rgba(7, 11, 20, 0.8);
}

.final__lead {
  margin-top: 18px;
  color: var(--ink-2);
}

.final__actions {
  justify-content: center;
}

.final .hero__note {
  justify-content: center;
}

/* ── Footer ───────────────────────────────────────────── */

.foot {
  padding-block: 64px 40px;
  border-top: 1px solid var(--line);
  background: var(--deep);
  font-size: 0.86rem;
  color: var(--ink-2);
}

.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
}

.foot__brand img {
  height: 48px;
  width: auto;
}

.foot__brand p {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.foot__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.foot a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.25s ease;
}

.foot a:hover {
  color: var(--gold);
}

.foot__company > div {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
}

.foot__company dt {
  color: var(--ink-3);
}

.foot__base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  line-height: 1.8;
  color: var(--ink-3);
}

.foot__copy {
  margin-top: 14px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
}

/* ── Reveal ───────────────────────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ── Document pages (privacy / terms / support / 404) ─── */

.doc-body {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(19, 34, 56, 0.95), transparent 70%),
    var(--deep);
  background-repeat: no-repeat;
}

.doc-body .nav {
  position: sticky;
  top: 0;
  background: rgba(7, 11, 20, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.doc {
  width: min(100% - var(--gutter) * 2, 780px);
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 128px);
}

.doc__title {
  margin-top: 12px;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 900;
}

.doc__updated {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.doc__lead {
  margin-top: 28px;
  color: var(--ink-2);
}

.doc h2 {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 1.28rem;
  font-weight: 700;
}

.doc h2 .code {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
}

.doc h3 {
  margin-top: 28px;
  font-size: 1.02rem;
  font-weight: 700;
}

.doc p,
.doc ul,
.doc ol,
.doc dl,
.doc table {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.96rem;
}

.doc ul,
.doc ol {
  padding-left: 1.4em;
}

.doc ul {
  list-style: disc;
}

.doc ol {
  list-style: decimal;
}

.doc li {
  padding: 3px 0;
}

.doc li::marker {
  color: var(--gold);
}

.doc a:not(.btn) {
  color: var(--gold);
  text-underline-offset: 4px;
}

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

.doc th,
.doc td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.doc th {
  width: 10em;
  padding-right: 20px;
  color: var(--ink-3);
}

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.doc__back:hover {
  color: var(--gold);
}

.doc details {
  margin-top: 0;
  border-bottom: 1px solid var(--line);
}

.doc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.doc summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.doc details[open] summary::after {
  transform: rotate(-135deg);
}

.doc h2 + details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.doc details p {
  margin: 0;
  padding-bottom: 20px;
}

/* Support form */

.form {
  display: grid;
  gap: 22px;
  margin-top: 28px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.form label small {
  font-weight: 400;
  color: var(--ink-3);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(7, 11, 20, 0.6);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F5C97B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
}

.form textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.8;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 201, 123, 0.16);
}

.form [aria-invalid="true"] {
  border-color: var(--ng);
}

.form__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ng);
}

.form__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ng);
  color: #3a0711;
  font-size: 0.7rem;
  font-weight: 700;
}

.form__error[hidden] {
  display: none;
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form button[type="submit"] {
  border: 0;
  cursor: pointer;
}

.form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form__status {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.form__status.is-ok {
  color: var(--ok);
}

.form__status.is-ng {
  color: var(--ng);
}

.form__legal {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(35, 23, 4, 0.3);
  border-top-color: var(--gold-ink);
  animation: spin 0.8s linear infinite;
}

.is-sending .spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.lost {
  display: grid;
  place-items: center;
  min-height: 70vh;
  text-align: center;
}

.lost .code {
  color: var(--gold);
}

.lost .btn {
  margin-top: 32px;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 1080px) {
  .nav__links {
    display: none;
  }

  .nav__inner > .soon,
  .nav__inner > .badge {
    margin-left: auto;
  }

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

  .syllabus__grid section:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 40px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(7, 11, 20, 0.72) 0%, rgba(7, 11, 20, 0.5) 35%, rgba(7, 11, 20, 0.35) 60%, var(--deep) 100%);
  }

  .hero__video {
    object-position: 50% 30%;
  }

  .phone--hero {
    --pw: min(68vw, 300px);
    transform: rotateY(calc(-6deg + var(--ry, 0deg))) rotateX(calc(3deg + var(--rx, 0deg))) rotateZ(1deg);
  }

  .mode,
  .demo__wrap,
  .law__wrap,
  .device__wrap,
  .faq__wrap,
  .fare {
    grid-template-columns: minmax(0, 1fr);
  }

  .mode--flip .mode__copy {
    order: 0;
  }

  .mode__visual .phone {
    --pw: min(66vw, 300px);
  }

  .demo .head,
  .law__head {
    position: static;
  }

  .tickets {
    grid-template-columns: minmax(0, 1fr);
  }

  .fare__list {
    border-left: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.22);
  }

  .foot__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .nav__inner {
    height: 64px;
  }

  .nav__brand img {
    height: 34px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__stats > div {
    padding: 16px 0 18px 16px;
  }

  .hero__stats > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .hero__stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .btn,
  .soon {
    min-height: 52px;
  }

  .soon--nav {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .bpass {
    transform: none;
  }

  .bpass--dom {
    margin: 14px 0 0;
    transform: none;
  }

  .bpass__main {
    padding: 20px 16px 18px 18px;
  }

  .bpass__stub {
    width: 104px;
    padding: 18px 12px 18px 16px;
  }

  .bpass__big {
    font-size: 1.5rem;
  }

  .bpass__rows i {
    width: 3.6em;
  }

  .gap {
    padding: 20px 16px;
  }

  .quiz__extra > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .syllabus__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .syllabus__grid section {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--paper-line);
  }

  .syllabus__grid section:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .faq summary {
    font-size: 0.98rem;
  }

  .doc th {
    width: 6.5em;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__arc-path {
    stroke-dashoffset: 0;
  }
}
