/* The public website, beyond11.in (Plan 12 Task 4). Plain static pages with no scripts. Everything comes from this
   site itself: deploy/Caddyfile.server serves it with Content-Security-Policy "default-src 'none'; style-src 'self';
   img-src 'self'; font-src 'self'", so there are no inline styles, no style attributes and nothing from elsewhere.
   Colours, fonts and the flame B follow the redesign mockups (docs/design/2026-10-25-ui-mockups.html). The fonts are
   copies of the admin panel's (apps/admin/src/assets/fonts), under the SIL Open Font License next to them. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-700.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/manrope-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); }

:root {
  --bg: #0e0e10;
  --app: #141416;
  --surface: #1d1d21;
  --surface-2: #26262c;
  --line: #2f2f36;
  --text: #f2f2f4;
  --soft: #d2d2d8;
  --muted: #a3a3ad;
  --red: #e00000;
  --red-dark: #b80000;
  --red-bright: #ff3b3b;
  --red-soft: rgba(224, 0, 0, 0.16);
  --yellow: #fcf61d;
  --ok: #3dd68c;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--app); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: 0.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 12px; }
a { color: var(--red-bright); text-underline-offset: 3px; }
a:hover { color: #ff7070; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
strong { color: #fff; }
small { font-size: 0.6em; font-weight: 700; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 12px; z-index: 10; background: var(--yellow); color: #141416; padding: 8px 14px; border-radius: 8px; font-weight: 800; }

/* A value only the founders can fill in. It is meant to be impossible to miss. */
.blank { background: var(--yellow); color: #141416; font-weight: 800; padding: 1px 6px; border-radius: 4px; border: 2px dashed #6b6400; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Header and menu */
.top { background: var(--app); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding-top: 14px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 42px; height: 42px; fill: var(--red); }
.brand b { font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: 0.05em; line-height: 1; }
.menu { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.menu a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 0; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); }
.menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }

/* Small type */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-bright); margin: 0 0 10px; }
.label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.lead { font-size: 18px; color: var(--soft); max-width: 62ch; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); color: #fff; }
.btn.ghost { border: 1.5px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); color: var(--text); }

/* Cards and grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.card h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.card h3 { font-size: 25px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--soft); }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 26px; }
.split { display: grid; gap: 28px; grid-template-columns: 1.2fr 1fr; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Home: the first screen */
.hero { background: radial-gradient(ellipse 70% 80% at 88% 0%, rgba(224, 0, 0, 0.3), transparent 62%), var(--bg); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 36px; grid-template-columns: 1.25fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(46px, 7.2vw, 80px); font-weight: 800; text-transform: uppercase; line-height: 0.98; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--red-bright); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; } }

.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts dt { color: var(--muted); font-weight: 700; font-size: 14px; }
.facts dd { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.1; text-align: right; }

/* The offer: brand yellow, for highlights only */
.offer { display: flex; gap: 14px; align-items: center; background: rgba(252, 246, 29, 0.08); border: 1px solid rgba(252, 246, 29, 0.35); border-radius: 14px; padding: 12px 16px; margin: 16px 0 0; color: var(--text); }
.offer .tag { background: var(--yellow); color: #141416; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.2; border-radius: 8px; padding: 2px 9px; white-space: nowrap; }

/* Sections of a page */
.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section h2 { font-size: clamp(32px, 4.4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.section .lead { margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; color: var(--red-bright); margin-bottom: 10px; }

/* Inner pages */
.pagehead { background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(224, 0, 0, 0.22), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.pagehead .wrap { padding-top: 44px; padding-bottom: 30px; }
.pagehead h1 { font-size: clamp(42px, 6.4vw, 64px); font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.pagehead .lead { margin-bottom: 0; }
.updated { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.page { padding-top: 32px; padding-bottom: 60px; }
.page > .grid:first-child { margin-top: 0; }
.page > .prose:not(:first-child) { margin-top: 36px; }
.card p + h2 { margin-top: 26px; }

/* Prices */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.amount { font-family: var(--display); font-size: 60px; font-weight: 800; line-height: 1; color: var(--text); margin: 4px 0 8px; }
.amount span { font-family: var(--body); font-size: 16px; font-weight: 700; color: var(--muted); margin-left: 8px; }
.card .amount { color: var(--text); }
.outcome { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; margin: 6px 0 8px; }
.outcome.yes { color: var(--ok); }
.outcome.no { color: var(--red-bright); }

/* Contact details */
.details { margin: 0; display: grid; gap: 14px; }
.details dt { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 2px 0 0; font-size: 17px; color: var(--text); }

/* Long text: the policies */
.prose { max-width: 780px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 30px; font-weight: 700; margin: 38px 0 10px; }
.prose p, .prose ul { margin: 0 0 12px; color: var(--soft); }
.prose ul { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--red-bright); }
.scroll { overflow-x: auto; margin: 12px 0 16px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
td { color: var(--soft); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* The price examples on a phone: one small card per row, the booking and its working on the left, the total and the
   least to pay now on the right. */
@media (max-width: 600px) {
  .examples tr:first-child { display: none; }
  .examples tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .examples tr:last-child { border-bottom: 0; }
  .examples td { padding: 0; border: 0; }
  .examples td:nth-child(1) { grid-column: 1; grid-row: 1; color: var(--text); font-weight: 700; }
  .examples td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 14px; color: var(--muted); }
  .examples td:nth-child(3) { grid-column: 2; grid-row: 1; color: var(--text); font-weight: 700; }
  .examples td:nth-child(4) { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--muted); }
  .examples td:nth-child(4)::before { content: "10% now: "; }
}

/* Footer */
.foot { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { padding-top: 30px; padding-bottom: 34px; display: grid; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--text); text-decoration: none; font-weight: 700; }
.foot nav a:hover { color: var(--red-bright); }
.foot p { margin: 0; }
.foot .firm { color: var(--text); font-weight: 800; letter-spacing: 0.02em; }
