/* Callingual website and web app: one stylesheet for every page (public pages, legal pages, the signed-in app).

   Tokens: colours, spacing, radii and shadows are custom properties on :root. Dark mode redefines the colour tokens
   under prefers-color-scheme: dark (the system setting); nothing else changes between themes. Contrast: body text,
   muted text, links and button labels meet WCAG AA (4.5:1) on their backgrounds in both themes; the brand colour is
   the only hue besides the status colours (ok, warn, bad).

   Layout: mobile first. Base rules are the phone layout (one column, 16px side gutter); min-width queries add columns
   from 720px and 960px. .wrap is the page width (1120px) used by the header, footer and home bands; main.wrap (every
   page except home) is narrower for reading and forms, and article.legal sets a ~70ch measure for long text.

   Page scripts rely on these classes staying: .card .grid .row .notice .muted .error .ok .big .price .check
   .table-scroll .subnav .group, button.primary/.bad and .button. */
:root {
  color-scheme: light;
  --bg: #f7f9f9; --surface: #ffffff; --surface-2: #eef3f2; --fg: #132120; --muted: #4a5a58; --line: #d5dedc;
  --brand: #0e716a; --brand-strong: #0a5852; --brand-soft: #e1f1ee; --brand-fg: #ffffff;
  --ok: #17733a; --warn: #865600; --warn-bg: #fff5dc; --bad: #b42318; --bad-fg: #ffffff; --focus: #0e716a;
  --phone: #1c2a29; --phone-screen: #ffffff; --bubble-them: #e6eeed;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(16, 33, 32, .06), 0 1px 1px rgba(16, 33, 32, .04);
  --shadow-2: 0 2px 4px rgba(16, 33, 32, .05), 0 8px 24px rgba(16, 33, 32, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d1413; --surface: #141d1c; --surface-2: #1a2625; --fg: #e5eeed; --muted: #a2b3b0; --line: #2b3938;
    --brand: #4fd1c1; --brand-strong: #7fe0d3; --brand-soft: #12332f; --brand-fg: #04201d;
    --ok: #4cc27a; --warn: #f0c060; --warn-bg: #2e2716; --bad: #ff8a7d; --bad-fg: #2a0703; --focus: #4fd1c1;
    --phone: #3a4b4a; --phone-screen: #0f1817; --bubble-them: #22312f;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

/* ---- base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 32px; margin: var(--s2) 0 var(--s3); letter-spacing: -0.02em; }
h2 { font-size: 23px; margin: var(--s6) 0 var(--s3); }
h3 { font-size: 18px; margin: var(--s5) 0 var(--s2); }
h2.small { font-size: 18px; margin: var(--s4) 0 var(--s2); }   /* a section heading inside a card (team page) */
p, li { text-wrap: pretty; }
kbd { font: 600 14px var(--mono); padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r-sm); background: var(--surface); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s4); }
main.wrap { max-width: 880px; }
main { padding: var(--s5) 0 var(--s8); display: block; }
.lead { font-size: 19px; color: var(--muted); max-width: 40em; margin-top: 0; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--brand-strong); background: var(--brand-soft);
  padding: 3px 12px; border-radius: var(--r-pill); margin: 0 0 var(--s4); }
.skip { position: absolute; inset-inline-start: -999px; top: var(--s2); background: var(--surface); color: var(--fg); padding: var(--s2) var(--s3);
  z-index: 20; border-radius: var(--r-sm); box-shadow: var(--shadow-2); }
.skip:focus { inset-inline-start: var(--s2); }

/* ---- header */
header.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); min-height: 64px; padding-top: var(--s2); padding-bottom: var(--s2); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand .tm { font-size: 0.5em; font-weight: 600; margin-left: -8px; align-self: flex-start; margin-top: 2px; }
.brand svg { width: 32px; height: 32px; flex: none; }
.logo-a { fill: var(--brand); }
.logo-b { fill: var(--surface); stroke: var(--brand); stroke-width: 2.5; }
.logo-dot { fill: var(--brand-fg); }
.logo-dot-b { fill: var(--brand); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin: 0; margin-inline-end: -10px; padding: 0; }
nav a { display: inline-block; color: var(--fg); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: var(--r-sm); }
nav a:hover { color: var(--fg); background: var(--surface-2); text-decoration: none; }
nav a[aria-current="page"], nav a[aria-current="true"] { color: var(--brand-strong); background: var(--brand-soft); }

/* ---- buttons and forms */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; font: inherit; font-size: 16px; font-weight: 600;
  line-height: 1.2; padding: 10px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  cursor: pointer; text-decoration: none; box-shadow: var(--shadow-1); transition: background-color .15s, border-color .15s, color .15s; }
button:hover, .button:hover { border-color: var(--brand); color: var(--fg); text-decoration: none; }
button.primary, .button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
button.primary:hover, .button.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--brand-fg); }
button.bad { background: var(--bad); border-color: var(--bad); color: var(--bad-fg); }
button:disabled, button:disabled:hover, button[aria-disabled="true"], button[aria-disabled="true"]:hover { opacity: .55; cursor: default; border-color: var(--line); }
.button.large { font-size: 17px; padding: 12px 22px; min-height: 48px; }
/* A button that reads as a link (another way through a sign-in step). */
button.linklike, button.linklike:hover { min-height: 44px; padding: 0; margin-right: var(--s4); border: 0; background: none; box-shadow: none;
  color: var(--brand); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* Recovery codes and an authenticator secret: monospaced, easy to copy. */
.codes { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9em, 1fr)); gap: var(--s2) var(--s4); padding: 0; list-style: none; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; overflow-wrap: anywhere; }
.qr img { width: 216px; height: 216px; image-rendering: pixelated; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
label { display: block; font-size: 15px; font-weight: 600; color: var(--fg); margin-top: var(--s3); }
input, select, textarea { width: 100%; min-height: 44px; font: inherit; font-size: 16px; padding: 9px 12px; margin-top: var(--s1); border: 1px solid var(--line);
  border-radius: var(--r); background: var(--bg); color: var(--fg); transition: border-color .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--brand); border-radius: var(--r); }
input[readonly] { background: var(--surface-2); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; margin: 2px 12px 0 0; flex: none; accent-color: var(--brand); }
.check { display: flex; align-items: flex-start; font-weight: 400; color: var(--fg); margin-top: var(--s4); }
label + .muted, input + .muted, select + .muted, input + .muted + .muted { font-size: 14px; margin: var(--s1) 0 0; }
.row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin-top: var(--s4); }
.error { color: var(--bad); font-weight: 500; min-height: 1em; }
.ok { color: var(--ok); }
.big { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 var(--s1); font-variant-numeric: tabular-nums; }
.card .muted:empty, .error:empty, .ok:empty { display: none; }

/* ---- cards, notices, tables */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5) var(--s4); margin: var(--s4) 0; box-shadow: var(--shadow-1); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s2) var(--s4); }
.notice { background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-inline-start: 4px solid var(--warn);
  padding: var(--s3) var(--s4); border-radius: var(--r); }
.notice.info { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); border-inline-start-color: var(--brand); }
/* Update mode (drain.py): the banner site.py puts under the header while new calls are refused. */
.update-banner { margin: var(--s3) 0 0; }
.draft { border: 2px dashed var(--warn); background: var(--warn-bg); color: var(--fg); padding: var(--s3) var(--s4); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
caption { text-align: start; padding: 0 0 var(--s2); }
th, td { text-align: start; padding: 10px var(--s2); border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
/* The last row has no rule under it (the card edge closes the table); th covers row headers such as the rate table's country. */
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s2) var(--s4); box-shadow: var(--shadow-1); }
ol.events { margin: 0; padding-inline-start: 20px; }
.price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }

/* Numbered steps (how-it-works lists). */
.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s4) 0; display: grid; gap: var(--s4); }
.steps > li { counter-increment: step; position: relative; padding: 4px 0 0; padding-inline-start: 50px; min-height: 34px; }
.steps > li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--brand-strong); background: var(--brand-soft); }
.bullets { padding-inline-start: 22px; } .bullets li { margin: var(--s2) 0; }

/* FAQ accordions. */
.faq { display: grid; gap: var(--s2); margin: var(--s4) 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 var(--s4); }
details[open] { box-shadow: var(--shadow-1); }
summary { cursor: pointer; font-weight: 600; padding-block: 14px; padding-inline: 0 32px; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
details > p { margin: 0 0 var(--s4); color: var(--muted); }
details#topup-wrap { margin-top: var(--s4); }
details#topup-wrap > .card { border: 0; box-shadow: none; padding: 0 0 var(--s4); margin: 0; }

/* Page heading block used on public pages. */
.page-head { padding: var(--s4) 0 var(--s2); }
.page-head .lead { margin-bottom: 0; }

/* Long-form legal text: ~70 characters per line. */
article.legal { max-width: 70ch; }
article.legal h2 { font-size: 21px; margin-top: var(--s6); }
article.legal p, article.legal li { line-height: 1.7; }
article.legal li { margin: var(--s1) 0; }
article.legal .table-scroll { margin: var(--s4) 0; }

/* ---- home */
.home { padding: 0; }
.band { padding: var(--s8) 0; }
.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { font-size: 28px; margin-top: 0; }
.section-head { max-width: 40em; margin-bottom: var(--s5); }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
/* Site videos (home, industry pages, /watch): full width of the content column up to 960 px, 16:9, captions off until
   the viewer turns them on; the player (player.css) frames them, and .demo-video > video is the plain fallback. */
.demo-video { margin: 0; max-width: 960px; }
.demo-video > video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0a4f4a;
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
/* The advertised dial-in number under the demo video: kept on one line so it never wraps mid-number. */
.dialin-note { max-width: 960px; margin: var(--s4) 0 0; font-size: 18px; }
.dialin-number { font-weight: 600; white-space: nowrap; }
a[href^="tel:"] { white-space: nowrap; }   /* phone numbers (the support line) never break across lines */
.hero { padding: var(--s6) 0 var(--s7); }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
.hero h1 { font-size: 38px; line-height: 1.1; margin: 0 0 var(--s4); }
.hero .row { margin-top: var(--s5); }
.hero-note { font-size: 15px; color: var(--muted); margin: var(--s4) 0 0; }
.hero-art { margin: 0; }
.hero-art svg { display: block; width: 100%; height: auto; max-width: 540px; margin: 0 auto; }

/* Illustration parts (inline SVG on home); colours follow the theme. */
.ill text { font-family: var(--font); }
.ill-phone { fill: var(--phone); }
.ill-screen { fill: var(--phone-screen); }
.ill-me { fill: var(--brand); }
.ill-me-text { fill: var(--brand-fg); }
.ill-them { fill: var(--bubble-them); }
.ill-them-text { fill: var(--fg); }
.ill-label { fill: var(--muted); font-weight: 600; }
.ill-notch { fill: var(--phone); }
.ill-link { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; fill: none; }
.ill-badge { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.ill-badge-text { fill: var(--brand-strong); font-weight: 700; }

.step-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); counter-reset: step; }
.step-cards > li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5) var(--s4); }
.step-cards > li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-weight: 700; font-size: 15px; color: var(--brand-fg); background: var(--brand); margin-bottom: var(--s3); }
.step-cards h3 { margin: 0 0 var(--s2); font-size: 18px; }
.step-cards p { margin: 0; color: var(--muted); font-size: 16px; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5) var(--s6); }
.features li { display: grid; grid-template-columns: 40px 1fr; gap: 2px var(--s3); align-items: start; }
.features svg { width: 40px; height: 40px; grid-row: span 2; }
.features h3 { margin: 8px 0 0; font-size: 17px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }
.icon-bg { fill: var(--brand-soft); }
.icon-fg { fill: none; stroke: var(--brand-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips li { font-size: 15px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }

.split { display: grid; gap: var(--s6); }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-2); }
.price-card h2, .price-card h3 { margin-top: 0; }
.price-card .rate { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: var(--s2) 0 var(--s2); }
.price-card .rate small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: var(--s4) 0; display: grid; gap: var(--s2); }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 3px; top: 7px; width: 12px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

.cta { text-align: center; }
.cta h2 { margin-bottom: var(--s3); }
.cta .lead { margin: 0 auto; }
.cta .row { justify-content: center; margin-top: var(--s5); }

/* Pricing packs. */
.packs { display: grid; gap: var(--s4); margin: var(--s5) 0 var(--s3); }
.pack { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-1); }
.pack h3 { margin: 0 0 var(--s1); font-size: 15px; color: var(--muted); font-weight: 600; }
.pack p { margin: var(--s1) 0 0; color: var(--muted); }
.pack .price { color: var(--fg); margin: 0; }
.facts { display: grid; gap: var(--s4); margin-top: var(--s5); }
.facts .card { margin: 0; }
.facts h2 { font-size: 19px; margin: 0 0 var(--s2); }
.facts p { margin: 0; }

/* Contact. */
.contact-grid { display: grid; gap: var(--s4); margin-top: var(--s4); }
.contact-grid .card { margin: 0; }
.contact-grid h2 { font-size: 20px; }
.address { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }

/* ---- footer */
footer.bottom { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 15px; padding: var(--s7) 0 var(--s5); }
.foot-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin: var(--s3) 0 0; max-width: 30em; }
footer h2 { font-size: 14px; font-weight: 700; color: var(--fg); margin: 0 0 var(--s2); letter-spacing: 0; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s1); }
footer a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
footer a:hover { color: var(--fg); text-decoration: underline; }
.foot-legal { border-top: 1px solid var(--line); margin-top: var(--s6); padding-top: var(--s4); display: grid; gap: var(--s2); }
.foot-legal p { margin: 0; }
.facts-list { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: var(--s2) var(--s4); margin: 0 0 var(--s4); }
.facts-list dt { font-weight: 600; }
.facts-list dd { margin: 0; }
@media (max-width: 560px) { .facts-list { grid-template-columns: 1fr; gap: 0; } .facts-list dd { margin-bottom: var(--s3); } }
.not-phone { color: var(--fg); font-weight: 500; }

/* ---- wider screens */
@media (min-width: 720px) {
  h1 { font-size: 36px; }
  .card { padding: var(--s5); }
  .hero { padding: var(--s8) 0; }
  .hero h1 { font-size: 48px; }
  .hero .lead { font-size: 20px; }
  .step-cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .packs { grid-template-columns: repeat(3, 1fr); }
  .facts, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
  .foot-legal { grid-template-columns: 1fr auto; align-items: start; gap: var(--s5); }
  .foot-mark { text-align: right; white-space: nowrap; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: var(--s7); }
  .hero h1 { font-size: 54px; }
  .step-cards { grid-template-columns: repeat(4, 1fr); }
  .step-cards.industry-steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .band { padding: var(--s9) 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  header.top, .foot-grid, .skip, .subnav { display: none; }
  body { background: #fff; color: #000; }
}
nav .nav-cta a { border: 1px solid var(--line); margin-inline-start: var(--s1); }
nav .nav-cta a:hover { border-color: var(--brand); background: var(--surface); }
footer nav ul { display: grid; margin: 0; }
footer nav a { padding: 10px 0; font-size: 15px; font-weight: 400; color: var(--muted); }
footer nav a:hover { background: none; }
footer .brand { font-size: 18px; }
footer .brand svg { width: 28px; height: 28px; }
.ill-heard { fill: var(--surface); stroke: var(--brand); stroke-width: 1.5; }
.ill-name { font-weight: 700; }
.ill-wave { fill: var(--brand); opacity: .8; }
.ill-end { fill: var(--bad); }
.ill-end-mark { fill: var(--bad-fg); }
footer nav a[aria-current="page"] { background: none; color: var(--fg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.packs { list-style: none; padding: 0; }
main.wrap.auth { max-width: 520px; }
main.auth h1 { margin-top: var(--s5); }
.band.cta { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 20%, transparent); }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }

/* ---- company page and automatic top-up */
.crumb { font-size: 15px; margin: var(--s2) 0 0; color: var(--muted); }
ul.plain { list-style: none; padding: 0; margin: var(--s2) 0; }
ul.plain li { padding: var(--s2) 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
ul.plain li:last-child { border-bottom: 0; }
/* Dial-in sign-ins (dialin-log.js): problem lines stand out; the last visible line of a collapsed list has no rule
   under it; the summary of hidden problems sits above the list with its "Show all" button. */
#di-log li.di-problem { color: var(--bad); font-weight: 500; }
#di-log li:has(+ li[hidden]) { border-bottom: 0; }
.di-log-alert { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); justify-content: space-between; margin: var(--s2) 0; }
button.small { min-height: 36px; padding: 4px 12px; font-size: 15px; }
td .inline { display: flex; gap: var(--s2); align-items: center; }
td .inline input { width: 7em; margin: 0; }
td select { margin: 0; min-width: 8em; }
.consent { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); margin: var(--s4) 0 0; }
.consent:empty { display: none; }
details.card-details { margin: var(--s4) 0; }
details.card-details[open] { padding-bottom: var(--s4); }
/* Company verification card: the two ways side by side on wide screens, stacked on phones. */
.ver-ways { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); margin: var(--s4) 0; }
.ver-way { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); }
.ver-way h3 { margin-top: 0; }
.ver-way .steps { margin: var(--s3) 0; gap: var(--s2); }
.ver-way .steps > li { padding-left: 40px; font-size: 15px; }
.ver-way .steps > li::before { width: 28px; height: 28px; font-size: 13px; }
.ver-record { margin: var(--s3) 0; display: grid; gap: var(--s2); }
.ver-record div { display: grid; grid-template-columns: 4.5em 1fr; gap: var(--s2); align-items: baseline; }
.ver-record dt { color: var(--muted); font-size: 14px; }
.ver-record dd { margin: 0; overflow-wrap: anywhere; }
.ver-record code { font-size: 14px; }

/* Language menu (header): a disclosure listing every language by its own name. In right-to-left pages the logical
   properties above mirror the layout; the menu opens toward the page's start edge. */
.lang-menu { position: relative; border: 0; background: none; padding: 0; box-shadow: none; }
.lang-menu[open] { box-shadow: none; }
.lang-menu > summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--r); font-weight: 500; font-size: 15px; color: var(--fg); background: var(--surface); }
.lang-menu > summary::after { display: none; }
.lang-menu > summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.lang-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0;
  padding: 6px; display: grid; grid-template-columns: repeat(2, minmax(9.5em, 1fr)); gap: 2px; max-height: 70vh;
  overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-1); }
.lang-list a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--brand-soft); }
.lang-list a[aria-current="true"] { font-weight: 700; color: var(--brand-strong); }
@media (max-width: 520px) { .lang-list { position: fixed; inset-inline: 16px; top: 64px; grid-template-columns: 1fr 1fr; } }
/* Language chips (home): the name in the page's language, the language's own name after it. */
.chips .native { color: var(--muted); font-size: .9em; }
/* Numbers, phone numbers and prices keep their order inside right-to-left text. */
[dir="rtl"] input[type="tel"], [dir="rtl"] input[inputmode="tel"], [dir="rtl"] input[dir="ltr"] { direction: ltr; text-align: end; }
/* The home illustration is drawn left to right (caller on the left); its text positions are absolute, so it keeps
   left-to-right anchoring on right-to-left pages. Arabic words inside still read right to left (bidi). */
.ill { direction: ltr; }
.ill text { unicode-bidi: plaintext; }
#thr-form .row .check { margin: 0 var(--s4) 0 0; align-items: center; white-space: nowrap; }   /* company page: the charge threshold choices in a row */
#thr-form .row .check input { margin-top: 0; }
/* The dial-in number keeps its digit order inside right-to-left text. */
[dir="rtl"] .dialin-number, [dir="rtl"] a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; }

/* The company page's close dialog (company.html): a modal over a dimmed page. */
dialog { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--fg); padding: var(--s5); max-width: 520px; width: calc(100% - 32px); box-shadow: var(--shadow-2); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog h2 { margin-top: 0; }
#closed-note h2 { margin: 0 0 var(--s2); font-size: 1.1rem; }

/* ---- support requests (support.js) */
.sr-list li { margin: var(--s2) 0; }
.sr-thread { margin: var(--s4) 0; }
.sr-msg { border-inline-start: 4px solid var(--line); padding: var(--s1) var(--s3); margin: var(--s3) 0; }
.sr-msg.sr-staff { border-inline-start-color: var(--brand); background: var(--brand-soft); }
.sr-msg > p { margin: 0 0 var(--s1); }
.sr-body { white-space: pre-wrap; overflow-wrap: anywhere; }
ol.sr-thread { list-style: none; padding: 0; }
textarea { resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- private share page of a sales item (sales.py, /s/<token>): brand bar, title, the video, a short footer. */
.share-main { padding-block: var(--s5) var(--s6); }   /* keeps .wrap's side gutter (it had none on phones) */
.share-main h1 { font-size: 30px; margin: 0 0 var(--s4); }
.share-video { margin: 0; max-width: 960px; }   /* the player (player.css) and its chapter list */
.share-foot { border-top: 1px solid var(--line); padding: var(--s4) 0; }
.share-foot p { margin: 0 0 var(--s1); max-width: 60em; }
.share .small { font-size: 15px; }

/* The referrers' portal (referrals.html, on the referrals host) */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); gap: var(--s3); margin: 0 0 var(--s3); }
.figures div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); }
.figures dt { color: var(--muted); font-size: 14px; }
.figures dd { margin: var(--s1) 0 0; font-size: 22px; font-weight: 600; }
.tip { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; border: 1px solid var(--line);
  font-size: 12px; cursor: help; color: var(--muted); }
.ref-url { font-size: 14px; overflow-wrap: anywhere; }
.ref-code { font-size: 14px; white-space: nowrap; }
.ref-off { color: var(--muted); }

/* Company sign-in and provisioning (company page, company-sso.js) */
/* Account, Call settings: the caller ID choice (a fieldset without the box) and the code to type on the phone. */
.plain-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.plain-set legend { font-weight: 600; padding: 0; }
.cid-code { font-size: 28px; font-weight: 700; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; margin: var(--s2) 0; }
.sso-group { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); margin: var(--s4) 0; min-width: 0; }
.sso-group h3 { margin-top: 0; }
.sso-group h4 { margin: var(--s4) 0 var(--s2); font-size: 16px; }
.sso-domains > li { border-top: 1px solid var(--line); padding: var(--s2) 0; }
.sso-domains > li:first-child { border-top: 0; }
#sso-card dl.kv { display: grid; gap: var(--s2); margin: var(--s3) 0; }
#sso-card dl.kv > div { display: grid; grid-template-columns: minmax(8em, 14em) 1fr; gap: var(--s2); align-items: baseline; }
#sso-card dl.kv dt { color: var(--muted); font-size: 14px; }
#sso-card dl.kv dd { margin: 0; overflow-wrap: anywhere; }
#sso-card code { overflow-wrap: anywhere; }
@media (max-width: 560px) { #sso-card dl.kv > div { grid-template-columns: 1fr; gap: 0; } }
.sso-guides { margin: var(--s4) 0; }
.sso-guides summary { cursor: pointer; font-weight: 600; }
.sso-row { margin-top: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s3); }

/* ---- account page (/app): labelled groups and their section menu (site.js marks the group being read with
   aria-current="location"). Phone and tablet: the menu is a wrapping row of pills under the heading. From 960px: a
   sticky column beside the groups. A group's h2 is ruled off; cards inside it have h3 headings. */
main.wrap.with-subnav { max-width: 1120px; }
.subnav { margin: 0 0 var(--s2); }
.subnav ul { gap: var(--s2); margin-inline-end: 0; }
.subnav a { font-size: 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.subnav a[aria-current="location"] { color: var(--brand-strong); background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.group { scroll-margin-top: var(--s4); }
.group > h2 { margin: var(--s7) 0 var(--s2); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.group:first-child > h2 { margin-top: var(--s5); }
.group > h2:focus { outline: none; }
.group > h2:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.groups h4 { font-size: 16px; margin: var(--s5) 0 var(--s2); }
.groups h5 { font-size: 15px; margin: var(--s4) 0 var(--s2); }
#phone-sec { margin-top: var(--s5); border-top: 1px solid var(--line); }
.group > .card > :first-child > :first-child, .group > .card > :first-child:not(div, form, section) { margin-top: 0; }
@media (min-width: 960px) {
  main.with-subnav { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--s6); align-items: start; }
  main.with-subnav > h1 { grid-column: 1 / -1; }
  .subnav { grid-column: 1; position: sticky; top: var(--s4); margin: var(--s5) 0 0; }
  .subnav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .subnav a { display: block; font-size: 15px; padding: 8px 12px; border: 0; border-inline-start: 3px solid transparent;
    border-radius: 0; border-start-end-radius: var(--r-sm); border-end-end-radius: var(--r-sm); background: none; }
  .subnav a[aria-current="location"] { border-inline-start-color: var(--brand); }
  .groups { grid-column: 2; min-width: 0; }
}

/* ---- Get started checklist (the app's overview, account.js showSteps): numbered marks that turn into ticks */
.gs-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.gs-head h3 { margin: 0; }
.gs-head button.linklike { margin-right: 0; }
#gs-intro, #gs-welcome, #gs-progress { margin: var(--s1) 0 0; }
.gs-steps { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s3); counter-reset: gs; }
.gs-steps > li { counter-increment: gs; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); align-items: start;
  padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.gs-steps h4 { margin: 4px 0 var(--s1); font-size: 17px; }
.gs-steps p { margin: 0; }
.gs-steps a { display: inline-block; min-height: 44px; line-height: 44px; margin-right: var(--s4); }
.gs-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--brand);
  color: var(--brand-strong); font-weight: 700; font-size: 15px; }
.gs-mark::before { content: counter(gs); }
.gs-steps > li.done { background: var(--surface); }
.gs-steps > li.done .gs-mark { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.gs-steps > li.done .gs-mark::before { content: "\2713"; }
.gs-steps > li.done h4 > span:first-child { color: var(--muted); }
#gs-company { margin-top: var(--s4); }

/* ---- phones (mobile audit 2026-11-11) */
/* Header: on screens under 720 px the navigation and the language menu fold under a Menu button (site.js, admin.js add
   .js-menu; without scripts everything stays visible as before). */
.top-menu { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.menu-toggle { display: none; }
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Selects drawn like the inputs (Safari's native select ignores the 44 px height and shrinks to its text), with a chevron. */
select:not([multiple]):not([size]) { -webkit-appearance: none; appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] select:not([multiple]):not([size]) { padding-right: 12px; padding-left: 36px; background-position: 19px 52%, 14px 52%; }
@media (max-width: 719px) {
  header.js-menu .menu-toggle { display: inline-flex; margin-inline-start: auto; padding: 8px 14px; }
  header.js-menu .top-menu { display: none; }
  header.js-menu.menu-open .top-menu { display: flex; flex-direction: column; align-items: stretch; flex-basis: 100%; gap: var(--s2);
    padding: var(--s2) 0 var(--s3); border-top: 1px solid var(--line); }
  header.js-menu .top-menu nav ul { flex-direction: column; align-items: stretch; gap: 2px; margin-inline-end: 0; }
  header.js-menu .top-menu nav a { display: flex; align-items: center; min-height: 44px; font-size: 17px; padding: 8px 12px; }
  header.js-menu .top-menu nav .nav-cta a { margin-inline-start: 0; }
  header.js-menu .top-menu .lang-menu > summary { min-height: 44px; }
  header.js-menu .top-menu .lang-list { position: static; inset: auto; margin-top: var(--s2); max-height: none; box-shadow: none; }
  header.js-menu .top-menu .lang-list a { padding: 10px; }
  /* The account page's section menu stays at the top while the page scrolls, as one row that scrolls sideways. */
  .subnav { position: sticky; top: 0; z-index: 5; background: var(--bg); margin: 0 calc(-1 * var(--s4)) var(--s2);
    padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line); }
  .subnav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .subnav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 15px; }
  main.with-subnav [id] { scroll-margin-top: 72px; }
}
@media (max-width: 400px) { .dialin-number { white-space: normal; } }
/* Tables with class stack (site.js and admin.js label each cell with its column) become one card per row on phones,
   instead of scrolling sideways inside their box. */
@media (max-width: 599px) {
  table.stack, table.stack tbody, table.stack tr { display: block; width: auto; min-width: 0; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack caption { display: block; text-align: start; }
  table.stack tr { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2) var(--s3); margin: 0 0 var(--s3); background: var(--surface); }
  table.stack td, table.stack tbody th { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); border: 0; padding: 4px 0;
    text-align: start; white-space: normal; }
  table.stack td[data-label]::before, table.stack tbody th[data-label]::before { content: attr(data-label); flex: 0 0 9em; font-weight: 600;
    color: var(--muted); font-size: 14px; }
  table.stack td:empty { display: none; }
  .table-scroll:has(> table.stack) { overflow-x: visible; }
}
/* The video library for referrers (/app/videos, videos.js) and a video's shared page (/watch/<slug>, watch.html):
   one column of cards on a phone, a grid from 720 px. */
.video-tools { display: grid; gap: var(--s3); }
.video-tools .field { margin: 0; }
.video-tools #count { margin: 0; }
.video-list { list-style: none; padding: 0; margin: var(--s4) 0; display: grid; gap: var(--s4); }
.video-card { margin: 0; display: flex; flex-direction: column; }
.video-card h2 { font-size: 19px; margin: var(--s3) 0 var(--s2); }
.video-card > p { margin: 0; flex: 1; }
.video-box { aspect-ratio: 16 / 9; background: #0a4f4a; border-radius: var(--r); overflow: hidden; }
.video-box video, .video-start img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A card playing its video holds the player (videos.js): its control bar and chapter list sit below the picture. */
.video-box.has-player { aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; }
.video-start { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; }
.video-start:hover { border: 0; }
.video-start:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.video-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: rgba(0, 0, 0, .6); }
.video-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff; }
.watch-page .demo-video { margin: var(--s4) 0; }
@media (min-width: 720px) {
  .video-tools { grid-template-columns: 1fr 1fr; align-items: start; }
  .video-tools #count, .video-tools #no-link { grid-column: 1 / -1; }
  .video-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
/* The self-serve demo's chat (/try, try.js): the conversation as a list of messages, the assistant's tinted. */
.try-log { list-style: none; padding: 0 var(--s1) 0 0; margin: var(--s3) 0; max-height: 50vh; overflow-y: auto;
  overscroll-behavior: contain; }  /* at most half the screen; scrolls, newest kept in view (try.js) */
.try-log:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.try-msg { border-inline-start: 4px solid var(--line); padding: var(--s1) var(--s3); margin: var(--s3) 0; }
.try-msg.try-ai { border-inline-start-color: var(--brand); background: var(--brand-soft); }
.try-msg > p { margin: 0 0 var(--s1); }
.try-msg .try-choice { margin: var(--s2) 0 var(--s1); gap: var(--s2); }
.try #try-text { flex: 1 1 16em; min-width: 0; }
.try-big { font-size: 22px; font-weight: 700; letter-spacing: .02em; }
