/*
 * Plikli marketing site: bold & warm. A cream page, saturated warm colour
 * bands, thick dark outlines with solid offset shadows, chunky rounded shapes.
 * Teal marks actions and links, emerald live/OK, amber "to review", coral
 * warnings. The five home chapters use red, teal, sun, pink and plum.
 */
:root {
  --cream: #fff8ef; --ink-0: #1d1a17;
  --red: #d63a22; --sun: #ffc23d; --deep-teal: #0f5e5a; --pink: #ff8a6b; --plum: #6b2d5c;
  --tint-red: #ffe6dd; --tint-teal: #d7efe9; --tint-sun: #fff0c2;
  --bg: var(--cream);
  --surface: #fff;
  --surface-2: #f4ece2;
  --ink: var(--ink-0);
  --ink-2: #3a332d;
  --ink-muted: #5b5148;
  --ink-faint: #7d7268;
  --line-subtle: rgba(29, 26, 23, 0.1);
  --line: rgba(29, 26, 23, 0.2);
  --line-strong: rgba(29, 26, 23, 0.4);
  --sky: var(--deep-teal);
  --teal: var(--deep-teal);
  --coral: #b02e18;
  --violet: var(--plum);
  --amber: #8a4b00;
  --emerald: #1b6b3a;
  --pop: 5px 5px 0 var(--ink-0);
  --pop-sm: 3px 3px 0 var(--ink-0);
  --display: 'Familjen Grotesk', 'Zen Kaku Gothic New', system-ui, sans-serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --max: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 14px;
  --r-lg: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.dots { position: relative; }

.glass, .card, .site-header .bar, .table-wrap, details.faq, .toggle, .menu-panel {
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: var(--pop);
}

/* --- type ----------------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--ink); font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; text-wrap: balance; }
h1, h2, h3, h4 { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
@supports (word-break: auto-phrase) { h1, h2, h3, h4 { word-break: auto-phrase; } }
h1 { font-size: clamp(36px, 6vw, 76px); letter-spacing: -0.04em; line-height: 1.08; }
h2 { font-size: clamp(28px, 4.2vw, 48px); letter-spacing: -0.03em; line-height: 1.14; }
h3 { font-size: 17.5px; letter-spacing: -0.01em; line-height: 1.4; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; margin-bottom: 18px; padding: 4px 12px; border-radius: 999px; border: 2px solid currentColor;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.muted { color: var(--ink-muted); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -0.01em; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* --- header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; padding: 14px 0; }
.site-header .bar { display: flex; align-items: center; gap: 22px; padding: 8px 8px 8px 18px; border-radius: 999px; box-shadow: var(--pop-sm); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; border-radius: 9px; background: conic-gradient(from 200deg, var(--red), var(--sun), var(--pink), var(--plum), var(--deep-teal), var(--red)); border: 2px solid var(--ink); }
.nav { display: none; gap: 2px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-muted); padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--sun); font-weight: 700; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 12px; }
.lang:hover { background: var(--tint-sun); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-size: 14px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 48px; width: min(280px, 90vw); border-radius: var(--r-lg); padding: 8px; display: grid; }
.menu-panel a { padding: 10px 12px; text-decoration: none; border-radius: var(--r); }
.menu-panel a:hover { background: var(--surface-2); }
.desktop-only { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu { display: none; }
  .desktop-only { display: inline-flex; }
}

/* --- buttons & chips ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 3px solid var(--ink);
  background: var(--red); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
.btn-sm:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  border: 2px solid var(--ink); background: #fff; color: var(--ink); white-space: nowrap;
}
.chip-live { color: var(--emerald); background: var(--tint-teal); }
.chip-draft { color: var(--amber); background: var(--tint-sun); }
.chip-crimson { color: var(--coral); background: var(--tint-red); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); border: 1px solid var(--ink); flex-shrink: 0; }

/* --- sections ------------------------------------------------------------ */
section { padding: 80px 0; scroll-margin-top: 90px; }
section.tight { padding: 48px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 + p { margin-top: 12px; }
.hero { padding: 72px 0 56px; text-align: center; background: var(--sun); border-bottom: 3px solid var(--ink); }
.hero .lead { margin: 18px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); background: radial-gradient(circle at 92% 10%, #ffe2a6 0, transparent 34%), var(--sun); border-bottom: 3px solid var(--ink); }
.page-hero .lead, .page-hero .muted { color: var(--ink); }
.page-hero h1 { font-size: clamp(34px, 4.8vw, 64px); }
main > section:not(.page-hero):not(.cta-band):nth-of-type(4n+2) { background: var(--tint-teal); }
main > section:not(.page-hero):not(.cta-band):nth-of-type(4n) { background: var(--tint-red); }
.page-hero .lead { margin-top: 14px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }

.card { border-radius: var(--r-lg); padding: 24px; }
.card h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.card p { font-size: 14px; color: var(--ink-muted); }
.card .foot { margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--line); display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-muted); }
.card-dark { background: var(--tint-teal); }
.card-dark h3 { color: var(--ink); }
.card-dark p { color: var(--ink-muted); }
.icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--sun); border: 2px solid var(--ink); }
.icon svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.list { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; }
.list li::before { content: '✓'; color: var(--emerald); font-weight: 700; }
.list.bad li::before { content: '!'; color: var(--coral); }
.list li strong { color: var(--ink); display: block; font-weight: 700; }
.list li span { color: var(--ink-muted); }


.steps { list-style: none; display: grid; gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface); font-size: 13.5px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink); background: var(--sun); border: 2px solid var(--ink); }
.steps li.bad { color: var(--coral); background: var(--tint-red); }
.steps li.good { color: var(--emerald); background: var(--tint-teal); }
.steps li .ok { margin-left: auto; color: var(--emerald); }

/* --- small mock pieces (migration preview) ------------------------------- */
.mock-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.block { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 2px solid var(--ink); background: #fff; border-radius: var(--r); font-size: 12.5px; margin-bottom: 6px; }
.check { display: flex; gap: 10px; padding: 10px 0; border-bottom: 2px solid var(--line-subtle); font-size: 13px; }
.check:last-child { border-bottom: 0; }
.check b { color: var(--ink); font-weight: 700; display: block; }
.check span { color: var(--ink-muted); font-size: 12px; }
.check i { font-style: normal; color: var(--emerald); font-weight: 700; }

/* --- code ---------------------------------------------------------------- */
.code { background: var(--ink); color: #f4ede4; border: 3px solid var(--ink); box-shadow: var(--pop); border-radius: var(--r-lg); padding: 18px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; overflow-x: auto; white-space: pre; }
.code .k { color: #ffb3a3; }
.code .s { color: var(--sun); }
.code .c { color: #b8ab9d; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-family: var(--mono); font-size: 11px; color: var(--ink); border: 3px solid var(--ink); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--sun); }
.code-head + .code { border-top-left-radius: 0; border-top-right-radius: 0; }
.code-head.dark { background: var(--tint-teal); }

/* --- tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 2px solid var(--line-subtle); vertical-align: top; }
th { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); background: var(--sun); border-bottom: 3px solid var(--ink); }
tbody tr:hover td { background: var(--cream); }
td.yes { color: var(--emerald); font-weight: 700; }
td.no { color: var(--ink-faint); }
td.warn { color: var(--coral); }
.group td { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); background: var(--tint-teal) !important; }
td strong { color: var(--ink); font-weight: 700; }

/* --- pricing ------------------------------------------------------------- */
.toggle { display: inline-flex; border-radius: 999px; padding: 4px; gap: 2px; box-shadow: var(--pop-sm); }
.toggle:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.toggle label { padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
#yearly:checked ~ .toggle label[for='yearly'], #monthly:checked ~ .toggle label[for='monthly'] { background: var(--red); color: #fff; }
.price-yearly { display: none; }
#yearly:checked ~ .plans .price-yearly { display: block; }
#yearly:checked ~ .plans .price-monthly { display: none; }
.plans { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; border-radius: 28px; padding: 28px; }
.plan.featured { background: var(--ink-0); color: #f4ede4; --ink: #fff; --ink-2: #f4ede4; --ink-muted: #d8cfc5; --emerald: var(--sun); }
.plan.featured .btn { border-color: #fff; box-shadow: 4px 4px 0 var(--sun); }
.plan .ribbon { position: absolute; top: -14px; left: 24px; background: var(--red); color: #fff; border: 2px solid var(--ink-0); font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price { font-family: var(--display); font-size: 42px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; }
.plan .list { margin-top: 0; }
.plan .btn { width: 100%; }

details.faq { border-radius: 20px; border-width: 2px; box-shadow: var(--pop-sm); }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: '+'; font-family: var(--mono); color: var(--red); font-weight: 700; transition: transform 0.2s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq div { padding: 0 22px 18px; color: var(--ink-muted); font-size: 14px; max-width: 68ch; }

/* --- CTA band & footer ---------------------------------------------------- */
.cta-band .wrap > div:first-child h2 { margin-top: 4px; }
.cta-band .inner { display: grid; gap: 24px; align-items: center; border-radius: 34px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.cta-band { background: var(--red); border-top: 3px solid var(--ink); }
.cta-band .inner { background: var(--cream); box-shadow: 8px 8px 0 var(--ink); }
.cta-band .eyebrow { color: var(--red); }
@media (min-width: 900px) { .cta-band .inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band .btns { display: grid; gap: 10px; }

.site-footer { padding: 40px 0 32px; font-size: 13.5px; background: #fff; border-top: 3px solid var(--ink); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; padding-top: 8px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-grid h4 { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--red); text-decoration: underline; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--ink-muted); font-size: 12px; }

.notice { padding: 14px 16px; border: 2px solid var(--ink); background: var(--tint-sun); color: var(--ink); border-radius: var(--r); font-size: 14px; }
.prose { max-width: 720px; }
.prose p + p, .prose ul + p, .prose h2 + p { margin-top: 12px; }
.prose ol, .prose ul { padding-left: 20px; margin-top: 10px; display: grid; gap: 6px; }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===================== home page ===================== */

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.more-link { display: inline-flex; margin-top: 18px; font-size: 14px; font-weight: 700; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }


.invite { border-radius: 34px; padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; position: relative; overflow: hidden; }
.invite form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; color: var(--ink); font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; font: 400 15px/1.4 var(--sans); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: 12px 14px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: var(--pop-sm); }
.field textarea { resize: vertical; min-height: 92px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { font-size: 14px; color: var(--ink-muted); }
.form-status.ok { color: var(--emerald); }
.form-status.err { color: var(--coral); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* --- small screens -------------------------------------------------------- */
.grid > *, .split > *, .plans > * { min-width: 0; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (max-width: 960px) {
  .invite { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 639px) {
  .site-header .bar { gap: 10px; }
  .hero { padding-top: 48px; }
  section { padding: 56px 0; }
  .invite form { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .hm-tile:hover, .hm .tile:hover { transform: none; }
  * { transition: none !important; }
}

/* Theme gallery (features #themes): screenshot on top, text below. */
.theme-card { padding: 0; overflow: hidden; }
.theme-card .theme-shot { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border-bottom: 3px solid var(--ink); background: var(--surface-2); }
.theme-card__body { padding: 16px 20px 20px; }
.theme-card--small .theme-card__body { padding: 10px 14px 12px; }
.theme-card--small h3 { font-size: 14px; margin: 0; }
/* Small theme cards stay two to a row on phones, rather than 14 full-width rows. */
@media (max-width: 719px) { .theme-grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .theme-grid-small .theme-card__body { padding: 8px 10px 10px; } .theme-grid-small h3 { font-size: 13px; } }

/* ===================== home page (.hm): product-led, bold & warm =====================
 * A light cream page with warm colour bands. It re-points the shared tokens so
 * the shared pieces inside it (chips, fields, faq, plans, list) turn light too. */
.hm { --pop: 5px 5px 0 var(--ink); overflow-x: clip; word-break: auto-phrase; }
.hm section { padding: clamp(56px, 9vw, 104px) 0; }
.hm h1 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.06; letter-spacing: -0.04em; margin: 18px 0 22px; }
.hm h2 { font-size: clamp(30px, 5vw, 54px); line-height: 1.12; letter-spacing: -0.03em; }
.hm .section-head { max-width: 900px; }
.hm-kicker { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 2px solid currentColor; margin-bottom: 18px; }
.hm-red a:focus-visible, .hm-teal a:focus-visible { outline-color: #fff; }

/* colour bands */
.hm-band h2, .hm-band h3 { color: inherit; }
.hm-red { background: var(--red); color: #fff; }
.hm-teal { background: var(--deep-teal); color: #fff; }
.hm-sun { background: var(--sun); color: var(--ink-0); }
.hm-red .section-head .lead, .hm-teal .section-head .lead { color: rgba(255, 255, 255, 0.95); }
.hm-sun .lead { color: var(--ink-0); }

/* hero */
.hm .hm-hero { background: radial-gradient(circle at 92% 6%, #ffe2a6 0, transparent 30%), radial-gradient(circle at 4% 60%, #ffe6dd 0, transparent 26%), var(--cream); padding: clamp(32px, 6vw, 64px) 0 72px; }
.hm-hero-copy { text-align: center; display: grid; justify-items: center; }
.hm-hero-copy .lead { margin: 0 auto; }
.hm-pill { display: inline-block; background: var(--sun); color: var(--ink-0); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink-0); }
.hm-mark { color: var(--red); white-space: nowrap; }
.hm .facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.hm .facts li { background: #fff; border: 2px solid var(--ink-0); border-radius: 14px; padding: 6px 12px; font-size: 13.5px; font-weight: 700; color: var(--ink-0); }
.hm .facts li:nth-child(1) { background: #d7efe9; } .hm .facts li:nth-child(2) { background: #ffe6dd; }
.hm-stage { position: relative; margin-top: 48px; }
.hm-sticker { position: absolute; z-index: 2; display: inline-block; padding: 8px 16px; border-radius: 999px; border: 3px solid var(--ink-0); font: 700 18px/1.3 var(--display); white-space: nowrap; box-shadow: 3px 3px 0 var(--ink-0); }
.hm-sticker.s-trial { top: -22px; left: clamp(8px, 4vw, 40px); background: var(--sun); color: var(--ink-0); rotate: -5deg; }
.hm-stage > .s-301 { bottom: -20px; right: clamp(8px, 4vw, 40px); background: var(--red); color: #fff; rotate: 4deg; }
.hm-bob { animation: hm-bob 6s ease-in-out infinite; }
.s-301.hm-bob { animation-delay: -3s; }
@keyframes hm-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* hero mockup (light frame, thick outline) */
.hm .app { position: relative; margin: 0 auto; max-width: 1240px; border-radius: 24px; background: #fff; border: 3px solid var(--ink-0); box-shadow: 8px 8px 0 var(--ink-0); font-size: 13px; overflow: hidden; }
.hm .app-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--deep-teal); border-bottom: 3px solid var(--ink-0); }
.hm .lights { display: flex; gap: 6px; } .hm .lights i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink-0); background: var(--pink); }
.hm .lights i:nth-child(2) { background: var(--sun); } .hm .lights i:nth-child(3) { background: var(--cream); }
.hm .switcher { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 2px solid var(--ink-0); border-radius: 10px; background: #fff; color: var(--ink); white-space: nowrap; }
.hm .caret { color: var(--ink-muted); font-size: 10px; }
.hm .site-ico { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; font: 700 11px var(--mono); color: #fff; background: var(--c); border: 2px solid var(--ink-0); }
.hm .app-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hm .app-actions .chip { background: #fff; border: 2px solid var(--ink-0); color: var(--amber); }
.hm .fake-btn { padding: 4px 12px; border-radius: 8px; background: var(--red); color: #fff; border: 2px solid var(--ink-0); font-weight: 700; font-size: 12px; white-space: nowrap; }
.hm .app-body { display: grid; grid-template-columns: 196px minmax(0, 1fr) 250px; min-height: 440px; }
.hm .app-side { display: grid; align-content: start; gap: 2px; padding: 12px 8px; border-right: 3px solid var(--ink-0); background: var(--cream); color: var(--ink-muted); }
.hm .app-side > span { padding: 6px 10px; border-radius: 8px; }
.hm .app-side .on { background: #ffe6dd; color: var(--ink); font-weight: 700; }
.hm .switcher-menu { display: grid; gap: 2px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 2px solid var(--line); }
.hm .switcher-menu small { padding: 0 10px 4px; font: 500 10.5px var(--mono); letter-spacing: 0.08em; color: var(--ink-muted); }
.hm .switcher-menu > span { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; color: var(--ink-2); white-space: nowrap; }
.hm .switcher-menu em { margin-left: auto; font: 500 9.5px var(--mono); font-style: normal; color: var(--ink-muted); }
.hm .app-editor { padding: 26px clamp(16px, 4vw, 44px); display: grid; align-content: start; gap: 14px; text-align: left; min-width: 0; }
.hm .ed-title { font: 700 clamp(18px, 2.2vw, 24px)/1.35 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.hm .ed-meta { color: var(--ink-muted); font-size: 11.5px; margin-bottom: 6px; overflow-wrap: anywhere; }
.hm .blk { position: relative; border: 2px solid var(--ink-0); border-radius: 14px; padding: 12px 14px; background: #fff; color: var(--ink-2); }
.hm .blk p { font-size: 13px; }
.hm .blk-tag { position: absolute; top: -11px; right: 10px; padding: 0 8px; border-radius: 999px; font: 500 10px/18px var(--mono); color: var(--ink-0); background: var(--sun); border: 2px solid var(--ink-0); }
.hm .blk-h { font-weight: 700; color: var(--ink); }
.hm .blk-bubble { display: flex; gap: 12px; align-items: center; }
.hm .blk-bubble .avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink-0); }
.hm .blk-bubble p { padding: 8px 12px; border-radius: 12px; background: var(--cream); border: 2px solid var(--ink-0); }
.hm .blk-point { background: #fff4d6; border-left-width: 6px; }
.hm .blk-point b { color: var(--amber); font-size: 12px; }
.hm .blk-product { display: flex; gap: 14px; align-items: center; background: #ffe6dd; }
.hm .blk-product .thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--red); border: 2px solid var(--ink-0); }
.hm .blk-product b { color: var(--ink); font-size: 13.5px; }
.hm .shops, .hm .frag-shops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hm .shops span, .hm .frag-shops span { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--ink-0); border: 2px solid var(--ink-0); white-space: nowrap; }
.hm .s-amz { background: #ffc66b; } .hm .s-rkt { background: #ffb3a3; } .hm .s-yhu { background: #b6dcff; }
.hm .blk-add { border-style: dashed; color: var(--ink-muted); text-align: center; }
.hm .app-panel { border-left: 3px solid var(--ink-0); padding: 18px 16px; display: grid; align-content: start; gap: 14px; text-align: left; background: var(--cream); }
.hm .score { display: flex; align-items: center; gap: 12px; }
.hm .score svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.hm .score circle { fill: none; stroke-width: 4; }
.hm .score .track { stroke: #e8ddd0; }
.hm .score .fill { stroke: var(--emerald); stroke-linecap: round; animation: hm-ring 1.4s 0.4s ease-out both; }
@keyframes hm-ring { from { stroke-dasharray: 0 100; } }
.hm .score b { display: block; font: 700 20px var(--display); color: var(--ink); }
.hm .score span { font-size: 12px; color: var(--ink-muted); }
.hm .checks { list-style: none; display: grid; gap: 8px; font-size: 12.5px; }
.hm .checks li { display: flex; gap: 8px; align-items: baseline; }
.hm .ok { font-style: normal; color: var(--emerald); font-weight: 700; }
.hm .checks .warn { color: var(--amber); font-weight: 700; }
.hm .checks .warn i { font-style: normal; }
.hm .panel-foot { padding-top: 12px; border-top: 2px solid var(--line); color: var(--ink-muted); font-size: 11px; }

/* integrations */
.hm .hm-works { padding: 44px 0; background: #fff; border-block: 3px solid var(--ink-0); }
.hm .hm-small-h { font: 500 13px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px; text-align: center; }
.hm-brands { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hm-brands li { background: #fff; border: 2px solid var(--ink-0); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 14px; color: var(--ink-0); white-space: nowrap; }
.hm-brands li:nth-child(4n+1) { background: #ffe6dd; } .hm-brands li:nth-child(4n+2) { background: #d7efe9; } .hm-brands li:nth-child(4n+3) { background: #fff0c2; }

/* bento (on the vermilion band) */
.hm .bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm .tile { border-radius: 26px; padding: 22px; background: #fff; color: var(--ink-2); border: 3px solid var(--ink-0); box-shadow: var(--pop); display: grid; align-content: start; gap: 8px; min-width: 0; transition: transform 0.15s ease; }
.hm .tile:hover { transform: translate(-2px, -3px) rotate(-0.6deg); }
.hm .tile.t-wide { grid-column: span 2; }
.hm .tile h3 { margin-top: 8px; color: var(--ink-0); }
.hm .tile p { font-size: 14px; color: var(--ink-muted); }
.hm .frag { min-height: 96px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--pc) 12%, var(--cream)); border: 2px solid var(--ink-0); }
.hm .frag-blocks, .hm .frag-roles { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; }
.hm .frag-blocks span, .hm .frag-roles span { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-0); background: #fff; border: 2px solid var(--ink-0); white-space: nowrap; }
.hm .frag-blocks span:nth-child(3n+1) { background: var(--sun); }
.hm .frag-rows { display: grid; gap: 8px; align-content: center; }
.hm .frag-rows div { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.hm .frag-rows .chip { background: #fff; border: 2px solid var(--ink-0); color: var(--amber); }
.hm .frag-shops { align-content: center; margin: 0; }
.hm .frag-code { display: grid; gap: 4px; align-content: center; font-size: 11.5px; color: var(--deep-teal); font-weight: 500; overflow-wrap: anywhere; }
.hm .frag-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px; align-content: center; }
.hm .frag-themes img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border-radius: 6px; border: 2px solid var(--ink-0); }
.hm .frag-file { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-2); }
.hm .zip { display: grid; place-items: center; width: 46px; height: 56px; border-radius: 8px; font-weight: 700; color: var(--ink-0); background: var(--sun); border: 2px solid var(--ink-0); }

/* full list: chapter tiles, then one block per chapter */
.hm-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.hm-tile { display: flex; flex-direction: column; gap: 8px; min-height: 220px; padding: 22px; border-radius: 28px; text-decoration: none; background: var(--pc); color: var(--fg); border: 3px solid var(--ink-0); box-shadow: var(--pop); transition: transform 0.15s ease; }
.hm-tile:hover { transform: translate(-2px, -3px) rotate(-1deg); }
.hm-tile em { font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.hm-tile b { font-family: var(--display); font-size: 17px; line-height: 1.35; }
.hm-num { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; }
.hm .ch { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 40px; margin-top: 28px; padding: clamp(22px, 4vw, 40px); border-radius: 32px; background: color-mix(in srgb, var(--pc) 13%, var(--cream)); border: 3px solid var(--ink-0); scroll-margin-top: 90px; }
.hm .ch-head { position: sticky; top: 100px; align-self: start; }
.hm-badge { display: inline-block; background: var(--pc); color: var(--fg); border: 2px solid var(--ink-0); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 13px; }
.hm .ch-head h3 { font-size: clamp(21px, 2.4vw, 26px); margin: 14px 0 10px; }
.hm .ch-head p { font-size: 14px; color: var(--ink-2); }
.hm .ch-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hm .ch-list li { display: grid; gap: 4px; align-content: start; padding: 16px 18px; background: #fff; border: 2px solid var(--ink-0); border-radius: 18px; min-width: 0; }
.hm .ch-list li.wide { grid-column: 1 / -1; }
.hm .ch-list b { color: var(--ink); font-size: 15px; }
.hm .ch-list span { font-size: 13.5px; color: var(--ink-muted); }
.hm .ch-list .chip { color: var(--ink-0); border-color: var(--line-strong); background: color-mix(in srgb, var(--pc) 16%, #fff); white-space: normal; height: auto; min-height: 26px; }

/* migration (on the teal band) */
.hm .mv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hm .mv-steps { list-style: none; display: grid; gap: 4px; counter-reset: m; }
.hm .mv-steps li { counter-increment: m; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 12px 0; }
.hm .mv-steps li::before { content: counter(m); grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font: 700 17px var(--display); color: var(--ink-0); background: var(--sun); border: 2px solid var(--ink-0); }
.hm .mv-steps b { color: #fff; font-size: 17px; }
.hm .mv-steps span { font-size: 14px; color: rgba(255, 255, 255, 0.92); }
.hm .mv-mock { position: relative; border-radius: 26px; padding: 22px; background: #fff; color: var(--ink-2); border: 3px solid var(--ink-0); box-shadow: 8px 8px 0 var(--ink-0); font-size: 13px; min-width: 0; }
.hm .mv-mock .s-301 { top: -22px; right: 18px; background: var(--red); color: #fff; rotate: 5deg; }
.hm .mv-head { display: flex; gap: 10px; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--line); color: var(--ink); font-weight: 700; }
.hm .mv-head .arrow { color: var(--red); }
.hm .mv-what { list-style: none; display: grid; gap: 8px; padding: 14px 0; }
.hm .mv-what li { display: flex; gap: 8px; }
.hm .mv-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin: 4px 0 8px; }
.hm .mv-redir { display: grid; gap: 8px; font-size: 11.5px; }
.hm .mv-redir div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px; border-radius: 12px; background: var(--cream); border: 2px solid var(--ink-0); color: var(--ink-2); overflow-wrap: anywhere; }
.hm .mv-redir em { font-style: normal; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: var(--ink-0); background: var(--sun); border: 2px solid var(--ink-0); }

/* plans (on the sunflower band) */
.hm .plans { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* invite (on the vermilion band) */
.hm-invite { background: var(--cream); color: var(--ink-2); border: 3px solid var(--ink-0); box-shadow: 8px 8px 0 var(--ink-0); }
.hm-invite h2 { color: var(--ink-0); }
.hm-invite .eyebrow { color: var(--red); }
.hm-invite .lead, .hm-invite .muted { color: var(--ink-2); }
.hm-invite a:not(.btn) { color: var(--deep-teal); }

@media (min-width: 1280px) { .hm .app-body { grid-template-columns: 220px minmax(0, 1fr) 300px; min-height: 480px; } .hm .app { font-size: 14px; } }
@media (min-width: 1536px) { .hm .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hm .app-editor { padding-inline: 64px; } }
@media (max-width: 1060px) { .hm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .hm .app-body { grid-template-columns: minmax(0, 1fr) 220px; }
  .hm .app-side { display: none; }
  .hm .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm .ch, .hm .mv { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hm .ch-head { position: static; }
}
@media (max-width: 639px) {
  .hm .app-bar { gap: 8px; } .hm .lights, .hm .app-actions .chip { display: none; }
  .hm .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hm .app-panel { border-left: 0; border-top: 3px solid var(--ink-0); }
  .hm .bento, .hm .ch-list { grid-template-columns: minmax(0, 1fr); }
  .hm .tile.t-wide { grid-column: auto; }
  .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tile { min-height: 0; }
  .hm .app, .hm .mv-mock, .hm-invite { box-shadow: 4px 4px 0 var(--ink-0); }
  .hm-sticker { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-bob, .hm .score .fill { animation: none; }
  .hm-tile:hover, .hm .tile:hover, .hm .btn:hover { transform: none; }
}

/* Legal pages: the text sits on a white card over the sunflower band, so long reading stays easy. */
.legal-hero .prose {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(20px, 4vw, 44px);
}
