/* Styles of every page of the site (index.html, help.html, privacy-policy.html).
   Brand colours and fonts come from the brand kit (Design/brand/web/tokens.css, BRAND.md §6–7):
   cream background, ink text, tomato for the logo, large titles and graphics only, tomato-text
   for small links. The app replicas (.mac…) speak the app's own colours instead: system greys,
   the system accent, the agent purple. Light and dark follow the visitor's system. */

/* ---------- Fonts (served by the site: no third-party call, as the privacy policy says) ---------- */

@font-face { font-family: 'Oleo Script'; font-weight: 700; font-display: swap; src: url('fonts/oleo-script-700.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url('fonts/dm-sans-600.woff2') format('woff2'); }

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;
  --tomato: #E0533B;
  --tomato-text: #B53A25;
  --tomato-soft: #FBE1DB;
  --ink: #2B1E1A;
  --ink-2: #6B5A52;          /* secondary text on cream: 5.9:1 */
  --cream: #F5F1EA;
  --card: #FFFDF9;
  --line: #E6DDD1;
  --done: #256A41;
  --done-soft: #DCEEDF;
  --shadow: 0 1px 2px rgba(43, 30, 26, .06), 0 12px 40px rgba(43, 30, 26, .10);
  --font-logo: 'Oleo Script', cursive;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 16px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tomato: #EE6A52;
    --tomato-text: #F28470;
    --tomato-soft: #4A2620;
    --ink: #F5EDE4;
    --ink-2: #BFB1A6;
    --cream: #1F1714;
    --card: #2A201C;
    --line: #3D302A;
    --done: #6CC48C;
    --done-soft: #1E3A27;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 40px rgba(0, 0, 0, .35);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--tomato-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tomato-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .08em .35em; white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 12px; }
.muted { color: var(--ink-2); }

/* ---------- Header ---------- */

.header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img.icon { width: 32px; height: 32px; }
.brand .wordmark { height: 24px; width: auto; }
.wordmark-dark { display: none; }
@media (prefers-color-scheme: dark) { .wordmark-light { display: none; } .wordmark-dark { display: block; } }
.header nav { margin-left: auto; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--tomato-text); }
.lang {
  flex: none; font: 600 13px var(--font-body); color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.lang:hover { border-color: var(--ink-2); }
@media (max-width: 820px) { .nav { display: none; } .lang { margin-left: auto; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px var(--font-body); text-decoration: none; border-radius: 999px;
  padding: 13px 22px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 40px; text-align: center; }
.badge {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--tomato-text);
  background: var(--tomato-soft); border-radius: 999px; padding: 5px 14px; margin-bottom: 22px;
}
.hero h1 {
  font: 700 clamp(44px, 8vw, 84px)/1.02 var(--font-logo); letter-spacing: 0;
  color: var(--ink);
}
.hero h1 .first { color: var(--tomato); display: block; }
.hero-sub { max-width: 680px; margin: 24px auto 0; font-size: 19px; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  list-style: none; padding: 0; margin: 26px 0 0; font-size: 14px; color: var(--ink-2);
}
.facts li::before { content: '✓'; color: var(--done); font-weight: 600; margin-right: 6px; }
.hero-visual { margin-top: 56px; }
.caption { font-size: 14px; color: var(--ink-2); text-align: center; margin-top: 14px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--tomato-text); letter-spacing: .04em; margin-bottom: 12px; }
.section h2 { font-size: clamp(30px, 4.4vw, 44px); max-width: 760px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 680px; margin-top: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; } .split.flip > :first-child { order: 0; } }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.points li { padding-left: 28px; position: relative; }
.points li::before {
  content: ''; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px;
  border-radius: 3px; background: var(--tomato);
}
.points b { font-weight: 600; }
.center { text-align: center; }
.center h2, .center .lead { margin-left: auto; margin-right: auto; }

/* Trust trio (privacy section) */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .trio { grid-template-columns: minmax(0, 1fr); } }
.trio div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.trio h3 { font-size: 18px; margin-bottom: 6px; }
.trio p { font-size: 15px; color: var(--ink-2); }

/* "Also included" cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--ink-2); }

/* Comparison table */
.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.compare thead th.us { color: var(--tomato-text); }
.compare td.us { font-weight: 600; }
.compare tbody th { font-weight: 500; width: 34%; }
/* Phone: one card per criterion, each answer under its column's name (data-label). */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  table.compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { display: block; padding: 3px 0; border: 0; width: auto; }
  .compare tbody th { font-weight: 600; margin-bottom: 4px; width: auto; }
  .compare td::before { content: attr(data-label) ' : '; color: var(--ink-2); font-weight: 400; }
  :root:not([lang="fr"]) .compare td::before { content: attr(data-label) ': '; }
}

/* The other apps' banner, above the header (as on reachable-app.com) */
.more-apps { background: var(--card); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.more-apps .wrap { display: flex; align-items: center; gap: 14px; height: 34px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.more-apps .wrap::-webkit-scrollbar { display: none; }
.more-apps a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.more-apps a:hover { opacity: .75; }
.more-apps a::after { content: "↗"; color: var(--ink-2); font-size: 11px; }
.more-apps img { width: 16px; height: 16px; border-radius: 4px; flex: none; }

/* Waitlist card (#waitlist): promises, tiles, the mail button, the system line */
.waitlist-card {
  max-width: 520px; margin: 44px auto 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 36px 32px; box-shadow: var(--shadow); text-align: center;
}
.waitlist-card ul { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; display: grid; gap: 10px; }
.waitlist-card li { padding-left: 28px; position: relative; }
.waitlist-card li::before { content: '✓'; position: absolute; left: 4px; color: var(--done); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.tiles div { background: var(--cream); border-radius: 12px; padding: 12px 6px; font-size: 13px; color: var(--ink-2); }
.tiles b { display: block; font-size: 17px; color: var(--ink); }
.spec { font-size: 13px; color: var(--ink-2); margin-top: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; counter-reset: step; list-style: none; padding: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--tomato-soft); color: var(--tomato-text); font-weight: 600; margin-bottom: 14px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h3 { font-size: 14px; color: var(--ink-2); letter-spacing: .04em; margin-bottom: 8px; font-weight: 600; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 4px; top: 13px; font-size: 22px; font-weight: 400; color: var(--ink-2);
}
details[open] summary::after { content: '–'; }
details > div { padding: 0 0 18px; color: var(--ink-2); }
details > div p + p { margin-top: 10px; }

/* Final call */
.final { text-align: center; padding: 96px 0 104px; border-top: 1px solid var(--line); }
.final h2 { font: 700 clamp(36px, 6vw, 60px)/1.05 var(--font-logo); letter-spacing: 0; }
.final p { color: var(--ink-2); margin: 16px auto 28px; max-width: 520px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--ink-2); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer .cols > :first-child { grid-column: 1 / -1; } }
.footer h4 { color: var(--ink); font-size: 14px; margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--tomato-text); }
.footer .legal { margin-top: 36px; }
.footer .brand { margin-bottom: 12px; }

/* Reveal on scroll (site.js); nothing hidden without JavaScript or with reduced motion */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Long-form pages (help, privacy) ---------- */

.doc { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .updated { color: var(--ink-2); margin-top: 10px; font-size: 15px; }
.doc .short { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 28px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc .toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 15px; }
pre.cmd {
  background: #1E1E1E; color: #EDEDED; border-radius: 12px; padding: 14px 16px; margin: 12px 0;
  font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word;
}

/* ============================================================================================
   App replicas. They copy the Mac app's look (Ration/Views: SidebarView, TicketListView,
   TicketStyle, TicketInspector, RequestsViews, ClaudeUsageView), in the system's colours, light
   or dark like the visitor's Mac. Labels come from the app's catalog (strings.js).
   ============================================================================================ */

.mac {
  --m-bg: #FFFFFF; --m-side: #F2F1F0; --m-bar: #F6F5F4; --m-text: #1D1D1F; --m-2: #6E6E73; --m-3: #A1A1A6;
  --m-line: #E5E5EA; --m-sel: #E8E8ED; --m-field: #FFFFFF; --m-chip: #E9E9EE;
  --m-accent: #0A84FF; --m-orange: #9A4500; --m-orange-soft: #FFE9D1; --m-purple: #8E4FE0;
  --m-red: #D70015; --m-agent: linear-gradient(135deg, #7B4DFF, #D13DD8);
  --m-sys-orange: #FF9500; --m-sys-green: #34C759; /* the system colours of BacklogColor, light */
  font: 13px/1.35 -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  color: var(--m-text); background: var(--m-bg);
  border-radius: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 24px 70px rgba(43, 30, 26, .22);
  overflow: hidden; text-align: left; letter-spacing: 0;
}
@media (prefers-color-scheme: dark) {
  .mac {
    --m-bg: #1E1E1E; --m-side: #262626; --m-bar: #2A2A2A; --m-text: #F2F2F7; --m-2: #A1A1A6; --m-3: #6E6E73;
    --m-line: #353535; --m-sel: #3A3A3C; --m-field: #333333; --m-chip: #3A3A3C;
    --m-orange: #FFB35C; --m-orange-soft: #4A3216; --m-purple: #C28BFF; --m-red: #FF6961;
    --m-sys-orange: #FF9F0A; --m-sys-green: #30D158;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 70px rgba(0, 0, 0, .55);
  }
}
.mac-window { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; height: 600px; }
.mac-side { background: var(--m-side); border-right: 1px solid var(--m-line); display: flex; flex-direction: column; padding: 12px 10px; min-width: 0; }
.mac-lights { display: flex; gap: 8px; padding: 2px 4px 16px; }
.mac-lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.mac-lights i:nth-child(2) { background: #FEBC2E; }
.mac-lights i:nth-child(3) { background: #28C840; }
.mac-sitem { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--m-text); white-space: nowrap; }
.mac-sitem.sel { background: var(--m-sel); font-weight: 600; }
.mac-sitem .n { margin-left: auto; color: var(--m-2); font-size: 12px; }
.mac-sitem svg { width: 15px; height: 15px; flex: none; color: var(--m-2); }
.mac-bl { display: flex; flex: none; }
.mac-sitem .mac-bl svg { color: inherit; }
.mac-shead { font-size: 11px; font-weight: 600; color: var(--m-2); padding: 12px 8px 4px; }
.mac-wait { width: 13px; height: 13px; color: var(--m-orange); flex: none; display: flex; }
.mac-wait svg { width: 100%; height: 100%; color: var(--m-orange); }

.mac-main { display: flex; flex-direction: column; min-width: 0; background: var(--m-bg); }
.mac-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--m-line); min-height: 52px; }
.mac-title { min-width: 0; }
.mac-title b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-title small { color: var(--m-2); font-size: 11px; }
.mac-tbtn { margin-left: auto; display: flex; align-items: center; gap: 6px; background: var(--m-chip); border-radius: 999px; padding: 5px 12px; font-size: 12px; white-space: nowrap; }
.mac-search { display: flex; align-items: center; gap: 6px; background: var(--m-chip); border-radius: 999px; padding: 5px 12px; color: var(--m-2); font-size: 12px; width: 130px; }
.mac-search svg, .mac-tbtn svg { width: 12px; height: 12px; flex: none; }
.mac-list { overflow: hidden; flex: 1; }
.mac-group { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-weight: 600; color: var(--m-2); font-size: 12px; border-bottom: 1px solid var(--m-line); }
.mac-group svg { width: 13px; height: 13px; }
.mac-group .c { font-weight: 400; color: var(--m-2); }
.mac-row { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 38px; border-bottom: 1px solid var(--m-line); white-space: nowrap; transition: background .4s; }
.mac-row.sel { background: var(--m-sel); }
.mac-row.flash { background: color-mix(in srgb, var(--m-purple) 22%, var(--m-bg)); }
.mac-row .p { font-size: 11px; font-weight: 600; color: var(--m-2); width: 18px; }
.mac-row .p.p0 { color: var(--m-red); }
.mac-row .id { font-size: 11px; color: var(--m-2); width: 46px; font-variant-numeric: tabular-nums; }
.mac-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.mac-row .ty { width: 14px; height: 14px; color: var(--m-2); flex: none; }
.mac-av { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 9px; color: var(--m-2); border: 1px solid var(--m-3); }
.mac-av.agent { background: var(--m-agent); border: 0; color: #fff; }
.mac-av.agent svg { width: 11px; height: 11px; }
.mac-state { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--m-purple); }
.mac-mini { width: 16px; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--m-purple) 30%, transparent); position: relative; overflow: hidden; }
.mac-mini::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; border-radius: 2px; background: var(--m-purple); animation: mini 1.4s ease-in-out infinite alternate; }
@keyframes mini { to { transform: translateX(10px); } }
.mac-need { font-size: 11px; font-weight: 600; color: var(--m-orange); background: var(--m-orange-soft); border-radius: 5px; padding: 1px 6px; }

.mac-insp { border-left: 1px solid var(--m-line); padding: 12px; overflow: hidden; background: var(--m-bg); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mac-start { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--m-agent); color: #fff; font-weight: 600; border-radius: 10px; padding: 14px; font-size: 13px; }
.mac-start svg { width: 13px; height: 13px; }
.mac-choice { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--m-line); border-radius: 8px; font-size: 12px; white-space: nowrap; }
.mac-choice .v { display: flex; align-items: center; gap: 4px; overflow: hidden; }
.mac-choice .v i { font-style: normal; color: var(--m-2); }
.mac-choice svg { width: 9px; height: 9px; color: var(--m-2); transform: rotate(90deg); flex: none; }
.mac-insp .tid { font-size: 11px; color: var(--m-2); }
.mac-insp h4 { margin: 0; font-size: 14px; font-weight: 600; }
.mac-insp p { color: var(--m-text); font-size: 12px; line-height: 1.45; }
.mac-fields { border-top: 1px solid var(--m-line); }
.mac-field { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--m-line); font-size: 12px; white-space: nowrap; }
.mac-field span:last-child { color: var(--m-2); overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1080px) { .mac-window { grid-template-columns: 190px minmax(0, 1fr); } .mac-insp { display: none; } }
@media (max-width: 680px) {
  .mac-window { grid-template-columns: minmax(0, 1fr); height: 580px; }
  .mac-side { display: none; }
  .mac-search { display: none; }
  .mac-row .ty, .mac-row .p { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mac-mini::after { animation: none; transform: translateX(5px); } .mac-row { transition: none; } }

/* Request replica (section 03) */
.req { width: 100%; max-width: 480px; margin: 0 auto; }
.mac-row .t { flex: 1 1 0; width: 0; } /* no min-content width: a long title never widens its container */
.req-card { padding: 18px; }
.req-head { display: flex; gap: 10px; align-items: flex-start; }
.req-head svg { width: 18px; height: 18px; color: var(--m-orange); flex: none; margin-top: 2px; }
.req-head > div { flex: 1; min-width: 0; }
.req-head b { display: block; font-size: 15px; }
.req-head small { color: var(--m-2); font-size: 12px; }
.req-head .k { color: var(--m-orange); font-weight: 600; }
.req-head .age { color: var(--m-2); font-size: 12px; flex: none; }
.req-body { margin: 12px 0 14px 28px; font-size: 13px; }
.req-body h5 { margin: 0; font-size: 14px; }
.req-body .qh { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--m-2); margin-bottom: 2px; }
/* The plan's steps along a timeline, as DocumentView draws them (RAT-145). */
.req-steps { list-style: none; margin: 0; padding: 0; }
.req-steps li { position: relative; padding: 2px 0 12px 32px; }
.req-steps li:last-child { padding-bottom: 0; }
.req-steps .n {
  position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  border: 1.5px solid var(--m-accent); background: color-mix(in srgb, var(--m-accent) 22%, transparent);
}
.req-steps li:not(:last-child)::before {
  content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px;
  background: color-mix(in srgb, var(--m-accent) 35%, transparent);
}
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 28px; padding-top: 12px; border-top: 1px solid var(--m-line); }
.req-actions button {
  font: 400 13px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--m-text);
  background: transparent; border: 1px solid var(--m-line); border-radius: 14px; padding: 5px 12px; cursor: pointer;
}
.req-actions button.lead { color: var(--m-accent); border: 1.5px solid var(--m-accent); font-weight: 600; }
.req-actions button:hover { filter: brightness(.96); }
.req-foot { margin: 12px 0 0 28px; padding-top: 10px; border-top: 1px solid var(--m-line); font-size: 13px; color: var(--m-2); }
.req-foot .req-dismiss { margin-left: 14px; }
.req-reset { background: none; border: 0; color: var(--m-accent); font: inherit; cursor: pointer; padding: 0; margin-left: auto; }
/* The queue around the open card: its title and count, closed and answered cards on one line */
.req-title { display: flex; align-items: baseline; gap: 8px; margin: 0 4px 10px; font-size: 15px; }
.req-title span { color: var(--ink-2); font-size: 13px; }
.req-card + .req-line, .req-line + .req-line, .req-line + .req-card, .req-card + .req-empty, .req-line + .req-empty { margin-top: 8px; }
.req-line { display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 12.5px; white-space: nowrap; }
.req-line svg { width: 15px; height: 15px; color: var(--m-orange); flex: none; }
.req-line b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.req-line .k { color: var(--m-orange); font-weight: 600; flex: none; }
.req-line .sum { color: var(--m-2); overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; }
.req-line.done { opacity: .75; }
.req-line.done svg, .req-line.done .k { color: var(--done); }
.req-field { margin: 10px 0 0 28px; padding: 8px 10px; border: 1px solid var(--m-line); border-radius: 8px; color: var(--m-3); font-size: 13px; }
.req-empty { display: flex; align-items: center; gap: 8px; padding: 6px 4px 0; font-size: 13px; color: var(--ink-2); }

/* Terminal replica (sections 02 and 04) */

/* Section 02 (#replica-launch): two buttons, then one ticket's inspector or the selection card */
.launch { width: 100%; max-width: 440px; margin: 0 auto; }
.seg { display: flex; gap: 4px; padding: 3px; margin: 0 auto 14px; width: max-content; max-width: 100%; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg button { font: 600 14px/1 var(--font-body); color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
/* Both panes share one grid cell: the card keeps the taller one's height, so switching never
   makes the page jump. The pane not shown is hidden from sight and from VoiceOver. */
.launch-card { padding: 16px; display: grid; }
.launch-card .pane { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.launch-card .pane[aria-hidden="true"] { visibility: hidden; }
.launch-card .tid { font-size: 11px; color: var(--m-2); }
.launch-card h4 { margin: 0; font-size: 15px; font-weight: 600; }
.launch-card h5 { margin: 4px 0 0; font-size: 13px; }
.launch-card p { font-size: 12.5px; line-height: 1.45; }
.launch-card p.impact { color: var(--m-2); }
.fold { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--m-line); font-size: 12.5px; font-weight: 600; }
.fold svg { width: 11px; height: 11px; color: var(--m-2); flex: none; }
.fold.open svg { transform: rotate(90deg); }
.fold-body { margin: -4px 0 0; padding-left: 34px; font-size: 12.5px; }
.sel-rows { border-top: 1px solid var(--m-line); }
.sel-rows div { padding: 7px 0; border-bottom: 1px solid var(--m-line); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-rows .id { color: var(--m-2); font-size: 11px; margin-right: 10px; }
.launch-card .req-steps { font-size: 12.5px; }

/* Section 04 (#replica-history): a ticket's history, newest first */
.hist { width: 100%; max-width: 480px; margin: 0 auto; padding: 16px 18px; }
.hist h5 { margin: 0 0 8px; font-size: 13px; }
.hist-list { list-style: none; margin: 0; padding: 0; }
.hist-list li { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-top: 1px solid var(--m-line); font-size: 12.5px; }
.hist-list .what { flex: 1; min-width: 0; }
.hist-list .sess { color: var(--m-purple); }
.hist-list .when { color: var(--m-2); font-size: 11.5px; white-space: nowrap; }
.hist-list .mac-av { width: 18px; height: 18px; }
.mac-av.none { visibility: hidden; } /* keeps the column's width where no one is shown */

/* "Soon" cards (section 06): dashed, with a tag */
.card.soon { border-style: dashed; }

/* Section 07: what Ration changes, as a checklist in two columns */
.why-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
@media (max-width: 760px) { .why-list { grid-template-columns: minmax(0, 1fr); } }
.why-list li { position: relative; padding-left: 30px; font-size: 16px; color: var(--ink-2); }
.why-list li::before { content: '✓'; position: absolute; left: 4px; top: 0; color: var(--done); font-weight: 700; }
.why-list b { color: var(--ink); font-weight: 600; }
.compare-title { margin-top: 56px; font-size: 22px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--tomato-text); margin-bottom: 6px; }
