/* =====================================================================
   Tenon — design system
   Palette: Paper / Ink / Tenon Amber / Teal.   Type: Bricolage + Inter.
   ===================================================================== */

:root {
  --paper: #FAF7F1;
  --paper-2: #F2EDE3;
  --white: #FFFFFF;
  --ink: #12172B;
  --ink-2: #1C2340;
  --ink-3: #2A3354;
  --text: #1E2438;
  --muted: #5B6178;
  --line: #E6E1D6;
  --line-2: #D6D0C2;
  --accent: #E3962A;
  --accent-deep: #B97416;
  --accent-soft: #FBEBD1;
  --teal: #2B8C7E;
  --teal-soft: #D9F0EB;
  --rose: #D9534F;
  --rose-soft: #FBE1E0;
  --green: #3E9B5C;
  --green-soft: #DDF2E3;
  --blue: #3B6FD9;
  --blue-soft: #DEE7FB;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(18,23,43,.05), 0 12px 32px -12px rgba(18,23,43,.18);
  --shadow-lg: 0 2px 6px rgba(18,23,43,.06), 0 30px 60px -20px rgba(18,23,43,.28);
  --container: 1180px;
  --gutter: 16px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-deep); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }
code, kbd { font-family: var(--font-mono); font-size: .9em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }
pre { background: var(--ink); color: #E8ECF7; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); overflow: auto; font-size: .9rem; line-height: 1.55; margin: 1.2rem 0; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: .9rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-3); color: #fff; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #F0A63A; color: var(--ink); box-shadow: 0 8px 24px -8px rgba(227,150,42,.7); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--accent-deep); }
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,241,.85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.logo-mark { color: var(--ink); }
.main-nav > ul { display: flex; gap: .25rem; list-style: none; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .85rem; border-radius: 999px; font-weight: 500; color: var(--text); font-size: .97rem; }
.nav-link:hover, .nav-link.is-active, .has-menu.is-active > .nav-link { background: var(--paper-2); color: var(--ink); }
.nav-link .chev { width: 16px; height: 16px; transition: transform .2s; }
.has-menu { position: relative; }
.has-menu[data-open="true"] .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 560px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .75rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-menu[data-open="true"] .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.mega-item { display: flex; gap: .75rem; padding: .65rem .75rem; border-radius: var(--radius-sm); color: var(--text); align-items: flex-start; }
.mega-item:hover, .mega-item.is-active { background: var(--paper); color: var(--ink); }
.mega-item strong { display: block; font-size: .95rem; color: var(--ink); }
.mega-item small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.mega-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex: none; }
.mega-foot { display: flex; gap: .4rem; align-items: center; padding: .7rem .85rem .35rem; font-weight: 600; font-size: .92rem; color: var(--accent-deep); border-top: 1px solid var(--line); margin-top: .5rem; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

@media (max-width: 1024px) {
  /* backdrop-filter would make the header the containing block for the fixed nav, so drop it here */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--paper); overflow: auto; padding: 1rem var(--gutter) 3rem; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: .25rem; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 1.1rem; padding: .85rem 1rem; }
  .mega { position: static; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 .5rem; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-menu[data-open="true"] .mega { display: block; }
  .mega-grid { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
}
@media (max-width: 480px) { .header-actions .btn-primary { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-dark { background: var(--ink); color: #C9CFE3; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark strong { color: #fff; }
.section-dark .muted, .section-dark .lead { color: #A6AECB; }
.section-alt { background: var(--paper-2); }
.section-white { background: var(--white); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 10px; border-radius: 3px; background: var(--accent); }
.section-dark .eyebrow { color: var(--accent); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.section-dark .section-head p { color: #A6AECB; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 400px at 85% 10%, rgba(227,150,42,.16), transparent 60%),
  radial-gradient(500px 400px at 10% 90%, rgba(43,140,126,.12), transparent 60%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: center; position: relative; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--accent-deep); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .14em; background: var(--accent); opacity: .45; border-radius: 4px; z-index: -1; }
.hero .lead { font-size: 1.25rem; max-width: 560px; margin-bottom: 1.75rem; }
.hero-note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.hero-note span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-note .icon { color: var(--teal); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* joinery animation */
.joint-stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / .9; margin-inline: auto; }
.joint-block {
  position: absolute; border-radius: 18px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; box-shadow: var(--shadow-lg);
  animation: joinIn 1.4s cubic-bezier(.2,.8,.2,1) both;
}
.joint-block small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; opacity: .85; margin-top: .15rem; }
.joint-block .icon { width: 28px; height: 28px; margin-bottom: auto; opacity: .95; }
.jb-projects { left: 6%; top: 8%; width: 44%; height: 44%; background: linear-gradient(145deg, #1C2340, #12172B); --dx: -40px; --dy: -30px; animation-delay: .1s; }
.jb-docs     { right: 6%; top: 8%; width: 40%; height: 40%; background: linear-gradient(145deg, #F0A63A, #C97D18); color: var(--ink); --dx: 40px; --dy: -30px; animation-delay: .25s; }
.jb-chat     { left: 6%; bottom: 8%; width: 40%; height: 40%; background: linear-gradient(145deg, #3A9E8F, #22705F); --dx: -40px; --dy: 30px; animation-delay: .4s; }
.jb-ai       { right: 6%; bottom: 8%; width: 44%; height: 44%; background: var(--white); color: var(--ink); border: 1px solid var(--line); --dx: 40px; --dy: 30px; animation-delay: .55s; }
.jb-ai .icon { color: var(--teal); }
.joint-core {
  position: absolute; left: 50%; top: 50%; width: 24%; height: 24%; transform: translate(-50%,-50%) rotate(45deg);
  background: var(--accent); border-radius: 14px; box-shadow: 0 0 0 10px var(--paper), var(--shadow-lg);
  animation: corePop 1s cubic-bezier(.2,.8,.2,1) .9s both;
}
.joint-core::after { content: ""; position: absolute; inset: 28%; background: var(--ink); border-radius: 6px; }
@keyframes joinIn { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } to { opacity: 1; transform: none; } }
@keyframes corePop { from { opacity: 0; transform: translate(-50%,-50%) rotate(45deg) scale(.3); } to { opacity: 1; transform: translate(-50%,-50%) rotate(45deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .joint-block, .joint-core, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; } }

/* replaces strip */
.replaces { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.replaces .label { font-weight: 600; color: var(--ink); }
.replaces .pill { padding: .3rem .7rem; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 2px; }
.replaces .arrow-word { font-weight: 700; color: var(--accent-deep); }
.replaces .one { padding: .3rem .8rem; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.stat-n { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat-n small { font-size: 45%; font-weight: 700; color: var(--accent-deep); margin-left: .2rem; }
.stat p { margin: .6rem 0 0; color: var(--muted); font-size: .95rem; }
.stat cite { display: block; font-style: normal; font-size: .78rem; margin-top: .6rem; color: var(--muted); opacity: .8; }
.stat cite a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.feature-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; gap: .35rem; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feature-card h3 { font-size: 1.15rem; margin: .6rem 0 .25rem; }
.feature-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.feature-card .text-link { margin-top: .75rem; font-size: .9rem; }
.fc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.fc-icon .icon { width: 22px; height: 22px; }
.section-dark .feature-card { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.section-dark .feature-card p { color: #A6AECB; }
.section-dark .fc-icon { background: rgba(227,150,42,.15); color: var(--accent); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pillar { border-radius: var(--radius-lg); padding: 1.75rem; color: #fff; min-height: 300px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .2s; }
.pillar:hover { transform: translateY(-4px); color: #fff; }
.pillar .icon { width: 32px; height: 32px; margin-bottom: auto; }
.pillar h3 { color: #fff; font-size: 1.35rem; margin-top: 1.5rem; }
.pillar p { opacity: .85; font-size: .95rem; }
.pillar .text-link { color: #fff; margin-top: .75rem; font-size: .9rem; }
.pillar-ink { background: linear-gradient(160deg, #1C2340, #12172B); }
.pillar-amber { background: linear-gradient(160deg, #F0A63A, #C97D18); color: var(--ink); }
.pillar-amber h3, .pillar-amber .text-link { color: var(--ink); }
.pillar-teal { background: linear-gradient(160deg, #3A9E8F, #22705F); }
.pillar-paper { background: var(--white); border: 1px solid var(--line); color: var(--text); }
.pillar-paper h3, .pillar-paper .text-link { color: var(--ink); }
.pillar-paper .icon { color: var(--teal); }
.pillar-paper:hover { color: var(--text); }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(3rem, 7vw, 6rem); }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.split .lead { font-size: 1.1rem; }
.split ul.checks { margin-top: 1.25rem; }
ul.checks { list-style: none; display: grid; gap: .6rem; }
ul.checks li { display: flex; gap: .6rem; align-items: flex-start; }
ul.checks .icon { color: var(--teal); margin-top: .2em; width: 1.1em; height: 1.1em; }
ul.checks strong { display: block; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* ---------- Mock UI ---------- */
.mock { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; font-size: .82rem; }
.mock-bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: .78rem; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.mock-bar i:nth-child(1) { background: #F28B82; } .mock-bar i:nth-child(2) { background: #FBBC04; } .mock-bar i:nth-child(3) { background: #81C995; }
.mock-bar .title { margin-left: .5rem; font-weight: 600; color: var(--ink); }
.mock-body { padding: 1rem; }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.kcol h5 { margin: 0 0 .5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; justify-content: space-between; }
.kcol h5 b { background: var(--paper-2); border-radius: 6px; padding: 0 .4rem; color: var(--ink); }
.kcard { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; margin-bottom: .5rem; }
.kcard.hi { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: rotate(-1.5deg); }
.kcard .t { font-weight: 600; color: var(--ink); display: block; margin-bottom: .35rem; line-height: 1.3; }
.kcard .m { display: flex; gap: .4rem; align-items: center; }
.tag { font-size: .68rem; padding: .1rem .45rem; border-radius: 999px; font-weight: 600; }
.tag-red { background: var(--rose-soft); color: #A93A36; }
.tag-amber { background: var(--accent-soft); color: var(--accent-deep); }
.tag-green { background: var(--green-soft); color: #2C7A46; }
.tag-blue { background: var(--blue-soft); color: #2B54B0; }
.tag-teal { background: var(--teal-soft); color: #1F6B60; }
.av { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .6rem; font-weight: 700; color: #fff; margin-left: auto; }
.av-1 { background: #3B6FD9; } .av-2 { background: #2B8C7E; } .av-3 { background: #E3962A; } .av-4 { background: #8B5CF6; }

.chatm { display: grid; gap: .8rem; }
.msg { display: flex; gap: .6rem; align-items: flex-start; }
.msg .av { margin: 0; width: 28px; height: 28px; font-size: .7rem; flex: none; }
.msg .who { font-weight: 600; color: var(--ink); margin-right: .4rem; }
.msg .when { color: var(--muted); font-size: .72rem; }
.msg p { margin: .15rem 0 0; }
.msg .react { display: inline-flex; gap: .3rem; margin-top: .35rem; }
.msg .react span { border: 1px solid var(--line); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; background: var(--paper); }
.card-inline { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; margin-top: .4rem; background: var(--paper); }
.card-inline .ci-h { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.card-inline .ci-h .icon { width: 16px; height: 16px; color: var(--accent-deep); }
.pollbar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: .25rem 0 .4rem; }
.pollbar i { display: block; height: 100%; background: var(--teal); }
.decision { border-left: 3px solid var(--accent); }

.docm .dt { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--ink); display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.docm p { margin-bottom: .6rem; }
.docm .mention { background: var(--blue-soft); color: #2B54B0; border-radius: 6px; padding: 0 .3rem; font-weight: 600; }
.docm .hl { background: #FFF3B0; }
.docm .tasks { list-style: none; display: grid; gap: .3rem; margin: .5rem 0; }
.docm .tasks li { display: flex; gap: .45rem; align-items: center; }
.docm .tasks i { width: 14px; height: 14px; border: 1.5px solid var(--line-2); border-radius: 4px; display: inline-block; }
.docm .tasks i.on { background: var(--teal); border-color: var(--teal); }
.docm .tasks .done { text-decoration: line-through; color: var(--muted); }
.docm table { width: 100%; border-collapse: collapse; margin: .5rem 0; }
.docm td, .docm th { border: 1px solid var(--line); padding: .3rem .5rem; text-align: left; }
.docm th { background: var(--paper); }
.slash { display: inline-flex; gap: .3rem; align-items: center; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: .3rem .5rem; box-shadow: var(--shadow); margin-top: .3rem; }
.slash kbd { padding: 0 .3rem; }

.brainm { background: var(--ink); color: #DCE1F1; border-color: rgba(255,255,255,.1); }
.brainm .mock-bar { background: var(--ink-2); border-color: rgba(255,255,255,.08); color: #A6AECB; }
.brainm .mock-bar .title { color: #fff; }
.bmsg { border-radius: 12px; padding: .7rem .85rem; margin-bottom: .6rem; max-width: 92%; line-height: 1.5; }
.bmsg.user { background: var(--ink-3); margin-left: auto; color: #fff; }
.bmsg.bot { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.bmsg.bot b { color: #fff; }
.bmsg ul { padding-left: 1.1rem; margin: .3rem 0; }
.bmsg .typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 3px; animation: blink 1.2s infinite; }
.bmsg .typing i:nth-child(2) { animation-delay: .2s; } .bmsg .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.draft { background: var(--ink-2); border: 1px solid rgba(227,150,42,.5); border-radius: 10px; padding: .6rem .75rem; margin-top: .5rem; }
.draft .dh { display: flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.draft .dh .icon { width: 14px; height: 14px; }
.draft .db { display: flex; gap: .4rem; margin-top: .5rem; }
.draft .db span { padding: .25rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.draft .db .ok { background: var(--accent); color: var(--ink); }
.draft .db .no { border: 1px solid rgba(255,255,255,.2); }

.healthm table { width: 100%; border-collapse: collapse; }
.healthm th, .healthm td { padding: .5rem .6rem; text-align: left; border-bottom: 1px solid var(--line); }
.healthm th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.healthm td:first-child { font-weight: 600; color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: .35rem; }
.dot-g { background: var(--green); } .dot-a { background: var(--accent); } .dot-r { background: var(--rose); }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; width: 90px; display: inline-block; vertical-align: middle; }
.bar i { display: block; height: 100%; background: var(--teal); }
.heat { display: grid; grid-template-columns: 80px repeat(5, 1fr); gap: 4px; margin-top: .75rem; align-items: center; }
.heat .hn { font-size: .72rem; color: var(--muted); }
.heat i { display: block; height: 22px; border-radius: 5px; background: var(--teal-soft); }
.heat i.h2 { background: #9FD4CA; } .heat i.h3 { background: #5DB7A8; } .heat i.h4 { background: var(--teal); } .heat i.hot { background: var(--accent); }

.codem { background: var(--ink); color: #E8ECF7; border-color: rgba(255,255,255,.1); }
.codem .mock-bar { background: var(--ink-2); border-color: rgba(255,255,255,.08); color: #A6AECB; }
.codem .mock-bar .title { color: #fff; }
.codem pre { margin: 0; padding: 1rem; background: transparent; font-size: .8rem; }
.codem .c-k { color: #F0A63A; } .codem .c-s { color: #9FD4CA; } .codem .c-c { color: #7C86A8; } .codem .c-n { color: #C3B1FF; }

/* ---------- Real screenshots ---------- */
.shot { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.shot img { width: 100%; height: auto; display: block; }
.shot .mock-bar { font-size: .78rem; }
.section-dark .shot { border-color: rgba(255,255,255,.12); }
.hero-shot { position: relative; }
.hero-shot .shot { width: 118%; max-width: none; transform: perspective(1600px) rotateY(-6deg) rotateX(1.5deg); transform-origin: left center; }
.hero-shot::before { content: ""; position: absolute; inset: 10% -10% -10% 5%; background: radial-gradient(closest-side, rgba(227,150,42,.28), transparent 70%); filter: blur(30px); z-index: -1; }
@media (max-width: 900px) { .hero-shot .shot { width: 100%; transform: none; } }
.shot-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.shot-strip figcaption, .shot-cap { padding: .75rem 1rem; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--paper); }
.shot-strip figcaption strong, .shot-cap strong { color: var(--ink); display: block; font-size: .95rem; }
@media (max-width: 900px) { .shot-strip { grid-template-columns: 1fr; } }
.shot-wide { max-width: 1040px; margin-inline: auto; }

/* ---------- Playbooks / industry pages ---------- */
.playbook { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.section-white .playbook { background: var(--paper); }
.playbook h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.playbook .pb-goal { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.playbook h4 { display: flex; align-items: center; gap: .4rem; font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-deep); margin: 1.1rem 0 .4rem; }
.playbook h4 .icon { width: 1em; height: 1em; }
.pb-cols { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; counter-reset: col; }
.pb-cols li { font-size: .82rem; font-weight: 600; padding: .25rem .6rem; border-radius: 6px; background: var(--white); border: 1px solid var(--line-2); position: relative; }
.pb-cols li::before { counter-increment: col; content: counter(col) " "; color: var(--accent-deep); font-weight: 700; }
.section-white .pb-cols li { background: var(--white); }
.pb-list { list-style: none; display: grid; gap: .25rem; font-size: .92rem; }
.pb-list li::before { content: "\2013\00a0"; color: var(--muted); }
.pb-rit { font-size: .92rem; color: var(--text); }
.week { list-style: none; display: grid; gap: 1rem; counter-reset: day; }
.week li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem 1.25rem 4.5rem; position: relative; font-size: 1.02rem; }
.week li::before { counter-increment: day; content: counter(day); position: absolute; left: 1.25rem; top: 1.1rem; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.industry-card { display: flex; gap: .85rem; align-items: flex-start; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); transition: transform .2s, box-shadow .2s; }
.industry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.industry-card .fc-icon { width: 38px; height: 38px; flex: none; }
.industry-card strong { display: block; color: var(--ink); font-size: .98rem; }
.industry-card small { color: var(--muted); font-size: .82rem; line-height: 1.35; display: block; }
@media (max-width: 960px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industry-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--accent); line-height: 1; display: block; margin-bottom: .75rem; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .95rem; }
.section-dark .step { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.section-dark .step p { color: #A6AECB; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-lg); }
.plan-tag { position: absolute; top: -12px; left: 1.5rem; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.plan.featured .plan-tag { background: var(--accent); color: var(--ink); }
.plan h3 { font-size: 1.5rem; margin-top: .5rem; }
.plan-price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; margin: .5rem 0 .2rem; }
.plan-price small { font-size: 1rem; font-weight: 500; color: var(--muted); font-family: var(--font-body); letter-spacing: 0; }
.plan-summary { color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan ul.checks { margin: 1.25rem 0 1.5rem; flex: 1; font-size: .93rem; }
.plan .btn { justify-content: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* billing toggle */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-2); margin: 0 auto 1.75rem; gap: 2px; }
.section-alt .billing-toggle, .container > .billing-toggle { display: flex; width: max-content; }
.billing-btn { padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; transition: background .15s, color .15s; }
.billing-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing-btn .save { font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); }
.billing-btn[aria-pressed="true"] .save { background: var(--accent); color: var(--ink); }
.price-monthly, .price-note-monthly { display: none; }
body[data-billing="monthly"] .price-monthly { display: inline; }
body[data-billing="monthly"] .price-note-monthly { display: block; }
body[data-billing="monthly"] .price-annual, body[data-billing="monthly"] .price-note-annual { display: none; }
.price-note { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: .35rem; }
.plan-price .price-annual, .plan-price .price-monthly { transition: opacity .15s; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
table.cmp th, table.cmp td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.cmp thead th { background: var(--paper); font-family: var(--font-display); font-size: 1rem; }
table.cmp th.tenon { background: var(--accent-soft); color: var(--accent-deep); }
table.cmp td.tenon { background: #FFF9EF; }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp .yes { color: var(--green); font-weight: 700; }
table.cmp .no { color: var(--rose); font-weight: 700; }
table.cmp .part { color: var(--accent-deep); font-weight: 700; }
table.cmp td small { display: block; color: var(--muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.15rem; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { transform: rotate(90deg); transition: transform .2s; color: var(--accent-deep); }
.faq-item[open] .faq-chev { transform: rotate(-90deg); }
.faq-a { padding: 0 1.15rem 1.1rem; color: var(--text); }
.faq-a p { margin-bottom: .6rem; }
.faq-a a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #C9CFE3; padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% 120%, rgba(227,150,42,.25), transparent 70%); }
.cta-inner { text-align: center; position: relative; max-width: 760px; }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 1.15rem; margin-bottom: 1.75rem; }
.cta-band .btn-row { justify-content: center; }
.joint-deco { display: inline-flex; gap: 6px; margin-bottom: 1.5rem; }
.joint-deco span { width: 26px; height: 14px; border-radius: 4px; background: var(--accent); }
.joint-deco span:nth-child(2) { background: var(--teal); width: 14px; }
.joint-deco span:nth-child(3) { background: #fff; opacity: .6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; font-size: .93rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 1.5rem; }
.footer-tag { color: var(--muted); margin: 1rem 0; max-width: 300px; }
.footer-h { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: .8rem; }
.footer-col ul { list-style: none; display: grid; gap: .45rem; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.social { list-style: none; display: flex; gap: .5rem; }
.social a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); }
.social a:hover { color: var(--ink); border-color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.footer-mini a { display: inline-flex; align-items: center; gap: .2rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Breadcrumbs / page hero ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.crumbs a:hover { color: var(--ink); }
.page-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); position: relative; }
.page-hero .crumbs { margin-bottom: 1.5rem; }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: 680px; }
.page-hero .btn-row { margin-top: 1.5rem; }
.page-hero-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 1.25rem; }
.page-hero-icon .icon { width: 30px; height: 30px; }

/* ---------- Chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: .85rem; font-weight: 500; }
.section-dark .chips li { background: var(--ink-2); border-color: rgba(255,255,255,.12); }

/* ---------- Detail lists ---------- */
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.5rem; }
.detail { display: flex; gap: 1rem; }
.detail .d-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--accent-deep); display: grid; place-items: center; flex: none; }
.detail h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.detail p { color: var(--muted); font-size: .95rem; }
@media (max-width: 720px) { .detail-list { grid-template-columns: 1fr; } }

/* ---------- Quote / scenario ---------- */
.scenario { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; }
.scenario .icon { width: 36px; height: 36px; color: var(--accent); }
.scenario h3 { font-size: 1.25rem; }
.scenario p { color: var(--text); }
.scenario .who { font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: .75rem; }
@media (max-width: 560px) { .scenario { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; transition: transform .2s, box-shadow .2s; color: var(--text); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.post-meta { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--muted); }
.post-meta .tag { font-size: .7rem; }
.post-card h3 { font-size: 1.25rem; margin: .25rem 0; }
.post-card h3 a { color: var(--ink); }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.article { max-width: 760px; margin-inline: auto; }
.article-head { padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; }
.article-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: 1.7rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); }
.prose .callout { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1.5rem 0; border-left: 4px solid var(--accent); font-size: 1rem; }
.prose .callout.teal { background: var(--teal-soft); border-color: var(--teal); }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .95rem; }
.toc strong { display: block; margin-bottom: .5rem; }
.toc ol { padding-left: 1.2rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- Blog: byline, pager, share, search ---------- */
.byline { display: flex; align-items: center; gap: .6rem; margin-top: 1.25rem; font-size: .92rem; flex-wrap: wrap; }
.byline .av { width: 34px; height: 34px; font-size: .85rem; margin: 0; }
.byline strong { display: block; color: var(--ink); }
.byline small { color: var(--muted); }
.byline .updated { margin-left: auto; color: var(--muted); font-size: .85rem; }
.article-foot { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.25rem; }
.share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.pager-count { color: var(--muted); font-size: .9rem; }
.post-meta .tag { text-decoration: none; }
.post-meta a.tag:hover { background: var(--accent); color: var(--ink); }
.chips li a[aria-current="page"] { background: var(--ink); color: #fff; border-radius: 999px; padding: .1rem .5rem; }
.search-row { display: flex; gap: .5rem; }
.search-row input { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.results { list-style: none; display: grid; gap: .6rem; }
.results a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.15rem; color: var(--text); transition: border-color .15s, transform .15s; }
.results a:hover { border-color: var(--line-2); transform: translateY(-1px); color: var(--text); }
.results strong { display: block; color: var(--ink); font-size: 1.05rem; margin: .35rem 0 .2rem; }
.results small { color: var(--muted); display: block; }
.result-url { font-size: .78rem; color: var(--muted); background: none; border: 0; padding: 0; display: block; margin-top: .4rem; }
.nav-search { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted); }
.nav-search:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 1024px) { .nav-search { display: none; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: 600; font-size: .92rem; color: var(--ink); display: block; margin-bottom: .35rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--white); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 500; }
.alert-ok { background: var(--green-soft); color: #22603A; }
.alert-err { background: var(--rose-soft); color: #A93A36; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.tab { padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: .92rem; background: var(--white); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel[hidden] { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.big-list { list-style: none; display: grid; gap: 1rem; counter-reset: bl; }
.big-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.big-list li::before { counter-increment: bl; content: counter(bl); width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.big-list strong { display: block; color: var(--ink); }
.big-list p { color: var(--muted); font-size: .95rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; font-size: .95rem; }
.kv dt { font-weight: 600; color: var(--ink); }
.kv dd { margin: 0; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--teal-soft); color: #1F6B60; font-weight: 600; font-size: .8rem; }
.badge .icon { width: 1em; height: 1em; }
.ribbon { background: var(--ink); color: #DCE1F1; font-size: .9rem; text-align: center; padding: .55rem var(--gutter); }
.ribbon a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.notfound { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.notfound h1 { font-size: clamp(4rem, 15vw, 9rem); color: var(--accent); line-height: 1; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.principle { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--white); }
.principle h3 { display: flex; gap: .6rem; align-items: center; font-size: 1.15rem; }
.principle h3 .icon { color: var(--accent-deep); }
.principle p { color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }
.logo-row { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: .95rem; }
.logo-row span { display: inline-flex; align-items: center; gap: .4rem; }
.logo-row .icon { color: var(--accent-deep); }

/* ---- Legal pages (/terms, /privacy) ------------------------------------- */
.legal-meta { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; margin-top: 1.5rem; font-size: .9rem; }
.legal-meta div { display: flex; flex-direction: column; gap: .15rem; }
.legal-meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 600; }
.legal-meta dd { margin: 0; color: var(--ink); font-weight: 600; }
.toc-legal ol { columns: 2; column-gap: 2rem; }
.toc-legal li { break-inside: avoid; margin-bottom: .3rem; }
@media (max-width: 640px) { .toc-legal ol { columns: 1; } }
.legal .legal-section { scroll-margin-top: calc(var(--header-h) + 1rem); }
.legal .legal-section h2 { padding-top: .5rem; border-top: 1px solid var(--line); }
.legal-num { color: var(--accent-deep); font-variant-numeric: tabular-nums; margin-right: .35rem; }
.legal-defs { margin: 1.25rem 0; }
.legal-defs dt { font-weight: 700; color: var(--ink); margin-top: .9rem; }
.legal-defs dd { margin: .15rem 0 0; color: var(--muted); }
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.table-scroll table { margin: 0; min-width: 34rem; }
