/* telosi.app: one stylesheet for every page. Mobile first: the base rules are the phone layout,
   and the min-width blocks at the end widen it. Colours and fonts are the site's existing brand. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0f1623; --navy-mid: #1a2438;
  --cream: #f7f4ee; --cream-dark: #ede9e0;
  --gold: #b8943f; --gold-light: #d4aa5a; --gold-ink: #8a6a22;
  --white: #ffffff; --text: #0f1623; --text-2: #4a5568; --muted: #6b7684;
  --border: rgba(15,22,35,0.12); --border-gold: rgba(184,148,63,0.35);
  --ok: #2f7a4d; --warn: #9a5b12;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --gutter: 20px; --header: 60px;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--cream); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 300; background: var(--white); padding: 8px 12px; }

/* Header: the audit button stays in the bar at every width, so it is above the fold on a phone. */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,244,238,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { height: var(--header); max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 12px; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--navy); margin-right: auto; }
.logo span { color: var(--gold); }
.nav-links { display: none; list-style: none; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--text-2); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 2px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 16px; height: 1.5px; background: var(--navy); position: relative; content: ''; }
.menu summary span::before { position: absolute; top: -5px; }
.menu summary span::after { position: absolute; top: 5px; }
.menu-panel { position: absolute; right: 0; top: 48px; background: var(--white); border: 1px solid var(--border); min-width: 200px; padding: 8px 0; box-shadow: 0 12px 30px rgba(15,22,35,0.12); }
.menu-panel a { display: block; padding: 12px 18px; text-decoration: none; font-size: 15px; }
.menu-panel a:hover { background: var(--cream); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; border-radius: 2px; border: 1px solid var(--navy); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 760px; }
.band { padding: 32px 0 40px; }
.band > .wrap > :first-child { margin-top: 0; }
.band-dark { background: var(--navy); color: var(--cream); }
.band-alt { background: var(--cream-dark); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.band-dark .eyebrow { color: var(--gold-light); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--navy); letter-spacing: -0.01em; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--cream); }
h1 { font-size: 34px; }
h2 { font-size: 28px; margin-bottom: 14px; }
h3 { font-size: 22px; margin-bottom: 8px; }
p + p { margin-top: 12px; }
.lead { font-size: 17px; color: var(--text-2); margin-top: 14px; }
.band-dark .lead, .band-dark p { color: rgba(247,244,238,0.78); }
.small { font-size: 14px; color: var(--muted); }
.band-dark .small { color: rgba(247,244,238,0.6); }
.more { display: inline-block; margin-top: 20px; font-weight: 600; font-size: 14px; color: var(--navy); }
.band-dark .more { color: var(--gold-light); }

/* Hero: tight on a phone so the H1, the sub and the audit button all fit in the first screen. */
.hero { padding: 28px 0 40px; }
.hero h1 { font-size: 32px; }
.hero .lead { font-size: 16px; }
.hero .actions { margin-top: 20px; }
.trust { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Cards and grids */
.grid { display: grid; gap: 16px; margin-top: 24px; }
.card { background: var(--white); border: 1px solid var(--border); padding: 22px; border-radius: 2px; }
.band-dark .card { background: rgba(255,255,255,0.04); border-color: var(--border-gold); }
.card .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--gold-ink); text-transform: uppercase; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.band-dark .card p { color: rgba(247,244,238,0.72); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; margin-top: 24px; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--border); padding: 20px 20px 20px 64px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 18px; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--gold); }
.steps strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.steps p { color: var(--text-2); font-size: 15px; }

/* Pricing */
.tiers { display: grid; gap: 16px; margin-top: 24px; }
.tier { background: var(--white); border: 1px solid var(--border); padding: 22px; }
.tier.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.tier h3 { margin-bottom: 4px; }
.price { font-family: var(--serif); font-size: 30px; color: var(--navy); }
.price small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.tier p { font-size: 15px; color: var(--text-2); margin-top: 8px; }
.table-scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--border); background: var(--white); -webkit-overflow-scrolling: touch; }
table.matrix { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.matrix th, .matrix td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.matrix thead th { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--navy); background: var(--cream); }
.matrix tbody th { font-weight: 600; color: var(--navy); width: 26%; }
.matrix td { color: var(--text-2); }
.matrix .no { color: var(--muted); }
.matrix .hl td { font-weight: 600; color: var(--navy); }

/* Offer counter */
.offer { border: 1px solid var(--gold); background: var(--white); padding: 22px; margin-top: 24px; }
.band-dark .offer { background: rgba(184,148,63,0.08); }
.spots { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--gold-ink); }
.band-dark .spots { color: var(--gold-light); }

/* FAQ */
.faq { margin-top: 24px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 10px; color: var(--text-2); }

/* Timeline */
.timeline { list-style: none; margin-top: 20px; border-left: 2px solid var(--border-gold); }
.timeline li { padding: 0 0 18px 18px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline b { color: var(--navy); }

/* Forms */
.form { display: grid; gap: 16px; margin-top: 24px; background: var(--white); border: 1px solid var(--border); padding: 22px; }
.band-dark .form { background: rgba(255,255,255,0.05); border-color: var(--border-gold); }
.form .row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.band-dark .field label { color: var(--cream); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(15,22,35,0.25); border-radius: 2px; background: var(--white); color: var(--text); width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.inline-form input { flex: 1 1 220px; font: inherit; font-size: 16px; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(15,22,35,0.25); border-radius: 2px; }
.notice { padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--cream); color: var(--text); font-size: 15px; }
.notice.ok { border-color: var(--ok); }
.notice.err { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Scanner result */
.scan-result { margin-top: 20px; background: var(--white); color: var(--text); border: 1px solid var(--border); padding: 20px; }
.scan-result h3 { color: var(--navy); }
.scan-result dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin-top: 10px; font-size: 15px; }
.scan-result dt { color: var(--muted); }
.scan-result ul { margin: 10px 0 0 18px; font-size: 15px; }
.scan-result p { color: var(--text-2) !important; margin-top: 10px; }
.headers { font-family: var(--mono); font-size: 13px; word-break: break-all; }

/* Examples */
.example { background: var(--white); border: 1px solid var(--border); display: grid; }
.example img { width: 100%; aspect-ratio: 390 / 640; object-fit: cover; object-position: top; border-bottom: 1px solid var(--border); background: var(--cream-dark); }
.example .body { padding: 20px; }
.example .city { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(247,244,238,0.7); padding: 40px 0; font-size: 14px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

@media (min-width: 720px) {
  :root { --gutter: 32px; --header: 68px; }
  h1 { font-size: 46px; }
  h2 { font-size: 36px; }
  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: 52px; max-width: 900px; }
  .hero .lead { font-size: 18px; max-width: 680px; }
  .band { padding: 48px 0 56px; }
  .grid-3, .tiers { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 32px; }
  .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .menu { display: none; }
  .steps-4 { grid-template-columns: repeat(4, 1fr); }
  .split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Legal pages */
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { margin: 10px 0 0 20px; display: grid; gap: 8px; }
.legal a { color: var(--navy); }

/* Guides and blog */
.article { font-size: 17px; }
.article h1 { margin-bottom: 8px; }
.article h2 { font-size: 26px; margin: 34px 0 10px; }
.article p { color: var(--text-2); margin-top: 12px; }
.article ul, .article ol { margin: 12px 0 0 22px; display: grid; gap: 10px; color: var(--text-2); }
.article a { color: var(--navy); font-weight: 600; }
.byline { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px; }
.card-link { display: block; text-decoration: none; transition: border-color 0.2s; }
.card-link:hover { border-color: var(--gold); }
.card-link h2 { font-size: 22px; margin-bottom: 8px; }
.index-grid { margin-top: 32px; }
.menu-panel a.sub-item { padding-left: 34px; font-size: 14px; color: var(--text-2); }
.has-sub { position: relative; }
.has-sub .sub { display: none; position: absolute; left: -16px; top: 100%; list-style: none; background: var(--white); border: 1px solid var(--border); padding: 6px 0; min-width: 140px; box-shadow: 0 12px 30px rgba(15,22,35,0.12); }
.has-sub .sub a { display: block; padding: 10px 16px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
@media (min-width: 1000px) and (max-width: 1140px) { .nav-links { gap: 18px; } .nav-links a { font-size: 12px; } }

/* Features: the home teaser tiles and the /features sections */
.grid-4 { grid-template-columns: 1fr; }
.card-open { background: transparent; border-style: dashed; border-color: var(--border-gold); }
.feature-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.feature-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; line-height: 1.25; background: var(--white); border: 1px solid var(--border); text-decoration: none; font-weight: 600; color: var(--navy); transition: border-color 0.2s; }
.feature-tile:hover { border-color: var(--gold); }
/* Icons carry their own width, height and stroke attributes, so they stay small even if this sheet
   fails to load; these rules only keep them from shrinking in a flex row. */
.icon { flex: none; width: 40px; height: 40px; color: var(--gold-ink); }
.feature-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.feature-head .icon { width: 44px; height: 44px; }
.feature-head h2 { margin-bottom: 0; }
.feature h2 { font-size: 26px; margin-bottom: 10px; }
.ticks { list-style: none; margin-top: 14px; display: grid; gap: 8px; font-size: 15px; color: var(--text-2); }
.ticks li { padding-left: 20px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; background: var(--gold); }
.feature[id] { scroll-margin-top: calc(var(--header) + 16px); }
.choose { display: grid; gap: 12px; margin-top: 24px; }
.choose p { color: var(--text-2); margin: 0; }
.choose b { color: var(--navy); }

/* Compare table: a normal table from 720px; below that each row stacks into a labelled card,
   so a phone reads it without any sideways scroll. */
.matrix td.us { color: var(--navy); font-weight: 600; background: rgba(184,148,63,0.08); }
.matrix thead th.us { background: var(--navy); color: var(--cream); }
@media (max-width: 719px) {
  .table-stack { border: 0; background: none; overflow: visible; }
  .table-stack table, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; min-width: 0; width: auto; }
  .table-stack thead { position: absolute; left: -9999px; }
  .table-stack tbody tr { background: var(--white); border: 1px solid var(--border); margin-bottom: 12px; }
  .table-stack tbody th { font-family: var(--serif); font-size: 20px; font-weight: 500; background: var(--cream); width: auto; }
  .table-stack td { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 14px; }
  .table-stack td::before { content: attr(data-label); font-size: 13px; font-weight: 600; color: var(--muted); }
  .table-stack tr td:last-child { border-bottom: 0; }
}
@media (min-width: 720px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* /compare: what only Telosi does */
.only { margin-top: 32px; }
.only .ticks { font-size: 16px; }
