/* HIGHEND Apps – site styles */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f1ece3;
  --card: #ffffff;
  --ink: #1f1e1b;
  --muted: #6b665d;
  --line: #e3dccf;
  --accent: #2f5d50;
  --accent-2: #e7efe9;
  --head: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
svg { display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[id] { scroll-margin-top: 88px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 700 19px/1 var(--head); color: var(--ink); }
.brand svg { color: var(--ink); }
.brand b { letter-spacing: .08em; }
/* The END of HIGHEND sits raised, like the square in the logo's top corner. */
.brand sup { position: relative; top: -.62em; vertical-align: baseline; font-size: .6em; margin-left: .06em; letter-spacing: .06em; color: var(--accent); }
.brand span { font-weight: 500; color: var(--muted); }
nav.main { display: flex; gap: 6px; margin-left: auto; background: var(--card); padding: 5px; border-radius: 12px; border: 1px solid var(--line); }
nav.main a { text-decoration: none; padding: 7px 14px; border-radius: 8px; font-size: 15px; color: var(--muted); }
nav.main a:hover { background: var(--bg); color: var(--ink); }
.lang { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.lang a, .lang span { border-radius: 7px; padding: 5px 9px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); line-height: 1.2; }
.lang a:hover { color: var(--ink); }
.lang [aria-current="true"] { background: var(--accent); color: #fff; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 7px 12px; font-size: 14px; font-weight: 600; }

/* ---------- Buttons, cards ---------- */
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.light { background: var(--card); border: 1px solid var(--line); }
.btn.light:hover { border-color: #cfc6b5; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.eyebrow { display: inline-block; margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-2); padding: 5px 10px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.03em; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 24px; }
.hero-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.02; font-weight: 700; margin: 18px 0; }
.lead { color: var(--muted); margin: 0 0 26px; font-size: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-demo .try { font-size: 14px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.crumb { margin: 0 0 14px; font-size: 15px; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.p-title { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.p-title h1 { margin: 0; }
.p-icon { color: var(--accent); flex: none; }
.status-line { margin: 14px 0 0; }
.tagline-lg { font: 600 22px/1.35 var(--head); letter-spacing: -.01em; margin: 14px 0 10px; }
.hero .req { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 24px 0; }
.sec-card { padding: 48px 56px; }
section h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; margin: 0 0 10px; }
h2.spaced { margin-bottom: 28px; }
.sec-lead { color: var(--muted); margin: 0 0 32px; max-width: 58ch; }

.product { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; padding: 28px; border-radius: 18px; background: var(--bg); }
.p-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-name h3 { font: 700 30px/1.1 var(--head); letter-spacing: -.03em; margin: 0; }
.status { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-2); padding: 4px 8px; border-radius: 6px; }
.tagline { font-weight: 600; margin: 8px 0 6px; font-size: 18px; }
.p-body { color: var(--muted); margin: 0 0 16px; }
.feat { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.feat li { font-size: 14px; background: var(--card); border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; }
.p-cta { display: grid; gap: 10px; justify-items: end; text-align: right; }
.p-cta .req { font-size: 13px; color: var(--muted); max-width: 24ch; }
.more { margin: 14px 0 0; padding: 18px 28px; border: 1.5px dashed var(--line); border-radius: 18px; color: var(--muted); }
.more strong { color: var(--ink); }

.grid4 { display: grid; gap: 14px; }
.grid4 { grid-template-columns: repeat(4, 1fr); }
.grid4 > div { background: var(--bg); border-radius: 16px; padding: 22px; }
.grid4 .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.grid4 h3 { margin: 14px 0 6px; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.grid4 p { margin: 0; color: var(--muted); font-size: 15px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two .card { padding: 40px; }
.two p { color: var(--muted); }
.mail { display: inline-block; font-weight: 700; color: var(--accent); font-size: 20px; text-underline-offset: 4px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: var(--muted); }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px; background: var(--accent-2); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Legal pages ---------- */
.legal { padding: 40px 0 24px; }
.prose { padding: 56px; max-width: 860px; overflow-wrap: break-word; hyphens: auto; }
.prose h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; font-weight: 700; margin: 0 0 16px; }
.prose h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.01em; margin: 34px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose .note { color: var(--muted); font-size: 15px; }
.notfound .eyebrow { margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-foot { padding: 24px 0 48px; font-size: 15px; }
.site-foot .card { padding: 40px 56px; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.fgrid > div { min-width: 0; }
.fhead { margin: 0 0 12px; font: 600 13px/1.3 var(--body); letter-spacing: 0; color: var(--muted); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.site-foot .off { color: #a59f94; }
.soon { font-size: 11px; margin-left: 6px; color: #a59f94; }
.fnote { color: var(--muted); margin: 10px 0 0; max-width: 30ch; }
.copy { margin: 32px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Mail window (interactive preview) ---------- */
.demo {
  --d-bg: #fff; --d-side: #f6f3ed; --d-line: #e6e1d8; --d-text: #1c1b19; --d-muted: #79746b;
  --d-sel: #e8eee9; --d-accent: #2f5d50; --d-mark: #f3e2a6;
  border-radius: 12px; overflow: hidden; background: var(--d-bg); color: var(--d-text);
  border: 1px solid var(--d-line); font-size: 13px; line-height: 1.45; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, var(--body);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -18px rgba(60, 45, 20, .22);
  min-height: 440px;
}
.demo-titlebar { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-bottom: 1px solid var(--d-line); background: var(--d-side); }
.demo-lights { display: flex; gap: 7px; }
.demo-lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.demo-lights i:nth-child(2) { background: #febc2e; }
.demo-lights i:nth-child(3) { background: #28c840; }
.demo-search { margin-left: auto; display: flex; align-items: center; gap: 6px; width: min(240px, 60%); padding: 5px 9px; border-radius: 7px; background: var(--d-bg); border: 1px solid var(--d-line); color: var(--d-muted); }
.demo-search input { border: 0; outline: 0; background: transparent; color: var(--d-text); width: 100%; font: inherit; }
.demo-body { display: grid; grid-template-columns: 112px 200px minmax(0, 1fr); height: 380px; }
.demo-sidebar { background: var(--d-side); border-right: 1px solid var(--d-line); padding: 10px 6px; }
.demo-sidebar span { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 6px; color: var(--d-muted); }
.demo-sidebar span.active { background: var(--d-sel); color: var(--d-text); font-weight: 600; }
.demo-sidebar b { font-size: 11px; color: var(--d-muted); font-weight: 600; }
.demo-list { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--d-line); overflow: auto; }
.demo-list li { padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--d-line); cursor: pointer; position: relative; outline: none; }
.demo-list li:focus-visible { box-shadow: inset 0 0 0 2px var(--d-accent); }
.demo-list li[aria-selected="true"] { background: var(--d-sel); }
.demo-list li.unread::before { content: ""; position: absolute; left: 6px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--d-accent); }
.demo-row1 { display: flex; justify-content: space-between; gap: 8px; }
.demo-from { font-weight: 600; }
.demo-time, .demo-preview { color: var(--d-muted); font-size: 12px; }
.demo-subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.demo-empty { color: var(--d-muted); cursor: default !important; }
.demo mark { background: var(--d-mark); color: inherit; border-radius: 2px; }
.demo-read { padding: 16px 18px; overflow: auto; }
.demo-subject-lg { font-size: 15px; font-weight: 650; }
.demo-meta { color: var(--d-muted); font-size: 12px; margin-top: 2px; }
.demo-actions { display: flex; gap: 6px; margin: 12px 0; }
.demo-actions button { white-space: nowrap; border: 1px solid var(--d-line); background: var(--d-bg); color: var(--d-text); border-radius: 7px; padding: 5px 10px; font-size: 12px; }
.demo-actions .demo-sum { background: var(--d-accent); border-color: var(--d-accent); color: #fff; }
.demo-reply { opacity: .55; cursor: default !important; }
.demo-summary { border: 1px solid var(--d-line); border-left: 3px solid var(--d-accent); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: var(--d-side); }
.demo-summary-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--d-accent); font-weight: 700; }
.demo-summary p { margin: 4px 0 6px; min-height: 1.45em; }
.demo-summary small { color: var(--d-muted); font-size: 11px; }
.demo-attachment { margin-top: 12px; display: inline-block; padding: 6px 10px; border: 1px solid var(--d-line); border-radius: 7px; color: var(--d-muted); font-size: 12px; }
.demo-status { font-size: 11px; color: var(--d-muted); padding: 0 12px; border-top: 1px solid var(--d-line); background: var(--d-side); }
.demo-status:not(:empty) { padding: 6px 12px; }

/* ---------- MailClient page: chapters ---------- */
.subnav { position: sticky; top: 72px; z-index: 5; background: var(--bg); padding: 10px 0; }
.subnav .wrap { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.subnav ~ section[id], .subnav ~ section [id] { scroll-margin-top: 140px; }
.glance { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.glance span { font-size: 14px; background: var(--bg); border: 1px solid var(--line); padding: 6px 11px; border-radius: 999px; }
.glance.big { margin-top: 0; }
.glance.big span { font-size: 16px; padding: 9px 15px; }
.chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding: 48px 56px; }
.chapter.flip > :first-child { order: 2; }
.chapter .lead { margin-bottom: 18px; }
.kicker { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.chapter h2 { margin: 6px 0 12px; }
.bul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.bul li { position: relative; padding-left: 26px; font-size: 16px; }
.bul li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 5px; background: var(--accent-2); }
.bul li::after { content: ""; position: absolute; left: 5px; top: calc(.42em + 3px); width: 4px; height: 7px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- MailClient page: previews ---------- */
.w-side { min-width: 0; font-family: -apple-system, BlinkMacSystemFont, var(--body); font-size: 13px; line-height: 1.45; }
.w-side .glance.big { font-family: var(--body); }
.win { background: #fff; border: 1px solid #e6e1d8; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -18px rgba(60, 45, 20, .22); }
.win-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f6f3ed; border-bottom: 1px solid #e6e1d8; }
.win-bar .lights { display: flex; gap: 6px; }
.win-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.win-bar .lights i:nth-child(2) { background: #febc2e; }
.win-bar .lights i:nth-child(3) { background: #28c840; }
.win-bar .ttl { font-weight: 600; color: #6b665d; font-size: 12px; }
.w-note { margin: 8px 2px 0; color: var(--muted); font-size: 13px; }
.wbtn { border: 1px solid #e0dacd; background: #fff; color: #1c1b19; border-radius: 7px; padding: 5px 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.wbtn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }

.sp-field { display: flex; align-items: center; gap: 8px; flex: 1; background: #fff; border: 1px solid #e6e1d8; border-radius: 8px; padding: 6px 10px; color: #8b867c; }
.sp-field input { border: 0; outline: 0; width: 100%; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: transparent; color: #1c1b19; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #efeae1; }
.sp-chips button { border: 1px solid #e6e1d8; background: #faf8f4; border-radius: 6px; padding: 3px 8px; font: 12px ui-monospace, Menlo, monospace; color: #3b3934; }
.sp-chips button:hover { border-color: var(--accent); }
.sp-tokens { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 12px 0; min-height: 8px; }
.sp-tokens span { font: 11px ui-monospace, Menlo, monospace; padding: 2px 6px; border-radius: 5px; background: var(--accent-2); color: var(--accent); }
.sp-tokens span.neg { background: #fbe3e0; color: #a3372b; }
.sp-list { list-style: none; margin: 0; padding: 6px 0; max-height: 236px; overflow: auto; }
.sp-list li { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #f2eee7; align-items: baseline; }
.sp-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); align-self: center; }
.sp-list .who { font-weight: 600; }
.sp-list .sub { color: #555; }
.sp-list .meta { color: #8b867c; font-size: 12px; white-space: nowrap; }
.sp-list .pic { grid-column: 2 / -1; color: var(--accent); font-size: 12px; }
.sp-list .none { display: block; color: #8b867c; }
.sp-count { padding: 6px 12px; font-size: 12px; color: #6b665d; background: #f6f3ed; border-top: 1px solid #e6e1d8; }
.sp-count.zero { color: #b3261e; }
.w-side mark { background: #ffe58a; color: inherit; border-radius: 2px; }

.cp-fields { padding: 8px 14px; border-bottom: 1px solid #efeae1; color: #6b665d; display: grid; gap: 4px; }
.cp-fields b { color: #1c1b19; font-weight: 600; }
.cp-text { display: block; width: 100%; min-height: 120px; border: 0; outline: 0; resize: vertical; padding: 12px 14px; font: 13px/1.5 -apple-system, BlinkMacSystemFont, var(--body); color: #1c1b19; }
.cp-att { margin: 0 14px 10px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; border: 1px solid #e6e1d8; border-radius: 7px; color: #6b665d; font-size: 12px; }
.cp-warn { margin: 0 14px 10px; padding: 9px 11px; border-radius: 8px; background: #fff4dc; border: 1px solid #f0d58a; color: #6b4e0b; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cp-warn span { flex: 1 1 200px; }
.cp-bar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid #efeae1; background: #faf8f4; flex-wrap: wrap; position: relative; }
.cp-menu { position: absolute; bottom: 44px; left: 14px; background: #fff; border: 1px solid #e0dacd; border-radius: 9px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); padding: 5px; display: grid; min-width: 210px; z-index: 2; }
.cp-menu button { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.cp-menu button:hover, .cp-menu button:focus-visible { background: #f1ece3; }
.cp-status { margin-left: auto; color: #6b665d; font-size: 12px; }
.cp-toast { display: flex; gap: 10px; align-items: center; background: #1f1e1b; color: #fff; padding: 8px 12px; border-radius: 9px; margin: 0 14px 10px; }
.cp-toast .wbtn { background: transparent; color: #fff; border-color: #555; }
.cp-toast .bar { flex: 1; height: 3px; background: #444; border-radius: 3px; overflow: hidden; }
.cp-toast .bar i { display: block; height: 100%; width: 100%; background: #9fd3bf; transition: width 5s linear; }
.cp-toast .bar i.go { width: 0; }

.rw-in, .rw-out { padding: 12px 14px; }
.rw-in { border-bottom: 1px solid #efeae1; color: #444; }
.rw-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: #8b867c; margin-bottom: 4px; }
.rw-out { min-height: 92px; }
.rw-out .rw-label { color: var(--accent); }
.rw-out p { margin: 0; }
.rw-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid #efeae1; background: #faf8f4; }
.rw-btns .wbtn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.pal { background: #fff; border: 1px solid #e0dacd; border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(40, 30, 10, .35); overflow: hidden; }
.pal input { width: 100%; border: 0; outline: 0; padding: 14px 16px; font: 15px -apple-system, BlinkMacSystemFont, var(--body); border-bottom: 1px solid #efeae1; color: #1c1b19; }
.pal ul { position: relative; list-style: none; margin: 0; padding: 6px; max-height: 248px; overflow: auto; }
.pal li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.pal .grp { color: #8b867c; font-size: 12px; margin-right: 8px; }
.pal kbd { font: 12px -apple-system, var(--body); color: #6b665d; }
.pal li[aria-selected="true"] { background: var(--accent); color: #fff; }
.pal li[aria-selected="true"] .grp, .pal li[aria-selected="true"] kbd { color: #d9ebe3; }
.pal .foot { padding: 8px 14px; font-size: 12px; color: #6b665d; background: #faf8f4; border-top: 1px solid #efeae1; }

.th-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.th-list button { border: 1px solid #e0dacd; background: #fff; color: #1c1b19; border-radius: 999px; padding: 4px 10px 4px 5px; font-size: 12px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.th-list button i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.th-list button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.th-win { --t-bg: #fff; --t-side: #f5f5f7; --t-text: #1d1d1f; --t-muted: #86868b; --t-acc: #0a84ff; --t-sel: #dbe9fe; background: var(--t-bg); color: var(--t-text); border-radius: 12px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .12); transition: background .25s, color .25s; }
.th-win .tb { display: flex; gap: 6px; padding: 9px 12px; background: var(--t-side); }
.th-win .tb i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.th-win .tb i:nth-child(2) { background: #febc2e; }
.th-win .tb i:nth-child(3) { background: #28c840; }
.th-win.serif { font-family: Georgia, "Times New Roman", serif; }
.th-body { display: grid; grid-template-columns: 96px 1fr; min-height: 188px; }
.th-side { background: var(--t-side); padding: 8px 6px; font-size: 12px; color: var(--t-muted); display: grid; gap: 2px; align-content: start; }
.th-side span { padding: 4px 7px; border-radius: 5px; }
.th-side span.on { background: var(--t-sel); color: var(--t-text); font-weight: 600; }
.th-rows > div { padding: 8px 12px 8px 22px; border-bottom: 1px solid color-mix(in srgb, var(--t-text) 10%, transparent); position: relative; }
.th-rows > div.sel { background: var(--t-sel); }
.th-rows > div.u::before { content: ""; position: absolute; left: 9px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--t-acc); }
.th-rows b { font-weight: 600; }
.th-rows small { color: var(--t-muted); display: block; font-size: 11px; }

.ro-bar { margin: 12px; padding: 10px 12px; border-radius: 9px; background: #e7efe9; border: 1px solid #c9dccf; color: #23453b; display: grid; gap: 8px; }
.ro-bar .btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ro-rows > div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 14px; border-bottom: 1px solid #f2eee7; }
.ro-rows > div span:first-child { font-weight: 600; }
.ro-rows > div.done { opacity: .35; text-decoration: line-through; }
.ro-rows .fold { color: #8b867c; font-size: 12px; }
.ro-done { margin: 12px; padding: 10px 12px; border-radius: 9px; background: #f6f3ed; color: #3b3934; }

.sec-line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; margin: 10px 12px; }
.sec-line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; font-size: 11px; margin-top: 1px; }
.sec-line.g { background: #e6f4ea; color: #1e5631; } .sec-line.g i { background: #2e7d4f; }
.sec-line.o { background: #fff2dc; color: #6b4e0b; } .sec-line.o i { background: #d08a12; }
.sec-line.r { background: #fde7e5; color: #8a2a20; } .sec-line.r i { background: #c0392b; }
.sec-gap { height: 2px; }

.cn-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #f2eee7; align-items: center; }
.cn-row:last-child { border-bottom: 0; }
.cn-row small { display: block; color: #8b867c; font-size: 12px; }
.cn-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.cn-tag.yes { background: #e7efe9; color: #2f5d50; }
.cn-tag.opt { background: #f3ead5; color: #7a5a1d; }
.cn-tag.no { background: #f1ece3; color: #8b867c; }

.ac-row { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f2eee7; }
.ac-row:last-child { border-bottom: 0; }
.ac-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; flex: none; }
.ac-ico.g { background: #ea4335; } .ac-ico.m { background: #0a64d6; } .ac-ico.i { background: #2f5d50; } .ac-ico.p { background: #8b867c; }
.ac-row small { display: block; color: #8b867c; font-size: 12px; }
.ac-row .ok { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #28c840; }

/* ---------- Coming soon (before launch, see LAUNCHED in build.py) ---------- */
body.prelaunch { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.prelaunch main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
body.prelaunch .bar .lang { margin-left: auto; }
.soon-mark { text-align: center; padding: 40px 0 56px; }
.soon-mark .big-mark { width: 132px; height: 132px; margin: 0 auto 28px; color: var(--ink); }
.soon-mark .big-word { font: 700 clamp(40px, 7vw, 76px)/1 var(--head); letter-spacing: .06em; margin: 0; }
.soon-mark .big-word sup { position: relative; top: -.62em; vertical-align: baseline; font-size: .6em; margin-left: .04em; letter-spacing: .06em; color: var(--accent); }
.soon-mark .big-word span { font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: .3em; }
.soon-mark p { color: var(--muted); margin: 0 auto; max-width: 46ch; }
.soon-mark .line { font: 600 clamp(20px, 2.6vw, 26px)/1.3 var(--head); letter-spacing: -.01em; margin: 26px auto 8px; color: var(--ink); }
.soon-foot { padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.soon-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.soon-foot span { margin-right: auto; }
.soon-foot a { color: var(--muted); text-decoration: none; }
.soon-foot a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .soon-mark .big-mark { width: 104px; height: 104px; }
  .soon-mark .big-word span { display: block; margin: 12px 0 0; font-size: .6em; }
  .soon-foot span { flex-basis: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-card { grid-template-columns: 1fr; padding: 32px; }
  .product { grid-template-columns: auto 1fr; }
  .p-cta { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .chapter { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .chapter.flip > :first-child { order: 0; }
}
@media (max-width: 860px) {
  .bar { gap: 10px; }
  .bar .lang { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  nav.main {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 16px 16px; margin: 0;
    background: var(--bg); border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
  }
  .site-head.open nav.main { display: flex; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  nav.main a:last-child { border-bottom: 0; }
  nav.main a:hover { background: transparent; }
  .sec-card, .site-foot .card, .two .card, .prose { padding: 28px 22px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .demo { min-height: 0; }
  .demo-body { grid-template-columns: 1fr; height: auto; }
  .demo-sidebar { display: none; }
  .demo-list { max-height: 210px; border-right: 0; border-bottom: 1px solid var(--d-line); }
  .demo-read { max-height: 330px; }
}
@media (max-width: 560px) {
  .hero-card, .chapter { padding: 22px; }
  .grid4, .fgrid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; padding: 20px; }
  .bar .brand { font-size: 17px; }
  .bar { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
