/* ==========================================================================
   Travel404 for Hosts — "The key rack behind reception"
   One stylesheet. Mobile-first. 380px → 1600px.
   Palette = the Travel404 brand (former site.css tokens + app traveler-theme):
   crimson #A4133C → #C22B55 → #D64545, ink #1a1a2e, soft #f7f8fc, dark #0e0e1a.
   Light page like the live site; the dark token is spent only on the rack,
   the closing CTA and the footer.
   ========================================================================== */

/* ---------- Fonts: self-hosted latin subsets (Google Fonts builds), preloaded from index.html ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/manrope.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/jetbrainsmono.woff2") format("woff2"); }

/* ---------- Metric-matched fallbacks: no layout shift when the web fonts arrive ---------- */
@font-face { font-family: "Fraunces Fallback"; font-style: normal; src: local("Georgia"); size-adjust: 85%; ascent-override: 115%; descent-override: 31%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; font-style: italic; src: local("Georgia"); size-adjust: 79%; ascent-override: 110%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; font-weight: 400 500; src: local("Arial"); size-adjust: 102.4%; ascent-override: 104.1%; descent-override: 29.3%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 100%; ascent-override: 106.6%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "JetBrains Mono Fallback"; src: local("Consolas"), local("Courier New"); size-adjust: 109%; ascent-override: 93%; descent-override: 27%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  /* Page (brand --bg / --bg-soft / --line) */
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --line: #e7e8ef;
  --tint: #FDF0F4;          /* brand pink tint */
  --tint-2: #F6D5DE;

  /* Ink (brand --ink / --ink-2) */
  --ink: #1a1a2e;
  --slate: #475569;         /* 7.4:1 on white */
  --slate-2: #a7abc4;       /* muted on the dark surfaces — 8.9:1 */

  /* Dark surfaces: the rack panel (ink) and the closing wall (brand --bg-dark) */
  --night: #1a1a2e;
  --night-2: #23233b;
  --night-line: #34344f;
  --dark: #0e0e1a;

  /* Accent: brand crimson — used ONLY where a key is lit / taken / active */
  --crimson: #A4133C;
  --crimson-2: #C22B55;
  --crimson-3: #D64545;
  --grad: linear-gradient(135deg, #A4133C, #C22B55, #D64545);
  --pink: #E0577B;          /* small text on the dark surfaces — 5.4:1 */
  --live: #22C55E;          /* brand green: something is live right now */

  /* Type roles */
  --f-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --f-ui: "Manrope", "Manrope Fallback", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "JetBrains Mono Fallback", Consolas, monospace;

  /* Scale (rem): 12 14 16 18 22 28 40 64 88 */
  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.125rem; --t-xl: 1.375rem;
  --t-2xl: 1.75rem; --t-3xl: 2.5rem; --t-4xl: clamp(min(2.5rem, 11vw), 6.2vw, 4rem); --t-5xl: clamp(min(2.75rem, 12vw), 8vw, 5.5rem);

  /* Spacing: 4 8 12 16 24 32 48 64 96 128 */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-6: 1.5rem; --s-8: 2rem;
  --s-12: 3rem; --s-16: 4rem; --s-24: 6rem; --s-32: 8rem;

  --measure: 65ch;
  --wrap: 1180px;
  --r-tag: 4px;   /* key tag corners */
  --r-plate: 2px; /* plates are almost square */
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(4rem + 20px); } /* sticky header (4rem) + gap; follows the browser text size */
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-ui); font-size: var(--t-md); line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--crimson-3); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; overflow-wrap: anywhere; /* an over-long word breaks instead of pushing the page wide at 200% text */ }
h1 { font-size: var(--t-5xl); font-variation-settings: "opsz" 144; }
h2 { font-size: var(--t-4xl); font-variation-settings: "opsz" 96; }
h3 { font-size: var(--t-xl); font-variation-settings: "opsz" 36; }
p { margin: 0; max-width: var(--measure); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.label { font-family: var(--f-ui); font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.wrap { width: min(100% - var(--s-8), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons: a crimson key tag, and a plain one ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3); max-width: 100%;
  padding: .8rem 1.25rem .8rem 1rem; border-radius: var(--r-tag);
  font-weight: 700; font-size: var(--t-sm); letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn::before { /* the key-ring hole punched in the tag */
  content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; opacity: .75;
}
.btn-primary { background: var(--grad); color: #fff; border-color: var(--crimson); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 10px 24px -12px rgba(194,43,85,.8); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--bg); }
.btn-ghost:hover { border-color: var(--crimson-2); }
.on-dark .btn-ghost { color: #fff; border-color: var(--night-line); background: transparent; }
.on-dark .btn-ghost:hover { border-color: var(--slate-2); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
/* 4rem = 64px at the default type size; grows with the user's font setting so shell.css's placeholder stays in sync. flex-wrap: at 200% text the actions row drops under the brand instead of pushing the burger off-screen. */
.hdr .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); row-gap: 0; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; min-height: 44px; }
.brand .tag { width: 40px; height: 24px; background: var(--grad); border-radius: var(--r-tag); position: relative; color: #fff; font: 700 11px/24px var(--f-mono); text-align: right; padding-right: 5px; }
.brand .tag::before { content: ""; position: absolute; left: 5px; top: 8px; width: 7px; height: 7px; border-radius: 50%; border: 2px solid #fff; }
.brand b { font-family: var(--f-display); font-weight: 600; font-size: var(--t-lg); letter-spacing: -.01em; }
.nav { display: none; gap: clamp(1rem, 2vw, var(--s-6)); align-items: center; } /* 24px at 1200+; tightens a little on small laptops and large type so the row never wraps */
.nav a { text-decoration: none; font-size: var(--t-sm); color: var(--slate); font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--crimson); }
.hdr-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--s-3); margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-tag); overflow: hidden; }
/* 44px tall: the only navigation controls on a phone */
.lang button { background: transparent; color: var(--slate); border: 0; padding: .8rem .75rem; font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang button:focus-visible { outline-offset: -3px; }
.hdr .login { display: none; text-decoration: none; font-size: var(--t-sm); font-weight: 600; color: var(--slate); white-space: nowrap; }
.hdr .login:hover { color: var(--crimson); }
.hdr .btn { display: none; white-space: nowrap; }
@media (min-width: 40em) { .hdr .btn { display: inline-flex; } }
@media (min-width: 56.25em) { .nav { display: flex; } .hdr .login { display: inline; } }
@media (max-width: 22.49em) { .hdr .wrap { gap: var(--s-2); } .hdr .lang a, .hdr .lang button { padding-inline: .5rem; } } /* 320: brand + toggle + burger on one row (beats shell.css's .lang a) */

/* ---------- Hero ---------- */
.hero { padding: var(--s-12) 0 var(--s-16); position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-12); align-items: center; }
.hero .kicker { color: var(--crimson); margin-bottom: var(--s-4); display: flex; align-items: center; gap: var(--s-3); }
.hero .kicker::before { content: ""; width: 28px; height: 2px; background: var(--grad); }
.hero h1 em { font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: var(--s-6); font-size: var(--t-lg); color: var(--slate); max-width: 52ch; }
.hero .cta { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero .facts { list-style: none; padding: 0; margin: var(--s-12) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; gap: var(--s-6) var(--s-8); }
.fact .num { font-size: var(--t-2xl); color: var(--ink); line-height: 1; }
.fact .num small { font-size: .5em; color: var(--crimson); vertical-align: .6em; margin-left: .15em; }
.fact .label { color: var(--slate); margin-top: var(--s-2); }
@media (min-width: 56.25em) {
  .hero { padding: var(--s-16) 0 var(--s-24); }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
}
/* Under the two-column hero the rack keeps its desktop size instead of stretching to a full-width dark block */
@media (max-width: 56.24em) { .rack { max-width: 440px; } }

/* The rack — the one dark object on the page (replaces the dashboard screenshot; shows the same live facts) */
.rack { position: relative; background: var(--night); border: 1px solid var(--night-line); border-radius: 6px; padding: var(--s-4); color: var(--slate-2); box-shadow: 0 30px 60px -30px rgba(26,26,46,.8), inset 0 1px 0 #3a3a5c; }
.rack::before { /* wood grain */
  content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(0,0,0,.22) 22px 23px);
}
.rack-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-2) var(--s-3); padding: 0 var(--s-2) var(--s-3); border-bottom: 1px solid var(--night-line); position: relative; }
.rack-head .label { color: var(--slate-2); }
.rack-head .num { color: var(--pink); font-size: var(--t-sm); }
.rack-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding-top: var(--s-3); position: relative; }
.hook { position: relative; aspect-ratio: 1 / 1.35; background: var(--night-2); border-radius: 3px; overflow: hidden; border: 1px solid #2c2c46; }
.hook .no { position: absolute; top: 4px; left: 0; right: 0; text-align: center; font: 600 9px var(--f-mono); color: var(--slate-2); letter-spacing: .04em; }
.hook .pin { position: absolute; top: calc(24% + 2px); left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--slate-2); box-shadow: 0 0 0 1.5px #1a1a2e; }
.hook .key { position: absolute; left: 50%; top: 24%; width: 44%; height: 58%; margin-left: -22%; transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .45s ease; }
.hook .key .ring { position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--crimson-3); }
.hook .key .tag { position: absolute; top: 12px; left: 8%; right: 8%; bottom: 0; background: var(--grad); border-radius: var(--r-tag); }
.hook .key .tag::after { content: ""; position: absolute; left: 3px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .7; }
.hook.taken .key { transform: translateY(-140%) rotate(-8deg); opacity: 0; }
.hook.taken .pin { background: var(--crimson-3); box-shadow: 0 0 0 1.5px #1a1a2e, 0 0 10px 2px rgba(214,69,69,.55); }
.hook.taken::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(194,43,85,.22), transparent 60%); }
.rack-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-3); padding: var(--s-2) var(--s-2) 0; border-top: 1px solid var(--night-line); font-size: var(--t-xs); color: var(--slate-2); position: relative; }
.rack-foot .dot { display: inline-flex; align-items: center; gap: var(--s-2); }
.rack-foot .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }
.rack-foot .dot.sync::before { background: var(--crimson-2); box-shadow: 0 0 8px var(--crimson-2); }

/* ---------- Divider: a row of hooks ---------- */
.hooks { height: 28px; margin: 0; border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28' viewBox='0 0 48 28'%3E%3Ccircle cx='24' cy='6' r='2.5' fill='%23C22B55'/%3E%3Cpath d='M24 8v10a4 4 0 0 0 8 0' fill='none' stroke='%23C22B55' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center;
}

/* ---------- "Built for every kind of stay": key tags on a strip ---------- */
.types { padding: var(--s-8) 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.types .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.types .label { color: var(--slate); margin-right: var(--s-2); }
.types ul { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-2); }
.types li { position: relative; padding: .8rem .75rem .45rem; border: 1px solid var(--line); border-radius: var(--r-tag); font-size: var(--t-sm); font-weight: 600; color: var(--ink); background: var(--bg); box-shadow: inset 0 -2px 0 rgba(0,0,0,.05); }
.types li::before { content: ""; position: absolute; left: 50%; top: -14px; width: 16px; height: 22px; margin-left: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='22' viewBox='0 0 16 22'%3E%3Ccircle cx='8' cy='3' r='2.5' fill='%23C22B55'/%3E%3Cpath d='M8 5v9a4 4 0 0 0 8 0' fill='none' stroke='%23C22B55' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center top; }
.types li::after { content: ""; position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Sections ---------- */
.section { padding: var(--s-16) 0; }
.section.soft { background: var(--bg-soft); }
.on-dark { background: var(--dark); color: #fff; }
@media (min-width: 56.25em) { .section { padding: var(--s-24) 0; } }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-bottom: var(--s-12); }
.section-head .label { color: var(--crimson); justify-self: start; margin-bottom: var(--s-3); }
.section-head > p { color: var(--slate); font-size: var(--t-lg); }
.section-head h2 .ln { display: inline; } /* a forced line break on desktop only (replaces <br>, which Chromium cannot balance across) */
@media (min-width: 56.25em) {
  .section-head { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--s-12); }
  .section-head > p { justify-self: end; }
  .section-head h2 .ln { display: block; }
}

/* Ledger: what hangs on the rack (the six products, in the site's order) */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding: var(--s-12) 0; border-bottom: 1px solid var(--line); align-items: start; }
/* line-height 1.35 + .42rem padding = the same 29.6px plate as before; it may now wrap at 200% text instead of outgrowing the column. The 4px inset keeps the lower glyph edge on a darker band of the gradient (contrast headroom). */
.plate { display: inline-block; font: 700 var(--t-xs)/1.35 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--grad); padding: .42rem .7rem; border-radius: var(--r-plate); box-shadow: inset 0 -4px 0 rgba(0,0,0,.22); white-space: normal; }
.plate.rose { background: var(--tint-2); color: var(--crimson); box-shadow: inset 0 -2px 0 rgba(164,19,60,.18); }
.ledger h2 { font-size: var(--t-3xl); margin-top: var(--s-4); }
.ledger .p { color: var(--slate); margin-top: var(--s-4); font-size: var(--t-lg); max-width: 48ch; }
.ledger .detail { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3) var(--s-4); color: var(--ink); font-size: var(--t-sm); font-weight: 600; }
.ledger .detail li { display: flex; gap: var(--s-3); align-items: baseline; padding: 0; border: 0; }
.ledger .detail li::before { content: ""; flex: none; width: 6px; height: 11px; margin-top: 3px; border-radius: 2px; background: var(--grad); }
@media (max-width: 29.99em) { .ledger .detail { grid-template-columns: 1fr; } } /* two 156px columns at 360 only orphan words */
.ledger .links { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-8); }
.ledger .more { font-size: var(--t-sm); font-weight: 700; color: var(--crimson); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; position: relative; }
.ledger .more::after { content: ""; position: absolute; left: 0; right: 0; top: -.8rem; bottom: -.8rem; } /* 44px hit area, layout untouched */
.ledger .claim { font-family: var(--f-display); font-size: var(--t-lg); font-style: italic; color: var(--ink); margin-top: var(--s-6); max-width: 34ch; border-left: 3px solid var(--crimson-2); padding-left: var(--s-4); line-height: 1.35; }
.ledger .claim strong { font-weight: 600; color: var(--crimson); }
/* Screenshot in a plate frame: the thing that actually hangs on the hook */
.shot { position: relative; background: var(--night); border: 1px solid var(--night-line); border-radius: 8px; padding: 8px; box-shadow: 0 30px 50px -30px rgba(26,26,46,.6); }
.shot::before { content: ""; position: absolute; top: -10px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--crimson-2); }
.shot img { border-radius: 4px; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; background: var(--bg-soft); }
.shot .bar { display: flex; align-items: center; gap: 6px; padding: 0 4px 8px; font: 500 10px var(--f-mono); color: var(--slate-2); }
.shot .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--night-line); }
.shot .bar span { margin-left: auto; }
@media (min-width: 56.25em) {
  .ledger > li { grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: center; }
  .ledger > li:nth-child(even) > .shot { order: -1; }
}

/* ---------- Pricing: the rate card ---------- */
.capacity { display: grid; gap: var(--s-6); padding: var(--s-6); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; margin-bottom: var(--s-8); }
.capacity .big { font-size: var(--t-4xl); line-height: 1; }
.capacity .big small { font-size: var(--t-xs); font-family: var(--f-ui); color: var(--slate); margin-left: var(--s-2); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.capacity .hint { color: var(--slate); font-size: var(--t-sm); margin-top: var(--s-3); }
.capacity .inputs { display: grid; gap: var(--s-4); }
.capacity .field { display: grid; gap: var(--s-2); }
.capacity .field .label { color: var(--slate); }
.capacity .field .row { display: flex; align-items: center; gap: var(--s-3); }
.capacity input[type=range] { flex: 1; accent-color: var(--crimson-2); min-width: 0; height: 44px; } /* 44px touch box; the native track stays centred */
.capacity .field output { font-family: var(--f-mono); font-weight: 700; min-width: 2.5ch; text-align: right; }
@media (min-width: 56.25em) { .capacity { grid-template-columns: 300px 1fr; align-items: center; } .capacity .inputs { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
@media (min-width: 56.25em) and (max-width: 68.74em) { .capacity .inputs { grid-template-columns: 1fr; gap: var(--s-4); } } /* side-by-side sliders would be ~190px for 0-100 beds */

.rate-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
/* Phones: the feature column stays put while you swipe across the four plans, and a cue says so. */
.rate thead th:first-child, .rate tbody th { position: sticky; left: 0; background: var(--bg-soft); z-index: 1; }
.swipe { display: flex; align-items: center; gap: var(--s-2); color: var(--crimson); font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-3); }
.swipe::after { content: ""; width: 28px; height: 2px; background: var(--crimson); }
@media (min-width: 56.25em) { .swipe { display: none; } }
/* Phones: one plan at a time. components.js builds a .plan-switch from the plan names and sets data-col on the table. */
.plan-switch { display: none; }
@media (max-width: 56.24em) {
  .plan-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-4); }
  .plan-switch button { flex: 1 1 auto; padding: .6rem .5rem; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r-tag); font: 700 var(--t-xs) var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); cursor: pointer; min-height: 44px; transition: border-color .15s ease, color .15s ease; }
  .plan-switch button:hover { border-color: var(--crimson-2); color: var(--ink); }
  .plan-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  /* No-JS / pre-JS fallback (the swipeable wide table): the sticky feature column never takes more than 40% of the phone */
  .rate:not([data-col]) { min-width: 640px; }
  .rate:not([data-col]) thead th:first-child { width: 40vw; }
  .rate:not([data-col]) tbody th { max-width: 40vw; overflow-wrap: anywhere; }
  table.rate[data-col] { min-width: 0; width: 100%; table-layout: auto; }
  table.rate[data-col] th:not(:first-child), table.rate[data-col] td:not(:first-child) { display: none; }
  table.rate[data-col="1"] th:nth-child(2), table.rate[data-col="1"] td:nth-child(2),
  table.rate[data-col="2"] th:nth-child(3), table.rate[data-col="2"] td:nth-child(3),
  table.rate[data-col="3"] th:nth-child(4), table.rate[data-col="3"] td:nth-child(4),
  table.rate[data-col="4"] th:nth-child(5), table.rate[data-col="4"] td:nth-child(5) { display: table-cell; }
  table.rate[data-col] thead th:first-child, table.rate[data-col] tbody th { position: static; width: auto; hyphens: manual; overflow-wrap: anywhere; } /* anywhere: words break only when one cannot fit (200% text), so the table never outgrows the phone */
  table.rate[data-col] td .txt { overflow-wrap: anywhere; }
  table.rate[data-col] thead th:not(:first-child) { width: auto; text-align: left; padding: var(--s-4) 0; }
  table.rate[data-col] thead .col { min-height: 0; }
  table.rate[data-col] thead .pop { position: static; margin-bottom: var(--s-2); }
  table.rate[data-col] thead .price { margin-top: var(--s-3); }
  table.rate[data-col] thead .price small { min-height: 0; }
  table.rate[data-col] th, table.rate[data-col] td { padding-block: .55rem; }
  table.rate[data-col] .group th { padding-top: var(--s-6); }
  table.rate[data-col] td { text-align: right; padding-right: var(--s-3); }
  /* .head-full (set by components.js when the first header cell has no visible text): the plan head and its CTA
     span both columns (colspan=2) and the empty first cells are dropped, so name / tagline / price / button use the full width. */
  table.rate[data-col].head-full thead th:first-child, table.rate[data-col].head-full tr.cta td:first-child { display: none; }
  table.rate[data-col].head-full tr.cta td { padding: var(--s-6) 0 0; text-align: left; }
  table.rate[data-col].head-full .cta .btn { width: 100%; }
  .rate-wrap.has-switch { overflow-x: visible; }
  .rate-wrap.has-switch + .swipe, .swipe.is-off { display: none; }
}
@media (max-width: 22.49em) { .plan-switch button { flex-basis: calc(50% - 3px); } } /* four plans as a 2x2 at 320 instead of 3 + 1 */
/* Large phones, tablets and zoomed laptops (480-899): the single plan column is a card-width block (max 36rem) and the tick sits right after its label */
@media (min-width: 30em) and (max-width: 56.24em) {
  table.rate[data-col] { max-width: 36rem; }
  table.rate[data-col] tbody th { width: 61%; }
  table.rate[data-col] tbody td { width: 39%; text-align: left; padding-left: var(--s-6); }
  .plan-switch { max-width: 36rem; }
}
.rate { width: 100%; min-width: 760px; border-collapse: collapse; font-size: var(--t-sm); }
.rate th, .rate td { padding: .8rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rate thead th { border-bottom: 2px solid var(--ink); vertical-align: top; width: 16%; padding-top: var(--s-8); }
/* Plan columns share one grid: name on top, tagline, price pinned to a common baseline */
.rate thead th:not(:first-child) > span { display: block; }
.rate thead th:not(:first-child) { position: relative; }
.rate thead th:not(:first-child) > .col { display: flex; flex-direction: column; min-height: 200px; } /* 200 > the 194px ES Pro tagline: all four prices share one baseline */
.rate thead th:first-child { width: 36%; }
/* 900-1179: narrower feature column so 'Choose this plan' stays on one line */
@media (min-width: 56.25em) and (max-width: 73.74em) {
  .rate thead th:first-child { width: 28%; }
  .rate thead th { width: 18%; }
  .rate .cta .btn { padding-inline: .4rem; gap: var(--s-1); font-size: var(--t-xs); letter-spacing: 0; }
  .rate .cta .btn::before { width: 8px; height: 8px; }
}
.rate thead .plan { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 500; display: block; line-height: 1.1; }
.rate thead .tagline { display: block; font-weight: 400; color: var(--slate); font-size: var(--t-xs); margin-top: var(--s-2); line-height: 1.4; }
.rate thead .price { display: block; font-family: var(--f-mono); font-size: var(--t-2xl); margin-top: auto; padding-top: var(--s-4); font-weight: 500; }
.rate thead .price small { font-family: var(--f-ui); font-size: var(--t-xs); color: var(--slate); display: block; font-weight: 600; letter-spacing: .04em; margin-top: 2px; min-height: 2.8em; line-height: 1.4; }
.rate thead .pop { color: var(--crimson); font-family: var(--f-ui); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; position: absolute; top: var(--s-3); left: .5rem; }
.rate tbody th { font-weight: 600; color: var(--ink); }
.rate .group th { padding-top: var(--s-8); border-bottom: 0; font-family: var(--f-ui); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); }
.rate .group td { border-bottom: 0; }
.rate td { text-align: center; color: var(--slate); }
.rate td .k { display: inline-block; width: 22px; height: 34px; position: relative; vertical-align: middle; }
.rate td .k::before { content: ""; position: absolute; left: 5px; top: 0; width: 10px; height: 10px; border: 2px solid var(--crimson-3); border-radius: 50%; }
.rate td .k::after { content: ""; position: absolute; left: 4px; top: 13px; width: 14px; height: 20px; background: var(--grad); border-radius: 3px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.rate td .k.off::before { border-color: transparent; }
.rate td .k.off::after { /* the hook alone, nothing hanging on it (slate: 3:1+ against the soft page, readable with no neighbour column) */ background: transparent; box-shadow: none; width: 10px; height: 14px; left: 6px; top: 8px; border: 2px solid var(--slate); border-top: 0; border-radius: 0 0 6px 6px; }
.rate td .txt { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink); }
.rate .cta td { border-bottom: 0; padding-top: var(--s-6); }
.rate .cta .btn { width: 100%; justify-content: center; padding-inline: .6rem; }
.rate-note { margin-top: var(--s-6); color: var(--slate); font-size: var(--t-sm); }
.trial { display: grid; gap: var(--s-6); margin-top: var(--s-12); padding: var(--s-6); background: var(--bg); border: 2px dashed var(--crimson-2); border-radius: 6px; align-items: center; }
.trial h3 { font-size: var(--t-2xl); }
.trial .price { font-family: var(--f-mono); font-size: var(--t-2xl); margin-top: var(--s-2); }
.trial .price small { font-family: var(--f-ui); font-size: var(--t-sm); color: var(--slate); margin-left: var(--s-2); }
.trial p { color: var(--slate); margin-top: var(--s-2); }
.trial ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); font-weight: 600; }
.trial ul li { display: flex; gap: var(--s-3); align-items: baseline; }
.trial ul li::before { content: ""; flex: none; width: 6px; height: 11px; margin-top: 3px; border-radius: 2px; background: var(--grad); }
.trial .btn { justify-self: start; }
@media (min-width: 56.25em) { .trial { grid-template-columns: 1.1fr 1fr auto; } }
.enterprise { display: grid; gap: var(--s-4); margin-top: var(--s-8); padding: var(--s-6); border: 1px solid var(--line); border-radius: 6px; background: var(--bg); align-items: center; }
.enterprise .label { color: var(--crimson); }
.enterprise p { color: var(--slate); font-size: var(--t-sm); }
@media (min-width: 56.25em) { .enterprise { grid-template-columns: 1fr auto; } }

/* ---------- Final CTA (on the brand dark, like the live site) ---------- */
.close { padding: var(--s-24) 0; }
.close .wrap { display: grid; gap: var(--s-8); align-items: center; }
.close h2 { max-width: 18ch; }
.close p { color: var(--slate-2); margin-top: var(--s-4); font-size: var(--t-lg); }
.close .cta { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3); }
/* every key home: a small full rack */
.close .mini { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; background: var(--night); border: 1px solid var(--night-line); border-radius: 6px; padding: 10px; width: min(100%, 420px); }
.close .mini span { aspect-ratio: 1 / 1.35; background: var(--night-2); border-radius: 3px; position: relative; }
/* every key out: a full house (same look as .hook.taken in the hero) */
.close .mini span::before { content: ""; position: absolute; left: 50%; top: 30%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--crimson-3); box-shadow: 0 0 0 1.5px #1a1a2e, 0 0 14px 4px rgba(214,69,69,.6); }
.close .mini span::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(194,43,85,.32), transparent 65%); }
@media (min-width: 56.25em) { .close .wrap { grid-template-columns: 1.2fr 1fr; } .close .mini { justify-self: end; } }

/* ---------- Footer: the rack at closing time ---------- */
.ftr { background: var(--dark); color: #fff; border-top: 1px solid var(--night-line); padding: 0 0 var(--s-8); position: relative; overflow: hidden; }
.ftr::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 84px; opacity: .6; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='84' viewBox='0 0 72 84'%3E%3Crect x='6' y='6' width='60' height='72' rx='3' fill='%2316162a' stroke='%2330304d'/%3E%3Ccircle cx='36' cy='20' r='3' fill='%231e1e36'/%3E%3Ccircle cx='36' cy='30' r='6' fill='none' stroke='%231e1e36' stroke-width='2'/%3E%3Crect x='28' y='36' width='16' height='30' rx='3' fill='%231e1e36'/%3E%3C/svg%3E") repeat-x top center;
}
.ftr .wrap { position: relative; padding-top: 108px; display: grid; gap: var(--s-8); }
.ftr .cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ftr .label { color: var(--slate-2); margin-bottom: var(--s-3); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ftr a { color: #fff; text-decoration: none; font-size: var(--t-sm); }
.ftr li > a { display: inline-block; padding: .8rem 0; } /* 44px rows: the padding replaces the old 8px gap */
.ftr a:hover { color: var(--pink); }
.ftr .about { color: var(--slate-2); font-size: var(--t-sm); max-width: 34ch; margin-top: var(--s-3); }
.ftr .made { color: #fff; font-size: var(--t-sm); margin-top: var(--s-2); }
.ftr .fine { color: var(--slate-2); font-size: var(--t-xs); display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; border-top: 1px solid var(--night-line); padding-top: var(--s-6); }
@media (min-width: 56.25em) { .ftr .cols { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }

/* ---------- Reveal (subtle, honors reduced motion) ---------- */
/* Visible at rest (first frame, thumbnails, no-JS); the observer only adds a small settle-in rise. */
.rv { transform: translateY(10px); transition: transform .6s ease; }
.rv.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { transform: none; } }

/* ---------- Print: the whole rate table on paper, no dark blocks, no controls ---------- */
@media print {
  .burger, .menu, .plan-switch, .swipe, .su, .hooks, .ftr::before { display: none !important; }
  .rv { transform: none !important; }
  .hdr { position: static; }
  .on-dark, .ftr, .tier.ultimate, .rack, .shot, .post-cta { background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; box-shadow: none !important; }
  .on-dark p, .ftr a, .ftr .about, .ftr .label, .tier.ultimate .tfor, .tier.ultimate .tper, .tier.ultimate .detail, .shot .bar { color: var(--ink) !important; }
  .btn-primary { background: none !important; color: var(--crimson) !important; border-color: var(--crimson) !important; }
  .hero h1 em { background: none; color: var(--crimson); -webkit-text-fill-color: var(--crimson); }
  table.rate[data-col] th, table.rate[data-col] td { display: table-cell !important; }
  .rate { min-width: 0; font-size: var(--t-xs); }
  .rate-wrap { overflow: visible; }
  .rate thead th:first-child, .rate tbody th { position: static; }
  .rate td .k::before, .rate td .k::after { display: none; }
  .rate td .k .sr { position: static; width: auto; height: auto; clip: auto; white-space: normal; } /* the ✓ / — already in the markup */
}

/* ---------- Forced colours (Windows High Contrast): states carried by background colour get a border/outline instead ---------- */
@media (forced-colors: active) {
  .rate td .k::before, .rate td .k::after { display: none; }
  .rate td .k .sr { position: static; width: auto; height: auto; clip: auto; white-space: normal; }
  .lang button[aria-pressed="true"], .lang a[aria-current="true"], .plan-switch button[aria-pressed="true"], .calc-ladder-pill.active, .tier.popular { outline: 3px solid CanvasText; outline-offset: -3px; }
  .plan-tab.active { border-bottom-width: 6px; }
  .ledger .detail li::before, .tier .detail li::before, .trial ul li::before, .menu-nav a::before, .post-body ul li::before { background: CanvasText; forced-color-adjust: none; }
}

/* ---------- Large browser text (150–200%) on narrow screens: every column may shrink ---------- */
@media (max-width: 56.24em) {
  .hero .wrap, .section-head, .community, .capacity, .capacity .inputs, .trial, .enterprise,
  .close .wrap, .ledger > li, .ftr .wrap, .ftr .cols > div { grid-template-columns: minmax(0, 1fr); }
  .hero .facts { grid-template-columns: minmax(0, auto); }
  .types .wrap, .ledger .links, .hero .cta, .close .cta { min-width: 0; }
}
