/* Hallmark · shape: Stage, then a deck (the recordings, the three calls as a table, the screens, a working message, the terms, questions, the enquiry) · genre: modern-minimal · theme: brand · brand: Kolan (spec 2026-11-16) · job: listen, then enquire, the action in the nav, the hero and the close
 * paper: #FFF8F0 · accent: #F2600C · display: Rubik · body: Rubik
 * nav: edge-aligned, the wordmark and two actions, no rule under it · footer: a mast, the wordmark over the links · hero: Stage, the head on four columns, the call player on seven
 * signature: three real test calls, each recording's own amplitude drawn in the logo's bars, the transcript advancing with the audio · imagery: screenshots 3 (the local app, a fictional demo account)
 * axes: warm-light/sans/orange · posture: restrained · contrast: pass · copy: verbatim (the transcripts are the calls' own words) · v2.0.0 */
/* Hallmark · finish-review: subagent · 8 findings · 7 resolved 1 unresolved (no survey call has been recorded yet, so the third tab is a second message call) · gap: a survey recording */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a product page argues less than it shows; the hero is the product speaking, not a claim about it */
@import url("../tokens.css");
@import url("../base.css");

@font-face { font-family: "Rubik"; font-style: normal; font-display: swap; font-weight: 300 900; src: url("../fonts/rubik-hebrew-wght-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-style: normal; font-display: swap; font-weight: 300 900; src: url("../fonts/rubik-latin-wght-normal.woff2") format("woff2"); 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; }

/* The marketing page's scale: the same roles as the app, at page size. */
:root {
  --text-display: clamp(2.5rem, 1rem + 3.6vw, 4rem);
  --text-display-s: clamp(2.125rem, 1.2rem + 2.9vw, 3.5rem);
  --text-section: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  --text-title: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-lead: clamp(1.125rem, 1.02rem + 0.36vw, 1.3125rem);
  --container: 1440px; --gutter: 64px;
  --control-h: 48px;
  --nav-h: 80px;
}
@media (max-width: 60rem) { :root { --gutter: 24px; --nav-h: 64px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; } }

html { scroll-behavior: smooth; scroll-padding-top: var(--space-lg); }
h1, h2 { line-height: 1.1; }
h1 { max-width: 12ch; }
h2 { max-width: 18ch; }
.skip { position: absolute; inset-block-start: var(--space-xs); inset-inline-start: var(--space-xs); z-index: var(--z-modal); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-control); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); height: var(--control-h); padding: 0 var(--space-lg); border: 1px solid var(--color-ink); border-radius: var(--radius-control); background: transparent; color: var(--color-ink); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; background: var(--color-paper-3); }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); border-color: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); }
.btn-icon { width: var(--control-h); padding: 0; flex: none; }
.link { color: var(--color-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
.link:hover { text-decoration-thickness: 2px; }

.field { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.field > label { font-size: var(--text-sm); font-weight: 500; }
.opt { font-weight: 400; color: var(--color-muted); }
.input { width: 100%; height: var(--control-h); padding: 0 var(--space-md); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-control); background: var(--color-paper-2); color: var(--color-ink); }
.input:hover { border-color: var(--color-ink); }
.input:focus-visible { outline-offset: -1px; }
.input:disabled { background: var(--color-paper-3); opacity: .55; cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--color-bad); box-shadow: inset 0 0 0 1px var(--color-bad); }
textarea.input { height: auto; padding: var(--space-sm) var(--space-md); line-height: 1.5; resize: vertical; }
select.input { padding-inline-end: var(--space-xs); }
input[type="radio"] { appearance: none; display: block; width: 20px; height: 20px; margin: 0; border: 2px solid var(--color-rule-strong); border-radius: var(--radius-pill); background: var(--color-paper-2); cursor: pointer; }
input[type="radio"]:hover { border-color: var(--color-ink); }
input[type="radio"]:checked { border: 6px solid var(--color-ink); }
input[type="radio"]:disabled { opacity: .55; cursor: not-allowed; }
.hint { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 60ch; }
.err { font-size: var(--text-sm); color: var(--color-bad); }

.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.tone-ok { background: var(--color-ok-soft); color: var(--color-ok); }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--color-rule); border-radius: var(--radius-panel); background: var(--color-paper-2); }
.tbl { width: 100%; border-collapse: collapse; text-align: start; }
.tbl thead th { padding: var(--space-md) var(--space-lg); text-align: start; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); border-bottom: 1px solid var(--color-rule-strong); white-space: nowrap; }
.tbl td, .tbl tbody th { padding: var(--space-lg); text-align: start; vertical-align: top; border-bottom: 1px solid var(--color-rule); }
.tbl tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Top ---------- */
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); height: var(--nav-h); }
.logo { display: inline-flex; flex: none; border-radius: var(--radius-control); }
.top .logo img { height: 44px; width: auto; }
.top-nav { display: flex; align-items: center; gap: var(--space-lg); }

/* ---------- Hero: the product speaking ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; min-height: calc(100dvh - var(--nav-h)); padding-block: var(--space-lg) var(--space-2xl); }
.pitch { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
.pitch .lead { max-width: 30ch; color: var(--color-ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }

.calls { margin: 0; min-width: 0; }
.calls-tabs { display: flex; gap: var(--space-lg); padding-inline: var(--space-xl); border: 1px solid var(--color-rule); border-bottom-color: var(--color-rule-strong); border-radius: var(--radius-panel) var(--radius-panel) 0 0; background: var(--color-paper-2); overflow-x: auto; }
.tab { position: relative; height: 56px; padding: 0; border: 0; background: none; color: var(--color-ink-2); font-weight: 500; white-space: nowrap; cursor: pointer; }
.tab:hover { color: var(--color-ink); }
.tab:active { transform: translateY(1px); }
.tab[aria-selected="true"] { color: var(--color-ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -1px; height: 3px; background: var(--color-accent); }
.tab:focus-visible { outline-offset: -4px; }
.calls-panel { display: flex; flex-direction: column; gap: var(--space-lg); padding: var(--space-lg) var(--space-xl) var(--space-xl); color: var(--color-ink); border: 1px solid var(--color-rule); border-top: 0; border-radius: 0 0 var(--radius-panel) var(--radius-panel); background: var(--color-paper-2); }
.calls-title { font-size: var(--text-lg); font-weight: 500; max-width: none; }
.calls-note { font-size: var(--text-sm); color: var(--color-ink-2); }
.player { display: flex; align-items: center; gap: var(--space-md); }
.play .ic-pause, .play[data-playing] .ic-play { display: none; }
.play[data-playing] .ic-pause { display: block; }
.wave { flex: 1; min-width: 0; height: 96px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3xs); direction: ltr; cursor: pointer; overflow: hidden; border-radius: var(--radius-control); }
.wave i { flex: none; width: 3px; height: calc(var(--h, 0.04) * 100%); min-height: 3px; border-radius: var(--radius-pill); background: var(--color-rule-strong); }
.wave i.on { background: var(--color-accent); }
.time { font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap; }
.turns { list-style: none; margin: 0; padding: 0; height: 264px; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-sm); border-block: 1px solid var(--color-rule); padding-block: var(--space-md); scrollbar-width: thin; }
.turn { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: var(--space-md); color: var(--color-ink-2); }
.turn .who { font-size: var(--text-sm); color: var(--color-muted); padding-top: var(--space-3xs); }
.turn .said { font-size: var(--text-lg); line-height: 1.45; }
.turn.agent .said { font-weight: 500; }
.turn.now { color: var(--color-ink); }
.outcome { min-height: 28px; display: flex; align-items: center; }
.result-wait { font-size: var(--text-sm); color: var(--color-muted); max-width: none; }
.result { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin: 0; }
.result > div { display: flex; align-items: center; gap: var(--space-xs); }
.result dt { font-size: var(--text-sm); color: var(--color-muted); }
.result dd { margin: 0; font-weight: 500; }
.calls figcaption, .shot-note { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.calls audio { width: 100%; }

/* ---------- The three calls: a table ---------- */
.types { padding-block: var(--section-gap-s) 0; }
.types h2 { margin-bottom: var(--space-2xl); }
.types .tbl tbody th { width: 24%; font-family: var(--font-display); font-size: var(--text-title); font-weight: 700; line-height: 1.2; }
.types .tbl td { font-size: var(--text-lead); line-height: 1.45; }
.types .tbl td:nth-child(2) { width: 38%; }

/* ---------- The screens ---------- */
.show { margin-top: var(--section-gap); }
.head-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }
.head-split .lead { color: var(--color-ink-2); justify-self: end; }
.shot { margin: 0; border: 1px solid var(--color-rule); border-radius: var(--radius-panel); background: var(--color-paper-2); }
.shot img { width: 100%; height: auto; }
.shot-pair { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: start; margin-top: var(--gap-columns); }

/* ---------- One message, every recipient ---------- */
.vars { margin-top: var(--section-gap-l); padding-block: var(--section-gap-s); background: var(--color-paper-2); border-block: 1px solid var(--color-rule); }
.vars-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head work" "heard work"; grid-template-rows: auto 1fr; gap: var(--space-xl) var(--space-3xl); align-items: start; }
.vars-head { grid-area: head; }
.vars-work { grid-area: work; }
.heard { grid-area: heard; align-self: end; }
.vars-head { display: flex; flex-direction: column; gap: var(--space-lg); }
.vars-head .lead { color: var(--color-ink-2); max-width: 34ch; }
.vars-work { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
.vars .input, .vars .table-wrap { background: var(--color-paper); }
#vars-text { font-size: var(--text-lead); min-height: 132px; }
.tbl-file caption { caption-side: top; padding: var(--space-md) var(--space-lg) 0; text-align: start; font-size: var(--text-sm); color: var(--color-muted); }
.tbl-file td, .tbl-file thead th { padding: var(--space-sm) var(--space-md); vertical-align: middle; white-space: nowrap; }
.tbl-file tbody tr, .tbl-file label { cursor: pointer; }
.tbl-file td:first-child, .tbl-file th:first-child { width: 48px; padding-inline-start: var(--space-lg); }
.tbl-file tr:has(input:checked) > td { background: var(--color-paper-3); font-weight: 500; }
.heard { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-lg); border-radius: var(--radius-panel); background: var(--color-ink); color: var(--color-paper); }
.heard-label { font-size: var(--text-sm); color: color-mix(in oklab, var(--color-paper) 72%, var(--color-ink)); }
.heard-text { font-size: var(--text-title); font-weight: 500; line-height: 1.4; max-width: none; }
.heard-text mark { padding: 0 var(--space-2xs); border-radius: var(--space-2xs); background: var(--color-bad-soft); color: var(--color-bad); }

/* ---------- The terms: rows ---------- */
.terms { margin-top: var(--section-gap); }
.terms h2 { margin-bottom: var(--space-2xl); }
.rows { margin: 0; border-top: 1px solid var(--color-rule-strong); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule); }
.row dt { font-family: var(--font-display); font-size: var(--text-title); font-weight: 700; line-height: 1.2; }
.row dd { margin: 0; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 56ch; }

/* ---------- Questions ---------- */
.faq { margin-top: var(--section-gap-l); }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.faq-list { border-top: 1px solid var(--color-rule-strong); }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 72px; padding-block: var(--space-md); font-size: var(--text-title); font-weight: 500; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: var(--text-xl); font-weight: 400; line-height: 1; transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-ink-2); }
.faq details p { padding-bottom: var(--space-lg); font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 56ch; }

/* ---------- The enquiry: a band in ink ---------- */
.contact { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-shell); border-block: 1px solid var(--color-rule); }
.contact-in {
  --color-ink: var(--color-on-shell); --color-ink-2: var(--color-on-shell-2); --color-muted: var(--color-on-shell-2);
  --color-paper-2: var(--color-shell-2); --color-paper-3: var(--color-shell-2); --color-rule: var(--color-shell-2); --color-rule-strong: var(--color-on-shell-2);
  --color-accent: var(--color-accent-on-dark); --color-focus: var(--color-accent-on-dark); --color-bad: var(--color-on-shell);
  color: var(--color-ink);
}
.contact-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.contact-text { display: flex; flex-direction: column; gap: var(--space-lg); }
.contact-text .lead { color: var(--color-ink-2); max-width: 34ch; }
.ways { list-style: none; margin: var(--space-md) 0 0; padding: 0; border-top: 1px solid var(--color-rule); }
.way { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-md); border-bottom: 1px solid var(--color-rule); color: var(--color-ink); text-decoration: none; }
.way:hover .way-value { text-decoration: underline; text-underline-offset: 0.2em; }
.way-label { color: var(--color-ink-2); }
.way-value { font-size: var(--text-title); font-weight: 500; }
.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); }
.field-wide { grid-column: 1 / -1; }
.lead-form .input { color-scheme: dark; }
.hp { display: none; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); }
.form-msg { font-size: var(--text-sm); color: var(--color-ink-2); }
.form-msg[data-state="ok"], .form-msg[data-state="err"] { font-size: var(--text-md); font-weight: 500; color: var(--color-ink); }

/* ---------- Foot ---------- */
.foot { padding-block: var(--space-2xl) var(--space-xl); background: var(--color-paper); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-xl) var(--space-2xl); align-items: center; }
.foot .logo img { height: 80px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.credit { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; border-radius: var(--radius-control); }
.credit span { display: flex; flex-direction: column; line-height: 1.3; }
.credit b { font-weight: 500; }
.credit small { font-size: var(--text-xs); color: var(--color-ink-2); }
.credit:hover b { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Narrower screens ---------- */
@media (max-width: 60rem) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; padding-block: var(--space-lg) var(--space-xl); }
  .head-split, .vars-in, .faq-in, .contact-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .vars-in { grid-template-areas: "head" "work" "heard"; grid-template-rows: auto; }
  .head-split .lead { justify-self: start; }
  .faq-in h2 { margin-bottom: 0; }
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .foot-in { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 40rem) {
  .top .btn { display: none; }
  .actions .btn { flex: 1 1 auto; }
  .calls-tabs { gap: var(--space-lg); padding-inline: var(--space-md); }
  .calls-panel { padding: var(--space-md); gap: var(--space-md); }
  .turns { height: 208px; }
  .player { flex-wrap: wrap; }
  .wave { order: 3; flex-basis: 100%; height: 64px; }
  .time { margin-inline-start: auto; }
  .turn { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .types .table-wrap { border: 0; border-radius: 0; background: none; overflow: visible; }
  .types .tbl, .types .tbl tbody, .types .tbl tr, .types .tbl td, .types .tbl tbody th { display: block; width: auto; }
  .types .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .types .tbl tr { padding-block: var(--space-lg); border-top: 1px solid var(--color-rule-strong); }
  .types .tbl td, .types .tbl tbody th { padding: 0; border: 0; }
  .types .tbl td:nth-child(2) { width: auto; }
  .types .tbl td { margin-top: var(--space-sm); }
  .types .tbl td::before { content: attr(data-label); display: block; font-size: var(--text-sm); color: var(--color-muted); }
  .shot-pair { grid-template-columns: minmax(0, 1fr); }
  .shot-home { display: none; }
  .lead-form { grid-template-columns: minmax(0, 1fr); }
  .tbl-file td, .tbl-file thead th { padding: var(--space-sm) var(--space-xs); }
  .tbl-file td:first-child, .tbl-file th:first-child { width: 40px; padding-inline-start: var(--space-sm); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
