/* owt studios — one system: a clean product interface.
   White ground, near-black ink, one blue. Panels, not posters. */

:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --surface-2: #eceef2;
  --line: #e3e6eb;
  --ink: #0f1115;
  --ink-2: #2a2e36;
  --muted: #5a606c;
  --accent: #1a4be0;
  --accent-strong: #1238b0;
  --accent-soft: #edf1ff;
  --dark: #0f1115;
  --dark-2: #1a1d24;
  --dark-line: #2a2e38;
  --dark-muted: #a9afbb;
  --good: #157a3b;
  --good-soft: #e3f5e8;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --fs-h1: clamp(2.75rem, 1.6rem + 4.4vw, 5.25rem);

  --max: 1240px;
  --margin: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(72px, 9vw, 128px);
  --r: 14px;
  --r-sm: 10px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.04em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.025em; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .band :focus-visible { outline-color: #fff; }
html { scrollbar-color: #c3c8d1 var(--surface); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
  padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--margin) * 2); margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.surface { background: var(--surface); }
.dark { background: var(--dark); color: #fff; }
.dark .muted, .dark .sub { color: var(--dark-muted); }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -0.012em; }

.sec-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap) clamp(24px, 5vw, 80px);
  align-items: end; margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head .lead { color: var(--muted); }
.dark .sec-head .lead { color: var(--dark-muted); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) ease;
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-weight: 600; font-size: var(--fs-small); }
.site-header nav a:not(.btn) { text-decoration: none; color: var(--ink-2); padding-block: 8px; transition: color var(--t-hover) ease; }
.site-header nav a:not(.btn)[aria-current="page"] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .site-header nav a:not(.btn):hover { color: var(--accent); } }


.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.035em; }
.wordmark .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 0.8125rem; letter-spacing: -0.04em; }
.wordmark .wm { display: inline-flex; }
.wordmark .wm span { display: inline-block; transition: transform 520ms var(--ease-in-out); }
.wordmark .wm-studio { font-weight: 600; letter-spacing: -0.02em; color: var(--ink-2); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; font-weight: 600; font-size: var(--fs-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: var(--fs-small); }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); }
.btn.dark-btn { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-strong); }
  .btn.ghost:hover { background: var(--surface-2); }
  .btn.white:hover { background: var(--accent-soft); }
  .btn.dark-btn:hover { background: var(--accent); }
  .btn:hover svg { transform: translateX(3px); }
}
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; text-decoration-color: rgba(26, 75, 224, 0.3); transition: text-decoration-color var(--t-hover) ease; }
.dark .link { color: #9db3ff; text-decoration-color: rgba(157, 179, 255, 0.35); }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 24px; max-width: 34ch; color: var(--ink-2); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.ticks { margin-top: 32px; display: grid; gap: 10px; font-size: var(--fs-small); color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.hero-stage { position: relative; background: var(--surface); border-radius: calc(var(--r) + 6px); padding: clamp(14px, 2vw, 24px); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
}

/* inner page hero */
.page-hero { padding-block: clamp(48px, 7vw, 104px) clamp(48px, 6vw, 88px); }
.page-hero .hero-grid { align-items: end; }
.page-hero .lead { margin-top: 0; color: var(--muted); max-width: 40ch; }
.page-hero h1 { max-width: 14ch; }

/* ---------- panels and cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 32px);
  transition: border-color var(--t-hover) ease, transform var(--t-ui) var(--ease-out);
}
.surface .card { border-color: transparent; }
.dark .card { background: var(--dark-2); border-color: var(--dark-line); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.dark .card p { color: var(--dark-muted); }
a.card { display: block; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a.card:hover { border-color: var(--accent); } }

.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; }
.dark .icon { background: rgba(26, 75, 224, 0.22); color: #9db3ff; }

.checklist { display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231a4be0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.dark .checklist li::before { background-color: rgba(26, 75, 224, 0.28); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%239db3ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); }

/* ---------- proof strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stat { background: var(--surface); border-radius: var(--r); padding: clamp(20px, 2.4vw, 30px); }
.stat .n { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--ink); }
.stat .x { display: block; margin-top: 12px; font-size: var(--fs-small); color: var(--muted); }
.stats-note { margin-top: 16px; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- solutions (tabs) ---------- */
.solutions { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.tablist { display: grid; gap: 8px; position: sticky; top: 96px; }
.tab {
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-items: center; text-align: left;
  width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: var(--r); background: transparent;
  cursor: pointer; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.tab .ti { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.tab .ti svg { width: 20px; height: 20px; }
.tab .tn { font-weight: 700; letter-spacing: -0.02em; }
.tab .td { font-size: 0.875rem; color: var(--muted); line-height: 1.35; }
.tab[aria-selected="true"] { background: #fff; border-color: var(--line); }
.tab[aria-selected="true"] .ti { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-selected="true"]):hover { background: rgba(255, 255, 255, 0.6); } }
.tabpanel[hidden] { display: none; }
.tabpanel .panel-meta { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); font-size: var(--fs-small); }
.tabpanel .panel-meta dt { font-weight: 700; }
.tabpanel .panel-meta dd { margin: 2px 0 0; color: var(--muted); }
.solutions-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
@media (max-width: 960px) {
  .solutions { grid-template-columns: 1fr; }
  .tablist { position: static; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
  .tab { scroll-snap-align: start; background: rgba(255, 255, 255, 0.55); }
  .tabpanel .panel-meta { grid-template-columns: 1fr; }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 28px; }
.surface .step { border-color: transparent; }
.step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9375rem; margin-bottom: 18px; }
.step .when { display: block; margin-top: 14px; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- offers ---------- */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.offer { display: flex; flex-direction: column; }
.offer .checklist { margin-top: 18px; font-size: var(--fs-small); color: var(--ink-2); }
.dark .offer .checklist { color: #e6e8ec; }
.offer .more { margin-top: auto; padding-top: 22px; }
@media (max-width: 960px) { .offers { grid-template-columns: 1fr; } }

/* ---------- split (text + panel) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.reverse > :first-child { order: 2; }
.split h2 + .lead, .split h2 + p { margin-top: 20px; }
.split .lead { color: var(--muted); }
.dark .split .lead { color: var(--dark-muted); }
.split .checklist { margin-top: 24px; }
.split .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
@media (max-width: 960px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- tools ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.surface .tools li { border-color: transparent; }

/* ---------- about teaser ---------- */
.portrait {
  aspect-ratio: 4 / 5; border-radius: calc(var(--r) + 6px); background: var(--surface-2);
  display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 600; line-height: 1.35;
  position: relative; overflow: hidden;
}
.portrait .initials { font-size: clamp(4rem, 9vw, 7rem); font-weight: 800; letter-spacing: -0.06em; color: #fff; line-height: 1; }
.portrait.filled { background: var(--accent); }
.portrait .ph-note { position: absolute; left: 16px; bottom: 14px; right: 16px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.82); font-weight: 600; text-align: left; }

/* ---------- CTA panel ---------- */
.band {
  background: var(--accent); color: #fff; border-radius: calc(var(--r) + 10px);
  padding: clamp(36px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap) clamp(24px, 5vw, 80px); align-items: end;
}
.band h2 { max-width: 16ch; }
.band p { color: rgba(255, 255, 255, 0.86); }
.band .band-actions { display: grid; gap: 16px; justify-items: start; }
.band .band-actions .alt { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.86); }
.band .band-actions .alt a { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding-block: clamp(56px, 7vw, 88px) 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px var(--gap); }
.footer-grid .wordmark .wm-studio { color: #d5d9e0; }
.footer-grid .about-line { margin-top: 16px; color: var(--dark-muted); max-width: 34ch; font-size: var(--fs-small); }
.footer-grid h3 { font-size: 0.9375rem; letter-spacing: -0.01em; margin-bottom: 14px; color: #fff; }
.footer-grid ul { display: grid; gap: 10px; font-size: var(--fs-small); }
.footer-grid ul a { color: var(--dark-muted); text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .footer-grid ul a:hover { color: #fff; } }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: var(--dark-muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.surface .faq details { border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 8px; top: 13px; width: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t-ui) var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq .a { padding: 0 24px 22px; color: var(--muted); max-width: 70ch; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--accent); } }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field .opt { font-weight: 400; color: var(--muted); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form input, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: #fff;
  border: 1px solid #d3d7de; border-radius: var(--r-sm); font-size: var(--fs-body); caret-color: var(--accent);
  transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}
.form textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.form input::placeholder, .form textarea::placeholder { color: #8a909b; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(26, 75, 224, 0.15); }
.form [aria-invalid="true"] { border-color: #c4281c; }
.form .err { color: #b3261e; font-size: var(--fs-small); font-weight: 600; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-status { font-weight: 600; max-width: 44ch; }
.btn:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 640px) { .field-pair { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 750ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 650ms var(--ease-out); }
  .js [data-stagger].is-in > * { opacity: 1; transform: none; }
  .js [data-stagger].is-in > *:nth-child(2) { transition-delay: 70ms; }
  .js [data-stagger].is-in > *:nth-child(3) { transition-delay: 140ms; }
  .js [data-stagger].is-in > *:nth-child(4) { transition-delay: 210ms; }
  .js [data-stagger].is-in > *:nth-child(5) { transition-delay: 280ms; }
  .js [data-stagger].is-in > *:nth-child(n+6) { transition-delay: 350ms; }
  .js .hero [data-rise] { opacity: 0; transform: translateY(16px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 80ms + 80ms); }
  .tabpanel:not([hidden]) { animation: panel-in 380ms var(--ease-out); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- interface fragments (demos) ---------- */
[data-ui] {
  --ui-line: #e3e6eb; --ui-soft: #f5f6f8; --ui-muted: #646a76;
  background: #fff; color: var(--ink); border: 1px solid var(--ui-line); border-radius: var(--r);
  overflow: hidden; font-size: 0.9375rem; line-height: 1.45;
}
.hero-stage [data-ui], .surface [data-ui] { border-color: transparent; }
.dark [data-ui] { border-color: transparent; }
[data-ui] .ui-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--ui-line); font-weight: 600; font-size: 0.875rem;
}
[data-ui] .ui-bar .dots3 { display: inline-flex; gap: 6px; margin-right: 10px; }
[data-ui] .ui-bar .dots3 i { width: 10px; height: 10px; border-radius: 50%; background: #e1e4ea; }
[data-ui] .ui-bar .title { display: inline-flex; align-items: center; }
[data-ui] .ui-bar .status { font-weight: 600; font-size: 0.75rem; color: var(--ui-muted); background: var(--ui-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
[data-ui] .ui-bar .status.live { color: var(--good); background: var(--good-soft); }
[data-ui] .ui-body { padding: 16px; }
.ui-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--ui-line); background: var(--ui-soft); font-size: 0.875rem; }
.ui-foot b { font-variant-numeric: tabular-nums; }

.log { min-height: 0; }
.log li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--ui-line); transition: opacity 360ms ease; }
.log li:last-child { border-bottom: 0; }
.log .t { font-size: 0.8125rem; color: var(--ui-muted); padding-top: 2px; font-weight: 600; }
.log .what b { font-weight: 700; }
.log .what .sub { display: block; color: var(--ui-muted); font-size: 0.875rem; }
.log .bubble { display: inline-block; margin-top: 6px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; max-width: 36ch; font-size: 0.875rem; }
.log .bubble.them { background: #eceef2; color: var(--ink); border-radius: 14px 14px 14px 4px; }
.log li.pending { opacity: 0.25; }
.log li.done .t { color: var(--accent); }

/* demo interface pieces (inside data-ui) */
.ui .ui-body { min-height: 360px; }
.ui-btn {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: #ececec; color: var(--ink); font-weight: 600; font-size: 0.9375rem;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.ui-btn:active { transform: scale(0.97); }
.ui-btn.primary { background: var(--accent); color: #fff; }
.ui-btn.small { min-height: 36px; padding: 0 12px; font-size: 0.875rem; }
.ui-btn:disabled { opacity: 0.55; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .ui-btn:not(:disabled):hover { background: #dedede; }
  .ui-btn.primary:not(:disabled):hover { background: var(--accent-strong); }
}
.ui-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.ui-actions .hint { width: 100%; font-size: 0.875rem; color: var(--ui-muted); }
.thread { display: grid; gap: 10px; }
.thread .msg, .thread .evt { opacity: 0; transform: translateY(8px); transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out); }
.thread .in { opacity: 1; transform: none; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 0.9375rem; }
.msg.us { background: var(--accent); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.msg.them { background: #ececec; justify-self: start; border-bottom-left-radius: 4px; }
.msg .meta { display: block; font-size: 0.75rem; opacity: 0.8; margin-bottom: 2px; }
.evt { font-size: 0.875rem; color: var(--ui-muted); text-align: center; padding: 4px 8px; }
.evt b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .thread .msg, .thread .evt { transition: none; } }

.mails { display: grid; gap: 6px; }
.mail-btn { width: 100%; text-align: left; display: grid; grid-template-columns: 9.5em 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; min-height: 44px; border: 0; background: var(--ui-soft); border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: background-color var(--t-hover) ease; }
.mail-btn .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-btn .subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3a3a3a; }
@media (hover: hover) and (pointer: fine) { .mail-btn:hover { background: #ececec; } }
.label { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.l-quote { background: #dfe6ff; color: #12309a; }
.l-change { background: #ffe9a8; color: #5a4300; }
.l-invoice { background: #e6e6e6; color: #333; }
.l-review { background: #d8f2df; color: #145c2b; }
.l-spam { background: #f1f1f1; color: #6a6a6a; }
.draft { margin-top: 14px; padding: 14px; background: var(--ui-soft); border-radius: 8px; font-size: 0.9375rem; }
.draft p + p { margin-top: 8px; }
.draft .d-head { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.draft .d-body { color: #444; }
.draft .d-draft-label, .draft .d-note { font-size: 0.8125rem; color: var(--ui-muted); }
.draft .d-draft { background: #fff; padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: 4px; }
.try { margin-top: 16px; display: grid; gap: 8px; }
.try label, .ui-field label { font-size: 0.875rem; font-weight: 600; }
.try textarea, .ui-field input, .ui-field select {
  width: 100%; border: 1px solid #d6d6d6; border-radius: 8px; padding: 10px 12px; min-height: 44px; background: #fff; font-size: 0.9375rem;
}
.try textarea:focus, .ui-field input:focus, .ui-field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.try .ui-btn { justify-self: start; }
@media (max-width: 520px) { .mail-btn { grid-template-columns: 1fr; gap: 2px; } }

.intake { display: grid; gap: 12px; }
.ui-field { display: grid; gap: 6px; }
.ui-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intake .ui-btn { justify-self: start; margin-top: 4px; }
.lead-card { padding: 16px; display: grid; gap: 12px; min-height: 360px; align-content: start; }
.lead-top { display: flex; justify-content: space-between; align-items: center; }
.lead-top .when { font-size: 0.8125rem; color: var(--ui-muted); }
.lead-sum { font-size: 1.0625rem; }
.lead-dl { display: grid; gap: 10px; background: var(--ui-soft); padding: 12px; border-radius: 8px; }
.lead-dl dt { font-size: 0.8125rem; color: var(--ui-muted); }
.lead-dl dd { margin: 0; font-weight: 600; }
.lead-card .ui-btn { justify-self: start; }

.jobs { display: grid; gap: 6px; margin-bottom: 16px; }
.jobs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: var(--ui-soft); border-radius: 8px; min-height: 52px; font-size: 0.9375rem; }
.jobs li.faded { opacity: 0.55; }
.chip { font-size: 0.8125rem; color: var(--ui-muted); white-space: nowrap; }
.chip.ok { color: #145c2b; font-weight: 600; }
.stars { display: flex; gap: 4px; }
.star { width: 44px; height: 44px; border: 0; background: none; padding: 6px; cursor: pointer; color: #cfcfcf; transition: color 120ms ease, transform var(--t-press) var(--ease-out); }
.star svg { width: 100%; height: 100%; fill: currentColor; }
.star.on, .star:focus-visible { color: #f2b300; }
.star:active { transform: scale(0.9); }

.inv { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.inv th { text-align: left; font-size: 0.8125rem; color: var(--ui-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--ui-line); }
.inv td { padding: 10px 8px; border-bottom: 1px solid var(--ui-line); vertical-align: middle; }
.inv td .sub { display: block; font-size: 0.8125rem; color: var(--ui-muted); }
.inv .num { white-space: nowrap; }
.inv tr.paid td { color: var(--ui-muted); }
.mini-log { margin-top: 14px; display: grid; gap: 6px; max-height: 210px; overflow: auto; }
.mini-log li { display: grid; grid-template-columns: 4em 1fr; gap: 8px; font-size: 0.875rem; padding: 8px 10px; background: var(--ui-soft); border-radius: 8px; opacity: 0; transform: translateY(-6px); transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); }
.mini-log li.in { opacity: 1; transform: none; }
.mini-log li.good { background: #e3f5e8; }
.mini-log .t { color: var(--ui-muted); font-weight: 600; }
@media (max-width: 520px) { .inv th:nth-child(2), .inv td:nth-child(2) { display: none; } }

.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.checks legend { font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.checks label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; background: var(--ui-soft); border-radius: 999px; font-size: 0.875rem; cursor: pointer; }
.checks input { accent-color: var(--accent); width: 16px; height: 16px; }
.seg { margin-top: 12px; display: inline-flex; background: var(--ui-soft); border-radius: 10px; padding: 3px; }
.seg-btn { min-height: 38px; padding: 0 14px; border: 0; background: none; border-radius: 8px; font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: background-color var(--t-hover) ease; }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.phone-msg { margin-top: 16px; background: #ececec; border-radius: 18px 18px 18px 4px; padding: 14px 16px; max-width: 36ch; font-size: 0.9375rem; }
.phone-msg ul { margin: 8px 0; display: grid; gap: 6px; }
.phone-msg li { padding-left: 0.9em; position: relative; }
.phone-msg li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.phone-msg .pm-head { font-weight: 600; }
.phone-msg .pm-foot, .phone-msg .pm-empty { color: var(--ui-muted); font-size: 0.875rem; }

/* demo panels: keep a steady height so tabs don't jump */
.ui .ui-body { min-height: 380px; }
.ui-btn { border-radius: 10px; }
.msg.them, .ui-btn, .mail-btn, .jobs li, .draft, .lead-dl, .mini-log li, .checks label, .seg { border-radius: 10px; }

/* ---------- demos page ---------- */
.demo-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-index a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; background: var(--surface); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.demo-index a .ti { width: 32px; height: 32px; border-radius: 8px; background: #fff; display: grid; place-items: center; color: var(--accent); flex: none; }
.demo-index a .ti svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .demo-index a:hover { background: var(--accent-soft); color: var(--accent); } }
@media (max-width: 560px) { .demo-index { grid-template-columns: 1fr; } }
.demo .split { align-items: start; }
.demo .split > :not([data-ui-wrap]) { position: sticky; top: 104px; }
.demo .biz { margin-top: 16px; font-weight: 600; color: var(--ink-2); }
.demo .split p.body { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.specs { margin-top: 24px; display: grid; gap: 14px; }
.specs dt { font-weight: 700; }
.specs dd { margin: 2px 0 0; color: var(--muted); max-width: 46ch; }
.dark .specs dd, .dark .demo .split p.body { color: var(--dark-muted); }
.dark .demo .biz { color: #e6e8ec; }
@media (max-width: 960px) { .demo .split > :not([data-ui-wrap]) { position: static; } }

/* ---------- page components ---------- */
.gap-top { margin-top: 16px; }
.split .muted.gap-top { max-width: 52ch; }
.split .actions { margin-top: 28px; }
.list-title { margin-top: 28px; font-weight: 700; }
.list-title + .checklist { margin-top: 12px; }
.split .icon + h2, .sec-head .icon + h2 { margin-top: 0; }

.jump { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.jump a svg { width: 18px; height: 18px; color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .jump a:hover { background: var(--accent-soft); color: var(--accent); } }
.page-hero h1, .hero h1 { text-wrap: balance; }

/* runbook */
.runbook { display: grid; gap: 2px; padding: 8px 16px; }
.rb-row { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ui-line); }
.rb-row:last-child { border-bottom: 0; }
.rb-k { font-weight: 700; }
.rb-v { color: #3d424b; }
@media (max-width: 520px) { .rb-row { grid-template-columns: 1fr; gap: 2px; } }

/* agenda */
.agenda { display: grid; }
.agenda li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ui-line); }
.agenda li:last-child { border-bottom: 0; }
.agenda .t { font-weight: 700; color: var(--accent); }
.agenda .sub { display: block; color: var(--ui-muted); font-size: 0.875rem; }

/* mini website */
.minisite { display: grid; gap: 12px; background: var(--ui-soft); }
.ms-hero { background: #1f3b2f; color: #fff; border-radius: 12px; padding: 28px 24px; }
.ms-name { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.ms-tag { opacity: 0.8; margin-top: 4px; }
.ms-actions { margin-top: 18px; display: flex; gap: 8px; }
.ms-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 8px; background: #f2c14e; color: #1f1a0a; font-weight: 700; font-size: 0.875rem; }
.ms-btn.ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ms-card { background: #fff; border-radius: 12px; padding: 14px 16px; }
.ms-card.wide { grid-column: 1 / -1; }
.ms-k { font-size: 0.8125rem; font-weight: 700; color: var(--ui-muted); }
.ms-slots { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ms-slots span { padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 0.8125rem; }
.ms-big { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-top: 4px; }
.ms-s { font-size: 0.875rem; color: var(--ui-muted); margin-top: 4px; }

/* automation library */
.mini-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.mini-card { display: grid; gap: 14px; align-content: start; background: #fff; border-radius: var(--r); padding: 22px; }
.mini-card .mi { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.mini-card .mi svg { width: 20px; height: 20px; }
.mini-card b { display: block; letter-spacing: -0.02em; }
.mini-card .sub { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-small); }
.mini-card:last-child { background: var(--ink); color: #fff; }
.mini-card:last-child .sub { color: var(--dark-muted); }
.mini-card:last-child .mi { background: var(--accent); color: #fff; }
@media (max-width: 960px) { .mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mini-cards { grid-template-columns: 1fr; } }

.offers.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .offers.two { grid-template-columns: 1fr; } }
.principles .card h3 { margin-bottom: 6px; }
.principles .card p { font-size: var(--fs-small); }
.faq-split { align-items: start; }

/* about: track record */
.records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rec.wide { grid-column: span 2; }
.rec .rec-org { font-size: 0.875rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.rec h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.035em; }
.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; font-size: 0.875rem; }
@media (max-width: 960px) { .records { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .records { grid-template-columns: 1fr; } .rec.wide { grid-column: auto; } }
.story { align-items: start; }
.prose p + p { margin-top: 16px; }
.prose { color: var(--ink-2); max-width: 64ch; }
.about-hero .portrait { max-width: 520px; margin-left: auto; }
@media (max-width: 960px) { .about-hero .portrait { margin-left: 0; aspect-ratio: 1 / 1; max-width: 420px; } }

/* dictionary card */
.dict { padding: 28px 24px; }
.dict-word { font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: var(--accent); }
.dict-say { margin-top: 10px; color: var(--ui-muted); font-weight: 600; }
.dict-def { margin-top: 14px; }
.dict-def i { color: var(--ui-muted); }

/* book */
.book-grid { align-items: start; }
.oncall { margin-top: 32px; }
.oncall .checklist { margin-top: 6px; color: var(--ink-2); }
.oncall-foot { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink) !important; font-size: var(--fs-small); }
.oncall-foot svg { width: 20px; height: 20px; color: var(--accent); }
.cal-embed { min-height: 640px; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.cal-fallback { background: var(--surface); border-color: transparent; padding: clamp(28px, 4vw, 48px); }
.cf-title { font-size: var(--fs-h2); margin-bottom: 14px; }
.cal-fallback > p { color: var(--muted); max-width: 46ch; }
.cf-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.cf-actions .btn.ghost { background: #fff; }
.cf-note { margin-top: 20px; font-size: var(--fs-small); }
.contact-list { margin-top: 28px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.split .form.card { padding: clamp(22px, 3vw, 36px); }

.empty-state { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 48px 12px 24px; color: var(--ui-muted); }
.empty-state p { max-width: 34ch; }
.empty-state b { color: var(--ink); }
.es-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.es-icon svg { width: 26px; height: 26px; }
[data-demo="booking"] .ui-actions { justify-content: center; }
@media (max-width: 960px) {
  .tab { grid-template-columns: 36px 1fr; padding: 12px 14px; }
  .tab .ti { width: 36px; height: 36px; grid-row: auto; }
  .tab .td { grid-column: 1 / -1; }
}

.ways-foot { margin-top: 28px; }
.split > .actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: flex-end; margin-top: 0; }
@media (max-width: 960px) { .split > .actions { justify-content: flex-start; } }
.site-header nav { white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm); background: var(--surface); cursor: pointer; place-items: center; }
.menu-btn .bars { display: grid; gap: 5px; width: 18px; }
.menu-btn .bars i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t-ui) var(--ease-out); }
.menu-btn[aria-expanded="true"] .bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .site-header nav { gap: 8px; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--margin) 16px;
    box-shadow: 0 16px 32px -16px rgba(15, 17, 21, 0.18);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 200ms ease, transform 240ms var(--ease-out), visibility 0s linear 240ms;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; transition: opacity 200ms ease, transform 240ms var(--ease-out), visibility 0s; }
  .site-header nav .nav-links a { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .site-header nav .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 380px) { .wordmark .wm-studio { display: none; } }
.hero h1.hero-title { max-width: none; font-size: clamp(2.75rem, 1.4rem + 3.7vw, 4.6rem); }

.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.more-list li { display: flex; align-items: center; min-height: 64px; padding: 14px 18px; border-radius: var(--r); background: var(--dark-2); border: 1px solid var(--dark-line); font-weight: 600; letter-spacing: -0.015em; }
.more-foot { margin-top: 28px; color: var(--dark-muted); }

.rec.full { grid-column: 1 / -1; }
.rec.full p:not(.rec-org) { max-width: 72ch; }

/* privacy page and small print */
.legal { max-width: 68ch; }
.legal h2 { font-size: var(--fs-h3); letter-spacing: -0.025em; margin: 36px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p + p { margin-top: 12px; }
.form-note { font-size: var(--fs-small); color: var(--muted); }
.footer-base a { color: var(--dark-muted); }
@media (hover: hover) and (pointer: fine) { .footer-base a:hover { color: #fff; } }
