/*
 * Base: design tokens, reset, typography, layout. The neutral starting design.
 * Restyle a project by changing the tokens first (docs/design-system.md). New CSS uses the
 * tokens, never raw colors.
 */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Sora; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Sora; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Sora; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/sora-latin-800-normal.woff2") format("woff2"); }

:root {
  /* Color — homepage design, Tavixa Website (Copy) */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fc;
  --color-bg-warm: #fafaf8;
  --color-surface: #ffffff;
  --color-text: #001553;
  --color-ink: #0b1220;
  --color-muted: #64748b;
  --color-border: #e4e9f2;
  --color-primary: #fb5b01;
  --color-primary-bright: #fb5b01;
  --color-primary-hover: #c2410c;
  --color-on-primary: #ffffff;
  --color-accent: #002ab1;
  --color-accent-soft: #eaf0ff;
  --color-primary-soft: #fff5ee;
  --color-icon-bg: #f8f5f2;
  --color-navy: #001553;
  --color-on-navy: #ffffff;
  --color-on-navy-muted: rgb(255 255 255 / 70%);
  --color-success: #047857;
  --color-success-soft: #eafbf1;
  --color-wa: #075e54;
  --color-wa-bright: #25d366;
  --color-wa-bubble: #e1ffc7;
  --color-wa-bg: #e5ddd5;
  --color-mock-violet: #7c3aed;
  --color-widget-sand: #efe6dc;
  --color-widget-card: #6d625c;
  --color-widget-cyan: #b7e4ea;
  --color-widget-peach: #f3d7c4;
  --color-widget-pink: #e7c5d8;
  --color-widget-stage: #eceff3;
  --color-widget-green-page: #f0fdf4;
  --color-widget-green-ink: #145244;
  --color-widget-green-card: #eefff4;
  --color-widget-green-line: #c6ead8;
  --color-widget-green-stage: #022c22;
  --color-widget-green-window: #01392c;
  --color-widget-green-head: #064d3b;
  --color-widget-green-me: #0eba82;
  --color-widget-coral-page: #fff6ed;
  --color-widget-coral-ink: #431407;
  --color-widget-coral-card: #fff2df;
  --color-widget-coral-line: #f6d7c0;
  --color-widget-coral-stage: #2c1205;
  --color-widget-coral-window: #3a1608;
  --color-widget-coral-head: #ea580b;
  --color-widget-coral-bubble: #4a1c0c;
  --color-widget-coral-me: #ef5c0e;
  --color-widget-navy-page: #1e293b;
  --color-widget-navy-card: #171f32;
  --color-widget-navy-line: #334155;
  --color-widget-navy-stage: #0c1220;
  --color-widget-dark-stage: #030617;
  --color-widget-navy-window: #0f172a;
  --color-widget-navy-head: #1e293b;
  --color-widget-navy-muted: #cbd5e1;
  --color-widget-sky: #38bdf8;
  --color-widget-sky-ink: #004b74;
  --color-widget-send: #12b67a;
  --color-widget-yellow: #fbe240;
  --color-widget-peach-dot: #fbb776;
  --color-widget-brown: #973313;
  --color-widget-orange-2: #f97316;
  --color-widget-lime: #84cc16;
  --color-widget-mint: #6ee7b7;
  --color-widget-slate: #94a3b8;
  --color-widget-slate-2: #64748b;
  --color-widget-brand-page: #fbf5ff;
  --color-widget-brand-ink: #26203a;
  --color-widget-brand-pink: #e74d96;
  --color-widget-brand-amber: #e2ad39;
  --color-widget-brand-teal: #4bb6ae;
  --color-widget-brand-blue: #3b82f6;
  --color-widget-brand-me: #8b5cf6;
  --color-widget-coral-input: #43140c;
  --color-widget-dark-input: #21283b;
  --color-widget-brand-window: #120e22;
  --color-widget-brand-bubble: #2a2140;
  --color-widget-brand-input: #241c38;
  --color-rating: #f5b400;
  --color-window-close: #ff5f57;
  --color-window-min: #febc2e;
  --color-window-max: #28c840;
  --color-error: #b91c1c;
  --color-focus: #002ab1;

  /* Type. Display weight is 600. Sizes scale between a phone and a 1440px screen. */
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: Sora, Inter, system-ui, sans-serif;
  --text-hero: clamp(2rem, 0.9rem + 3.5vw, 3.25rem);
  --text-page-title: clamp(1.75rem, 1rem + 2.2vw, 2.5rem);
  --text-section: clamp(1.625rem, 1rem + 1.8vw, 2.25rem);
  --text-subsection: clamp(1.375rem, 1rem + 1.1vw, 1.75rem);
  --text-card: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  --text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-body: 1rem;
  --text-article: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --text-ui: 0.9375rem;
  --text-small: 0.8125rem;
  --text-label: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);
  --text-h1: var(--text-page-title);
  --text-h2: var(--text-section);
  --text-h3: var(--text-subsection);
  --text-lg: var(--text-lead);
  --text-base: var(--text-body);
  --text-sm: var(--text-small);
  --lh-hero: 1.08;
  --lh-page-title: 1.12;
  --lh-section: 1.15;
  --lh-subsection: 1.2;
  --lh-card: 1.3;
  --lh-lead: 1.65;
  --lh-body: 1.65;
  --lh-article: 1.7;
  --lh-ui: 1.2;
  --lh-label: 1.2;
  --track-hero: -0.03em;
  --track-page-title: -0.025em;
  --track-section: -0.02em;
  --track-subsection: -0.015em;
  --track-card: -0.01em;
  --track-lead: -0.01em;
  --track-label: 0.1em;
  --weight-display: 600;
  --weight-ui: 600;
  --weight-body: 400;
  --weight-label: 600;
  --measure-article: min(40rem, 100%);

  /* Space and shape. Desktop content is 1140px. The gutter scales with the screen. */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --space-section-home: clamp(4rem, 3rem + 3.5vw, 6rem);
  --space-section-inner: clamp(3.5rem, 2.75rem + 2.5vw, 5rem);
  --space-heading-to-lead: clamp(0.75rem, 0.5rem + 0.6vw, 1.25rem);
  --space-lead-to-actions: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-heading-block: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  --space-hero-pad: clamp(2rem, 1.5rem + 2vw, 4.5rem) 0 clamp(3rem, 2rem + 3vw, 6.5rem);
  --space-hero-grid-gap: clamp(1.5rem, 1rem + 2vw, 4.5rem);
  --container: 1140px;
  --gutter: clamp(20px, 4.5vw, 150px);
  --radius: 12px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-button: 999px;
  --shadow: 0 18px 20px rgb(0 0 0 / 8%), 0 2px 4px rgb(0 0 0 / 4%);
  --shadow-header: 0 8px 20px rgb(0 21 83 / 6%);
  --shadow-card: 0 8px 24px rgb(0 21 83 / 6%), 0 1px 3px rgb(0 0 0 / 4%);
  --shadow-card-hover: 0 14px 32px rgb(0 21 83 / 10%), 0 2px 6px rgb(0 0 0 / 5%);
  --shadow-cta: 0 10px 24px rgb(251 91 1 / 28%);
  --wash-hero: linear-gradient(180deg, #f5f7fc 0%, #ffffff 55%, #ffffff 100%);
  --wash-hero-radials: radial-gradient(ellipse 60% 50% at 12% 0%, rgb(234 240 255 / 70%), transparent 60%), radial-gradient(ellipse 50% 40% at 92% 8%, rgb(255 245 238 / 80%), transparent 55%);
  --wash-band: var(--color-bg-alt);
  --wash-warm: var(--color-bg-warm);
  --wash-navy: linear-gradient(105deg, #001553 0%, #002ab1 100%);
  --wash-navy-live: linear-gradient(105deg, var(--color-navy) 0%, var(--color-accent) 42%, var(--color-navy) 84%);
  --header-height: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--color-bg); color: var(--color-text); font: var(--weight-body) var(--text-body)/var(--lh-body) var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--weight-display); line-height: var(--lh-section); letter-spacing: var(--track-section); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
::selection { background: var(--color-accent); color: var(--color-on-primary); }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 760px; }
.section { padding-block: var(--space-9); }
.section-alt { background: var(--color-bg-alt); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-2); top: -60px; z-index: 200; padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--color-primary); color: var(--color-on-primary); }
.skip-link:focus { top: var(--space-2); }

.page-title { font: var(--weight-display) var(--text-page-title)/var(--lh-page-title) var(--font-heading); letter-spacing: var(--track-page-title); margin-bottom: var(--space-4); }
.eyebrow { margin-bottom: var(--space-3); color: var(--color-accent); font: var(--weight-label) var(--text-label)/var(--lh-label) var(--font-body); letter-spacing: var(--track-label); text-transform: uppercase; }
.lead, .section-intro { max-width: 40rem; color: var(--color-muted); font: var(--weight-body) var(--text-lead)/var(--lh-lead) var(--font-body); letter-spacing: var(--track-lead); }
.lead + .lead { margin-top: var(--space-3); }
.meta { color: var(--color-muted); font-size: var(--text-sm); }
.section-heading { max-width: 720px; margin-bottom: var(--space-7); }
.section-heading h2 { font: var(--weight-display) var(--text-section)/var(--lh-section) var(--font-heading); letter-spacing: var(--track-section); }
.section-intro { margin-top: var(--space-heading-to-lead); }

.prose { max-width: 720px; font-size: var(--text-article); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; font-size: var(--text-subsection); line-height: var(--lh-subsection); }
.prose h3 { margin-top: 1.4em; font-size: var(--text-h3); }
.prose a { color: var(--color-accent); }
.prose img { border-radius: var(--radius-card); }

/* Plain pages: legal text, lists, and tables share one left edge with the title. */
.legal { line-height: var(--lh-article); }
.legal > * + * { margin-top: var(--space-5); }
.legal h2 { margin-top: var(--space-7); font-size: var(--text-subsection); line-height: var(--lh-subsection); letter-spacing: var(--track-subsection); }
.legal h2:first-child { margin-top: 0; }
.legal p { max-width: var(--measure-article); }
.legal p.meta { margin-top: var(--space-3); }
.legal ul, .legal ol { margin: var(--space-4) 0 0; padding: 0 0 0 1.25em; }
.legal li { padding-left: 0.35em; }
.legal li + li { margin-top: var(--space-3); }
.legal a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal .table-wrap { max-width: 100%; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; }
.legal th, .legal td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.legal th { background: var(--color-bg-alt); font-weight: var(--weight-display); }
.legal td:first-child { font-weight: var(--weight-ui); }

@media (max-width: 999px) {
  .section { padding-block: var(--space-8); }
  .split { grid-template-columns: 1fr; gap: var(--space-7); }
}
@media (max-width: 767px) {
  :root { --header-height: 64px; }
  .section { padding-block: var(--space-7); }
  .legal table { table-layout: fixed; font-size: var(--text-ui); line-height: 1.45; }
  .legal th, .legal td { padding: 12px 8px; }
  .legal table[data-cols="3"] th:nth-child(1),
  .legal table[data-cols="3"] td:nth-child(1) { width: 32%; }
  .legal table[data-cols="3"] th:nth-child(2),
  .legal table[data-cols="3"] td:nth-child(2) { width: 42%; }
  .legal table[data-cols="3"] th:nth-child(3),
  .legal table[data-cols="3"] td:nth-child(3) { width: 26%; }
  .legal table[data-cols="2"] th:first-child,
  .legal table[data-cols="2"] td:first-child { width: 48%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
