:root {
  color-scheme: light;
  --background: #fff;
  --surface: #f5f6f7;
  --ink: #20242b;
  --muted: #616771;
  --border: #dce0e4;
  --fault: #b4232d;
  --overdue: #a34512;
  --soon: #d8a200;
  --ok: #087b59;
  --unknown: #737b87;
  --selected: #7950bf;
  --access: #914e25;
  --container: 1320px;
  --text-width: 640px;
  --section-space: clamp(80px, 9vw, 128px);
  --radius-small: 8px;
  --radius: 12px;
  --radius-large: 20px;
  --motion: 280ms;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--background); font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.042em; text-wrap: balance; }
h1 { font-size: clamp(38px, 4.5vw, 64px); line-height: 1.08; }
h2 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.15; }
h3 { font-size: clamp(25px, 2.2vw, 30px); line-height: 1.22; }
p + p { margin-top: 20px; }
:focus-visible { outline: 3px solid var(--selected); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-border { border-top: 1px solid var(--border); }
.eyebrow { font-size: 14px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; font-weight: 600; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.65; color: var(--muted); max-width: var(--text-width); }
.note { font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 16px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 50px; padding: 12px 22px; background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: var(--radius-small); font-size: 16px; line-height: 1.4; font-weight: 500; text-decoration: none; transition: background var(--motion), border-color var(--motion); }
.button:hover { background: #3c434d; border-color: #3c434d; }
.button-secondary { color: var(--ink); background: white; border-color: var(--border); }
.button-secondary:hover { background: var(--surface); border-color: #a0a5ad; }
.button-small { min-height: 42px; padding: 9px 15px; font-size: 14px; gap: 12px; }
.button:disabled { background: #eaeced; color: #626771; border-color: var(--border); cursor: not-allowed; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 20; top: 0; background: white; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; min-height: 76px; gap: 30px; }
.wordmark { font-size: 25px; font-weight: 650; letter-spacing: -.05em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.hero { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 40px; padding-block: 84px 100px; }
.hero h1 span { color: var(--muted); }
.hero .lead { margin-top: 28px; font-size: 18px; }
.hero-visual { min-width: 0; }
.product-figure img { border: 1px solid var(--border); border-radius: var(--radius-large); }
.product-figure > a { display: block; border-radius: var(--radius-large); }
.product-figure figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.45; color: var(--muted); padding-top: 15px; }
.site-footer { display: flex; align-items: center; gap: 28px; padding-block: 32px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.site-footer .wordmark { margin-right: auto; color: var(--ink); }
.final-section .lead { margin-top: 24px; }
.statement { font-weight: 550; max-width: 440px; }
.story-layout { display: grid; grid-template-columns: 1fr; }
.story-step { padding-block: 44px 64px; border-top: 1px solid var(--border); }
.step-kicker { display: flex; gap: 15px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.story-step .lead { margin-top: 22px; }
.step-visual { margin-top: 30px; }
.consent-note { border-left: 2px solid var(--border); padding-left: 15px; margin-top: 25px; }
.fsm-section, .audience-section, .final-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.fsm-section .note { margin-top: 25px; }
.audience-list { list-style: none; margin: 0; padding: 0; }
.audience-list li { border-bottom: 1px solid var(--border); padding: 16px 0; display: flex; align-items: baseline; gap: 25px; font-size: 18px; }
.audience-list li:first-child { padding-top: 0; }
.audience-list span { font-size: 12px; color: var(--muted); }
.audience-list .audience-primary { font-size: 28px; font-weight: 550; }
.demo-section { background: var(--surface); border-block: 1px solid var(--border); }
.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-block: 23px; list-style: none; font-size: 18px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--muted); font-size: 23px; font-weight: 400; transition: transform var(--motion); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { padding: 0 34px 26px 0; font-size: 16px; color: var(--muted); }
.request-panel { padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.form-intro { font-size: 16px; color: var(--muted); margin-top: 15px; }
.form-availability { font-size: 14px; border-block: 1px solid var(--border); padding-block: 16px; margin-top: 20px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form label { display: block; font-size: 14px; margin-top: 20px; }
input, textarea { display: block; width: 100%; padding: 10px 12px; margin-top: 8px; color: var(--ink); border: 1px solid #adb3bc; border-radius: 6px; background: white; font-size: 16px; }
textarea { resize: vertical; min-height: 105px; }
input:disabled, textarea:disabled { opacity: 1; background: #fafafa; border-color: var(--border); cursor: not-allowed; }
.optional { margin-left: 4px; color: var(--muted); font-size: 12px; }
form .button { margin-top: 24px; width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1150px) { .header-inner { gap: 20px; } }
@media (max-width: 999px) {
  .header-inner { min-height: 68px; gap: 16px; }
  .header-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-block: 64px 80px; gap: 40px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { max-width: 660px; font-size: clamp(38px, 6.7vw, 60px); }
  .hero-visual { width: 100%; }
  .fsm-section, .audience-section, .faq-section, .final-section { grid-template-columns: 1fr; gap: 40px; }
  .final-section > div:first-child { max-width: 680px; }
  .faq-section br { display: none; }
  .story-step { max-width: 760px; }
}
@media (max-width: 639px) {
  .container { width: calc(100% - 40px); }
  .wordmark { font-size: 22px; }
  .header-inner { gap: 12px; }
  .header-actions .button { font-size: 13px; padding-inline: 11px; gap: 7px; }
  .eyebrow { font-size: 12px; margin-bottom: 20px; }
  .hero { padding-top: 48px; }
  .hero .lead { margin-top: 24px; }
  .actions { gap: 10px; }
  .actions .button { flex: 1 1 155px; padding-inline: 14px; }
  .product-figure img { border-radius: var(--radius); }
  .product-figure figcaption { font-size: 12px; }
  .product-figure figcaption > :last-child:not(:first-child) { display: none; }
  .site-footer { flex-wrap: wrap; gap: 18px; }
  .request-panel { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .audience-list .audience-primary { font-size: 24px; }
  .faq-list summary { font-size: 17px; }
  .story-step { padding-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Five-screen story, using the original palette, spacing and type scale. */
.story { padding-top: 0; padding-bottom: 0; }
.story-step:first-child { border-top: 0; }
.story-copy > p:not(.step-kicker) { margin-top: 22px; }
.story-copy > p:not(.lead):not(.step-kicker):not(.note) { font-size: 17px; }
.role-copy { margin-top: 28px; }
.role-copy h3 { font-size: 23px; }
.role-copy p { margin-top: 14px; font-size: 16px; }
.role-chain { font-weight: 550; }
.visual-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fsm-section, .audience-section, .demo-compact { padding-block: 64px; }
.demo-compact .lead { margin-top: 22px; }
@media (max-width: 639px) {
  .visual-pair { grid-template-columns: 1fr; }
  .fsm-section, .audience-section, .demo-compact { padding-block: 48px; }
}

/* A content summary, not a reproduction of the product interface. */
.access-sequence { display: flex; flex-wrap: wrap; gap: 8px 12px; list-style: none; padding: 0; margin: 14px 0; color: var(--ink); font-size: 20px; font-weight: 550; }
.access-sequence li { display: flex; align-items: center; gap: 12px; }
.access-sequence li + li::before { content: "→"; color: var(--muted); }
.hero-copy, .story-steps, .story-step, .role-copy, .visual-pair > * { min-width: 0; }
h1, h2, h3, .role-chain { overflow-wrap: anywhere; }

/* Screen 4: one shared visual scene; phone overlaps the desktop edge. */
.roles-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 48px; row-gap: 28px; align-items: start; }
.roles-heading { grid-column: 1; grid-row: 1; }
.roles-section .role-copy { margin-top: 0; min-width: 0; }
.role-dispatcher { grid-column: 1; grid-row: 2; }
.role-master { grid-column: 1; grid-row: 3; }
.roles-section .role-consent { grid-column: 1; grid-row: 4; margin-top: 0; }
.roles-visual-cluster { --phone-width: var(--master-phone-width); --overlap: 48px; position: relative; grid-column: 2; grid-row: 1 / 5; width: 100%; min-width: 0; height: 620px; align-self: center; }
.role-device { min-width: 0; margin: 0; }
.role-device-mobile { position: absolute; z-index: 1; left: 0; top: 100px; }
.role-device-desktop { width: calc(100% - var(--phone-width) + var(--overlap)); margin-left: calc(var(--phone-width) - var(--overlap)); padding-top: 40px; }
.role-device-surface { display: flex; flex-direction: column; justify-content: center; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-large); color: var(--muted); overflow-wrap: anywhere; }
.role-device-desktop .role-device-surface { aspect-ratio: 16 / 10; padding-left: 60px; }
.role-device-surface p { font-size: 16px; }
.role-device figcaption { padding-top: 12px; font-size: 12px; color: var(--muted); }
.role-device-desktop figcaption { padding-left: 60px; }
.role-device img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-large); }
@media (max-width: 1099px) {
  .roles-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .roles-section > * { grid-column: 1; grid-row: auto; }
  .roles-visual-cluster { display: grid; gap: 24px; height: auto; }
  .role-device-mobile { position: static; }
  .role-device-desktop { width: 100%; margin-left: 0; padding-top: 0; }
  .role-device-desktop .role-device-surface { padding-left: 24px; }
  .role-device-desktop figcaption { padding-left: 0; }
}
@media (max-width: 639px) {
  .roles-visual-cluster { display: contents; }
  .roles-heading { order: 0; }
  .role-dispatcher { order: 1; }
  .role-device-desktop { order: 2; }
  .role-master { order: 3; }
  .role-device-mobile { order: 4; }
  .roles-section .role-consent { order: 5; }
  .role-device-surface { border-radius: var(--radius); }
}

/* Screen 2: map context and a mobile working view share one scene. */
.field-scene { --field-phone: var(--master-phone-width); position: relative; width: 100%; min-width: 0; height: 520px; }
.field-map { width: calc(100% - var(--field-phone) + 60px); padding-top: 16px; }
.field-surface { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-large); background: var(--surface); color: var(--muted); overflow-wrap: anywhere; }
.field-map .field-surface { aspect-ratio: 16 / 10; padding-right: 76px; display: flex; flex-direction: column; justify-content: center; }
.field-phone { position: absolute; right: 0; bottom: 0; }
.field-phone .field-surface { display: flex; flex-direction: column; justify-content: center; }
.field-scene .field-title { font-size: 20px; line-height: 1.3; color: var(--ink); font-weight: 550; }
.field-scene p { font-size: 14px; margin-top: 14px; }
.field-scene .field-caption { font-size: 12px; }
.field-scene p:first-child { margin-top: 0; }
.field-kit { position: absolute; bottom: 0; left: 0; width: min(200px, 44%); }
.field-kit .field-surface { padding: 16px; }
.field-kit .field-title { font-size: 16px; }
.field-kit p { font-size: 12px; }
.field-scene img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-large); }
@media (max-width: 639px) {
  .field-scene { display: grid; gap: 20px; height: auto; }
  .field-map { width: 100%; padding-top: 0; }
  .field-map .field-surface { padding: 20px; }
  .field-phone { position: static; justify-self: end; }
  .field-kit { position: static; width: min(200px, 100%); }
  .field-surface { border-radius: var(--radius); }
}

/* Role-consistent visuals: master states are always mobile. */
@media (min-width: 1100px) {
  .roles-visual-cluster { --phone-width: var(--master-phone-width); }
}
.master-visuals { position: relative; width: 100%; min-width: 0; }
.master-primary, .master-support { min-width: 0; }
.master-surface { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-large); background: var(--surface); color: var(--muted); overflow-wrap: anywhere; display: flex; flex-direction: column; justify-content: center; }
.master-visuals p { margin-top: 16px; font-size: 14px; }
.master-visuals p:first-child { margin-top: 0; }
.master-visuals .master-title { font-size: 21px; line-height: 1.3; font-weight: 550; color: var(--ink); }
.master-visuals img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-large); }
@media (max-width: 639px) {
  .master-surface { border-radius: var(--radius); }
}

/* One size and frame for every master screenshot. */
:root { --master-phone-width: 260px; }
.master-phone { width: min(100%, var(--master-phone-width)); aspect-ratio: 9 / 19.5; flex: 0 0 auto; margin: 0; min-width: 0; }
.master-phone > div { width: 100%; height: 100%; aspect-ratio: auto; box-sizing: border-box; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-large); background: var(--surface); }
.master-phone > div img, .master-phone > img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-large); }
.master-phone-pair { display: flex; align-items: flex-start; justify-content: center; gap: 24px; width: 100%; height: auto; }
.master-phone-pair .master-phone { align-self: flex-start; margin: 0; }
.field-scene { min-height: calc(var(--master-phone-width) * 19.5 / 9); }
.roles-visual-cluster { height: calc(var(--master-phone-width) * 19.5 / 9 + 56px); }
.role-device-mobile { top: 32px; }
/* Reserve enough space for full-size phones instead of shrinking sticky states. */
@media (min-width: 701px) and (max-width: 999px) {
  :root { --master-phone-width: 230px; }
}
@media (max-width: 700px) {
  /* Keep master-phone screenshots compact on narrow screens. Desktop screenshots stay full width. */
  :root { --master-phone-width: 260px; }
  .master-phone {
    width: min(66%, 250px);
    max-width: 250px;
    margin-inline: auto;
  }
  .master-phone-pair { flex-direction: column; align-items: center; }
  .master-phone-pair .master-phone { align-self: center; }
  .field-scene { display: grid; gap: 20px; height: auto; min-height: 0; }
  .field-map { width: 100%; padding-top: 0; }
  .field-map .field-surface { padding: 20px; }
  .field-phone { position: static; justify-self: center; }
  .role-device-mobile { position: static; justify-self: center; }
  .roles-visual-cluster { height: auto; }
}

/* Taller map/dispatcher frames; master phone sizing is unchanged. */
.field-map { --dispatcher-height: 520px; }
.role-device-desktop { --dispatcher-height: 580px; }
.field-map > .field-surface,
.role-device-desktop > .role-device-surface { min-height: var(--dispatcher-height); aspect-ratio: auto; }
.field-map > img,
.role-device-desktop > img { display: block; width: 100%; height: var(--dispatcher-height); object-fit: contain; }
.field-map > .field-surface:has(img),
.role-device-desktop > .role-device-surface:has(img) { height: var(--dispatcher-height); padding: 0; }
.field-map > .field-surface > img,
.role-device-desktop > .role-device-surface > img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 1100px) {
  .roles-visual-cluster { height: auto; min-height: 660px; }
}
@media (min-width: 701px) and (max-width: 1099px) {
  .field-map { --dispatcher-height: 440px; }
  .role-device-desktop { --dispatcher-height: 480px; }
  .roles-visual-cluster { height: auto; }
}
@media (max-width: 700px) {
  .field-map > .field-surface,
  .role-device-desktop > .role-device-surface { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .field-map > .field-surface:has(img),
  .role-device-desktop > .role-device-surface:has(img) { height: auto; aspect-ratio: auto; }
  .field-map > img,
  .role-device-desktop > img,
  .field-map > .field-surface > img,
  .role-device-desktop > .role-device-surface > img { height: auto; }
}

/* Real desktop screenshots: fit the complete frame without cropping the UI. */
.field-map > img, .role-device-desktop > img { background: var(--surface); }

/* macOS window frame; screenshot height follows its original aspect ratio. */
.mac-window { width: 100%; min-width: 0; overflow: hidden; border: 1px solid #cdd2d8; border-radius: 12px; background: white; }
.mac-window-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 34px; border-bottom: 1px solid #dce0e4; background: #f0f1f3; }
.mac-window-controls { position: absolute; left: 12px; display: flex; gap: 7px; }
.mac-window-controls i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; border: 1px solid rgb(0 0 0 / 8%); }
.mac-window-controls i:nth-child(2) { background: #febc2e; }
.mac-window-controls i:nth-child(3) { background: #28c840; }
.mac-window-title { font-size: 11px; line-height: 1; color: var(--muted); }
.mac-window .mac-window-image { display: block; width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 0; background: white; flex: none; }
/* Avoid reserved desktop frame height: only the phone sets cluster minimums. */
@media (min-width: 1100px) {
  .roles-visual-cluster { min-height: calc(var(--master-phone-width) * 19.5 / 9 + 56px); }
}
@media (max-width: 700px) {
  .mac-window-bar { height: 30px; }
  .mac-window-controls { left: 10px; gap: 6px; }
  .mac-window-controls i { width: 8px; height: 8px; }
}
/* Screen 4: keep the dispatcher task list and caption clear of the phone. */
@media (min-width: 1100px) {
  .roles-visual-cluster { display: grid; grid-template-columns: minmax(0, 1fr) var(--master-phone-width); gap: 24px; align-items: start; height: auto; min-height: 0; }
  .roles-visual-cluster .role-device-desktop { grid-column: 1; width: 100%; margin-left: 0; padding-top: 0; }
  .roles-visual-cluster .role-device-mobile { grid-column: 2; position: static; }
  .roles-visual-cluster .role-device-desktop figcaption { padding-left: 0; }
}
/* Distinguish master phones from the light desktop window frames. */
.master-phone {
  border: 3px solid #343942;
  border-radius: 23px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 16px rgb(32 36 43 / 12%);
}
.master-phone > div,
.master-phone > img,
.master-phone > div img {
  border: 0;
  border-radius: 0;
}


/* Shared sticky stage: slides 2–5 switch inside the same visual area. */
.story-copy { min-width: 0; }
.story-stage { display: none; }
.story-role-step { padding-block: 44px 64px; }
@media (min-width: 1000px) and (min-height: 720px) {
  .story-enhanced .story-layout { display: grid; grid-template-columns: minmax(0, .76fr) minmax(544px, 1.24fr); gap: clamp(32px, 4vw, 70px); align-items: start; }
  .story-enhanced .story-step { display: flex; flex-direction: column; justify-content: center; min-height: 75vh; padding-block: 60px; }
  .story-enhanced .story-step:last-child { padding-bottom: 80px; }
  .story-enhanced .step-visual,
  .story-enhanced .story-role-step > .roles-visual-cluster { display: none; }
  .story-enhanced .story-role-step > .role-copy { margin-top: 28px; }
  .story-enhanced .story-role-step > .role-consent { margin-top: 24px; }
  .story-enhanced .story-role-step { gap: 0; }
  .story-enhanced .story-stage { display: block; position: sticky; top: 112px; align-self: start; }
  .story-layers { position: relative; height: max(564px, min(600px, calc(100svh - 200px))); }
  .story-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--motion), visibility var(--motion); }
  .story-layer.is-active { opacity: 1; visibility: visible; }
  .story-layer > .step-visual { display: block; margin-top: 0; }
  .story-layer .roles-visual-cluster { display: grid; grid-template-columns: minmax(0, 1fr) var(--master-phone-width); gap: 24px; align-items: start; height: auto; min-height: 0; }
  .story-layer .role-device-desktop { grid-column: 1; width: 100%; margin: 0; padding: 0; }
  .story-layer .role-device-mobile { grid-column: 2; position: static; }
  .story-layer .role-device-desktop figcaption { padding-left: 0; }
  .story-progress { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; font-size: 12px; color: var(--muted); }
  .story-current { white-space: nowrap; font-variant-numeric: tabular-nums; }
}

/* Warm-introduction page: one persistent header action and a clear product boundary. */
.header-inner { justify-content: space-between; }
.header-actions { margin-left: auto; }
.story-divider { border-top: 2px solid var(--border); padding-block: 32px; margin-top: 24px; }
.story-divider p { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.story-divider span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.story-current { white-space: normal; }
.audience-list li:not(.audience-primary) { font-size: 16px; padding-block: 10px; }
/* Window decoration stays neutral; status colors belong to the screenshots. */
.mac-window-controls i, .mac-window-controls i:nth-child(2), .mac-window-controls i:nth-child(3) { background: #b8bdc5; }
.site-footer a { overflow-wrap: anywhere; }

/* Служебные страницы */
.legal { max-width: var(--text-width); padding-block: clamp(56px, 8vw, 96px); }
.legal h1 { margin-bottom: 12px; }
.legal h2 { font-size: clamp(22px, 2vw, 26px); line-height: 1.25; margin: 44px 0 12px; }
.legal-date { color: var(--muted); font-size: 16px; margin-bottom: 32px; }
.legal-404 { text-align: center; margin-inline: auto; padding-block: clamp(96px, 14vw, 160px); }
.legal-404 .button { margin-top: 16px; }
.form-legal { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 16px; }


/* Шапка: язык и вход */
.header-login { text-decoration: none; color: var(--muted); }
.header-login:hover { color: var(--ink); text-decoration: underline; }
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-item { display: inline-flex; align-items: center; padding: 6px 8px; border-radius: var(--radius-small); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.lang-item.is-current { color: var(--ink); background: var(--surface); }

/* Результат отправки формы */
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-small); font-size: 16px; line-height: 1.5; }
.form-status.is-success { background: var(--surface); border-left: 3px solid var(--ok); }
.form-status.is-error { background: var(--surface); border-left: 3px solid var(--fault); }

/* Баннер согласия на cookie */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; display: flex; justify-content: center; }
.cookie-inner { width: min(720px, 100%); background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(32,36,43,.16); padding: 20px 22px; }
.cookie-title { font-weight: 600; margin-bottom: 6px; }
.cookie-text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.cookie-options { display: grid; gap: 8px; margin-top: 14px; font-size: 15px; }
.cookie-options label { display: flex; gap: 10px; align-items: center; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.cookie-secondary { background: var(--surface); color: var(--ink); }
.cookie-link { background: none; border: 0; padding: 6px 4px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.privacy-list, .legal ul { padding-left: 22px; margin: 12px 0 0; }
.legal li + li { margin-top: 6px; }

/* Переключатель языка: ссылки на другие языки */
a.lang-item { color: var(--muted); text-decoration: none; }
a.lang-item:hover, a.lang-item:focus-visible { background: var(--surface); color: var(--ink); }

/* Короткая надпись кнопки в шапке на телефоне (FR, EN — длинные) */
.cta-short { display: none; }
.header-login { white-space: nowrap; }
@media (max-width: 639px) {
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
}
@media (max-width: 389px) {
  .header-actions { gap: 8px; }
  .header-inner { gap: 8px; }
  .lang-switch { gap: 0; }
  .lang-item { padding: 6px 5px; }
}
@media (max-width: 359px) {
  .header-actions { gap: 4px; }
  .header-inner { gap: 4px; }
  .lang-item { padding: 6px 3px; font-size: 12px; }
  .header-login { font-size: 13px; }
}

/* Флажки в баннере cookie — не растягивать как поля формы */
.cookie-options input[type="checkbox"] { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; margin: 0; padding: 0; }
.cookie-options label { justify-content: flex-start; text-align: left; }
.legal ul + p { margin-top: 16px; }

/* Плашка на французских страницах: предложение английской версии */
.lang-hint { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.4; }
.lang-hint-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; min-height: 42px; padding-block: 6px; text-align: center; }
.lang-hint a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.lang-hint-close { background: none; border: 0; padding: 2px 8px; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }
.lang-hint-close:hover { color: var(--ink); }
.lang-hint-off .lang-hint { display: none; }

/* Телефон: плашка языка в одну тонкую строку (только ссылка + крестик) */
@media (max-width: 700px) {
  .lang-hint-inner { flex-wrap: nowrap; min-height: 36px; padding-block: 2px; gap: 6px 10px; }
  .lang-hint-inner > span { display: none; }
  .lang-hint { font-size: 13px; }
}

/* Телефон: подвал столбиком, всё по левому краю */
@media (max-width: 700px) {
  .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 28px 36px; }
  .site-footer .wordmark { margin-right: 0; margin-bottom: 6px; }
  .site-footer a { padding-block: 4px; }
}
