/* SignMeInPro — the public site.
 *
 * ⛔ NO BUNDLER AND NO FRAMEWORK, AND THAT IS A DECISION. The console needs
 * scripts/verify-bundle.mjs because a React SPA can tree-shake itself into a
 * blank page that deploys successfully — it took app.signmeinpro.com down on
 * 2026-10-09. A marketing site has no reason to carry that failure mode. What
 * ships here is plain HTML that renders with JavaScript disabled, so an App
 * Store reviewer, a crawler and a customer all see the same thing.
 *
 * ⚠️ There IS a generator (scripts/build.mjs) but it emits those files rather
 * than a bundle: the header and footer appear on six pages and hand-copying
 * them is how a stale nav link survives on one page for a year. The generator
 * also runs the §8 forbidden-claims check over its own output — see
 * Docs/Marketing/Positioning_And_Pricing.md §8 for why that list exists.
 *
 * Colours are lifted from apps/web/src/styles/app.css so the site and the
 * product are recognisably the same thing.
 */
:root {
  --brand: #2d3599;
  --brand-light: #3c48c3;
  --brand-dark: #1e236f;
  --brand-soft: #eceefa;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --border: #e6e7f3;
  --border-strong: #d1d3e9;
  --text: #0f172a;
  --text-muted: #51607a;
  --text-subtle: #94a3b8;
  --success: #059669;
  --radius: 11px;
  --radius-lg: 16px;
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand .mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 800;
}
nav.site { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
/* ⛔ `:not(.btn)` IS LOAD-BEARING. `nav.site a` is (0,1,1) and `.btn` is (0,1,0),
 * so without it this rule wins over the button styles for the Sign in link —
 * which then rendered as a plain nav link carrying `.btn-ghost`'s border: a
 * 49px box with its label squeezed inside, where the button needed 79px. It
 * looked like a clipped button in a screenshot and measured as no overflow at
 * all, because nothing WAS overflowing; the button simply was not a button. */
nav.site a:not(.btn) {
  white-space: nowrap;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.site a:not(.btn):hover { color: var(--brand); }
nav.site a[aria-current="page"]:not(.btn) { color: var(--brand); border-bottom-color: var(--brand); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  /* ⚠️ A BUTTON IN A FLEX ROW SHRINKS TO ITS LONGEST WORD WITHOUT THIS. Flex
   * items get `min-width: auto`, which for wrappable text resolves to the
   * widest word — so "Sign in" in the header collapsed to the width of "Sign"
   * (49px against the 79px it needs) and the label wrapped inside its own
   * border. It reads as a clipped button, not as wrapped text, which is why it
   * survived a glance at the screenshot. */
  white-space: nowrap;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 8px 15px; font-size: 14px; }

/* ── Annual-payment banner ────────────────────────────────────────────────── */
.ribbon {
  background: var(--brand-dark);
  color: #fff;
  text-align: center;
  padding: 11px 24px;
  font-size: 15px;
}
.ribbon a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ribbon strong { font-weight: 700; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section.tight { padding: 48px 0; }

h1 {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}
h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}
h3 { font-size: 18px; margin: 0 0 7px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-muted); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 12px;
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ── Grids and cards ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card h3 { color: var(--text); }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 15px; }
.card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 11px;
}

/* ── Proof list ───────────────────────────────────────────────────────────── */
.proof { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.proof > div { background: #fff; padding: 22px 24px; }
.proof .claim { font-weight: 700; margin: 0 0 6px; }
.proof .because { color: var(--text-muted); margin: 0; font-size: 15px; }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.tier {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier.featured { border-color: var(--brand); border-width: 2px; box-shadow: var(--shadow); }
.tier .badge {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--brand); color: #fff; border-radius: 999px; padding: 3px 10px; margin-bottom: 12px;
}
.tier .name { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.tier .who { color: var(--text-muted); font-size: 14px; margin: 0 0 18px; min-height: 42px; }
.tier .price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
/* ⚠️ The unit sits on its own line rather than trailing the figure. Inline, a
 * long price broke mid-phrase — "from £199 per site, per / month" — and only on
 * the one card wide enough to do it, so the three cards stopped agreeing with
 * each other. A block is the same shape for £65 and for "from £199". */
.tier .price .per { display: block; font-size: 15px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; margin-top: 6px; }
.tier .annual { color: var(--success); font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.tier ul { list-style: none; padding: 0; margin: 20px 0 24px; font-size: 15px; }
.tier li { padding: 6px 0 6px 25px; position: relative; color: var(--text-muted); }
.tier li::before {
  content: "";
  position: absolute; left: 3px; top: 13px;
  width: 6px; height: 11px;
  border: solid var(--success); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tier li.none { color: var(--text-subtle); }
.tier li.none::before { border-color: var(--text-subtle); border-width: 0 0 2px 0; transform: none; top: 18px; height: 0; width: 9px; left: 2px; }
.tier .foot { margin-top: auto; }
.tier .btn { width: 100%; text-align: center; }
.tier .btn, .cta-row .btn { max-width: 100%; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
thead th { background: var(--bg-alt); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
tbody tr:last-child td { border-bottom: 0; }
td.yes { color: var(--success); font-weight: 700; }
td.no { color: var(--text-subtle); }

/* ── Notes and footnotes ──────────────────────────────────────────────────── */
.note {
  background: var(--brand-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--brand-dark);
}
.note p:last-child { margin-bottom: 0; }
.footnotes { font-size: 14px; color: var(--text-muted); margin-top: 26px; }
.footnotes li { margin-bottom: 7px; }

/* ── Document list (legal) ────────────────────────────────────────────────── */
.docs { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.docs li { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.docs li:last-child { border-bottom: 0; }
.docs .what { flex: 1 1 260px; }
.docs .what strong { display: block; }
.docs .what span { color: var(--text-muted); font-size: 14px; }
.docs .soon { color: var(--text-subtle); font-size: 14px; font-style: italic; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer.site { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 36px; font-size: 15px; }
footer.site .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
footer.site h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-subtle); margin: 0 0 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--text-muted); text-decoration: none; }
footer.site a:hover { color: var(--brand); text-decoration: underline; }
footer.site .legalese {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border);
  color: var(--text-subtle); font-size: 13px;
}
footer.site .legalese p { margin: 0 0 5px; }

@media (max-width: 620px) {
  section { padding: 52px 0; }
  nav.site { gap: 16px; }
  nav.site a { font-size: 14px; }
}

/* ── Spacing utilities ────────────────────────────────────────────────────────
 *
 * ⛔ THESE EXIST BECAUSE OF THE CONTENT SECURITY POLICY. `_headers` sets
 * `style-src 'self'` with no `'unsafe-inline'`, which blocks a `style="..."`
 * attribute as surely as it blocks an inline <script>. The pages had sixteen of
 * them and would have rendered unstyled in those places — visible immediately,
 * but only if somebody looked. Weakening the policy to allow inline styles was
 * the alternative, and it is a poor trade for sixteen margins on a site that
 * runs no JavaScript at all.
 */
.mt-sm  { margin-top: 16px; }
.mt     { margin-top: 22px; }
.mt-md  { margin-top: 28px; }
.mt-lg  { margin-top: 34px; }
.mt-xl  { margin-top: 46px; }
.mb-lg  { margin-bottom: 30px; }
.cta-row.center-row { justify-content: center; }
