/* Trag Systems — cargo & freight insurance
   light "Swiss ledger" build: ruled grids, hairlines, tabular figures.
   cobalt + vermilion on cool gray. Archivo / Hanken Grotesk. */

:root {
  --paper:   #f4f5f7;
  --surface: #ffffff;
  --ink:     #14181f;
  --muted:   #5d6675;
  --faint:   #8b93a3;
  --line:    #e1e4ea;
  --line-2:  #cdd2dc;

  --cobalt:      #2f43d6;
  --cobalt-deep: #2536b0;
  --cobalt-soft: #eef0fc;
  --verm:        #e8502b;   /* vermilion accent */
  --verm-deep:   #c93f1f;

  --ff-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --ff-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --wrap: 1180px;
  --head-h: 72px;
  --r: 6px;       /* sharp-ish */
  --r-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--ff-body); background: var(--paper); color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(54px, 7vw, 94px); }
.section--line { border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cobalt); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 16px; }

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--muted); }
b, strong { font-weight: 700; }
.tnum { font-variant-numeric: tabular-nums; }

/* section index label — Swiss "/ 01 — TITLE" */
.s-index { display: flex; align-items: baseline; gap: 12px; font-family: var(--ff-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.s-index .n { color: var(--verm); font-variant-numeric: tabular-nums; }
.s-index .n::before { content: "/ "; color: var(--line-2); }

/* buttons — square Swiss */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--ff-display); font-weight: 600; font-size: 0.94rem; padding: 13px 22px; border-radius: var(--r); border: 1.5px solid transparent; transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.btn svg { width: 17px; height: 17px; }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--cobalt-deep); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
:where(a,button,input,textarea,select):focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* ===== Header — light, sharp, hairline ===== */
.head { position: sticky; top: 0; z-index: 100; background: rgba(244,245,247,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--ff-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-name span { font-weight: 600; color: var(--muted); }
.nav { display: flex; gap: 2px; margin-left: 14px; }
.nav a { padding: 9px 13px; font-size: 0.92rem; font-weight: 600; font-family: var(--ff-display); color: var(--muted); border-radius: var(--r); transition: color .15s ease, background-color .15s ease; }
.nav a:hover { color: var(--ink); background: #fff; }
.nav a.on { color: var(--cobalt); }
.head-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 42px; height: 42px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.burger span:nth-child(1){ top: 15px; } .burger span:nth-child(2){ top: 20px; } .burger span:nth-child(3){ bottom: 15px; }
body.nav-open .burger span:nth-child(1){ transform: translateY(5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2){ opacity: 0; }
body.nav-open .burger span:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 900px){ .nav { display: none; } .head-cta .btn-quote { display: none; } .burger { display: block; } }
/* show/hide by visibility + transform only — opacity fade breaks the panel in some webviews */
.m-nav { position: fixed; inset: var(--head-h) 0 0; z-index: 95; background: var(--paper); padding: 18px 24px; display: flex; flex-direction: column; visibility: hidden; transform: translateY(-10px); transition: transform .22s ease; }
body.nav-open .m-nav { visibility: visible; transform: none; }
.m-nav a:not(.btn) { padding: 17px 4px; font-size: 1.15rem; font-family: var(--ff-display); font-weight: 600; border-bottom: 1px solid var(--line); }
.m-nav a.on { color: var(--cobalt); }
.m-nav > a.btn { margin-top: 20px; width: 100%; }

/* ===== Hero — typographic + spec sheet ===== */
.hero { padding-block: clamp(46px, 6vw, 86px) clamp(40px, 5vw, 70px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(34px, 5vw, 72px); align-items: end; }
@media (max-width: 920px){ .hero-grid { grid-template-columns: 1fr; align-items: start; } }
.hero h1 { margin: 20px 0 0; }
.hero h1 .v { color: var(--verm); }
.hero .lead { margin-top: 22px; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* spec sheet */
.spec { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.spec-head { padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--paper); font-family: var(--ff-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.spec-head .dot { color: var(--verm); }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--muted); }
.spec-row .v { font-family: var(--ff-display); font-weight: 700; text-align: right; }
.spec-row .v.big { color: var(--cobalt); font-size: 1.05rem; }

/* ===== Carrier row (bordered cells) ===== */
.carriers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.carriers .container { display: grid; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 760px){ .carriers .container { grid-template-columns: repeat(3, 1fr); } }
.carriers .cell { padding: 22px 10px; display: grid; place-items: center; border-right: 1px solid var(--line); }
.carriers .cell:nth-child(6n){ border-right: 0; }
@media (max-width: 760px){ .carriers .cell:nth-child(3n){ border-right: 0; } .carriers .cell { border-bottom: 1px solid var(--line); } }
/* logos are white-on-transparent PNGs — brightness(0) turns them black so they read on the light cells */
.carriers img { height: 22px; width: auto; opacity: 0.5; filter: brightness(0); transition: opacity .2s ease; }
.carriers .cell:hover img { opacity: 0.9; }

/* ===== Coverage ruled index ===== */
.cov-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.cov-head h2 { margin-top: 12px; max-width: 18ch; }
.cov-head p { color: var(--muted); max-width: 42ch; }
.cov-list { margin-top: 18px; border-top: 1px solid var(--line-2); }
.cov-row { display: grid; grid-template-columns: 64px 1.2fr 2fr auto; gap: 24px; align-items: center; padding: 26px 6px; border-bottom: 1px solid var(--line); transition: background-color .15s ease, padding-left .15s ease; }
.cov-row:hover { background: var(--surface); padding-left: 16px; }
.cov-row .num { font-family: var(--ff-display); font-weight: 800; font-size: 1.5rem; color: var(--verm); font-variant-numeric: tabular-nums; }
.cov-row h3 { font-size: 1.25rem; }
.cov-row p { color: var(--muted); font-size: 0.95rem; }
.cov-row .go { color: var(--cobalt); }
.cov-row .go svg { width: 22px; height: 22px; }
@media (max-width: 820px){ .cov-row { grid-template-columns: 48px 1fr; gap: 6px 16px; } .cov-row p { grid-column: 2; } .cov-row .go { display: none; } }

/* ===== Calculator (ledger readout) ===== */
.calc-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; margin-top: 36px; background: var(--surface); }
@media (max-width: 880px){ .calc-grid { grid-template-columns: 1fr; } }
.calc-inputs { padding: 30px; border-right: 1px solid var(--line); }
@media (max-width: 880px){ .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); } }
.calc-field { margin-bottom: 26px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 0.9rem; }
.calc-field .out { font-family: var(--ff-display); font-weight: 800; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 0; margin-top: 16px; background: linear-gradient(var(--cobalt), var(--cobalt)) 0/var(--fill,50%) 100% no-repeat, var(--line-2); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: var(--r); background: var(--cobalt); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--cobalt); cursor: pointer; }
.rng::-moz-range-thumb { width: 20px; height: 20px; border-radius: var(--r); background: var(--cobalt); border: 3px solid #fff; cursor: pointer; }
.rng-ends { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--faint); margin-top: 8px; font-variant-numeric: tabular-nums; }
.seg { display: flex; gap: 0; margin-top: 12px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button { flex: 1; padding: 11px; border: 0; border-right: 1px solid var(--line-2); background: var(--surface); font-family: var(--ff-display); font-weight: 600; font-size: 0.86rem; color: var(--muted); transition: background-color .15s ease, color .15s ease; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--cobalt); color: #fff; }
.calc-out { padding: 30px; display: flex; flex-direction: column; }
.calc-pct { font-family: var(--ff-display); font-weight: 800; font-size: clamp(3.4rem, 7vw, 5rem); color: var(--verm); line-height: 0.9; letter-spacing: -0.03em; }
.calc-pct-lab { font-weight: 600; color: var(--muted); margin-top: 4px; }
.calc-bar { height: 6px; background: var(--line); border-radius: 3px; margin: 22px 0; overflow: hidden; }
.calc-bar > i { display: block; height: 100%; width: var(--w,50%); background: var(--cobalt); border-radius: 3px; transition: width .4s ease; }
.calc-table { width: 100%; border-collapse: collapse; }
.calc-table td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.calc-table tr:last-child td { border-bottom: 0; }
.calc-table td:first-child { color: var(--muted); }
.calc-table td:last-child { text-align: right; font-family: var(--ff-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-table td.hl { color: var(--cobalt); }
.calc-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.calc-note { font-size: 0.78rem; color: var(--faint); flex: 1; min-width: 230px; }

/* ===== Stat row (ruled) ===== */
.statline { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
@media (max-width: 700px){ .statline { grid-template-columns: 1fr 1fr; } }
.statline .s { padding: 30px 26px; border-right: 1px solid var(--line); }
.statline .s:nth-child(4n){ border-right: 0; }
@media (max-width: 700px){ .statline .s:nth-child(2n){ border-right: 0; } .statline .s:nth-child(-n+2){ border-bottom: 1px solid var(--line); } }
.statline .s b { font-family: var(--ff-display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--ink); display: block; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.statline .s span { color: var(--muted); font-size: 0.86rem; margin-top: 8px; display: block; }

/* ===== Claims ledger (vertical numbered) ===== */
.ledger { margin-top: 36px; border-top: 1px solid var(--line-2); }
.ledger-row { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 28px 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 620px){ .ledger-row { grid-template-columns: 60px 1fr; gap: 18px; } }
.ledger-row .n { font-family: var(--ff-display); font-weight: 800; font-size: 2.4rem; color: var(--line-2); font-variant-numeric: tabular-nums; line-height: 1; }
.ledger-row.is-on .n { color: var(--cobalt); }
.ledger-row h3 { font-size: 1.3rem; margin-bottom: 8px; }
.ledger-row p { color: var(--muted); max-width: 60ch; }

/* ===== Principles grid ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); margin-top: 34px; }
@media (max-width: 700px){ .grid-2 { grid-template-columns: 1fr; } }
.cell-pad { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-2 .cell-pad:nth-child(2n){ border-right: 0; }
.grid-2 .cell-pad:nth-last-child(-n+2){ border-bottom: 0; }
@media (max-width: 700px){ .grid-2 .cell-pad { border-right: 0; } .grid-2 .cell-pad:last-child { border-bottom: 0; } }
.cell-pad .ic { width: 42px; height: 42px; border-radius: var(--r); background: var(--cobalt-soft); color: var(--cobalt); display: grid; place-items: center; margin-bottom: 16px; }
.cell-pad .ic svg { width: 22px; height: 22px; }
.cell-pad h3 { margin-bottom: 8px; }
.cell-pad p { color: var(--muted); font-size: 0.95rem; }

/* ===== Industries bordered grid ===== */
.ind { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); margin-top: 34px; }
@media (max-width: 760px){ .ind { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px){ .ind { grid-template-columns: 1fr; } }
.ind a { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .15s ease; }
.ind a:hover { background: var(--paper); }
.ind a .ix { font-family: var(--ff-display); font-weight: 700; font-size: 0.78rem; color: var(--verm); font-variant-numeric: tabular-nums; }
.ind a h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.ind a p { color: var(--muted); font-size: 0.88rem; }
@media (min-width: 761px){ .ind a:nth-child(3n){ border-right: 0; } .ind a:nth-last-child(-n+3){ border-bottom: 0; } }

/* ===== Quotes (field notes) ===== */
.notes { border-top: 1px solid var(--line-2); margin-top: 30px; }
.note { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding: 28px 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 620px){ .note { grid-template-columns: 1fr; gap: 14px; align-items: start; } }
.note blockquote { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.32; max-width: 40ch; }
.note .who { text-align: right; font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 620px){ .note .who { text-align: left; } }
.note .who b { display: block; color: var(--ink); font-family: var(--ff-display); }

/* ===== Full-width band image ===== */
.band { position: relative; height: clamp(220px, 30vw, 360px); overflow: hidden; border-block: 1px solid var(--line); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band .cap { position: absolute; left: 24px; bottom: 20px; background: var(--ink); color: #fff; font-family: var(--ff-display); font-weight: 600; font-size: 0.84rem; padding: 8px 14px; border-radius: var(--r); }

/* ===== Careers ===== */
.careers-cta { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1.05fr 0.95fr; background: var(--surface); }
@media (max-width: 820px){ .careers-cta { grid-template-columns: 1fr; } }
.careers-cta .cc-copy { padding: clamp(28px, 4vw, 50px); }
.careers-cta .badge { font-family: var(--ff-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--verm); }
.careers-cta h2 { margin: 12px 0; }
.careers-cta .remote { color: var(--cobalt); }
.careers-cta p { color: var(--muted); margin-bottom: 22px; }
.careers-cta .cc-media { border-left: 1px solid var(--line); min-height: 260px; }
.careers-cta .cc-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px){ .careers-cta .cc-media { border-left: 0; border-top: 1px solid var(--line); min-height: 200px; } }
.careers-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 52px); align-items: start; margin-top: 36px; }
@media (max-width: 880px){ .careers-layout { grid-template-columns: 1fr; } }
.careers-list { display: grid; gap: 0; margin: 14px 0 24px; border-top: 1px solid var(--line); }
.careers-list li { padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line); position: relative; }
.careers-list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 8px; background: var(--cobalt); }
.careers-details h3 { margin: 24px 0 6px; font-size: 1.15rem; }
.careers-details img { border: 1px solid var(--line); border-radius: var(--r); margin-top: 22px; width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ===== Forms ===== */
.form-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 28px; }
.form-field { margin-bottom: 16px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px){ .form-2 { grid-template-columns: 1fr; } }
.form-card label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; font: inherit; font-size: 0.95rem; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); background: #fff; }
.form-card textarea { min-height: 120px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.78rem; color: var(--faint); margin-top: 10px; }
.bad input, .bad select, .bad textarea { border-color: var(--verm) !important; } /* invalid trumps focus */
.form-ok { border: 1px solid var(--cobalt); background: var(--cobalt-soft); border-radius: var(--r); padding: 22px 24px; margin-top: 16px; }
.form-ok[hidden] { display: none; }
.form-ok h4 { font-size: 1.1rem; }
.form-ok p { color: var(--muted); margin-top: 6px; }

/* ===== Interior page hero ===== */
.page-hero { border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero .container { padding-block: clamp(40px, 5.5vw, 70px); }
.crumbs { font-family: var(--ff-display); font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--cobalt); }
.crumbs span { color: var(--line-2); margin: 0 8px; }
.page-hero h1 .v { color: var(--verm); }
.page-hero .lead { margin-top: 14px; max-width: 60ch; }

/* generic split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.split--rev .split-media { order: -1; }
@media (max-width: 820px){ .split, .split--rev { grid-template-columns: 1fr; } .split--rev .split-media { order: 0; } }
.split-media img { width: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); aspect-ratio: 4/3; object-fit: cover; }
.section-head { max-width: 660px; }
.section-head h2 { margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 12px; }
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--verm); border-radius: var(--r); padding: 18px 22px; margin-top: 26px; background: var(--surface); }
.callout p { margin: 0; color: var(--muted); }
.callout b { color: var(--ink); }

/* ===== Prose ===== */
.prose { max-width: 760px; margin-inline: auto; }
.prose .updated { font-family: var(--ff-display); font-size: 0.8rem; color: var(--faint); margin-bottom: 28px; }
.prose h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.prose p { margin-bottom: 13px; }
.prose ul { display: grid; gap: 8px; margin-bottom: 15px; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; background: var(--cobalt); }
.prose a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.prose code { font-family: var(--ff-display); font-size: 0.86em; background: var(--cobalt-soft); padding: 2px 6px; border-radius: 4px; color: var(--cobalt-deep); }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); }
.prose th { background: var(--paper); }

/* ===== CTA box ===== */
.cta-box { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: clamp(34px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-box h2 { max-width: 22ch; }
.cta-box p { color: var(--muted); margin-top: 8px; max-width: 44ch; }

/* ===== Footer (light, ruled) ===== */
.foot { border-top: 2px solid var(--ink); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 36px; padding-block: 50px 30px; }
@media (max-width: 820px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px){ .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { margin-bottom: 12px; }
.foot-tag { font-size: 0.9rem; color: var(--muted); max-width: 32ch; }
.foot-col h4 { font-family: var(--ff-display); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a { font-size: 0.92rem; color: var(--muted); }
.foot-col a:hover { color: var(--cobalt); }
.foot-contact { font-size: 0.92rem; color: var(--muted); line-height: 1.9; }
.foot-contact a:hover { color: var(--cobalt); }
.foot-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: 0.82rem; color: var(--faint); }
.foot-bottom nav { display: flex; gap: 20px; }
.foot-bottom a:hover { color: var(--cobalt); }

/* ===== Cookie — bottom-right card ===== */
.cookie { position: fixed; right: 18px; bottom: 18px; z-index: 150; max-width: 360px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(20,24,31,.18); padding: 20px 22px; transform: translateY(160%); transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.cookie.show { transform: none; }
@media (max-width: 460px){ .cookie { right: 12px; left: 12px; max-width: none; } }
.cookie h4 { font-family: var(--ff-display); font-size: 1.02rem; margin-bottom: 7px; }
.cookie p { font-size: 0.85rem; color: var(--muted); }
.cookie a { color: var(--cobalt); text-decoration: underline; }
.cookie .acts { display: flex; gap: 10px; margin-top: 15px; }
.cookie .acts .btn { flex: 1; padding: 9px 14px; font-size: 0.85rem; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 70px; }
.nf .code { font-family: var(--ff-display); font-weight: 800; font-size: clamp(4.5rem, 15vw, 9rem); color: var(--cobalt); line-height: 0.9; letter-spacing: -0.04em; }
.nf .tag { display: inline-flex; gap: 12px; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 20px; margin: 26px auto 0; text-align: left; }
.nf .tag svg { width: 28px; height: 28px; color: var(--verm); flex: none; }
.nf .tag b { display: block; } .nf .tag span { font-size: 0.84rem; color: var(--muted); }

.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ * { scroll-behavior: auto !important; } .reveal { opacity: 1 !important; transform: none !important; transition: none; } .calc-bar > i { transition: none; } }
