/* ==========================================================================
   VirtuFit — Global Stylesheet
   Design system: Minimalism & Swiss Style (dark) — see design-system/virtufit/MASTER.md
   Desktop-only. Baseline viewport 1440px; verified to 1920px.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color roles */
  --color-primary: #0F172A;
  --color-on-primary: #FFFFFF;
  --color-secondary: #1E293B;
  --color-on-secondary: #FFFFFF;
  --color-accent: #22C55E;
  --color-accent-hover: #16A34A;
  --color-on-accent: #0F172A;
  --color-background: #020617;
  --color-surface: #0A0F22;
  --color-foreground: #F8FAFC;
  --color-card: #0E1223;
  --color-card-foreground: #F8FAFC;
  --color-muted: #1A1E2F;
  --color-muted-foreground: #94A3B8;
  --color-border: #334155;
  --color-border-soft: #1E293B;
  --color-destructive: #EF4444;
  --color-on-destructive: #0F172A;
  --color-ring: #22C55E;

  /* Typography */
  --font-heading: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;

  /* Spacing scale (4px rhythm) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.50);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 220ms;

  /* Layout */
  --container-max: 1200px;
}

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

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

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-foreground);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  margin: 0 0 var(--space-md);
  color: var(--color-muted-foreground);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

ul, ol { margin: 0; padding: 0; }

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

code, pre, kbd {
  font-family: var(--font-heading);
  font-size: 0.875em;
}

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

::selection {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

/* --------------------------------------------------------------------------
   3. Layout Primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--tight { padding: var(--space-3xl) 0; }

.section--muted {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-3xl);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  font-size: var(--text-lg);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              color var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-muted);
  border-color: var(--color-muted-foreground);
  transform: translateY(-1px);
}

.btn-ghost {
  padding: 10px 16px;
  background-color: transparent;
  color: var(--color-muted-foreground);
  font-weight: 500;
}

.btn-ghost:hover { color: var(--color-foreground); }

.btn-sm { padding: 10px 18px; font-size: var(--text-xs); }

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-foreground);
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__accent { color: var(--color-accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted-foreground);
}

.site-nav a:hover {
  color: var(--color-foreground);
  background-color: var(--color-muted);
}

.site-nav a[aria-current="page"] {
  color: var(--color-foreground);
  background-color: var(--color-muted);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--space-4xl) 0 var(--space-3xl);
  border-bottom: 1px solid var(--color-border-soft);
  background-color: var(--color-background);
}

/* Canvas injected by Vanta Topology — sits behind the hero content */
.hero > canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

/* Soft brand glow layered above the mesh, below the copy */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(900px 420px at 80% -10%, rgba(34, 197, 94, 0.12), transparent 70%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
}

.hero__sub {
  font-size: var(--text-lg);
  max-width: 560px;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  list-style: none;
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__meta svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. Code Card (hero visual + API docs)
   -------------------------------------------------------------------------- */
.code-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.code-card__bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}

.code-card__dots {
  display: flex;
  gap: 7px;
}

.code-card__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--color-border);
}

.code-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-muted-foreground);
}

.code-card__badge {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 99px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: rgba(34, 197, 94, 0.15);
  color: var(--color-accent);
}

.code-card__bar .btn {
  padding: 5px 12px;
  font-size: 11px;
}

.code-card pre {
  margin: 0;
  padding: var(--space-lg);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: 1.8;
  color: #E2E8F0;
}

.code-card pre .tok-key { color: #93C5FD; }
.code-card pre .tok-str { color: #86EFAC; }
.code-card pre .tok-com { color: #8494AC; }
.code-card pre .tok-fn  { color: #FDE68A; }

.code-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-muted-foreground);
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  padding: var(--space-xl);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

.card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card h3 { margin-bottom: var(--space-sm); }

.card p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  background-color: rgba(34, 197, 94, 0.12);
  color: var(--color-accent);
}

.card__icon svg { width: 22px; height: 22px; }

.card__index {
  display: inline-block;
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-muted-foreground);
}

.card__list {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-soft);
  list-style: none;
}

.card__list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
}

.card__list li:last-child { margin-bottom: 0; }

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* Feature list with check icons */
.feature-list {
  list-style: none;
  display: grid;
  gap: var(--space-md);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
}

.feature-list svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   9. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}

.stat {
  padding: var(--space-xl);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
}

/* --------------------------------------------------------------------------
   10. Steps (delivery process)
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: var(--space-lg);
  border-top: 2px solid var(--color-border);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
}

.steps h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
}

.steps p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-2xl);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}

.plan--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.plan__tag {
  position: absolute;
  top: -13px;
  left: var(--space-2xl);
  padding: 4px 12px;
  border-radius: 99px;
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.plan__amount {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-foreground);
}

.plan__period {
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
}

.plan__best-for {
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-soft);
  min-height: 84px;
}

.plan__features {
  list-style: none;
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
}

.plan__features svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.plan__cta { margin-top: auto; }

/* --------------------------------------------------------------------------
   12. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: var(--space-md);
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
  overflow: hidden;
  transition: border-color var(--duration-base) var(--ease);
}

.faq-item.is-open { border-color: var(--color-border); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-foreground);
  transition: color var(--duration-fast) var(--ease);
}

.faq-item__q:hover { color: var(--color-accent); }

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transition: transform var(--duration-base) var(--ease);
}

.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }

.faq-item__a {
  display: none;
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-item.is-open .faq-item__a { display: block; }

.faq-item__a p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   13. Callout
   -------------------------------------------------------------------------- */
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  padding: var(--space-2xl) var(--space-3xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(34, 197, 94, 0.12), transparent 65%),
    var(--color-card);
}

.callout__text h2 { margin-bottom: var(--space-sm); }
.callout__text p { margin-bottom: 0; }

.callout__actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: start;
}

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

.field { display: flex; flex-direction: column; gap: var(--space-sm); }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-foreground);
}

.field label .req { color: var(--color-accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-muted);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
}

.field textarea { resize: vertical; min-height: 140px; }

.field input::placeholder,
.field textarea::placeholder { color: #8494AC; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.field .hint {
  font-size: var(--text-xs);
  color: var(--color-muted-foreground);
}

.field__error {
  display: none;
  font-size: var(--text-xs);
  color: #FCA5A5;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--color-destructive);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.20);
}

.field.has-error .field__error { display: block; }

.form-status {
  display: none;
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.form-status.is-visible { display: block; }

.form-status.is-success {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background-color: rgba(34, 197, 94, 0.10);
  color: #BBF7D0;
}

.form-status.is-error {
  border: 1px solid rgba(239, 68, 68, 0.4);
  background-color: rgba(239, 68, 68, 0.10);
  color: #FCA5A5;
}

/* Contact info panel */
.info-panel {
  padding: var(--space-2xl);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
}

.info-panel h3 { margin-bottom: var(--space-lg); }

.info-list {
  list-style: none;
  display: grid;
  gap: var(--space-lg);
}

.info-list > div {
  display: flex;
  gap: var(--space-md);
}

.info-list svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.info-list dt {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 2px;
}

.info-list dd {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-foreground);
}

.info-list dd a { color: var(--color-accent); }
.info-list dd a:hover { text-decoration: underline; }

.hours {
  list-style: none;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-soft);
  display: grid;
  gap: var(--space-sm);
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
}

.hours li span:last-child { color: var(--color-foreground); }

/* --------------------------------------------------------------------------
   15. Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  border-bottom: 1px solid var(--color-border-soft);
  background:
    radial-gradient(700px 320px at 20% -20%, rgba(34, 197, 94, 0.09), transparent 65%),
    var(--color-background);
}

.page-hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: var(--text-lg);
  max-width: 720px;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-muted-foreground);
  list-style: none;
}

.breadcrumb a:hover { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   16. Tables (API docs)
   -------------------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

thead th {
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

tbody td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-muted-foreground);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }

tbody td code,
td .endpoint {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-accent);
}

.method {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.method--post { background-color: rgba(34, 197, 94, 0.16); color: #86EFAC; }
.method--get  { background-color: rgba(59, 130, 246, 0.16); color: #93C5FD; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border-soft);
}

.footer-brand p {
  margin: var(--space-md) 0 0;
  font-size: var(--text-sm);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-lg);
}

.footer-col ul { list-style: none; display: grid; gap: var(--space-sm); }

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
}

.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-top: var(--space-xl);
  font-size: var(--text-xs);
  color: var(--color-muted-foreground);
}

/* --------------------------------------------------------------------------
   18. Try-on Flow Rail (four-frame proof)
   -------------------------------------------------------------------------- */
.tryon-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}

.tryon-flow__card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
  transition: border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease), transform var(--duration-base) var(--ease);
}

.tryon-flow__card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg);
}

.tryon-flow__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--duration-base) var(--ease);
}

.tryon-flow__card:hover .tryon-flow__img {
  transform: scale(1.03);
}

.tryon-flow__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background-image: linear-gradient(to top, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0));
  pointer-events: none;
}

.tryon-flow__caption {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tryon-flow__step {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
}

.tryon-flow__label {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-foreground);
}

/* --------------------------------------------------------------------------
   19. Before / After Comparison
   -------------------------------------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: 132px 340px minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
}

.compare__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
}

.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity var(--duration-base) var(--ease), transform var(--duration-base) var(--ease);
}

.compare__img--before {
  opacity: 0;
}

.compare__stage:hover .compare__img--before {
  opacity: 1;
}

.compare__stage:hover .compare__img {
  transform: scale(1.03);
}

.compare__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background-image: linear-gradient(to top, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0));
  pointer-events: none;
}

.compare__badge {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.25);
  background-color: rgba(2, 6, 23, 0.6);
  color: var(--color-foreground);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.compare__badge-text {
  transition: opacity var(--duration-base) var(--ease);
}

.compare__badge-text--before {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.compare__stage:hover .compare__badge-text--after {
  opacity: 0;
}

.compare__stage:hover .compare__badge-text--before {
  opacity: 1;
}

.compare__aside {
  display: grid;
  gap: var(--space-lg);
}

.compare__thumb {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
}

.compare__thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  background-color: var(--color-background);
}

.compare__thumb figcaption {
  display: grid;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  line-height: 1.35;
  color: var(--color-muted-foreground);
}

.compare__thumb strong {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.compare__aside h3 {
  margin: 0;
}

.compare__aside p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   20. Accessibility & Motion
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-lg);
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 600;
  transition: top var(--duration-base) var(--ease);
}

.skip-link:focus { top: var(--space-md); }

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

/* --------------------------------------------------------------------------
   21. Large Viewport Support (1920px)
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  :root { --container-max: 1320px; }
  .hero h1 { font-size: 4rem; }
}
