:root {
  --ground: #FBFAF8;
  --ink: #17191C;
  --petrol: #0F7E78;
  --petrol-hover: #0B605B;
  --petrol-press: #094B47;
  --petrol-muted: #EFF6F5;
  --petrol-fg: #FBFAF8;
  --slate: #6B7177;
  --tint: #E4EEED;
  --surface: #FFFFFF;
  --surface-sunken: #F4F2EE;
  --fg: #17191C;
  --fg-secondary: #3B3F44;
  --fg-muted: #6B7177;
  --fg-disabled: #A2A6AB;
  --fg-inverse: #FBFAF8;
  --border: #E7E3DD;
  --border-strong: #D5D0C8;
  --success: #117A52;
  --success-bg: #E5F2EB;
  --success-border: #B4DBC6;
  --warning: #9A6B12;
  --warning-bg: #FBF1DC;
  --warning-border: #EAD3A0;
  --danger: #BE3A2E;
  --danger-bg: #FBE9E6;
  --danger-border: #F0C3BC;
  --neutral-bg: #F1EFEB;
  --neutral-border: #DAD5CD;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'Cascadia Code', 'JetBrains Mono', Menlo, monospace;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -2px rgba(15,23,42,.04);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,.08), 0 10px 10px -5px rgba(15,23,42,.04);
  --ring: 0 0 0 3px var(--petrol-muted);
  --dur-fast: 100ms;
  --ease-out: cubic-bezier(0,0,.2,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img,svg { display: block; max-width: 100%; }
button,input,textarea,select { font: inherit; color: inherit; }
::selection { background: var(--tint); color: var(--ink); }
section[id],div[id] { scroll-margin-top: 88px; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 0; padding: 8px 16px; background: var(--petrol); color: var(--petrol-fg); z-index: 100; text-decoration: none; font-weight: 600; }

@keyframes tn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(15,126,120,.35); }
  70%  { box-shadow: 0 0 0 7px rgba(15,126,120,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,126,120,0); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -.01em;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), opacity var(--dur-fast);
}
.tn-btn:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }
.tn-btn:active:not(:disabled) { transform: scale(.98); }
.tn-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.tn-btn--sm { height: 36px; min-height: 44px; padding: 0 1rem; font-size: .8125rem; }
.tn-btn--lg { height: 48px; padding: 0 1.5rem; font-size: 1rem; }
.tn-btn--block { width: 100%; }
.tn-btn--primary { background: var(--petrol); color: var(--petrol-fg); }
.tn-btn--primary:hover:not(:disabled) { background: var(--petrol-hover); }
.tn-btn--primary:active:not(:disabled) { background: var(--petrol-press); }

.tn-field { display: flex; flex-direction: column; gap: .5rem; }
.tn-field__label { font-size: .8125rem; font-weight: 600; color: var(--fg); }
.tn-field__error { font-size: .75rem; color: var(--danger); font-weight: 500; }

.tn-input {
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--fg);
  outline: 2px solid transparent;
  -webkit-appearance: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.tn-input::placeholder { color: var(--fg-disabled); }
.tn-input:focus { border-color: var(--petrol); box-shadow: var(--ring); outline: 0; }
.tn-input:focus-visible { border-color: var(--petrol); box-shadow: var(--ring); }
.tn-input.error { border-color: var(--danger); }

.tn-decision { display: flex; flex-direction: column; gap: .75rem; }
.tn-decision__line { font-size: .9375rem; color: var(--fg-secondary); line-height: 1.55; }
.tn-decision__line strong { color: var(--fg); font-weight: 600; }
.tn-decision__explain {
  background: var(--surface-sunken);
  border-left: 3px solid var(--petrol);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: .75rem 1rem;
}
.tn-decision__explain p { font-size: .9375rem; color: var(--fg-secondary); line-height: 1.55; }
.tn-decision__confidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: .5rem;
  font-size: .75rem;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--petrol);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hidden { display: none !important; }
.form-success { animation: fade-in 220ms var(--ease-out) both; }

/* ─────────────────────────────────────────────────────────────────
   LAYOUT UTILITIES — replace all inline styles from index.html
   ───────────────────────────────────────────────────────────────── */

/* Header / Nav */
.tn-header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,248,0.88); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.tn-nav { max-width: 1120px; margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tn-nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tn-nav-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--fg-secondary); text-decoration: none; padding: 0 14px; border-radius: var(--r-md); transition: color var(--dur-fast); }
.tn-nav-link:hover { color: var(--ink); }

/* Logo */
.logo-link     { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-icon     { display: inline-flex; color: var(--petrol); }
.logo-icon--nav { width: 26px; height: 26px; }
.logo-icon--sm  { width: 22px; height: 22px; }
.logo-wordmark    { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.logo-wordmark--sm { font-size: 18px; }

/* Sections */
.tn-section          { padding: clamp(48px,6vw,88px) 32px; border-top: 1px solid var(--border); }
.tn-section--hero    { padding: clamp(56px,8vw,104px) 32px clamp(48px,6vw,88px); }
.tn-section--wide    { padding: clamp(56px,7vw,96px) 32px; border-top: 1px solid var(--border); }
.tn-section--compact { padding: clamp(40px,5vw,72px) 32px; border-top: 1px solid var(--border); }
.tn-section--dark    { padding: clamp(56px,7vw,100px) 32px; background: var(--ink); color: var(--fg-inverse); border-top: 1px solid var(--border); }

/* Containers */
.tn-container     { max-width: 1120px; margin: 0 auto; }
.tn-container--lg { max-width: 960px;  margin: 0 auto; }
.tn-container--md { max-width: 880px;  margin: 0 auto; }
.tn-container--sm { max-width: 760px;  margin: 0 auto; }
.tn-container--xs { max-width: 720px;  margin: 0 auto; text-align: center; }

/* Grids */
.tn-grid          { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 24px; }
.tn-grid--hero    { display: grid; grid-template-columns: repeat(auto-fit,minmax(330px,1fr)); gap: clamp(40px,5vw,72px); align-items: center; }
.tn-grid--capture { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: clamp(36px,5vw,64px); align-items: center; }

/* Icons */
.tn-icon         { display: inline-flex; flex-shrink: 0; color: inherit; }
.tn-icon--petrol { color: var(--petrol); }
.tn-icon--muted  { color: var(--fg-muted); }
.tn-icon--offset { margin-top: 1px; }

/* Eyebrow variants */
.eyebrow--icon  { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow--light { color: #5fb8b1; }

/* Badges */
.tn-badge          { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: var(--r-full); border: 1px solid; white-space: nowrap; flex-shrink: 0; }
.tn-badge--success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.tn-badge--warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.tn-badge--danger  { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-border); }
.tn-badge--neutral { background: var(--neutral-bg); color: var(--fg-secondary); border-color: var(--neutral-border); }
.tn-badge-row      { display: flex; gap: 8px; flex-wrap: wrap; }

/* Dots */
.tn-dot      { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.tn-live-dot { display: inline-flex; width: 7px; height: 7px; border-radius: 50%; background: var(--petrol); animation: tn-pulse 2s var(--ease-out) infinite; flex-shrink: 0; }

/* Mono label */
.tn-mono-label         { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); }
.tn-mono-label--petrol { color: var(--petrol); }
.tn-mono-label--inline { display: inline-flex; align-items: center; gap: 7px; letter-spacing: 0.06em; }

/* Cards */
.tn-card            { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.tn-card--lg-radius { border-radius: var(--r-lg); }
.tn-card--hero      { box-shadow: var(--shadow-lg); padding: 26px; }
.tn-card--tint      { background: var(--tint); border-color: #cfe2e0; }
.tn-card--petrol    { background: var(--petrol-muted); border-color: var(--tint); }
.tn-card--sunken    { background: var(--surface-sunken); }
.tn-card--flat      { box-shadow: none; }
.tn-card--no-border { border: none; }
.tn-card--xl-shadow { box-shadow: var(--shadow-xl); }
.tn-card--overflow  { overflow: hidden; }
.tn-card--pad-md    { padding: 30px; }
.tn-card--pad-resp  { padding: clamp(28px,4vw,44px); }
.tn-card--pad-form  { padding: clamp(24px,3vw,32px); }
.tn-card-meta    { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tn-card-divider { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tn-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.tn-card__body   { padding: 20px; }
.tn-card__log    { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--border); background: var(--surface-sunken); font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-secondary); flex-wrap: wrap; }

/* Stage timeline */
.tn-stage                 { display: grid; grid-template-columns: 48px 1fr; gap: 22px; }
.tn-stage__track          { display: flex; flex-direction: column; align-items: center; }
.tn-stage__circle         { width: 44px; height: 44px; border-radius: var(--r-full); border: 1.5px solid var(--border-strong); background: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--fg-muted); flex-shrink: 0; }
.tn-stage__circle--active { border-color: var(--petrol); background: var(--petrol); color: var(--petrol-fg); }
.tn-stage__line           { flex: 1; width: 1.5px; background: var(--border); margin: 8px 0; }
.tn-stage__body           { padding-bottom: 32px; }

/* Lists */
.tn-list              { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.tn-list__item        { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.tn-list__item--ink   { color: var(--ink); }
.tn-list__item--muted { color: var(--fg-secondary); }

/* Comparison table */
.tn-table-wrap             { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); overflow: hidden; }
.tn-table-wrap table       { width: 100%; border-collapse: collapse; }
.tn-th                     { text-align: left; font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); padding: 16px 24px; border-bottom: 1px solid var(--border); }
.tn-th--narrow             { padding: 16px 20px; }
.tn-th--petrol             { color: var(--petrol); }
.tn-th--w44                { width: 44%; }
.tn-th--w28                { width: 28%; }
.tn-td                     { padding: 18px 24px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 500; color: var(--ink); vertical-align: top; }
.tn-td--check              { padding: 18px 20px; vertical-align: top; border-bottom: 1px solid var(--border); }
.tn-td--muted              { padding: 18px 20px; font-size: 14px; color: var(--fg-muted); font-weight: 400; vertical-align: top; border-bottom: 1px solid var(--border); }
.tn-td--last               { border-bottom: 0; }
.tn-check                  { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }

/* Decision card specific */
.tn-order-id   { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.tn-order-desc { font-size: 13px; color: var(--fg-muted); }
.tn-sep        { color: var(--border-strong); }
.tn-log-time   { color: var(--fg-muted); }
.tn-log-id     { color: var(--ink); font-weight: 600; }

/* Typography */
.tn-h1        { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px,6vw,58px); line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 22px; text-wrap: balance; }
.tn-h2        { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px,4vw,40px); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); }
.tn-h2--sm    { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px,3.6vw,36px); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); }
.tn-h2--pricing { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px,3.6vw,36px); line-height: 1.2; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 10px; text-wrap: balance; }
.tn-h2--capture { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px,4vw,42px); line-height: 1.12; letter-spacing: -0.025em; color: var(--fg-inverse); margin: 0 0 16px; text-wrap: balance; }
.tn-h2--early { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px,3vw,30px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 14px; text-wrap: pretty; }
.tn-h3        { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--ink); margin: 6px 0; }
.tn-h3--lg    { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px,3.2vw,30px); letter-spacing: -0.02em; color: var(--ink); margin: 0 0 10px; }
.tn-h3--faq   { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 10px; }
.tn-h3--success { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 8px; }
.tn-body-xl   { font-family: var(--font-display); font-weight: 500; font-size: clamp(23px,3.2vw,32px); line-height: 1.34; letter-spacing: -0.02em; color: var(--ink); margin: 0; text-wrap: pretty; }
.tn-body-lg   { font-size: clamp(17px,2vw,19px); line-height: 1.55; color: var(--fg-secondary); }
.tn-body      { font-size: 17px; line-height: 1.55; color: var(--fg-secondary); }
.tn-body--sm  { font-size: 16px; line-height: 1.55; color: var(--fg-secondary); }
.tn-body--capture { font-size: 17px; line-height: 1.55; color: #c7c9cc; margin: 0; }
.tn-note      { font-size: 15px; color: var(--fg-muted); margin: 0; }

/* Margin utilities */
.mb-8  { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.mb-22 { margin-bottom: 22px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mt-neg8 { margin-top: -8px; }
.mt-18   { margin-top: 18px; }

/* Max-width (ch) utilities */
.max-16ch { max-width: 16ch; }
.max-18ch { max-width: 18ch; }
.max-20ch { max-width: 20ch; }
.max-36ch { max-width: 36ch; }
.max-42ch { max-width: 42ch; }
.max-50ch { max-width: 50ch; }
.max-54ch { max-width: 54ch; }
.max-56ch { max-width: 56ch; }
.max-58ch { max-width: 58ch; }
.max-60ch { max-width: 60ch; }

/* Text utilities */
.text-center { text-align: center; }
.text-danger  { color: var(--danger); }
.tn-label-opt { color: var(--fg-muted); font-weight: 400; }

/* Form utilities */
.tn-form          { display: flex; flex-direction: column; gap: 18px; }
.tn-consent-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--fg-secondary); }
.tn-consent-check { width: 24px; height: 24px; margin: 0; accent-color: var(--petrol); flex-shrink: 0; cursor: pointer; }
.tn-form-note     { font-size: 12.5px; color: var(--fg-muted); margin: 0; text-align: center; }
.tn-trust-signal  { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); margin: 18px 0 0; }

/* Success state */
.tn-success        { text-align: center; padding: 16px 8px; }
.tn-success-icon   { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--r-full); background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); margin-bottom: 18px; }
.tn-success__text  { font-size: 15px; color: var(--fg-secondary); margin: 0 auto; max-width: 36ch; }

/* FAQ */
.tn-faq-list         { display: flex; flex-direction: column; }
.tn-faq-item         { padding: 26px 0; border-top: 1px solid var(--border); }
.tn-faq-item--last   { border-bottom: 1px solid var(--border); }
.tn-link             { color: var(--petrol); font-weight: 500; padding: 4px 0; display: inline-block; }

/* Main page footer */
.tn-footer         { padding: clamp(40px,5vw,64px) 32px; border-top: 1px solid var(--border); background: var(--surface-sunken); }
.tn-footer__inner  { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; justify-content: space-between; }
.tn-footer__brand  { max-width: 320px; }
.tn-footer__logo   { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.tn-footer__desc   { font-size: 14px; color: var(--fg-muted); margin: 0; line-height: 1.5; }
.tn-footer-nav     { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tn-footer-link    { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--fg-secondary); text-decoration: none; font-weight: 500; transition: color var(--dur-fast); }
.tn-footer-link:hover { color: var(--ink); }
.tn-footer__bottom { max-width: 1120px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
