/* ═══════════════════════════════════════════════════════════════════════════
   WAFFLESTACK.AI — one stylesheet for every page.

   Rules this file keeps, because the security policy depends on them:
   • Fonts load from /assets/fonts only. The Content-Security-Policy in
     .htaccess allows nothing else, so a Google Fonts link would simply fail.
   • No page uses a style="" attribute. The policy forbids inline styles; any
     styling goes here, as a class.

   Palette comes from the Wafflestack logo artwork.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Baloo 2";
  src: url("/assets/fonts/baloo-2-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("/assets/fonts/baloo-2-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}

:root {
  --waffle: #FFDE59;
  --batter: #E3B573;
  --caramel: #C68B45;
  --ink: #2A2118;
  --ink-soft: #5A4D40;
  --cream: #FFF8E6;
  --paper: #FFFCF4;
  --line: #E8DCC2;
  --teal: #0E5A57;
  --teal-soft: #E3EFEC;
  --rust: #B8481B;
  --rust-soft: #F8E7DD;
  --apex: #23395B;
  --apex-soft: #E4E9F1;

  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav-links a:hover { background: var(--cream); }
.nav-links a[aria-current="page"] { background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.nav-links .cta { background: var(--ink); color: var(--paper); margin-left: 6px; }
.nav-links .cta:hover { background: var(--teal); color: #fff; }

/* Mobile menu is a native <details> element, so it works with no JavaScript. */
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--cream); }
.menu .nav-links { position: absolute; right: var(--gutter); left: var(--gutter); top: 64px; flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; z-index: 5; }
.menu .nav-links .cta { margin: 6px 0 0; text-align: center; }
@media (max-width: 860px) {
  .head-row > .nav-desktop { display: none; }
  .menu { display: block; }
  .site-head { position: relative; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 13ch; }
.cert-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: .9rem; color: var(--ink-soft); }
.cert-line span { display: inline-flex; align-items: center; gap: 8px; }
.cert-line span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--caramel); }

/* The signature element: a result shown in full, with its interpretation
   deliberately left blank. It is the whole thesis in one card. */
.withheld { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(42,33,24,.35); }
.withheld-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .82rem; color: var(--ink-soft); margin-bottom: 14px; }
.wrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 0; border-top: 1px dashed var(--line); }
.wrow:first-of-type { border-top: 0; }
.wrow b { font-weight: 600; }
.wrow .val { font-weight: 600; white-space: nowrap; }
.wrow .dir { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-soft); }
.wrow .dir.up { color: var(--rust); }
.verdict { margin-top: 14px; border: 2px dashed var(--batter); border-radius: 12px; padding: 14px 16px; background: var(--cream); }
.verdict-label { font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--caramel); }
.verdict-blank { display: block; height: 10px; margin: 10px 0 8px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--line) 0 18px, transparent 18px 26px); }
.verdict p { margin: 0; font-size: .92rem; }

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section-head p { max-width: 62ch; }

.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } }
.door { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); border-top-width: 6px; }
.door:hover { box-shadow: 0 16px 34px -26px rgba(42,33,24,.5); color: var(--ink); }
.door.teal { border-top-color: var(--teal); }
.door.apex { border-top-color: var(--apex); }
.door.caramel { border-top-color: var(--caramel); }
.door .who { font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.door h3 { margin-bottom: 10px; }
.door p { color: var(--ink-soft); flex: 1; }
.door .go { font-weight: 600; color: var(--teal); }

.rules { counter-reset: rule; display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.rules li::before { content: counter(rule); font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: var(--waffle); color: var(--ink); }
.rules h3 { margin-bottom: 6px; }
.rules p { margin: 0; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel.teal { background: var(--teal-soft); border-color: #C7DDD8; }
.panel.apex { background: var(--apex-soft); border-color: #C9D3E2; }
.panel.rust { background: var(--rust-soft); border-color: #EBCDBC; }
.panel.cream { background: var(--cream); }
.panel > :last-child { margin-bottom: 0; }

.quote { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.3; max-width: 34ch; margin: 0; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.crosses li::before { border: 0; width: 12px; height: 2.5px; top: .75em; background: var(--rust); transform: none; }

.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--teal); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }

/* ─── Steps (services ladder) ────────────────────────────────────────────── */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr; } }
.ladder li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.ladder .step { font-size: .82rem; font-weight: 700; color: var(--caramel); }
.ladder .price { font-family: var(--display); font-weight: 800; font-size: 1.45rem; margin: 6px 0 2px; }
.ladder .price-note { font-size: .85rem; color: var(--ink-soft); margin-bottom: 12px; }
.ladder p:last-child { margin-bottom: 0; }

/* ─── Long-form pages (privacy, support) ─────────────────────────────────── */
.page-head { padding: clamp(40px, 7vw, 80px) 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 20ch; }
.crumbs { font-size: .9rem; margin-bottom: 14px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.prose { padding: 40px 0 72px; }
.prose h2 { font-size: 1.55rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; max-width: 68ch; }
.prose li { margin-bottom: .45em; }
.prose .panel { max-width: 76ch; margin: 1.4em 0; }
.prose .table-wrap { margin: 1.2em 0 1.6em; }
.faq dt { font-weight: 700; margin-top: 1.3em; }
.faq dd { margin: .3em 0 0; max-width: 68ch; color: var(--ink-soft); }

/* ─── Contact ────────────────────────────────────────────────────────────── */
.mailgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .mailgrid { grid-template-columns: 1fr; } }
.mailgrid .panel h3 { margin-bottom: 4px; }
.mailgrid a.addr { font-weight: 600; font-size: 1.08rem; word-break: break-all; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-foot { background: var(--ink); color: #E9DFCB; padding: 56px 0 32px; font-size: .93rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h2 { font-family: var(--body); font-size: .85rem; font-weight: 700; color: var(--waffle); margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.foot-brand img { width: 30px; height: 30px; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; display: grid; gap: 6px; color: #CBBFA8; font-size: .86rem; }
.foot-legal p { margin: 0; max-width: none; }

/* ─── 404 ────────────────────────────────────────────────────────────────── */
.lost { padding: clamp(64px, 12vw, 140px) 0; text-align: left; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .site-head, .site-foot, .menu { display: none; } body { background: #fff; } }
