/* ByteTempest site stylesheet.
   Brand colors are defined once at the top. The site is always light,
   regardless of the visitor's device setting. */

/* Brand: ByteTempest coral #E8624A, midnight #090C10, signal green #2E8B6A.
   Coral fills carry midnight text (5.9:1). On light backgrounds, coral used
   as text is deepened to #B8412B so links and labels stay readable (5.1:1). */
:root {
  --brand-coral: #E8624A;
  --brand-midnight: #090C10;
  --brand-green: #2E8B6A;

  --paper: #FFFFFF;
  --sheet: #FFFFFF;           /* raised surfaces: report, offer, form fields */
  --tint: #F6F7F9;            /* alternating section background */
  --ink: #090C10;
  --ink-soft: #4A515C;
  --accent: #B8412B;          /* coral, text-safe on light */
  --accent-deep: #93311F;
  --fill: var(--brand-coral); /* buttons, portrait, offer rule */
  --fill-hover: #D4523B;
  --on-fill: var(--brand-midnight);
  --ok: #23705A;              /* brand green, text-safe on light */
  --rule: #DADDE2;
  --rule-strong: #AEB4BD;
  --marker: rgba(232, 98, 74, .28);
  --high: #B8412B;
  --med: #8A6200;
  --low: #23705A;
  --closer-bg: var(--brand-midnight);
  --closer-text: #F5F6F7;
  --shadow: 0 1px 0 rgba(9, 12, 16, .05), 0 18px 44px -22px rgba(9, 12, 16, .28);

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --measure: 36rem;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  color-scheme: light;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 60rem) { body { font-size: 1.125rem; } }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 450;
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.6rem + 3.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem); }
h3 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
}
p, li, dd { text-wrap: pretty; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem;
}
.skip:focus { top: 1rem; }

@view-transition { navigation: auto; }

/* ── Layout ───────────────────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band--rule { border-top: 1px solid var(--rule); }
.band--sheet { background: var(--tint); border-block: 1px solid var(--rule); }
.measure { max-width: var(--measure); }
.lede { font-size: 1.2em; line-height: 1.55; color: var(--ink-soft); max-width: 34rem; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

.split {
  display: grid;
  gap: 2rem 4rem;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.logo-mark { color: var(--brand-coral); height: 2.1rem; width: auto; flex: none; display: block; }
.footer-brand { display: flex; align-items: center; gap: .55rem; }
.footer-brand .logo-mark { height: 1.6rem; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; padding: 0; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding-block: .35rem; border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--rule-strong); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--accent); }

.menu { display: none; }
@media (max-width: 64rem) {
  .nav-links { display: none; }
  .site-header .btn { display: none; }
  .menu { display: block; position: relative; }
  .menu > summary {
    list-style: none; cursor: pointer;
    font-weight: 600; font-size: .95rem;
    padding: .5rem .85rem; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu[open] > summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .menu-panel {
    position: absolute; right: 0; top: calc(100% + .6rem);
    width: min(18rem, calc(100vw - 2.5rem));
    background: var(--sheet); border: 1px solid var(--rule);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: .5rem;
  }
  .menu-panel ul { list-style: none; margin: 0; padding: 0; }
  .menu-panel a {
    display: block; padding: .75rem .85rem; color: var(--ink);
    text-decoration: none; font-weight: 500;
  }
  .menu-panel a[aria-current="page"] { color: var(--accent); font-weight: 650; }
  .menu-panel .btn { display: block; margin: .5rem; text-align: center; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--sans);
  padding: .95rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--fill); color: var(--on-fill); }
.btn--primary:hover { background: var(--fill-hover); color: var(--on-fill); text-decoration: none; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--quiet:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn--small { padding: .65rem 1rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero .wrap {
  display: grid; gap: 3.5rem;
}
@media (min-width: 62rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 4.5rem; }
}
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.5rem; }
.hero .actions { margin-top: 2.25rem; }

.byline {
  display: flex; align-items: center; gap: .9rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: 30rem;
}
.byline .portrait { width: 3.25rem; height: 3.25rem; font-size: 1.05rem; }
.byline p { font-size: .95rem; line-height: 1.45; }
.byline strong { display: block; font-weight: 650; }

.portrait {
  border-radius: 50%; object-fit: cover; flex: none;
  background: var(--fill); color: var(--on-fill);
}
.portrait--initials {
  display: inline-grid; place-items: center;
  font-family: var(--serif); font-weight: 500; letter-spacing: .02em;
}

/* ── The sample report sheet (hero centerpiece) ───────────────────────── */
.report {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.25rem;
  font-size: .9rem;
  line-height: 1.45;
}
/* the pages underneath, so it reads as a bound report rather than a card */
.report::before, .report::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px;
}
.report::before { transform: translate(7px, 7px); }
.report::after { transform: translate(14px, 14px); opacity: .6; }
.report-wrap { position: relative; isolation: isolate; margin-right: 14px; margin-bottom: 14px; }

.report-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: .9rem; border-bottom: 2px solid var(--ink);
}
.report-head h2 { font-size: 1.25rem; line-height: 1.2; }
.report-head p { color: var(--ink-soft); font-size: .8rem; white-space: nowrap; }
.report-sub { color: var(--ink-soft); font-size: .8rem; margin-top: .6rem; }

.findings { list-style: none; padding: 0; margin: .5rem 0 0; }
.finding {
  display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: .25rem .75rem; align-items: baseline;
  padding: .8rem 0; border-bottom: 1px solid var(--rule);
}
.finding:last-child { border-bottom: 0; }
.finding .n { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: .8rem; }
.finding .what { font-weight: 600; }
.finding .fix { grid-column: 2 / 4; color: var(--ink-soft); font-size: .84rem; }

.risk {
  font-size: .75rem; font-weight: 700; letter-spacing: .01em;
  padding: .12rem .45rem; border-radius: 2px; border: 1px solid currentColor;
}
.risk--high { color: var(--high); }
.risk--med { color: var(--med); }
.risk--low { color: var(--low); }

.marked {
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-size: 100% 88%;
  background-position: 0 60%;
  padding: 0 .1em; margin: 0 -.1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .marked { animation: mark 900ms cubic-bezier(.3,.7,.3,1) 700ms both; }
}
@keyframes mark { from { background-size: 0% 88%; } to { background-size: 100% 88%; } }

.report-caption { margin-top: 1.4rem; font-size: .85rem; color: var(--ink-soft); max-width: 30rem; }

/* ── Triggers list ────────────────────────────────────────────────────── */
.triggers { border-top: 1px solid var(--rule-strong); }
.triggers > div { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.triggers dt { font-weight: 650; }
.triggers dd { color: var(--ink-soft); margin-top: .3rem; }

/* ── Deliverables ─────────────────────────────────────────────────────── */
.checks { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 1.1rem; height: 1.1rem; border: 1.5px solid var(--ok); border-radius: 2px;
}
.checks li::after {
  content: ""; position: absolute; left: .28rem; top: calc(.3em + .25rem);
  width: .55rem; height: .3rem;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.checks strong { display: block; font-weight: 650; }
.checks span { color: var(--ink-soft); }
@media (min-width: 48rem) { .checks--2 { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; } }

.plain { padding-left: 1.2rem; }
.plain li + li { margin-top: .5rem; }

/* ── Process steps (a real sequence, so it is numbered) ───────────────── */
.steps { list-style: none; padding: 0; counter-reset: step; margin-top: 2.5rem; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 1.25rem;
  padding: 1.5rem 0; border-top: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step);
  grid-row: span 3;
  font-family: var(--serif); font-size: 2.6rem; line-height: .9; font-weight: 400;
  color: var(--accent);
}
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--ink-soft); max-width: 40rem; }
.steps .time { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; font-style: italic; }
@media (min-width: 56rem) {
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps li { grid-template-columns: 1fr; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
  .steps li::before { grid-row: auto; margin-bottom: 1rem; }
}

/* ── Founding offer ───────────────────────────────────────────────────── */
.offer {
  display: grid; gap: 2rem;
  border: 1px solid var(--rule-strong); border-left: 6px solid var(--fill);
  background: var(--sheet); padding: clamp(1.5rem, 4vw, 2.75rem);
}
@media (min-width: 56rem) { .offer { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 3rem; } }
.offer .price-line { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.offer .price { font-family: var(--serif); font-size: clamp(3rem, 2rem + 4vw, 4.5rem); line-height: 1; font-weight: 400; }
.offer .was { color: var(--ink-soft); text-decoration: line-through; }
.offer .spots { font-weight: 650; color: var(--accent); margin-top: .75rem; }
.offer .actions { margin-top: 1.5rem; }

/* ── Founder block ────────────────────────────────────────────────────── */
.founder { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 48rem) { .founder { grid-template-columns: 11rem minmax(0, 1fr); gap: 3rem; } }
.founder .portrait { width: 11rem; height: 11rem; font-size: 3.2rem; }
.creds { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.creds li {
  font-size: .85rem; font-weight: 600;
  padding: .3rem .65rem; border: 1px solid var(--rule-strong); border-radius: 2px;
}

/* ── Certification badges ───────────────────────────────────────────── */
.badges {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 5.5rem));
  gap: 1rem 1.25rem;
}
.badges img { width: 100%; height: auto; aspect-ratio: 1; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.price-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 1rem .75rem 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.price-table thead th { font-size: .85rem; color: var(--ink-soft); font-weight: 600; border-bottom: 2px solid var(--ink); }
.price-table td:last-child, .price-table th:last-child { text-align: right; padding-right: 0; }
.price-table .amt { font-family: var(--serif); font-size: 1.6rem; white-space: nowrap; }
.price-table tr.is-founding td { background: color-mix(in srgb, var(--fill) 10%, transparent); }
.price-table tr.is-founding td:first-child { padding-left: .75rem; border-left: 4px solid var(--fill); }
.table-scroll { overflow-x: auto; }

.addons { border-top: 1px solid var(--rule-strong); margin-top: 1rem; }
.addon {
  display: grid; gap: .5rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--rule);
}
@media (min-width: 48rem) { .addon { grid-template-columns: minmax(0, 1fr) 11rem; } }
.addon .amt { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.addon .per { font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 48rem) { .addon .cost { text-align: right; } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 1.2rem 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font: 400 1.5rem/1 var(--serif); color: var(--accent);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 42rem; }
.faq .answer > * + * { margin-top: .75rem; }

/* ── Closing call to action ───────────────────────────────────────────── */
.closer { background: var(--closer-bg); color: var(--closer-text); }
.closer h2 { max-width: 20ch; }
.closer p { color: color-mix(in srgb, var(--closer-text) 76%, var(--closer-bg)); max-width: 34rem; margin-top: 1rem; }
.closer .actions { margin-top: 2rem; }
.closer a:not(.btn) { color: var(--closer-text); }
.closer a:not(.btn):hover { color: var(--brand-coral); }

/* ── Page intro (inner pages) ─────────────────────────────────────────── */
.intro { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3rem); }
.intro h1 { max-width: 20ch; }
.intro .lede { margin-top: 1.25rem; }
.intro .actions { margin-top: 2rem; }

/* ── Contact ──────────────────────────────────────────────────────────── */
.ways { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.way { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .35rem; }
.way .big { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: .75rem .85rem; width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-note { font-size: .875rem; color: var(--ink-soft); }
.fallback {
  border: 1px solid var(--rule-strong); background: var(--sheet); padding: 1.25rem;
  border-radius: var(--radius);
}
.fallback pre {
  white-space: pre-wrap; font: .9rem/1.5 var(--sans); margin: .75rem 0 1rem;
  background: var(--tint); padding: 1rem; border-radius: var(--radius); border: 1px solid var(--rule);
}
[hidden] { display: none !important; }

/* ── Prose pages ──────────────────────────────────────────────────────── */
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 3rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .4rem; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--rule); padding-block: 3rem 2.5rem; font-size: .925rem; }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: .85rem; }
.site-footer h2 { font: 650 .95rem/1.3 var(--sans); margin-bottom: .75rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  @view-transition { navigation: none; }
}
.note { margin-top: 1rem; }
.intro .plain { margin-top: 1.25rem; }
