/* Tech Plus Studio — Self-hosted design system (no external requests, no build step) */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/sora-var-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/assets/fonts/anuphan-var.woff2') format('woff2');
}

:root {
  /* Brand tokens */
  --navy: #14123A;
  --navy-90: #1D1A4D;
  --navy-80: #292563;
  --purple: #4A36E0;
  --purple-hover: #3B28C9;
  --purple-tint: #6D5CEB;
  --lavender: #F1EFFF;
  --lavender-soft: #F7F6FF;
  --lavender-border: #DCD7FC;

  /* Neutrals */
  --bg: #FFFFFF;
  --bg-subtle: #F8F8FC;
  --text: #14123A;
  --text-muted: #4E4C6D;
  --text-on-dark: #F4F3FF;
  --text-muted-on-dark: #C4C1E3;
  --border: #E5E4F0;
  --border-strong: #CECBE3;

  /* Tiny status indicators */
  --live-dot: #10A37F;
  --live-text: #0A6B53;
  --live-bg: #E9F8F3;
  --live-border: #BCEAD9;

  /* Typography */
  --font-display: 'Sora', 'Anuphan', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Anuphan', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout & 8px spacing scale */
  --wrap: 1120px;
  --prose: 68ch;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;

  /* Radii & Shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(20, 18, 58, 0.05);
  --shadow-sm: 0 4px 14px rgba(20, 18, 58, 0.06), 0 1px 3px rgba(20, 18, 58, 0.04);
  --shadow-md: 0 14px 36px rgba(20, 18, 58, 0.09), 0 4px 12px rgba(74, 54, 224, 0.06);
  --shadow-phone: 0 28px 60px -12px rgba(20, 18, 58, 0.28), 0 8px 24px -4px rgba(74, 54, 224, 0.14);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

html.show-th body,
.th,
[lang="th"] {
  line-height: 1.75;
}

img, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--purple);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--purple-hover);
}

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

.section-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: #C7C0FF;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.55em;
}

h1 {
  font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3.05rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.05vw, 1.95rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

html.show-th h1, h1 .th {
  line-height: 1.32;
  letter-spacing: -0.01em;
}

html.show-th h2, h2 .th {
  line-height: 1.38;
  letter-spacing: 0;
}

html.show-th h3, h3 .th {
  line-height: 1.45;
  letter-spacing: 0;
}

p, ul, ol {
  margin: 0 0 1em;
}

ul, ol {
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.4em;
}

li:last-child, p:last-child {
  margin-bottom: 0;
}

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

.narrow {
  max-width: 820px;
}

.prose-col {
  max-width: var(--prose);
}

/* Bilingual system (no JS = both shown; JS = selected language only) */
html.show-en .th { display: none !important; }
html.show-th .en { display: none !important; }
html:not(.show-en):not(.show-th) span.th + span.en::before,
html:not(.show-en):not(.show-th) span.en + span.th::before { content: " / "; }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--bg-subtle);
}

.nav-links a[aria-current="page"] {
  color: var(--purple);
  background: var(--lavender);
  font-weight: 600;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.lang-toggle:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--lavender-soft);
}

/* Pure HTML/CSS Mobile Menu (<details>) */
.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--navy);
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.mobile-nav > summary::-webkit-details-marker {
  display: none;
}

.mobile-nav > summary:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--lavender-soft);
}

.mobile-nav[open] > summary {
  background: var(--lavender);
  border-color: var(--purple);
  color: var(--purple);
}

.mobile-nav .icon-close { display: none; }
.mobile-nav[open] .icon-open { display: none; }
.mobile-nav[open] .icon-close { display: block; }

.mobile-drawer {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.mobile-drawer a:hover,
.mobile-drawer a[aria-current="page"] {
  background: var(--lavender);
  color: var(--purple);
  font-weight: 600;
}

/* Atmospheric Background & Hero */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(74, 54, 224, 0.11), transparent 65%),
    radial-gradient(ellipse 65% 55% at 15% 85%, rgba(241, 239, 255, 0.95), transparent 65%);
  border-bottom: 1px solid var(--border);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 18, 58, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 18, 58, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 92%);
  pointer-events: none;
}

.hero > .wrap,
.page-hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero {
  padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 7vw, 84px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-6);
  align-items: center;
}

.page-hero {
  padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 44px);
}

.page-hero p.lead,
.hero p.lead {
  font-size: clamp(1.03rem, 0.98rem + 0.3vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

html.show-th .page-hero p.lead,
html.show-th .hero p.lead {
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--purple);
  background: var(--lavender);
  border: 1px solid var(--lavender-border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: var(--space-2);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.meta-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Buttons & Pills */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--purple);
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  min-height: 46px;
  border: 1px solid var(--purple);
  box-shadow: 0 2px 8px rgba(74, 54, 224, 0.22);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--purple-hover);
  border-color: var(--purple-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(74, 54, 224, 0.28);
}

.btn.secondary {
  background: var(--bg);
  color: var(--navy);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn.secondary:hover {
  background: var(--lavender-soft);
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: var(--shadow-sm);
}

.btn.light {
  background: #FFFFFF;
  color: var(--navy);
  border-color: #FFFFFF;
  box-shadow: none;
}

.btn.light:hover {
  background: var(--lavender);
  border-color: var(--lavender);
  color: var(--navy);
}

.pill-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lavender-border);
  background: var(--lavender-soft);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple);
  background: var(--lavender);
  border: 1px solid var(--lavender-border);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  margin-bottom: 12px;
}

.status-pill.live {
  color: var(--live-text);
  background: var(--live-bg);
  border-color: var(--live-border);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}

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

/* Home Hero Phone Mockup (Pure HTML/CSS) */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 54, 224, 0.22), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.preview-caption {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 316px;
  background: var(--navy);
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.phone-screen {
  background: var(--bg-subtle);
  border-radius: 29px;
  padding: 12px 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(20, 18, 58, 0.08);
}

.phone-notch {
  width: 84px;
  height: 18px;
  background: var(--navy);
  border-radius: 999px;
  margin: 0 auto 12px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.app-brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: block;
}

.app-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--purple);
  background: var(--lavender);
  padding: 2px 8px;
  border-radius: 999px;
}

.app-toast {
  background: #FFFFFF;
  border: 1px solid var(--lavender-border);
  border-left: 3px solid var(--purple);
  border-radius: 12px;
  padding: 9px 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--lavender);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1.3;
}

.toast-body {
  font-size: 0.75rem;
  color: var(--navy);
  line-height: 1.45;
  margin-top: 2px;
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.app-chip {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.app-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.job-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 11px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-xs);
}

.job-card:last-of-type {
  margin-bottom: 10px;
}

.job-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.chip-saved {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--purple);
  background: var(--lavender);
  padding: 2px 7px;
  border-radius: 999px;
}

.chip-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--live-text);
  background: var(--live-bg);
  padding: 2px 7px;
  border-radius: 999px;
}

.job-deadline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.job-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

.job-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.app-tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.app-tabbar .is-active {
  color: var(--purple);
  font-weight: 700;
}

/* Sections */
.section {
  padding: clamp(44px, 6vw, 76px) 0;
}

.section-tinted {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: clamp(44px, 6vw, 72px) 0;
}

.section-dark h2,
.section-dark h3 {
  color: #FFFFFF;
}

.section-dark p {
  color: var(--text-muted-on-dark);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.section-head-copy {
  max-width: 620px;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}

.section-dark .section-kicker {
  color: #B7AEFF;
}

.section-lead {
  color: var(--text-muted);
  margin-top: 6px;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--lavender-border);
  box-shadow: var(--shadow-sm);
}

.card-compact {
  padding: 20px;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--lavender);
  border: 1px solid var(--lavender-border);
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}

.card-actions {
  margin-top: auto;
  padding-top: var(--space-2);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  margin-left: -4px;
  padding: 0 4px;
}

.card-link:hover {
  text-decoration: underline;
}

/* Spotlight Card (Home & Apps) */
.spotlight {
  background: var(--bg);
  border: 1px solid var(--lavender-border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-3);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: var(--space-4);
  align-items: center;
}

.spotlight-aside {
  background: var(--lavender-soft);
  border: 1px solid var(--lavender-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.feature-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.feature-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Dark Company Facts Strip */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.fact-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.fact-label {
  font-size: 0.8125rem;
  color: var(--text-muted-on-dark);
  margin-bottom: 6px;
}

.fact-value {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: #FFFFFF;
  overflow-wrap: anywhere;
}

/* Address Bar */
.address-bar {
  margin-top: var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.address-bar svg {
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Definition Lists & Tables */
.facts-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin: var(--space-2) 0 var(--space-3);
}

dl.facts {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  margin: 0;
}

dl.facts dt,
dl.facts dd {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  margin: 0;
  overflow-wrap: anywhere;
}

dl.facts dt {
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-subtle);
}

dl.facts dd {
  color: var(--navy);
  font-weight: 500;
}

dl.facts dt:last-of-type,
dl.facts dd:last-of-type {
  border-bottom: none;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 16px 0 24px;
  box-shadow: var(--shadow-xs);
}

.table-scroll table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.925rem;
  margin: 0;
}

.table-scroll th,
.table-scroll td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.table-scroll th:last-child,
.table-scroll td:last-child {
  border-right: none;
}

.table-scroll tr:last-child td {
  border-bottom: none;
}

.table-scroll th {
  background: var(--lavender-soft);
  color: var(--navy);
  font-weight: 600;
}

/* Callouts */
.info-callout {
  background: var(--lavender-soft);
  border: 1px solid var(--lavender-border);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: var(--space-3) 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
}

.info-callout svg {
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Accordions (Support FAQ) */
.faq-list {
  display: grid;
  gap: 10px;
  margin: var(--space-2) 0 var(--space-4);
}

details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

details.faq-item:hover {
  border-color: var(--lavender-border);
}

details.faq-item[open] {
  border-color: var(--lavender-border);
  box-shadow: var(--shadow-sm);
}

details.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  min-height: 48px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

details.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
  margin-top: -3px;
}

details.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.faq-body {
  padding: 0 18px 16px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Legal Layout & Sticky TOC */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--prose));
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-5) 0 var(--space-8);
}

.toc-box {
  position: sticky;
  top: 88px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.toc-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.toc-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.45;
}

.toc-list a:hover {
  color: var(--purple);
  background: var(--lavender);
}

.prose h2 {
  margin-top: 2em;
  padding-top: 0.6em;
  border-top: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  margin-top: 1.5em;
}

.prose p,
.prose li {
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--text-muted-on-dark);
  padding: var(--space-6) 0 var(--space-5);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
}

.footer-logo {
  display: block;
  height: 44px;
  width: auto;
  margin-bottom: var(--space-2);
}

.footer-legal-name {
  color: #FFFFFF;
  font-weight: 600;
  margin-bottom: 6px;
}

.site-footer a {
  color: #FFFFFF;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: #C7C0FF;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted-on-dark);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .spotlight {
    grid-template-columns: 1fr;
  }

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

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

  .legal-layout {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding-top: var(--space-3);
  }

  .toc-box {
    position: static;
  }

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

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

  .mobile-nav {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .facts-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  dl.facts {
    grid-template-columns: 1fr;
  }

  dl.facts dt {
    border-bottom: none;
    padding-bottom: 4px;
    font-size: 0.85rem;
  }

  dl.facts dd {
    padding-top: 4px;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .wrap {
    padding: 0 16px;
  }

  .brand-logo {
    height: 25px;
  }

  .lang-toggle {
    padding: 0 11px;
    font-size: 0.8125rem;
  }

  .btn-row .btn,
  .btn-row .pill-soon {
    width: 100%;
    justify-content: center;
  }
}

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