/* ==========================================================================
   迂涛三里 · AI
   Design tokens follow the landing-page-design system:
   flat surfaces, single typeface, 8px spacing steps, one easing curve.
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --surface-1: #181818;
  --surface-2: #1f1f1f;
  --surface-3: #272727;
  --line: #272727;
  --line-strong: #313131;

  --ink: #f7f7f7;
  --ink-2: #9b9b9b;
  --ink-3: #6e6e6e;
  --ink-4: #4a4a4a;

  --ok: #63d18b;
  --ok-dim: rgba(99, 209, 139, 0.12);
  --warn: #e8c46a;
  --warn-dim: rgba(232, 196, 106, 0.12);
  --err: #f0736b;
  --err-dim: rgba(240, 115, 107, 0.12);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --sp-25: 2px;
  --sp-50: 4px;
  --sp-75: 8px;
  --sp-100: 12px;
  --sp-200: 16px;
  --sp-300: 24px;
  --sp-400: 32px;
  --sp-500: 40px;
  --sp-600: 48px;
  --sp-700: 64px;
  --sp-800: 80px;
  --sp-900: 96px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1120px;

  --font-sans: 'Manrope', 'PingFang SC', 'HarmonyOS Sans SC', 'Source Han Sans SC',
    'Microsoft YaHei', sans-serif;
  --font-mono: 'Geist Mono', 'SFMono-Regular', 'Cascadia Mono', 'Consolas', monospace;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(247, 247, 247, 0.18);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

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

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1;
}

/* ------------------------------------------------------------- type styles */

.heading-1 {
  font-size: 60px;
  line-height: 60px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.heading-2 {
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.heading-3 {
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.heading-4 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.heading-5 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.title-1 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.title-2 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.title-3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.title-4 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.body-1 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-wrap: pretty;
}

.body-2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink-2);
  text-wrap: pretty;
}

.body-3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-wrap: pretty;
}

.body-4 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.body-5 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.body-6 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--ink-2);
  text-wrap: pretty;
}

.caption-1 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-2);
}

.caption-2 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--ink-2);
}

.caption-3 {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.caption-4 {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--ink-3);
}

.caption-5 {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--ink-3);
}

.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 4px;
  border-radius: var(--sp-50);
  background: var(--surface-3);
  color: var(--ink);
}

/* ---------------------------------------------------------------- elements */

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink-3);
  flex: none;
}

.dot-ok {
  background: var(--ok);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-75);
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 300ms var(--ease),
    color 300ms var(--ease),
    border-color 300ms var(--ease),
    transform 300ms var(--ease),
    opacity 300ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.btn-lg {
  font-size: 18px;
  line-height: 28px;
  padding: 8px 12px;
  min-height: 48px;
  border-radius: var(--r-lg);
}

.btn-md {
  font-size: 16px;
  line-height: 24px;
  min-height: 40px;
}

.btn-sm {
  font-size: 14px;
  line-height: 20px;
  min-height: 32px;
}

.btn-primary {
  background: var(--ink);
  color: #000;
}

.btn-primary:hover:not(:disabled) {
  background: #d8d8d8;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--ink-4);
}

.btn-danger {
  background: var(--err);
  color: #120303;
}

.btn-danger:hover:not(:disabled) {
  background: #f58c85;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink-4);
  cursor: pointer;
  transition: color 300ms var(--ease);
}

.link-btn:hover {
  color: var(--ink);
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink-4);
  transition: color 300ms var(--ease);
}

.link-underline:hover {
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--sp-200);
  z-index: 200;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #000;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--sp-200);
}

/* --------------------------------------------------------------------- nav */

.announce {
  background: var(--surface-1);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--sp-300);
  text-align: center;
}

.announce .caption-2 {
  color: var(--ink-2);
}

.nav-wrap {
  position: fixed;
  top: var(--sp-200);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 var(--sp-200);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: min(100%, 1040px);
  display: flex;
  align-items: center;
  gap: var(--sp-300);
  padding: 8px 8px 8px var(--sp-200);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-75);
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-name {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-25);
  margin-left: auto;
}

.nav-link {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-2);
  transition:
    color 300ms var(--ease),
    background-color 300ms var(--ease);
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-link.is-current {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-cta {
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle .bar {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 500ms var(--ease);
}

.nav-toggle .bar-a {
  top: 17px;
}

.nav-toggle .bar-b {
  top: 23px;
}

.nav-toggle[aria-expanded='true'] .bar-a {
  transform: translateX(-50%) translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .bar-b {
  transform: translateX(-50%) translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-400);
  padding: 104px var(--sp-400) var(--sp-500);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  animation: fade 300ms var(--ease) both;
}

body.menu-open {
  overflow: hidden;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-25);
}

.mobile-link {
  display: block;
  padding: var(--sp-75) 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 500ms var(--ease) var(--d, 0ms),
    transform 500ms var(--ease) var(--d, 0ms),
    color 300ms var(--ease);
}

.mobile-menu.is-open .mobile-link {
  opacity: 1;
  transform: none;
  color: var(--ink);
}

.mobile-menu.is-open .mobile-link:hover,
.mobile-menu.is-open .mobile-link:focus-visible {
  color: var(--ink-2);
}

.mobile-link:nth-child(1) {
  --d: 0ms;
}

.mobile-link:nth-child(2) {
  --d: 60ms;
}

.mobile-link:nth-child(3) {
  --d: 120ms;
}

.mobile-link:nth-child(4) {
  --d: 180ms;
}

.mobile-link:nth-child(5) {
  --d: 240ms;
}

.mobile-contact {
  opacity: 0;
  transition: opacity 500ms var(--ease) 240ms;
}

.mobile-menu.is-open .mobile-contact {
  opacity: 1;
}

/* ------------------------------------------------------------------ layout */

.section {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sp-900) var(--sp-300);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  margin-bottom: var(--sp-500);
  max-width: 680px;
}

.section-desc {
  max-width: 560px;
}

/* -------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: var(--sp-700);
  align-items: start;
  padding-top: 160px;
  padding-bottom: var(--sp-800);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-300);
  max-width: 680px;
  padding-top: var(--sp-200);
}

.hero-title {
  background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: pre-line;
  max-width: 680px;
}

.hero-sub {
  max-width: 560px;
  font-size: 16px;
  line-height: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-100);
  padding-top: var(--sp-75);
}

.hero-proof {
  padding-top: var(--sp-75);
  border-top: 1px solid var(--line);
  max-width: 560px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-200);
  padding-top: var(--sp-25);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------- panel */

.panel {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-300);
  scroll-margin-top: 120px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
}

.panel-steps {
  display: flex;
  align-items: center;
  gap: var(--sp-75);
}

.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  transition:
    background-color 500ms var(--ease),
    color 500ms var(--ease);
}

.step-dot.is-active {
  background: var(--ink);
  color: #000;
}

.step-dot.is-done {
  background: var(--surface-3);
  color: var(--ink);
}

.step-line {
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-2);
  white-space: nowrap;
}

.status-pill.is-ok {
  color: var(--ok);
  border-color: rgba(99, 209, 139, 0.32);
  background: var(--ok-dim);
}

.status-pill.is-ok .dot {
  background: var(--ok);
}

.status-pill.is-warn {
  color: var(--warn);
  border-color: rgba(232, 196, 106, 0.32);
  background: var(--warn-dim);
}

.status-pill.is-warn .dot {
  background: var(--warn);
}

.status-pill.is-err {
  color: var(--err);
  border-color: rgba(240, 115, 107, 0.32);
  background: var(--err-dim);
}

.status-pill.is-err .dot {
  background: var(--err);
}

.maint {
  border: 1px solid rgba(232, 196, 106, 0.28);
  background: var(--warn-dim);
  border-radius: var(--r-md);
  padding: var(--sp-200);
  display: flex;
  flex-direction: column;
  gap: var(--sp-50);
}

.maint strong {
  color: var(--warn);
}

/* -------------------------------------------------------------------- form */

.wstep {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  animation: rise 500ms var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.step-title {
  margin-bottom: var(--sp-25);
}

.step-desc {
  margin-top: calc(var(--sp-100) * -1 + var(--sp-50));
  margin-bottom: var(--sp-75);
}

.field-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink);
}

.field-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 12px;
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  transition:
    border-color 300ms var(--ease),
    background-color 300ms var(--ease);
}

.field-input::placeholder {
  color: var(--ink-4);
}

.field-input:hover {
  border-color: var(--ink-4);
}

.field-input:focus {
  outline: none;
  border-color: var(--ink-2);
  background: var(--surface-1);
  box-shadow: 0 0 0 3px rgba(247, 247, 247, 0.08);
}

.field-input.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.field-area {
  resize: vertical;
  min-height: 128px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

.field-input.is-invalid {
  border-color: var(--err);
  background: var(--err-dim);
}

.hint {
  margin-top: calc(var(--sp-50) * -1);
}

.field-error {
  display: flex;
  gap: var(--sp-75);
  font-size: 12px;
  line-height: 18px;
  color: var(--err);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-75);
  padding-top: var(--sp-75);
}

.card-summary,
.session-preview,
.verify-box {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--sp-200);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  animation: rise 500ms var(--ease) both;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-200);
}

.summary-row dt {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-3);
  flex: none;
}

.summary-row dd {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
  text-align: right;
  word-break: break-all;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-50);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  white-space: nowrap;
}

.badge-ok {
  color: var(--ok);
  border-color: rgba(99, 209, 139, 0.3);
  background: var(--ok-dim);
}

.badge-warn {
  color: var(--warn);
  border-color: rgba(232, 196, 106, 0.3);
  background: var(--warn-dim);
}

.badge-err {
  color: var(--err);
  border-color: rgba(240, 115, 107, 0.3);
  background: var(--err-dim);
}

.mini-help {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-100) var(--sp-200);
}

.mini-help summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}

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

.mini-help summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--ink-3);
  transition: transform 500ms var(--ease);
}

.mini-help[open] summary::after {
  transform: rotate(45deg);
}

.mini-help-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-50);
  padding-top: var(--sp-100);
  counter-reset: help;
}

.mini-help-list li {
  position: relative;
  padding-left: var(--sp-300);
  counter-increment: help;
}

.mini-help-list li::before {
  content: counter(help) '.';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--ink-3);
}

.mini-help-list a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--sp-50);
  background: var(--surface-3);
  color: var(--ink-2);
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-75);
  padding: var(--sp-200);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-100);
  padding: var(--sp-75) 0;
  cursor: pointer;
}

.check-input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: none;
  border: 1px solid var(--ink-4);
  border-radius: 4px;
  background: var(--surface-2);
  cursor: pointer;
  transition:
    background-color 300ms var(--ease),
    border-color 300ms var(--ease);
}

.check-input:checked {
  background: var(--ink);
  border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------------------------------------------------------------- progress */

.progress {
  display: flex;
  flex-direction: column;
  gap: var(--sp-300);
  animation: rise 500ms var(--ease) both;
}

.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
  padding-left: var(--sp-25);
}

.tl-item {
  position: relative;
  display: flex;
  gap: var(--sp-200);
  padding-left: var(--sp-300);
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 20px;
  bottom: -20px;
  width: 1px;
  background: var(--line);
}

.tl-item:last-child::before {
  display: none;
}

.tl-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid var(--ink-4);
  background: var(--bg);
  transition:
    background-color 500ms var(--ease),
    border-color 500ms var(--ease);
}

.tl-item.is-active .tl-dot {
  border-color: var(--ink);
  background: var(--ink);
  animation: pulse 1.8s var(--ease) infinite;
}

.tl-item.is-done .tl-dot {
  border-color: var(--ok);
  background: var(--ok);
}

.tl-item.is-fail .tl-dot {
  border-color: var(--err);
  background: var(--err);
}

.tl-item.is-active .title-4,
.tl-item.is-done .title-4 {
  color: var(--ink);
}

.tl-item .title-4 {
  color: var(--ink-3);
  transition: color 500ms var(--ease);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(247, 247, 247, 0.28);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(247, 247, 247, 0);
  }
}

.progress-note {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-200);
}

.verify-box {
  border-color: rgba(232, 196, 106, 0.32);
  background: var(--warn-dim);
  align-items: flex-start;
}

.verify-box .btn {
  margin-top: var(--sp-50);
}

/* ------------------------------------------------------------------ result */

.result {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  animation: rise 500ms var(--ease) both;
}

.result-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  margin-bottom: var(--sp-75);
}

.result-icon.is-ok {
  background-color: var(--ok-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363d18b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.result-icon.is-err {
  background-color: var(--err-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0736b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v5M12 17h.01'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
}

.result-icon.is-warn {
  background-color: var(--warn-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c46a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-75);
  padding-top: var(--sp-100);
}

.result-support {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-200);
  margin-top: var(--sp-100);
}

.panel-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-75);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-200);
}

.foot-sep {
  color: var(--ink-4);
}

.lookup {
  display: flex;
  flex-direction: column;
  gap: var(--sp-75);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-200);
  animation: rise 500ms var(--ease) both;
}

.lookup-row {
  display: flex;
  gap: var(--sp-75);
}

.lookup-row .field-input {
  flex: 1;
}

.lookup-results {
  display: flex;
  flex-direction: column;
  gap: var(--sp-75);
}

.lookup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
  padding: var(--sp-100) var(--sp-200);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.lookup-item button {
  flex: none;
}

/* ----------------------------------------------------------------- tagline */

.tagline {
  padding-top: var(--sp-700);
  padding-bottom: var(--sp-700);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tagline-text {
  max-width: 900px;
  font-size: 48px;
  line-height: 52px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: pre-line;
}

.tagline-text .word {
  color: rgba(247, 247, 247, 0.28);
  transition: color 500ms var(--ease);
}

.tagline-text .word.is-on {
  color: var(--ink);
}

/* --------------------------------------------------------------- benefits */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-200);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-200);
}

.card,
.step-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-75);
  transition:
    border-color 300ms var(--ease),
    background-color 300ms var(--ease),
    transform 500ms var(--ease);
}

.card:hover,
.step-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.step-num {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------- tiers */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-200);
}

.tier-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  transition: border-color 300ms var(--ease);
}

.tier-card:hover {
  border-color: var(--line-strong);
}

.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
}

.tier-prefix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.tier-note {
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-3);
}

.skeleton {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--surface-1), var(--surface-2), var(--surface-1));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* --------------------------------------------------------------------- faq */

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
  padding: var(--sp-300) 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--ink);
  transition: color 300ms var(--ease);
}

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

.faq-item summary:hover {
  color: var(--ink-2);
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--ink-3);
  transition: transform 500ms var(--ease);
}

.faq-icon::before {
  left: 0;
  right: 0;
  top: 7.5px;
  height: 1px;
}

.faq-icon::after {
  top: 0;
  bottom: 0;
  left: 7.5px;
  width: 1px;
}

.faq-item[open] .faq-icon::after {
  transform: scaleY(0);
}

.faq-answer {
  padding: 0 0 var(--sp-300);
  max-width: 720px;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------- final */

.final {
  padding-top: var(--sp-700);
}

.final-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface-1);
  padding: var(--sp-700) var(--sp-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-200);
  text-align: center;
}

.final-card .btn {
  margin-top: var(--sp-100);
}

/* ------------------------------------------------------------------ footer */

.footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-700) var(--sp-300) var(--sp-400);
}

.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-400);
}

.footer-note {
  margin-top: var(--sp-75);
  max-width: 320px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-75);
}

.footer-bottom {
  max-width: var(--maxw);
  margin: var(--sp-500) auto 0;
  padding-top: var(--sp-200);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-200);
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------- toast */

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: var(--sp-300);
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--sp-75);
  width: min(calc(100% - 32px), 420px);
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  animation: toast-in 500ms var(--ease) both;
}

.toast.is-err {
  border-color: rgba(240, 115, 107, 0.4);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------- modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-200);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  animation: fade 300ms var(--ease) both;
}

.modal-panel {
  width: min(100%, 460px);
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: var(--sp-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
  animation: rise 500ms var(--ease) both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ------------------------------------------------------------- scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(32px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--sp-500);
    padding-top: 120px;
  }

  .hero-copy {
    max-width: 680px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-cta {
    margin-left: auto;
  }

  .section {
    padding: var(--sp-700) var(--sp-300);
  }

  .heading-1 {
    font-size: 48px;
    line-height: 52px;
  }

  .heading-2 {
    font-size: 36px;
    line-height: 40px;
  }

  .heading-3 {
    font-size: 30px;
    line-height: 36px;
  }

  .tagline-text {
    font-size: 36px;
    line-height: 40px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .final-card {
    padding: var(--sp-500) var(--sp-300);
  }
}

/* --------------------------------------------------------------- doc pages */

.doc-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px var(--sp-300) var(--sp-900);
  display: flex;
  flex-direction: column;
  gap: var(--sp-300);
}

.doc-page h1 {
  margin-top: var(--sp-75);
}

.doc-page h2 {
  margin-top: var(--sp-300);
}

.doc-page p + p,
.doc-page p + ul,
.doc-page ul + p {
  margin-top: calc(var(--sp-200) * -1);
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-2);
}

.doc-list li {
  position: relative;
  padding-left: var(--sp-200);
}

.doc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--ink-4);
}

.doc-foot {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-200);
}

@media (max-width: 620px) {
  .heading-1 {
    font-size: 36px;
    line-height: 40px;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: var(--sp-600);
  }

  .grid-4,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: var(--sp-200);
    border-radius: var(--r-lg);
  }

  .step-line {
    width: 16px;
  }

  .tagline-text {
    font-size: 30px;
    line-height: 36px;
  }

  .hero-actions .btn,
  .final-card .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-300);
  }

  .btn {
    white-space: normal;
  }
}
