/* For businesses (/business/), the site round (site-src/v6/pages/business.mjs). Only what this page has of its own; the system's sheets
   draw the rest. Every value is a token; every rule draws a final state (assets/js/v6/scenes.js plays the problems' turns into it). */

/* ───────── the head: the statement and the concept's real footage beside it (under it on phones) ───────── */
.biz-head-in { display: grid; gap: var(--s8); }
.biz-loop { display: grid; gap: var(--s3); justify-self: center; width: 100%; max-width: calc(24.375rem + 24px); }
.biz-loop .dv { margin-top: 0; }
/* from 1024 px: the words in columns 1 to 6, the loop centred in 7 to 12 (as Home's hero: words left, the visual from column 7, the
   design critic's D14). The statement is fitted to its six columns: its longest line, "keep mentioning.", is 9.12 em. */
@media (min-width: 1024px) {
  .biz-head-in { container: bizhead / inline-size; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .biz-head-text { grid-column: 1 / 7; }
  .biz-head .ph-h.is-long { font-size: min(var(--t-h2), (50cqi - var(--gap) / 2) / 9.2); }
  .biz-loop { grid-column: 7 / 13; }
}

/* ───────── the problems we take on: each row its words, and a stage where the problem turns into its fix ───────── */
.bp-list { display: grid; gap: var(--s9); margin-top: var(--s8); }
.bp { display: grid; gap: var(--s5); }
.bp-h { font-weight: var(--w-h3); font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); }
.bp-line { max-width: 28rem; margin-top: var(--s3); font-size: var(--t-lead); line-height: var(--lh-lead); color: var(--text-body); }
/* from 1024 px each row on the twelve columns: its words in 1 to 4, its stage in 5 to 12 (wide: it holds the problem and its fix) */
@media (min-width: 1024px) {
  .bp { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; column-gap: var(--gap); }
  .bp-text { grid-column: 1 / 5; }
  .bp-stage { grid-column: 5 / 13; }
}
.bp-stage { display: grid; gap: var(--s4); align-items: center; padding: var(--s5); overflow: clip; border-radius: var(--r-panel); background: var(--stage); }
@media (min-width: 768px) { .bp-stage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); padding: var(--s7); } }
/* the problem, as an owner meets it: a raw neutral card (--pc-*), its words singled out by the pick */
.bp-art { position: relative; padding: 14px 16px; border-radius: var(--r-card); background: var(--pc-bg); box-shadow: inset 0 0 0 1px var(--pc-line); color: var(--pc-text); }
.bp-src { margin-bottom: 8px; font-size: 13px; color: var(--pc-text-2); }
.bp-key { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 560; line-height: 1.3; }
.bp-key + .bp-key { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--pc-line); }
.bp-key-2 { font-size: 15px; color: var(--pc-text-2); }
.bp-w { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.bp-ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bp-when { font-size: 13px; font-weight: 400; color: var(--pc-text-2); }
/* the pick (the site's one motion signature): a lime bar under the problem's words, never on a product screen */
.bp-pick { position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 2px; background: var(--stage-signal); transform-origin: 0 50%; transform: scaleX(0); } /* (at rest it is gone: it draws and retracts during the turn) */
/* the fix: the concept's own screen, light in both looks */
.bp-fix { position: relative; overflow: clip; border-radius: var(--r-card); background: var(--s-screen); color: var(--s-text); font-size: 14px; line-height: 1.35; transform-origin: 0 50%; }
.bf-bar { display: flex; align-items: center; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--s-line); font-size: 14px; font-weight: 600; }
.bf-in { display: grid; gap: 8px; padding: 14px 16px 16px; }
.bf-in > * { position: relative; }
.bf-h { font-size: 17px; font-weight: 650; }
.bf-title { font-size: 18px; font-weight: 650; }
.bf-sub, .bf-note { font-size: 13.5px; color: var(--s-text-2); }
.bf-l { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--s-text-2); }
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--s-chip); border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.bf-chip.is-on { background: var(--s-brand); border-color: var(--s-brand); color: var(--s-on-brand); }
.bf-btn { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 8px; background: var(--s-brand); color: var(--s-on-brand); font-size: 14px; font-weight: 600; }
.bf-greet { display: grid; gap: 8px; margin-top: 4px; }
.bf-greet li { justify-self: start; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--s-surface); font-size: 15px; }
.bf-hours { display: grid; }
.bf-hours div { padding: 10px 0; border-bottom: 1px solid var(--s-line); }
.bf-hours dt { font-size: 15px; font-weight: 600; }
.bf-hours dd { margin: 2px 0 0; font-size: 13.5px; color: var(--s-text-2); }
.bf-ways { display: grid; }
.bf-ways li { display: flex; align-items: center; min-height: 38px; border-bottom: 1px solid var(--s-line); font-size: 15px; }
/* the other two things we build, in the owner's words (BRIEF.md section 4: the last two of BUILD in site-src/v6/pages/business.mjs) */
.bp-also { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s5); margin-top: var(--s8); font-size: var(--t-lead); line-height: var(--lh-lead); }
.bp-also-h { color: var(--text-2); }
.bp-also ul { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.bp-also li { color: var(--text); font-weight: 600; }
/* a row waiting for the reading zone holds its first frame: the problem alone, nothing picked (the script plays it from here) */
.bp-stage[data-state="wait"] .bp-pick { transform: scaleX(0); }
.bp-stage[data-state="wait"] .bp-fix { visibility: hidden; }

/* ───────── the concept, to try: its four screens' names on the left, the screen on a stage panel from column 7 (the names above it,
   under 1024 px) ───────── */
.concept { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); margin-top: var(--s7); }
.c-stage { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: var(--s5) var(--s4); border-radius: var(--r-panel); background: var(--stage); }
@media (min-width: 768px) { .c-stage { padding: var(--s8) var(--s6); } }
.device { position: relative; justify-self: center; width: 340px; max-width: 100%; padding: 10px; border-radius: 40px; background: var(--bezel); box-shadow: inset 0 0 0 1px var(--bezel-edge); }
.screen { position: relative; min-height: 460px; overflow: clip; border-radius: 30px; }
.s-skin { background: var(--s-screen); color: var(--s-text); font-family: var(--text-face); font-size: 14px; line-height: 1.35; }
.s-skin :focus-visible { outline-color: var(--s-text); box-shadow: none; }
.s-bar { display: flex; align-items: center; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--s-line); }
.s-name { font-size: 15px; font-weight: 600; }
.s-body { padding: 16px; }
.s-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.s-h { display: block; padding: 0; font-size: 17px; font-weight: 650; color: var(--s-text); }
.s-sub { margin-top: 4px; font-size: 13px; color: var(--s-text-2); }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.s-chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--s-chip); border-radius: 8px; font-size: 14px; font-weight: 600; }
.s-chip.is-on { background: var(--s-brand); border-color: var(--s-brand); color: var(--s-on-brand); }
.s-pick { cursor: pointer; }
.s-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.s-pick:has(input:checked) { border-color: var(--s-brand); background: var(--s-brand); color: var(--s-on-brand); }
.s-pick:has(input:focus-visible) { outline: 2px solid var(--s-text); outline-offset: 2px; }
.s-label { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--s-text-2); }
.s-ways { margin-top: 4px; }
.s-ways li { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--s-line); font-size: 15px; }
.s-ways[data-fish] { display: none; }
.c-panel:has(input[value="pomfret"]:checked) [data-fish="pomfret"], .c-panel:has(input[value="surmai"]:checked) [data-fish="surmai"],
.c-panel:has(input[value="bangda"]:checked) [data-fish="bangda"], .c-panel:has(input[value="bombil"]:checked) [data-fish="bombil"] { display: block; }
.s-note { margin-top: 16px; font-size: 13px; color: var(--s-text-2); }
.s-call { margin-top: 12px; }
.s-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; background: var(--s-brand); color: var(--s-on-brand); font-size: 14px; font-weight: 600; }
.s-call summary { position: relative; list-style: none; cursor: pointer; }
.s-call summary::-webkit-details-marker { display: none; }
.s-calling { margin-top: 12px; padding: 14px 16px; border-radius: 8px; background: var(--s-surface); }
.s-calling-h { font-size: 16px; font-weight: 600; }
.s-calling [data-branch] { display: none; }
.c-panel:has(input[value="harbour"]:checked) [data-branch="harbour"], .c-panel:has(input[value="market"]:checked) [data-branch="market"] { display: inline; }
.s-hours { margin-top: 12px; }
.s-hours div { padding: 12px 0; border-bottom: 1px solid var(--s-line); }
.s-hours dt { font-size: 15px; font-weight: 600; }
.s-hours dd { margin: 2px 0 0; font-size: 14px; color: var(--s-text-2); }
.s-call-h { font-size: 15px; font-weight: 600; }
.s-greet { display: grid; gap: 8px; margin-top: 16px; }
.s-greet li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 8px; background: var(--s-surface); }
.s-lang { font-size: 12px; font-weight: 600; color: var(--s-text-2); }
.s-line { font-size: 15px; }
.s-gloss { font-size: 12px; color: var(--s-text-2); }
.c-panel { display: none; }
.concept:has(input[name="c-screen"][value="menu"]:checked) [data-panel="menu"], .concept:has(input[name="c-screen"][value="book"]:checked) [data-panel="book"],
.concept:has(input[name="c-screen"][value="hours"]:checked) [data-panel="hours"], .concept:has(input[name="c-screen"][value="call"]:checked) [data-panel="call"] { display: block; }
.c-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s4); margin: 0; padding: 0; border: 0; min-width: 0; }
.c-tab { position: relative; display: grid; align-content: center; gap: 4px; min-height: var(--tap); padding: var(--s2) 0; border-bottom: 1px solid var(--line); color: var(--text-2); cursor: pointer; }
.c-tab-name { font-size: var(--t-ui); font-weight: 600; }
.c-tab-cap { display: none; font-size: var(--t-small); line-height: var(--lh-small); }
.c-tab input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.c-tab:has(input:checked) { color: var(--text); }
.c-tab:has(input:checked) .c-tab-cap { color: var(--text-body); }
.c-tab:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.c-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-enter); }
.c-tab:has(input:checked) .c-bar { transform: none; }
@media (hover: hover) and (pointer: fine) { .c-tab:hover { color: var(--text); } }
.c-caps { min-height: calc(2 * var(--lh-body) * 1em); color: var(--text); }
.c-cap { display: none; }
.concept:has(input[name="c-screen"][value="menu"]:checked) [data-cap="menu"], .concept:has(input[name="c-screen"][value="book"]:checked) [data-cap="book"],
.concept:has(input[name="c-screen"][value="hours"]:checked) [data-cap="hours"], .concept:has(input[name="c-screen"][value="call"]:checked) [data-cap="call"] { display: block; }
/* Up to 321 px the "Phone assistant" caption takes three lines (measured in Chromium and WebKit: three up to 321 px, two from 322 px),
   and the two-line room let the device drop 28 px when that screen was chosen. There the room is three lines for every screen, so the
   device stays where it is (23 November 2026). From 322 px nothing changes. */
@media (max-width: 321.98px) { .c-caps { min-height: calc(3 * var(--lh-body) * 1em); } }
@media (min-width: 1024px) {
  .concept { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .c-side { grid-column: 1 / 6; grid-row: 1; }
  .c-stage { grid-column: 7 / 13; grid-row: 1; }
  .c-caps { display: none; }
  .c-tabs { display: block; border-top: 1px solid var(--line); }
  .c-tab { padding: var(--s3) 0 var(--s4); }
  .c-tab-cap { display: block; }
}

/* ───────── privacy: four plain facts ───────── */
.biz-facts { display: grid; gap: var(--s6); margin: var(--s7) 0 0; }
.biz-facts dt { color: var(--text); font-family: var(--display); font-weight: var(--w-h4); font-size: var(--t-h4); line-height: var(--lh-h4); letter-spacing: var(--tr-h4); }
.biz-facts dd { max-width: 26rem; margin: var(--s2) 0 0; font-size: var(--t-body); line-height: var(--lh-body); color: var(--text-body); }
@media (min-width: 768px) { .biz-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); row-gap: var(--s7); } }
@media (min-width: 1280px) { .biz-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ───────── the close: the invitation, "not taking client projects yet" (once), the button ───────── */
.biz-close-h { overflow-wrap: anywhere; font-family: var(--display-cut); font-weight: 800; font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: var(--tr-display); }
.biz-close-h .m { display: inline-block; vertical-align: top; overflow-x: visible; overflow-y: clip; padding: 0 0 var(--mask-pad); margin: 0 0 calc(-1 * var(--mask-pad)); }
.biz-close-text { max-width: 28em; margin-top: var(--s6); font-size: var(--t-lead); line-height: var(--lh-lead); color: var(--text-body); }
.biz-next { display: grid; gap: var(--s5); margin: var(--s7) 0 0; }
.biz-next dt { color: var(--text); font-weight: 600; font-size: var(--t-body); line-height: var(--lh-body); }
.biz-next dd { max-width: 30rem; margin: var(--s1) 0 0; font-size: var(--t-body); line-height: var(--lh-body); color: var(--text-body); }
.biz-close .acts { margin-top: var(--s7); }
@media (min-width: 1024px) {
  .biz-close-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; column-gap: var(--gap); }
  .biz-close-h { grid-column: 1 / 13; }
  .biz-close-text { grid-column: 1 / 7; grid-row: 2; }
  .biz-close .acts { grid-column: 1 / 7; grid-row: 3; }
  .biz-next { grid-column: 7 / 13; grid-row: 2 / 5; margin-top: var(--s6); }
}
