/* ========================================================
   ThaiPartners · Design System & Stylesheet
   Architecture: Figma-Grade Token System & Antigravity Spatial UI
   ======================================================== */

:root {
  /* --- Semantic Palette --- */
  --ink: #0F172A;              /* Modern Slate Navy */
  --ink-2: #1E293B;
  --ink-3: #334155;
  --ink-surface: #0F172A;
  --ink-border: #334155;
  
  --paper: #FFFFFF;            /* Pure Crisp White */
  --paper-2: #F8FAFC;          /* Modern Slate 50 Surface */
  --paper-3: #F1F5F9;          /* Subtle Slate 100 Surface */
  --paper-card: #FFFFFF;       /* Pure Card Canvas */
  
  --line: #E2E8F0;             /* Clean Slate 200 Stroke */
  --line-2: #CBD5E1;           /* Slate 300 Stroke */
  --line-subtle: rgba(226, 232, 240, 0.8);
  
  --body: #334155;             /* Reading Body */
  --mute: #64748B;             /* Muted Metadata */
  --faint: #94A3B8;            /* Subtle Tertiary */
  --white: #FFFFFF;
  
  --accent: #C92A3E;           /* Royal Thai Flag Carmine */
  --accent-2: #9B1C2E;
  --accent-soft: rgba(201, 42, 62, 0.08);
  --accent-glow: rgba(201, 42, 62, 0.22);
  
  --gold: #C5A059;             /* Thai Royal Gold Accent */
  --gold-dark: #8C6E23;
  --gold-soft: rgba(197, 160, 89, 0.14);
  
  --ok: #059669;               /* Verified Emerald */
  --ok-bg: #ECFDF5;
  --ok-border: rgba(5, 150, 105, 0.25);
  --ok-glow: rgba(5, 150, 105, 0.35);

  /* --- Typography --- */
  --ff-sans: 'Inter Tight', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ff-serif: 'Inter Tight', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- Antigravity Elevation & Shadows --- */
  --sh-xs: 0 1px 2px rgba(11, 18, 32, 0.04);
  --sh-sm: 0 2px 4px rgba(11, 18, 32, 0.05), 0 1px 2px rgba(11, 18, 32, 0.04);
  --sh-1: 0 1px 3px rgba(11, 18, 32, 0.06), 0 1px 2px rgba(11, 18, 32, 0.04);
  --sh-2: 0 4px 16px -2px rgba(11, 18, 32, 0.06), 0 2px 6px -1px rgba(11, 18, 32, 0.04);
  --sh-3: 0 20px 40px -15px rgba(11, 18, 32, 0.12), 0 0 1px 1px rgba(11, 18, 32, 0.05);
  --sh-float: 0 24px 48px -12px rgba(11, 18, 32, 0.16), 0 8px 16px -4px rgba(11, 18, 32, 0.06);
  --sh-hover: 0 16px 32px -8px rgba(11, 18, 32, 0.12), 0 0 0 1px rgba(11, 18, 32, 0.06);

  /* --- Glassmorphism & Specular Highlights --- */
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-bg-dark: rgba(17, 26, 46, 0.9);
  --glass-border: rgba(221, 211, 191, 0.65);
  --specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  --specular-dark: inset 0 1px 0 0 rgba(255, 255, 255, 0.12);

  /* --- Radii Scale --- */
  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* --- Layout & Spacing --- */
  --maxw: 1220px;
  --pad: 32px;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: hidden;
}

body {
  font-family: var(--ff-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11", "tnum";
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
}

h1, h2, h3, h4, h5, p, li, blockquote {
  overflow-wrap: break-word;
  word-break: break-word;
}

body.th {
  font-family: 'Noto Sans Thai', var(--ff-sans);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.wrap-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============ UTILITIES & TYPOGRAPHY ============ */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.no-line::before {
  display: none;
}

.serif {
  font-family: var(--ff-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.italic {
  font-style: italic;
}

.mono {
  font-family: var(--ff-mono);
}

.rule {
  height: 1px;
  background: var(--line);
  margin: 0;
  border: none;
}

.hr-thin {
  height: 1px;
  background: var(--line-subtle);
  border: none;
  margin: 0;
}

/* ============ BUTTONS & INTERACTIVE ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-full);
  font-weight: 550;
  font-size: 14px;
  transition: var(--transition);
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  min-height: 44px;
  user-select: none;
  position: relative;
}

.btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 12px rgba(11, 18, 32, 0.15), var(--specular-dark);
}
.btn-primary:hover {
  background: var(--ink-2);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.22);
}
.btn-primary:hover svg {
  transform: translateX(2px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--ink);
  transform: translateY(-1.5px);
  box-shadow: var(--sh-sm);
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-accent:hover {
  background: var(--accent-2);
  transform: translateY(-1.5px);
}

.btn-link {
  color: var(--ink);
  padding: 0;
  font-weight: 550;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  cursor: pointer;
}
.btn-link .arr {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-link:hover .arr {
  transform: translateX(4px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12.5px;
  min-height: 34px;
}

.btn-ok {
  background: var(--ok);
  color: #fff;
}
.btn-danger {
  background: var(--accent);
  color: #fff;
}
.btn[disabled], .btn.off {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============ HEADER & NAVIGATION ============ */
header:not(.ed-header) {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-subtle);
  box-shadow: 0 2px 10px rgba(11, 18, 32, 0.02);
  transition: background 0.2s ease, border-color 0.2s ease;
}

header:not(.ed-header) .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 140px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 510px;
  max-width: none;
  height: 120px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
header .brand-logo {
  width: 510px;
  max-width: none;
  height: 120px;
  flex-shrink: 0;
}
.brand:hover .brand-logo {
  opacity: 0.9;
}

nav.menu {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--body);
  font-weight: 500;
  align-items: center;
}

nav.menu a {
  padding: 8px 0;
  position: relative;
  transition: color 0.15s ease;
  white-space: nowrap;
}
nav.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--r-full);
}
nav.menu a:hover {
  color: var(--ink);
}
nav.menu a:hover::after,
nav.menu a.on::after {
  width: 100%;
}
nav.menu a.on {
  color: var(--ink);
  font-weight: 600;
}

header .right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}

header .right .desk {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang {
  display: inline-flex;
  background: var(--paper-2);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 3px;
  box-shadow: var(--sh-xs);
}

.lang button {
  padding: 4px 10px;
  color: var(--mute);
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: var(--transition);
  min-height: 26px;
}

.lang button.on {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--sh-xs);
}

.link-nav {
  font-size: 14px;
  font-weight: 550;
  color: var(--body);
  padding: 8px 4px;
}
.link-nav:hover {
  color: var(--ink);
}

.navsep {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--sh-xs);
}
.burger:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s ease;
  border-radius: 1px;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
header:has(.mobnav.open) .burger span,
.burger.open span {
  background: transparent;
}
header:has(.mobnav.open) .burger span::before,
.burger.open span::before {
  top: 0;
  transform: rotate(45deg);
}
header:has(.mobnav.open) .burger span::after,
.burger.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Elevated Mobile Navigation Sheet */
.mobnav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-3);
  padding: 16px 0 24px;
  z-index: 85;
}
.mobnav.open {
  display: block;
}
.mobnav a, .mobnav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 4px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-subtle);
  min-height: 48px;
}
.mobnav .btn {
  justify-content: center;
  margin-top: 18px;
  border-bottom: none;
  width: 100%;
}

@media(max-width: 980px) {
  nav.menu, header .right .desk { display: none; }
  .burger { display: flex; }
}

/* ============ HERO SECTION ============ */
.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 42, 62, 0.04) 0%, rgba(197, 160, 89, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-headline {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 28px 0 0;
}
.hero-headline .em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}
.hero-headline .sm {
  font-size: 0.68em;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 530px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-actions .meta {
  font-size: 13px;
  color: var(--mute);
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
}

/* Trust Ribbon */
.trust-ribbon {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-ribbon .lbl {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  grid-column: 1 / -1;
  margin-bottom: 2px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  box-shadow: var(--sh-xs);
  transition: var(--transition);
}
.trust-item:hover {
  transform: translateY(-1.5px);
  border-color: var(--line-2);
  box-shadow: var(--sh-sm);
}
.trust-item svg {
  width: 17px;
  height: 17px;
  stroke: var(--accent);
  stroke-width: 1.75;
  flex-shrink: 0;
}

/* Hero Plate & Floating Card (Antigravity) */
.hero-plate {
  position: relative;
  padding: 14px 0 20px;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
  position: relative;
  box-shadow: var(--sh-3);
  border: 1px solid var(--line);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) brightness(0.97);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-photo:hover img {
  transform: scale(1.02);
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.02) 0%, rgba(11, 18, 32, 0.32) 100%);
}

.hero-photo-caption {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  color: #FFFFFF;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Floating Status Card (Antigravity Glass Card) */
.status-card {
  position: absolute;
  left: -32px;
  bottom: 32px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  width: 290px;
  box-shadow: var(--sh-float), var(--specular);
  font-size: 13px;
  animation: floatCard 6s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.status-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-subtle);
  margin-bottom: 12px;
}
.status-card .top .lbl {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}
.status-card .top .pulse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ok);
  font-weight: 600;
  background: var(--ok-bg);
  padding: 3px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--ok-border);
}
.status-card .top .pulse::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-glow);
  animation: p 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes p {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.status-card .row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  align-items: center;
}
.status-card .row .k {
  color: var(--mute);
  font-size: 12.5px;
}
.status-card .row .v {
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
}
.status-card .row .v.ok {
  color: var(--ok);
}

/* ============ MARQUEE BAND ============ */
.marquee-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.marquee-band::before, .marquee-band::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-band::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper-2), transparent);
}
.marquee-band::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper-2), transparent);
}
.marquee {
  display: flex;
  gap: 56px;
  animation: mv 45s linear infinite;
  white-space: nowrap;
  align-items: center;
}
@keyframes mv {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee > div {
  font-family: var(--ff-serif);
  font-size: 19px;
  color: var(--ink-3);
  opacity: 0.78;
  font-style: italic;
  letter-spacing: -0.005em;
}
.marquee .sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  font-style: normal;
  flex-shrink: 0;
}

/* ============ SECTIONS COMMON ============ */
section {
  padding: 100px 0;
  position: relative;
}
section.tight {
  padding: 76px 0;
}
section.dark {
  background: var(--ink);
  color: var(--paper);
}
section.dark .eyebrow {
  color: var(--paper-3);
  opacity: 0.8;
}
section.dark h2, section.dark h3 {
  color: var(--paper);
}
section.dark p {
  color: rgba(250, 248, 245, 0.75);
}

.sec-head {
  max-width: 780px;
  margin-bottom: 52px;
}
.sec-head h2 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 16px;
}
.sec-head h2 .em {
  font-style: italic;
  color: var(--accent);
}
.sec-head p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--body);
  max-width: 620px;
  line-height: 1.6;
}
.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.sec-head.center p {
  margin-left: auto;
  margin-right: auto;
}

/* ============ 3-STAGE RAIL (PROCESS) ============ */
.stage-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--sh-2);
}

.stage-card {
  padding: 38px 34px;
  border-left: 1px solid var(--line);
  position: relative;
  min-width: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.stage-card:first-child,
.stage-card:nth-child(3n+1) {
  border-left: none;
}
.stage-card:hover {
  background: #FCFBF9;
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.stage-num {
  font-family: var(--ff-mono);
  font-size: 28px;
  font-weight: 650;
  color: var(--accent);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  line-height: 1;
}
.stage-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 4px 10px;
  white-space: nowrap;
}

.stage-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.25;
  color: var(--ink);
}
.stage-card > p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.6;
}

.stage-list {
  list-style: none;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-list li {
  font-size: 13.5px;
  color: var(--mute);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.stage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 1.5px;
  background: var(--line-2);
}

.stage-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.stage-cta .meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--mute);
  font-family: var(--ff-mono);
}

/* ============ NETWORK PROFILES SECTION ============ */
.net-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.tabs-editorial {
  display: inline-flex;
  gap: 0;
  background: transparent;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.tabs-editorial .tab {
  padding: 12px 6px;
  margin-right: 32px;
  font-size: 15px;
  color: var(--mute);
  font-weight: 550;
  position: relative;
  transition: color 0.18s ease;
  background: none;
  border-radius: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.tabs-editorial .tab:hover {
  color: var(--ink);
}
.tabs-editorial .tab.on {
  color: var(--ink);
  font-weight: 600;
}
.tabs-editorial .tab.on::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.tabs-editorial .tab .ct {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--mute);
  margin-left: 6px;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: var(--r-full);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  color: var(--body);
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--sh-xs);
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: var(--sh-sm);
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pgrid.pgrid-2col {
  grid-template-columns: repeat(2, 1fr);
}

/* Antigravity Profile Dossier Card */
.pcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--sh-2), var(--specular);
  overflow: hidden;
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--sh-hover);
}
.pcard::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s ease;
}
.pcard:hover::before {
  background: var(--accent);
}

.pcard .row1 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
  border: 1.5px solid var(--line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  box-shadow: var(--sh-xs);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02);
}

.pcard .name {
  font-family: var(--ff-serif);
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}
.pcard .loc {
  font-size: 13px;
  color: var(--mute);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pcard .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-border);
  text-transform: uppercase;
}
.pcard .ts {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ok);
  font-weight: 600;
  margin-top: 4px;
  text-align: right;
}

.pcard .rows {
  border-top: 1px solid var(--line-subtle);
  padding-top: 14px;
}
.pcard .r {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 5px 0;
  color: var(--body);
}
.pcard .r .k {
  color: var(--mute);
}
.pcard .r .v {
  color: var(--ink);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.pcard .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pcard .tag {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  background: var(--paper-2);
  color: var(--body);
  border: 1px solid var(--line);
}
.pcard .tag.role {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.pcard .foot {
  font-size: 13px;
  color: var(--mute);
  font-style: italic;
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle);
}

.pcard-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: center;
}
.pcard-action .btn {
  width: 100%;
  padding: 9px 16px;
  font-size: 13px;
  border-radius: var(--r-full);
}

/* Sample Dossier Tag & Privacy note */
.dossier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 2px 8px;
}

/* Partner Firm Card */
.firm-card {
  display: flex;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-1);
  transition: var(--transition);
}
.firm-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.firm-ic {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}
.firm-ic svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}
.firm-card h4 {
  font-family: var(--ff-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink);
}
.firm-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* ============ CAPITAL TIERS STRIP ============ */
.tier-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tier-mini {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--sh-1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.tier-mini:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}
.tier-mini.pop {
  border-color: var(--ink);
  box-shadow: var(--sh-3);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAF8 100%);
}
.tier-mini-badge {
  position: absolute;
  top: -11px;
  left: 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: var(--r-full);
  box-shadow: var(--sh-xs);
}
.tier-mini .k {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}
.tier-mini b {
  display: block;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}
.tier-mini b small {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.05em;
  margin-left: 4px;
}
.tier-mini p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  min-height: 42px;
}
.tier-mini .acc {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-subtle);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ============ LEGAL STRIP & PRINCIPLES ============ */
.legal-strip {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-3);
}

.legal-strip::before {
  content: '§';
  position: absolute;
  top: -30px;
  right: 20px;
  font-family: var(--ff-serif);
  font-size: 320px;
  line-height: 1;
  color: rgba(250, 248, 245, 0.04);
  font-style: italic;
  pointer-events: none;
}

.legal-strip h3 {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
  line-height: 1.2;
  color: var(--paper);
  font-family: var(--ff-serif);
}
.legal-strip h3 .em {
  font-style: italic;
  color: #F8B4BD;
}
.legal-strip p {
  font-size: 15px;
  color: rgba(250, 248, 245, 0.78);
  line-height: 1.65;
}
.ls-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.ls-pills .pill {
  border: 1px solid rgba(250, 248, 245, 0.2);
  background: rgba(250, 248, 245, 0.06);
  color: rgba(250, 248, 245, 0.9);
  border-radius: var(--r-full);
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

/* ============ EXPLAIN FIGURES (INFOGRAPHICS) ============ */
.explain-figure {
  margin: 32px 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 16px;
  box-shadow: var(--sh-2);
  position: relative;
  overflow: hidden;
}
.explain-figure picture {
  display: block;
  overflow: hidden;
  border-radius: var(--r);
}
.explain-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
  background: var(--paper-2);
  transition: transform 0.4s ease;
}
.explain-figure figcaption {
  margin-top: 14px;
  padding: 0 6px 4px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mute);
  line-height: 1.55;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============ LEGAL UPDATES FEED ============ */
.upd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 18px;
}
.pill-live {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-weight: 600;
  border: 1px solid var(--ok-border);
}
.upd-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.upd-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--sh-1);
  transition: var(--transition);
}
.upd-card:hover {
  box-shadow: var(--sh-2);
  border-color: var(--line-2);
}
.upd-card .row1 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 12px;
}
.upd-card .date {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.upd-card .st {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  font-weight: 600;
}
.upd-card .st.in_force {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-border);
}
.upd-card .st.ongoing {
  background: var(--paper-2);
  color: var(--body);
}
.upd-card .st.superseded {
  color: var(--faint);
}
.upd-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.upd-card .tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: var(--r-full);
}
.upd-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--ink);
}
.upd-card p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.65;
  margin: 0 0 10px;
}
.upd-card .why {
  font-size: 14px;
  color: var(--ink);
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin: 14px 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.upd-card .srcs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
}
.upd-card .srcs a {
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.upd-card .srcs a:hover {
  border-color: var(--ink);
}
.upd-empty, .upd-err {
  padding: 32px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  color: var(--mute);
  font-size: 15px;
  text-align: center;
}

/* ============ VERIFICATION LADDER & FLOW (FOR /VERIFICATION) ============ */
.vflow { margin-top: 64px; }
.vflow-diagram {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--sh-2);
  position: relative;
}
.vf-lanes {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
}
.vf-side {
  padding: 18px 24px 18px 0;
  font-family: var(--ff-serif);
  font-size: 22px;
  letter-spacing: -0.015em;
  border-right: 1px solid var(--line);
  text-align: right;
  color: var(--ink);
}
.vf-side small {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 6px;
}
.vf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-left: 32px;
  position: relative;
}
.vf-step {
  padding: 0 20px 20px;
  position: relative;
}
.vf-step .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
}
.vf-step h4 {
  font-family: var(--ff-serif);
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.vf-step p {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.55;
}
.vf-step .doc {
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--mute);
}

.vlevels {
  margin-top: 56px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.vlevel-row {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  align-items: flex-start;
  padding: 36px 40px;
  border-bottom: 1px solid var(--line);
}
.vlevel-row:last-child {
  border-bottom: none;
}
.vlevel-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.vlevel-tag .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
}
.vlevel-body h3 {
  font-family: var(--ff-serif);
  font-size: 26px;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  font-weight: 400;
  color: var(--ink);
}
.vlevel-body p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
  max-width: 520px;
}
.vlevel-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vlevel-items li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--body);
  list-style: none;
}
.vlevel-items li svg {
  width: 14px;
  height: 14px;
  stroke: var(--ok);
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ============ TIERS MATRIX (FOR /TIERS) ============ */
.tier-matrix {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-2);
  margin-top: 56px;
}
.tier-head {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.tier-head .th {
  padding: 24px 20px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  border-right: 1px solid var(--line);
}
.tier-head .th:last-child { border-right: none; }
.tier-head .th.pop {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.tier-head .th.pop::after {
  content: 'MOST COMMON';
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.14em;
  font-weight: 600;
}
.tier-head .th b {
  display: block;
  font-family: var(--ff-serif);
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-top: 8px;
  text-transform: none;
}
.tier-head .th.pop b { color: var(--paper); }
.tier-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  border-bottom: 1px solid var(--line-subtle);
}
.tier-row:last-child { border-bottom: none; }
.tier-row .cell {
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--body);
  border-right: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  line-height: 1.5;
}
.tier-row .cell:last-child { border-right: none; }
.tier-row .cell.lbl {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tier-row .cell.pop {
  background: rgba(11, 18, 32, 0.02);
}
.tier-mobile-cards {
  display: none;
}

/* ============ FINAL CTA BANNER ============ */
.finalcta {
  padding: 110px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.finalcta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 450px at 20% 30%, rgba(201, 42, 62, 0.14), transparent 60%),
    radial-gradient(700px 350px at 80% 70%, rgba(197, 160, 89, 0.1), transparent 60%);
  pointer-events: none;
}
.finalcta .wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}
.finalcta h2 {
  font-family: var(--ff-serif);
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--paper);
  font-weight: 400;
  margin-bottom: 22px;
}
.finalcta h2 .em {
  font-style: italic;
  color: #F8B4BD;
}
.finalcta p {
  max-width: 580px;
  margin: 0 auto 38px;
  color: rgba(250, 248, 245, 0.75);
  font-size: 17.5px;
  line-height: 1.6;
}
.finalcta .actions {
  display: inline-flex;
  gap: 14px;
  justify-content: center;
}
.finalcta .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.finalcta .btn-primary:hover {
  background: #FFFFFF;
}
.finalcta .btn-ghost {
  color: var(--paper);
  border-color: rgba(250, 248, 245, 0.35);
  background: rgba(250, 248, 245, 0.05);
}
.finalcta .btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(250, 248, 245, 0.12);
}
.finalcta .meta {
  margin-top: 32px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--paper-3);
  opacity: 0.65;
  letter-spacing: 0.12em;
}

/* ============ FOOTER ============ */
footer {
  padding: 84px 0 44px;
  background: var(--ink-2);
  color: var(--paper-3);
  border-top: 1px solid rgba(250, 248, 245, 0.08);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 248, 245, 0.08);
}
.foot-brand .brand-logo {
  width: 190px;
  height: 46px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.foot-brand p {
  color: rgba(250, 248, 245, 0.65);
  font-size: 14px;
  line-height: 1.65;
  margin-top: 18px;
  max-width: 320px;
}
.foot-brand .cities {
  margin-top: 22px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper-3);
  opacity: 0.55;
  text-transform: uppercase;
}
.foot-col h5 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-3);
  opacity: 0.65;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-col a {
  font-size: 14px;
  color: rgba(250, 248, 245, 0.72);
  transition: color 0.15s ease;
}
.foot-col a:hover {
  color: #FFFFFF;
}
.foot-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(250, 248, 245, 0.45);
  font-family: var(--ff-mono);
}
.foot-disclaimer {
  font-size: 12px;
  color: rgba(250, 248, 245, 0.4);
  line-height: 1.7;
  max-width: 920px;
  margin-top: 28px;
}

/* ============ WIZARD MODAL (ANTIGRAVITY GLASS) ============ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 32px 16px;
}
.modal.open {
  display: flex;
  animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wiz {
  background: var(--paper);
  border-radius: var(--r-xl);
  max-width: 620px;
  width: 100%;
  padding: 40px 44px;
  position: relative;
  box-shadow: var(--sh-float), var(--specular);
  border: 1px solid var(--line);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes modalSlideUp {
  from { transform: translateY(24px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.wiz .close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: var(--transition);
  cursor: pointer;
  z-index: 10;
}
.wiz .close:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(90deg);
}
.wiz .close svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.wiz h3 {
  font-family: var(--ff-serif);
  font-size: 28px;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--ink);
}
.wiz .wsub {
  font-size: 14px;
  color: var(--mute);
  margin-bottom: 24px;
}

.prog {
  height: 4px;
  background: var(--paper-3);
  border-radius: var(--r-full);
  margin-bottom: 28px;
  overflow: hidden;
}
.prog i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--ink));
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--r-full);
}

.q label.ql {
  display: block;
  font-family: var(--ff-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--ink);
  line-height: 1.3;
}

.opts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.opt {
  padding: 12px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--sh-xs);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.opt:hover {
  border-color: var(--ink-3);
  transform: translateY(-1px);
}
.opt.on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  box-shadow: var(--sh-sm);
}

.opt.wide {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border-radius: var(--r);
}
.opt.wide b {
  font-size: 18px;
  font-weight: 500;
  font-family: var(--ff-serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.opt.wide span {
  font-size: 13.5px;
  color: var(--mute);
  line-height: 1.5;
  font-weight: 400;
}
.opt.wide:hover {
  background: #FCFBF9;
  border-color: var(--line-2);
}
.opt.wide.on {
  background: var(--ink);
  color: var(--paper);
}
.opt.wide.on b {
  color: var(--paper);
}
.opt.wide.on span {
  color: rgba(250, 248, 245, 0.8);
}

.wiz input[type="text"],
.wiz input[type="email"],
.wiz input[type="password"],
.wiz textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 46px;
}
.wiz input:focus, .wiz textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 18, 32, 0.08);
}

.wnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.warn {
  background: #FEF3F2;
  border: 1px solid #FCA5A5;
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
  padding: 22px 24px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}
.warn h4 {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--ff-serif);
  font-size: 21px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* Scoped wizard completion screen */
.wiz-done-container,
.modal-box > .done,
.wiz > #wizbody > .done {
  text-align: center;
  padding: 24px 10px;
}
.wiz-done-container .ic,
.wiz > #wizbody > .done .ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok-bg);
  border: 1.5px solid var(--ok-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.08);
}
.wiz-done-container .ic svg,
.wiz > #wizbody > .done .ic svg {
  width: 28px;
  height: 28px;
  stroke: var(--ok);
  stroke-width: 2.2;
}

.wiz-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 18px 0 26px;
}
.wp-dot {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--paper-2);
  color: var(--faint);
  border: 1px solid var(--line);
  flex: 0 0 28px !important;
  line-height: 1 !important;
  overflow: hidden;
}
.wp-dot.on {
  background: var(--ink) !important;
  color: #FFFFFF !important;
  border-color: var(--ink) !important;
}
.wp-dot.done {
  background: #ECFDF5 !important;
  color: #059669 !important;
  border-color: #059669 !important;
  padding: 0 !important;
}
.wp-bar {
  height: 1px;
  flex: 1;
  background: var(--line);
}
.wp-bar.on {
  background: var(--ink);
}

.wiz-note {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px 18px;
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 20px;
}
.wiz-err {
  color: var(--accent);
  font-size: 13.5px;
  margin: 0 0 16px;
  display: none;
  background: #FEF3F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  line-height: 1.5;
}

/* ============ PROFILE DETAILS DRAWER ============ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 105;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open {
  display: block;
  opacity: 1;
}

.profile-drawer {
  background: var(--paper);
  max-width: 600px;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: -620px;
  z-index: 110;
  box-shadow: var(--sh-float);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 44px 48px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.profile-drawer.open {
  right: 0;
}
.profile-drawer .close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: var(--transition);
}
.profile-drawer .close:hover {
  background: var(--ink);
  color: var(--paper);
}
.profile-drawer .close svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.drawer-params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 13.5px;
}

/* ============ INTERNAL PAGE HEROS & PROSE ============ */
.pagehero {
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 68px 0 60px;
  position: relative;
}
.crumb {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.crumb a:hover {
  color: var(--ink);
}
.pagehero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  max-width: 18ch;
}
.pagehero h1 .em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}
.pagehero .lead {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 64ch;
}
.pagehero .facts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pagehero .fact {
  min-width: 120px;
}
.pagehero .fact .k {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.pagehero .fact .v {
  font-size: 16px;
  font-weight: 600;
}

.prose {
  max-width: 72ch;
}
.prose h2 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 44px 0 16px;
  color: var(--ink);
}
.prose h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--ink);
}
.prose p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 16px;
}
.prose ul {
  margin: 0 0 18px 0;
  list-style: none;
}
.prose li {
  font-size: 15.5px;
  color: var(--body);
  line-height: 1.65;
  padding: 6px 0 6px 24px;
  position: relative;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 9px;
  height: 1px;
  background: var(--line-2);
}

.callout {
  border-left: 3px solid var(--accent);
  background: var(--white);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 22px 26px;
  margin: 28px 0;
  box-shadow: var(--sh-1);
}
.callout .h {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}
.callout p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.split > * { min-width: 0; }
.side-nav {
  position: sticky;
  top: 96px;
}
.side-nav .t {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
  font-weight: 600;
}
.side-nav a {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 8px 0 8px 16px;
  border-left: 2px solid var(--line);
}
.side-nav a:hover, .side-nav a.on {
  color: var(--ink);
  border-left-color: var(--ink);
  font-weight: 600;
}

/* ============ APP SHELL & ACCOUNT / ADMIN ============ */
.appbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--sh-xs);
}
.appbar .in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 18px;
}
.appbar .brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.rolechip {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--body);
  background: var(--paper-2);
  font-weight: 600;
}
.rolechip.super {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.rolechip.reviewer { background: #EEF1F8; border-color: #CBD5E8; color: #2A3B63; }
.rolechip.legal { background: #F7EEF0; border-color: #E3C9CE; color: #7C1223; }
.rolechip.firm { background: #FBF3E0; border-color: #E8D6A8; color: #7A5E14; }

.apptabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin: 26px 0 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.apptabs::-webkit-scrollbar { display: none; }
.apptabs button {
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: var(--transition);
}
.apptabs button.on {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 650;
}
.apptabs .badge {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  background: var(--paper-3);
  border-radius: var(--r-full);
  padding: 2px 7px;
  margin-left: 6px;
  color: var(--body);
}

.cards4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.cards5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.mini {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--sh-1);
  transition: var(--transition);
}
.mini:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--sh-2);
}
.mini .k {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.mini .v {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mini .d {
  font-size: 12.5px;
  color: var(--mute);
  margin-top: 3px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: var(--sh-1);
}
.panel > h3 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 4px;
  color: var(--ink);
}
.panel > .hint {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 18px;
}

/* Data Table (Admin) */
.dtable {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: auto;
  box-shadow: var(--sh-1);
}
.dtable table { width: 100%; border-collapse: collapse; }
.dtable th {
  text-align: left;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  white-space: nowrap;
}
.dtable td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  vertical-align: middle;
}
.dtable tr:last-child td { border-bottom: none; }
.dtable tr.clickable:hover { background: var(--paper-2); cursor: pointer; }
.nm { font-weight: 600; }
.sub { font-size: 12.5px; color: var(--mute); }
.stat-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--body);
  white-space: nowrap;
  font-weight: 600;
}
.stat-tag.foreign { background: #EEF1F8; border-color: #CBD5E8; color: #2A3B63; }
.stat-tag.thai { background: #F7EEF0; border-color: #E3C9CE; color: #7C1223; }
.stat-tag.pending { background: var(--paper-3); }
.stat-tag.approved { background: var(--ok-bg); border-color: #B9D5C5; color: var(--ok); }
.stat-tag.rejected { background: #F7E9EB; border-color: #E3C9CE; color: var(--accent); }
.stat-tag.call_scheduled { background: #FBF3E0; border-color: #E8D6A8; color: #7A5E14; }
.stat-tag.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stat-tag.accepted { background: var(--ok-bg); border-color: #B9D5C5; color: var(--ok); }
.stat-tag.declined { background: #F7E9EB; border-color: #E3C9CE; color: var(--accent); }
.rowacts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.emptyrow { padding: 52px 20px; text-align: center; color: var(--mute); font-size: 14px; }

/* Side Drawer (Admin & Modals) */
.ovl {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 70;
}
.ovl.open { opacity: 1; pointer-events: auto; }
.sdr {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(580px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 80;
  overflow-y: auto;
  padding: 32px 34px 48px;
  box-shadow: var(--sh-float);
}
.sdr.open { transform: none; }
.sdr h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--ink); }
.sdr .sdr-meta { font-size: 13px; color: var(--mute); margin-bottom: 20px; }
.sdr-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 18px;
  line-height: 1;
  color: var(--mute);
}
.kv {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 14px;
  font-size: 13.5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 14px;
}
.kv .k { color: var(--mute); }
.kv .v { font-weight: 550; word-break: break-word; }
.sect {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 22px 0 10px;
  font-weight: 600;
}
.sdr textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
  background: var(--white);
  min-height: 80px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  font-size: 13.5px;
}

/* Auth Card (Sign In & Sign Up) */
.authwrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background: radial-gradient(circle at 50% 15%, rgba(201, 42, 62, 0.05) 0%, transparent 60%), var(--paper);
}
.authcard {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 38px 36px;
  box-shadow: var(--sh-float), var(--specular);
}
.authcard h1 {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--ink);
}
.authcard .s {
  font-size: 14px;
  color: var(--mute);
  margin-bottom: 22px;
  line-height: 1.5;
}
.authcard .foot {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--mute);
  text-align: center;
}
.authcard .foot a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
}

.fld {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 46px;
}
.fld:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 18, 32, 0.08);
}

.pw-wrap {
  position: relative;
  margin-bottom: 12px;
}
.pw-wrap input {
  width: 100%;
  padding-right: 74px;
}
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--r-xs);
}
.pw-toggle:hover {
  color: var(--ink);
}

.chkline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--body);
  margin: 6px 0 14px;
  cursor: pointer;
}
.chkline input {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
  flex-wrap: wrap;
}
.linkish {
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
}

.social-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--mute);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--ff-mono);
}
.social-sep::before, .social-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  min-height: 42px;
  transition: var(--transition);
}
.social-btn:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}
.social-btn.is-pending {
  opacity: 0.72;
}
.social-pending {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  background: var(--paper-2);
  border-radius: var(--r-full);
  padding: 2px 6px;
}

.errline {
  color: var(--accent);
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
  font-weight: 500;
}
.okline {
  color: var(--ok);
  font-size: 13.5px;
  margin: 0 0 12px;
  line-height: 1.45;
  font-weight: 500;
}

/* Timeline & Steps */
.tl {
  position: relative;
  padding-left: 28px;
}
.tl::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.tl-item {
  position: relative;
  padding-bottom: 24px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line-2);
  transition: var(--transition);
}
.tl-item.done::before {
  background: var(--ok);
  border-color: var(--ok);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.tl-item.now::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.tl-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--ink);
}
.tl-item p {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.55;
}
.tl-item .when {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin-top: 4px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 120;
  box-shadow: var(--sh-3);
  font-weight: 500;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Explain cards (wizard) */
.explain-cards {
  display: grid;
  gap: 10px;
  margin: 6px 0 20px;
}
.explain-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.explain-card b {
  font-size: 14px;
  color: var(--ink);
}
.explain-card span {
  font-size: 13px;
  color: var(--body);
  line-height: 1.5;
}
.explain-card.warnish {
  background: #FFF8F1;
  border-color: #F5D0A9;
}

/* ============ MOBILE-FIRST RESPONSIVE OPTIMIZATION ============ */
@media (max-width: 960px) {
  :root {
    --pad: 22px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-plate {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .status-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: -36px auto 0;
    width: calc(100% - 32px);
    max-width: 340px;
  }
  
  .stage-rail {
    grid-template-columns: 1fr !important;
  }
  .stage-card, .stage-card:nth-child(3n+1) {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .stage-card:first-child {
    border-top: none;
  }
  
  .pgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .pgrid.pgrid-2col {
    grid-template-columns: 1fr;
  }
  
  .tier-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .legal-strip {
    grid-template-columns: 1fr;
    padding: 38px 32px;
    gap: 32px;
  }
  
  .cards4, .cards5 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .vlevel-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 24px;
  }
  .vf-lanes { grid-template-columns: 1fr; }
  .vf-side { border-right: none; border-bottom: 1px solid var(--line); text-align: left; padding: 0 0 20px; }
  .vf-steps { grid-template-columns: 1fr; padding-left: 0; padding-top: 20px; }
  .vflow-diagram { padding: 32px 24px; }
  
  .tier-matrix {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tier-head, .tier-row {
    grid-template-columns: 150px repeat(4, 130px);
    width: max-content;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 18px;
  }
  
  section {
    padding: 68px 0;
  }
  section.tight {
    padding: 52px 0;
  }
  .finalcta {
    padding: 72px 0;
  }
  
  .hero {
    padding: 44px 0 68px;
  }
  .hero-headline {
    font-size: clamp(34px, 8.5vw, 52px);
    line-height: 1.05;
    margin-top: 20px;
  }
  .hero-sub {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.55;
  }
  .hero-actions {
    margin-top: 28px;
  }
  
  .trust-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
  }
  .trust-item {
    font-size: 12.5px;
    padding: 9px 12px;
  }
  
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .side-nav {
    display: none;
  }
  
  .statgrid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 16px;
  }
  
  .brand-logo {
    width: 405px;
    max-width: none;
    height: 96px;
  }
  header .brand-logo {
    width: 405px;
    max-width: none;
    height: 96px;
  }
  header .nav {
    height: 112px;
    gap: 8px;
  }
  header .right {
    gap: 8px;
  }
  .lang button {
    padding: 3px 8px;
    font-size: 10.5px;
    min-height: 24px;
  }
  .burger {
    width: 38px;
    height: 38px;
  }
  .mobnav {
    top: 60px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-actions .meta {
    justify-content: center;
    margin-left: 0;
    margin-top: 6px;
    font-size: 12px;
    text-align: center;
    white-space: normal;
  }
  
  .trust-ribbon {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 32px;
  }
  .trust-item {
    font-size: 13px;
    padding: 11px 14px;
    width: 100%;
  }
  
  .tier-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tier-mini p {
    min-height: 0;
  }
  
  .pgrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pcard {
    padding: 20px 18px;
  }
  
  .cards4, .cards5 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .finalcta .actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .finalcta .btn {
    width: 100%;
  }
  
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  
  /* Mobile Wizard Sheet (Antigravity Ergonomics) */
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .wiz {
    max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 30px 20px 24px;
    border-bottom: none;
  }
  .wiz h3 {
    font-size: 24px;
  }
  .q label.ql {
    font-size: 19px;
    margin-bottom: 14px;
  }
  .opt.wide {
    padding: 14px 16px;
  }
  .opt.wide b {
    font-size: 16.5px;
  }
  .wnav {
    margin-top: 24px;
    padding-top: 16px;
  }
  
  /* Profile Drawer Sheet */
  .profile-drawer {
    max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    top: auto;
    bottom: -100%;
    right: 0;
    transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 30px 20px 24px;
  }
  .profile-drawer.open {
    bottom: 0;
    right: 0;
  }
  .drawer-params {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Auth Card */
  .authcard {
    padding: 28px 20px;
    border-radius: var(--r-lg);
  }
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .social-btn {
    padding: 9px 10px;
    font-size: 12.5px;
  }

  /* Appbar Mobile Polish */
  .appbar .in {
    gap: 8px;
  }
  .appbar .brandline .brand-logo {
    width: 360px !important;
    height: auto !important;
  }
  .appbar .sub {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
}
