/* Thevia — website styles
   Fonts are self-hosted (no third-party requests). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --surface: #fffdf9;
  --ink: #15231f;
  --ink-2: #44524d;
  --line: rgba(21, 35, 31, 0.12);
  --accent: #c4502b;        /* the goal dot */
  --accent-text: #a8411f;   /* accent for small text, AA on --paper */
  --on-accent: #ffffff;
  --sage: #dfe7de;
  --route-muted: rgba(21, 35, 31, 0.18);
  --accent-inverse: #ee8a5e; /* accent on inverted (ink) panels */

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 18px;
  --radius-sm: 10px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --shadow: 0 1px 2px rgba(21, 35, 31, 0.04), 0 8px 24px rgba(21, 35, 31, 0.06);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a17;
    --paper-2: #14231f;
    --surface: #182925;
    --ink: #f2eee6;
    --ink-2: #b4beb9;
    --line: rgba(242, 238, 230, 0.12);
    --accent: #ee8a5e;
    --accent-text: #f19a72;
    --on-accent: #15231f;
    --sage: #1d302a;
    --route-muted: rgba(242, 238, 230, 0.2);
    --accent-inverse: #a8411f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent-text); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-2); }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75em 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-sans);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand .logo-light { display: none; }
  .brand .logo-dark { display: block; }
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links .btn { display: inline-flex; margin-left: 8px; padding: 0.6em 1.2em; min-height: 42px; color: var(--paper); }
.nav-links .btn:hover { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); color: var(--paper); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  html:not(.js) .nav { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav-links { flex-wrap: wrap; }
  .js .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .js .nav-links.open { display: flex; }
  .js .nav-links a { display: block; padding: 14px 4px; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .js .nav-links a:hover { background: transparent; }
  .js .nav-links .btn { display: flex; margin: 16px 0 0; border-bottom: 0; border-radius: 999px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 var(--section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.route-art { width: 100%; height: auto; overflow: visible; }
.route-art .route-ghost { stroke: var(--route-muted); }
.route-art .route { stroke: var(--ink); }
.route-art .stop { fill: var(--paper); stroke: var(--ink); }
.route-art .goal { fill: var(--accent); }
.route-art .goal-halo { fill: var(--accent); opacity: 0.16; }
.route-art text { font-family: var(--font-sans); font-size: 17px; font-weight: 600; fill: var(--ink-2); }
.route-art text.goal-label { fill: var(--accent-text); font-weight: 700; }

.js .route-art .route { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.js .route-art.drawn .route { animation: draw 2.4s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.js .route-art .stop, .js .route-art text, .js .route-art .goal, .js .route-art .goal-halo { opacity: 0; }
.js .route-art.drawn .stop, .js .route-art.drawn text { animation: fade 0.5s ease forwards; animation-delay: var(--d, 0s); }
.js .route-art.drawn .goal { animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2.2s forwards; transform-box: fill-box; transform-origin: center; }
.js .route-art.drawn .goal-halo { animation: halo 2.8s ease-out 2.5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes halo { 0% { opacity: 0.35; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.8); } }
@media (prefers-reduced-motion: reduce) {
  .js .route-art .route { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .route-art .stop, .js .route-art text, .js .route-art .goal { opacity: 1; }
  .js .route-art.drawn * { animation: none !important; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--ink-2); font-size: 1.125rem; }

/* Name story */
.name-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.equation {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25em 0.45em;
  font-family: var(--font-serif); font-size: clamp(2.4rem, 5.5vw, 4.25rem); line-height: 1.15; letter-spacing: -0.02em;
}
.equation .word { display: inline-flex; flex-direction: column; }
.equation .word small {
  font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-top: 0.35rem;
}
.equation .op { color: var(--ink-2); font-weight: 300; }
.equation .result { font-style: italic; color: var(--accent-text); }
.pronounce { margin: 1.75rem 0 0; color: var(--ink-2); font-size: 0.98rem; }
.pronounce strong { color: var(--ink); letter-spacing: 0.02em; }
/* IPA symbols are outside the self-hosted font subsets, so use one system font for the whole transcription. */
.pronounce .ipa { margin-left: 0.4em; font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
@media (max-width: 860px) { .name-story { grid-template-columns: 1fr; } }

/* Offer cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--sage);
  display: grid; place-items: center; margin-bottom: 22px; color: var(--ink);
}
.card-icon svg { width: 26px; height: 26px; }
.card .tag {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 0.5rem;
}
.card p { color: var(--ink-2); }
.card ul { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.card li { position: relative; padding-left: 22px; margin: 0.45em 0; font-size: 0.98rem; }
.card li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px;
  border-radius: 50%; border: 1.5px solid var(--accent);
}
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 620px; } }

/* Approach: a route with four stops */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--route-muted) 0 8px, transparent 8px 16px);
}
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step; content: "";
  position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--ink);
}
.step:last-child::before { background: var(--accent); border-color: var(--accent); }
.step .num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-2); text-transform: uppercase; }
.step h3 { margin: 0.3em 0 0.4em; }
.step p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--route-muted) 0 8px, transparent 8px 16px); }
  .step { padding: 0 0 24px 48px; }
}

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 20px; }
.principle:nth-child(odd) { border-right: 1px solid var(--line); }
.principle:nth-child(even) { padding-left: 32px; }
.principle .mark { width: 28px; height: 28px; color: var(--accent); margin-top: 4px; }
.principle h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
.principle p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding: 28px 0; border-right: 0; }
  .principle:nth-child(odd) { border-right: 0; }
}

/* Audience */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience-item { border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); }
.audience-item.dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.audience-item.dark p, .audience-item.dark li { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.audience-item.dark .tag { color: var(--accent-inverse); }
.audience-item .tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.75rem; }
.audience-item h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.audience-item ul { margin: 1.25rem 0 0; padding-left: 1.1em; }
.audience-item li { margin: 0.4em 0; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }

/* Contact */
.contact {
  background: var(--ink); color: var(--paper);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(36px, 7vw, 88px);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end;
  position: relative; overflow: hidden;
}
.contact h2 { color: var(--paper); }
.contact h2 em, .contact .eyebrow { color: var(--accent-inverse); }
.contact .eyebrow::before { background: var(--accent-inverse); }
.contact p { color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 34em; }
.contact .btn-primary { background: #c4502b; color: #fff; }
.contact .btn-primary:hover { background: #a8411f; }
.contact-email { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--paper); text-underline-offset: 4px; word-break: break-all; }
.contact-actions { justify-self: end; text-align: right; }
.contact-art { color: var(--paper); position: absolute; right: -40px; top: -30px; width: 340px; opacity: 0.12; pointer-events: none; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact-actions { justify-self: start; text-align: left; }
  .contact-art { width: 180px; right: -56px; top: -36px; opacity: 0.1; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; color: var(--ink-2); font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-grid .brand img { height: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-note p { margin: 0; }

/* ---------- Legal / simple pages ---------- */
.page { padding: clamp(40px, 7vw, 96px) 0 var(--section); }
.prose { max-width: 44rem; }
.page-brand { margin-bottom: 48px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.todo {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--ink); padding: 0.05em 0.35em; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- FiscBay product page ---------- */
:root {
  --chip-warn-bg: #f6e7c8; --chip-warn: #7a4f00;
  --chip-ok-bg: #dcefe4;   --chip-ok: #1d6644;
  --chip-info-bg: #e3e8ef; --chip-info: #2f4560;
  --chip-review-bg: #f6ddd2; --chip-review: #9a3b1c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --chip-warn-bg: #3b2f17; --chip-warn: #f0c977;
    --chip-ok-bg: #173327;   --chip-ok: #86d6ac;
    --chip-info-bg: #1f2a38; --chip-info: #a9c1e0;
    --chip-review-bg: #3d2219; --chip-review: #f3a487;
  }
}

.status-bar { background: var(--ink); color: var(--paper); font-size: 0.9rem; }
.status-bar .container { display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.status-bar p { margin: 0; color: color-mix(in srgb, var(--paper) 88%, transparent); }
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-inverse); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-inverse) 25%, transparent); }

.fb-brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.fb-wordmark { font-family: var(--font-sans); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ink); }
.fb-wordmark span { color: var(--accent-text); }
.fb-by { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }
.fb-footer-brand { margin: 0; }
.fb-footer-brand .fb-wordmark { font-size: 1.15rem; }
.fb-disclaimer { margin: 20px 0 0; font-size: 0.85rem; color: var(--ink-2); max-width: 60em; }

.fb-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.fb-hero .hero-grid { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 860px) { .fb-hero .hero-grid { grid-template-columns: 1fr; } }
.board .client, .board .col-due { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Illustration of the planned board */
.board-figure { margin: 0; }
.board {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-size: 0.85rem;
}
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.board-title { font-weight: 700; }
.board-period { font-size: 0.78rem; color: var(--ink-2); background: var(--paper-2); padding: 3px 10px; border-radius: 999px; }
.board-row {
  display: grid; grid-template-columns: 1.15fr 1.25fr 0.55fr 1.35fr 0.6fr;
  align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line);
}
.board-row:last-child { border-bottom: 0; }
.board-cols { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding-block: 8px; background: var(--paper-2); }
.board .client { font-weight: 600; }
.board .col-ob, .board .col-due { color: var(--ink-2); }
.avatar {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sage); color: var(--ink); font-style: normal; font-size: 0.68rem; font-weight: 700;
}
.chip { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.chip-warn { background: var(--chip-warn-bg); color: var(--chip-warn); }
.chip-ok { background: var(--chip-ok-bg); color: var(--chip-ok); }
.chip-info { background: var(--chip-info-bg); color: var(--chip-info); }
.chip-review { background: var(--chip-review-bg); color: var(--chip-review); }
.board-figure figcaption { margin-top: 12px; font-size: 0.8rem; color: var(--ink-2); text-align: center; }
@media (max-width: 1280px) {
  .board-row { grid-template-columns: 1.1fr 1.2fr 1.3fr 0.6fr; }
  .board .col-owner { display: none; }
}
@media (max-width: 520px) {
  .board-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .board .col-ob { grid-column: 1; grid-row: 2; font-size: 0.78rem; }
  .board .col-due { grid-column: 2; grid-row: 2; justify-self: end; font-size: 0.78rem; }
  .board .chip { justify-self: end; }
  .board-cols { display: none; }
}

.fb-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.fb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.fb-pair h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
@media (max-width: 860px) { .fb-split, .fb-pair { grid-template-columns: 1fr; } }

.fb-checks { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.fb-checks li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); }
.fb-checks li:first-child { border-top: 1px solid var(--line); }
.fb-checks li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: 1.5rem; font-weight: 400; color: var(--accent-text); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 20px; max-width: 40em; }

/* Product teaser on the Thevia home page */
.board-row.board-mini { grid-template-columns: 0.9fr 1fr 1.1fr; }
.board-mini .chip { justify-self: end; }
@media (max-width: 520px) { .board-row.board-mini { grid-template-columns: 1fr auto; } .board-mini .col-ob { grid-row: 2; } .board-mini .chip { grid-row: 1 / span 2; grid-column: 2; align-self: center; } }
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow);
}
.product .fb-wordmark { font-size: clamp(2rem, 4vw, 2.75rem); display: inline-block; margin-bottom: 0.4rem; }
.product .pill { display: inline-block; margin-left: 10px; vertical-align: middle; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chip-warn); background: var(--chip-warn-bg); padding: 4px 10px; border-radius: 999px; }
.product h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.product p { color: var(--ink-2); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

@media print {
  .js .reveal { opacity: 1; transform: none; }
  .site-header, .nav-toggle, .hero-art, .contact-art { display: none; }
}
