/* ============================================================
   Otsara umbrella pages: the home page and AEC Buddy.
   Otsara identity: charcoal, orange, mist, slate; Sora + Inter.
   A product page can swap the palette with a theme class (section 10),
   keeping layout, type and components. Base unit 8px.
   The Rebar Automation Platform page has its own sheet (styles.css).
   ============================================================ */

/* ---------- 1. Tokens ---------- */
/* Every colour on the page resolves through this block. */
:root {
  /* surfaces */
  --paper:        #F8F9FA;   /* page */
  --card:         #FFFFFF;   /* console, raised panels */
  --concrete:     #EEF1F4;   /* alternating sections */
  --inset:        #F1F5F9;   /* table heads, chips */

  /* ink */
  --ink:          #0F172A;   /* text, dark surfaces */
  --ink-2:        #1E293B;
  --steel:        #475569;   /* secondary text (7.4:1 on paper) */

  /* line */
  --line:         rgba(15, 23, 42, .12);
  --line-strong:  rgba(15, 23, 42, .22);

  /* signal: Otsara orange. Fill only, always with dark ink on top (5.6:1). */
  --signal:       #F15A1C;
  --signal-hover: #FF7038;
  --on-signal:    #1F0A02;
  --signal-text:  #C2410C;   /* orange for small text on light (5.2:1) */

  /* confirm: reserved for the "yes" moment and completeness */
  --ok:           #1D7A50;
  --ok-soft:      rgba(29, 122, 80, .11);
  --late:         #B42318;   /* overdue figures, always paired with text */
  --late-soft:    rgba(180, 35, 24, .10);

  /* on dark (hero, CTA) */
  --on-dark:      #FFFFFF;
  --on-dark-2:    rgba(255, 255, 255, .82);
  --scrim:        rgba(15, 23, 42, .78);

  --header-bg:    rgba(248, 249, 250, .9);
  --shadow:       0 40px 80px -36px rgba(8, 15, 20, .45), 0 12px 24px -16px rgba(8, 15, 20, .25);

  /* channels for tints that need their own alpha */
  --paper-rgb:    248, 249, 250;   /* hero haze */
  --ink-rgb:      15, 23, 42;      /* CTA scrim, console lines, hover shadow */

  /* derived roles, so a theme can retune them */
  --hero-bg:      #CBD5E1;         /* behind the hero photo while it loads */
  --focus:        var(--signal);
  --signal-on-dark: var(--signal); /* accent text on --ink (thesis caption) */
  --ask-bg:       var(--ink);      /* the example-question bubbles */
  --product-ink:  var(--ink-2);    /* product name beside the logo */
  --bubble:       #DCE5EB;         /* console: user message */
  --bubble-ink:   #13202A;

  /* type */
  --font:         "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;

  /* layout */
  --u:            8px;
  --maxw:         1200px;
  --gutter:       clamp(16px, 4vw, 32px);
  --radius:       10px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
/* English is the default but the HTML is authored in Dutch: until the script has swapped
   the copy, hide the page so no Dutch flashes. The delayed animation is the safety net: if
   the script never runs, the page shows after 1.2 s rather than staying blank. */
html.i18n-pending body { visibility: hidden; animation: i18n-show 0s linear 1.2s forwards; }
@keyframes i18n-show { to { visibility: visible; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 6px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 8px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--primary { background: var(--signal); color: var(--on-signal); }
.btn--primary:hover { background: var(--signal-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--card); }
.btn--ghost:hover { border-color: var(--ink); }
.cta .btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--on-dark); background: transparent; }
.cta .btn--ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .08); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); padding: 6px 0; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.lang button {
  background: none; border: 0; padding: 6px 9px; min-width: 38px;
  font: 600 13px/1 var(--font); color: inherit; cursor: pointer; opacity: .7;
}
.lang button[aria-pressed="true"] { opacity: 1; background: rgba(127, 140, 150, .18); }


@media (max-width: 900px) { .nav { display: none; } .header-actions { margin-left: auto; } }
/* The AEC Buddy page has six nav links and a product name beside the logo: it needs
   about 1140px in full, so it tightens first and drops the links earlier. */
@media (max-width: 1150px) { body.theme-buddy .header-inner { gap: 24px; } body.theme-buddy .nav { gap: 18px; } }
@media (max-width: 1080px) { body.theme-buddy .nav { display: none; } body.theme-buddy .header-actions { margin-left: auto; } }
@media (max-width: 420px) { .header-inner { gap: 12px; } .header-actions { gap: 8px; } .header-actions .btn--sm { padding: 0 12px; font-size: 14px; } }

/* ---------- 5. Hero ---------- */
/* A tower crane over cast columns, toned into the brand duotone. The copy sits
   on the light sky; the bottom strip of the photo stays open so the issue pins
   on the columns read as part of the product story. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0 clamp(200px, 21vw, 300px);
  background: var(--hero-bg);
}
.hero__stage {
  position: absolute; z-index: -2; left: 50%; bottom: 0;
  width: max(100%, calc(var(--hero-h, 900px) * var(--ar, 1.4981)));
  aspect-ratio: var(--ar, 1.4981);
  transform: translateX(-50%);
}
.hero__stage img { width: 100%; height: 100%; display: block; }
/* same geometry as the photo, but above the haze so the pins stay crisp */
.hero__stage.hero__pins { z-index: 0; pointer-events: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--paper-rgb), .93) 0%, rgba(var(--paper-rgb), .86) 38%, rgba(var(--paper-rgb), .3) 56%, rgba(var(--paper-rgb), 0) 68%),
    linear-gradient(180deg, rgba(var(--paper-rgb), .35) 0%, rgba(var(--paper-rgb), 0) 30%, rgba(var(--paper-rgb), 0) 84%, var(--concrete) 100%);
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero h1 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.03em;
  text-wrap: wrap;
}
.hero-sub { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.compat { margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.compat sup { font-size: .6em; }

/* issue pins: Forma issues are pinned to the place they concern */
.pin {
  position: absolute; left: var(--x); top: var(--y);
  display: inline-flex; align-items: center; gap: 6px;
  transform: translate(-14px, -50%) scale(.6); opacity: 0;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, 1.4, .4, 1);
}
.pin i {
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  background: var(--signal); border: 2.5px solid var(--ink); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
}
.pin b {
  font: 700 12px/1 var(--font); color: var(--ink); background: rgba(255, 255, 255, .92);
  padding: 5px 7px; border-radius: 5px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
}
.hero.pins-on .pin { opacity: 1; transform: translate(-14px, -50%); }
.hero.pins-on .pin:nth-of-type(2) { transition-delay: .08s; }
.hero.pins-on .pin:nth-of-type(3) { transition-delay: .16s; }
.hero.pins-on .pin:nth-of-type(4) { transition-delay: .24s; }
.pin--target i::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--signal);
  animation: pin-pulse 1.8s ease-out infinite;
}
.hero.is-resolved .pin--target i { background: var(--ok); }
.hero.is-resolved .pin--target i::after { display: none; }
.hero.is-resolved .pin--target i::before {
  content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
@keyframes pin-pulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin--target i::after { animation: none; } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: clamp(56px, 10vw, 96px); }
  .hero::after { background: linear-gradient(180deg, rgba(var(--paper-rgb), .88) 0%, rgba(var(--paper-rgb), .7) 45%, rgba(var(--paper-rgb), .35) 88%, var(--concrete) 100%); }
  .pin { display: none; }
}

/* ---------- 6. The console (signature) ---------- */
.console { margin: 0; }
/* Console surface: a light window over the photo. Tokens are local so every
   rule below resolves through them. */
.console__frame {
  --card:        rgba(255, 255, 255, .94);
  --line:        rgba(var(--ink-rgb), .10);
  --line-strong: rgba(var(--ink-rgb), .20);
  --inset:       #F1F4F6;
  --on-ok:       #FFFFFF;

  background: var(--card); color: var(--ink);
  border: 1px solid rgba(var(--ink-rgb), .10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  font-size: 14px; line-height: 1.4;
}
.console__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 16px; background: var(--inset); color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.console__project { font-weight: 650; }
.console__scope { color: var(--steel); }
/* Workspace, not a chat window: the result owns the canvas, the conversation
   and the pending action sit beside it, as in the product. */
.console__body { display: grid; gap: 12px; padding: 14px; }
.canvas { min-height: 232px; }
.dock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.chat, .panel { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.chat { background: var(--inset); }
.dock__h { font-size: 12px; font-weight: 650; color: var(--steel); }

.msg--user {
  align-self: flex-end; max-width: 100%; font-size: 13px;
  background: var(--bubble); color: var(--bubble-ink);
  padding: 9px 13px; border-radius: 14px 14px 4px 14px;
}

.result { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.result__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; font-weight: 600; font-size: 13px; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; padding: 3px 8px; border-radius: 99px; font-size: 12px; font-weight: 650; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }

.result__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.result__table th { text-align: left; font-weight: 600; color: var(--steel); background: var(--inset); padding: 7px 12px; }
.result__table td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.result__table th:last-child, .result__table td:last-child { text-align: right; white-space: nowrap; }
.result__table td:nth-child(2) { white-space: nowrap; }
.ref { color: var(--steel); font-weight: 600; }
.late { color: var(--late); font-weight: 600; }
.assignee__new { display: none; font-weight: 700; color: var(--ok); }
.is-target { transition: background-color .4s ease; }

.confirm {
  border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 10px 12px;
  display: grid; gap: 6px; font-size: 13px;
}
.confirm__target { color: var(--ink-2); }
.confirm__change { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--steel); }
.confirm__change s { color: var(--steel); }
.confirm__delta { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.confirm__change b { color: var(--ink); }
.confirm__actions { display: flex; gap: 8px; margin-top: 6px; }
.cbtn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 13px; }
.cbtn--yes { background: var(--ok); border-color: var(--ok); color: var(--on-ok); transition: transform .12s ease, box-shadow .12s ease; }

.done { display: none; align-items: center; gap: 6px; margin-top: 6px; color: var(--ok); font-weight: 650; font-size: 13px; }


/* Animated sequence: only when app.js opts in, so no-JS shows the full story. */
.console.is-playing [data-step]:not([data-step="5"]) { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.console.is-playing [data-step].is-on { opacity: 1; transform: none; }
.console.is-pressed .cbtn--yes { transform: scale(.95); box-shadow: 0 0 0 4px var(--ok-soft); }
.console.is-done .confirm { border-color: var(--ok); }
.console.is-done .confirm__actions { display: none; }
.console.is-done .done { display: flex; }
.console.is-done .is-target { background: var(--ok-soft); }
.console.is-done .assignee__old { display: none; }
.console.is-done .assignee__new { display: inline; }

@media (max-width: 560px) {
  .console__body { padding: 10px; }
  .canvas { min-height: 0; }
  .dock { grid-template-columns: minmax(0, 1fr); }
  .chat, .panel { min-height: 0; }
  .result__table th:nth-child(2), .result__table td:nth-child(2) { display: none; }
}

/* ---------- 7. Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-top: 0; }
.section--concrete { background: var(--concrete); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section h2, .cta h2 {
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1.12; font-weight: 650; letter-spacing: -.025em;
}
.lede { margin-top: 18px; font-size: 19px; color: var(--steel); max-width: 34em; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }

/* problem: a quiet statement right after the photo, heading left, copy right */
.problem { padding-block: clamp(56px, 7vw, 96px); }
.problem__copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.problem__copy h2 { max-width: 20ch; }
.problem__copy p { max-width: 34em; font-size: 19px; color: var(--steel); }
@media (max-width: 860px) { .problem__copy { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* full-bleed photo backdrop, used by the closing CTA */
.band__img, .band__img picture, .band__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band__img { z-index: -1; }
.band__img img { object-fit: cover; }
.band__img::after { content: ""; position: absolute; inset: 0; }

/* what it does: four columns divided by rules, not cards */
.abilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.ability { padding: 24px 24px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.ability + .ability { padding-left: 24px; border-left: 1px solid var(--line); }
.ability p { color: var(--steel); }
.ask {
  margin-top: auto; align-self: flex-start;
  background: var(--ask-bg); color: var(--on-dark) !important;
  font-size: 14px; padding: 8px 12px; border-radius: 12px 12px 3px 12px;
}
/* the example question sits at the foot of its column, so the bubbles line up across the row */
.ability .ask { margin-top: auto; }
.ability > p:not(.ask) { margin-bottom: 4px; }   /* with the 10px gap: at least 14px above the bubble */
/* Better, where supported: the columns of a row share three tracks (heading, text, question),
   so every bubble starts on the same line and a two-line bubble grows downward. */
@supports (grid-template-rows: subgrid) {
  .ability { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
  /* bubbles fill the shared track: equal height across the row, text centred vertically */
  .ability .ask { margin-top: 4px; align-self: stretch; justify-self: start; display: flex; align-items: center; }
}
@media (max-width: 980px) {
  .abilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ability:nth-child(3) { padding-left: 0; border-left: 0; }
  .ability:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; }
}
@media (max-width: 600px) {
  .abilities { grid-template-columns: minmax(0, 1fr); }
  .ability, .ability + .ability { padding: 20px 0 8px; border-left: 0; }
  .ability + .ability { border-top: 1px solid var(--line); }
  .ability:nth-child(n+3) { margin-top: 0; }
}

/* trust */
.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
/* five buyer questions, each answered: a checklist, so a check mark per row */
.checks { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.checks li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line-strong);
}
.checks li::before {
  content: ""; grid-row: 1 / span 2; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 9.5 16.5 5 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks p { margin-top: 4px; color: var(--steel); }
@media (max-width: 900px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* steps: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: none; }
.step { position: relative; padding-top: 64px; }
.step::before { content: ""; position: absolute; left: 48px; right: -32px; top: 20px; height: 2px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step__n {
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
  border: 2px solid var(--ink); background: var(--paper);
}
.step--yes .step__n { background: var(--ok); border-color: var(--ok); color: var(--on-dark); }
.step p { margin-top: 8px; color: var(--steel); max-width: 30ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .step { padding: 0 0 0 64px; min-height: 42px; }
  .step::before { left: 20px; right: auto; top: 48px; bottom: -24px; width: 2px; height: auto; }
}

/* roles */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.role { border-top: 2px solid var(--ink); padding-top: 20px; }
.role p { margin-top: 8px; color: var(--steel); }
@media (max-width: 760px) { .roles { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tl { position: relative; padding-top: 36px; }
.tl::before { content: ""; position: absolute; top: 7px; left: 0; right: -24px; height: 2px; background: var(--line-strong); }
.tl:last-child::before { right: 0; background: linear-gradient(90deg, var(--line-strong), transparent); }
.tl::after { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.tl--now::after { background: var(--signal); border-color: var(--ink); }
.tl p { margin-top: 8px; color: var(--steel); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tl { padding: 0 0 0 36px; }
  .tl::before { top: 18px; bottom: -24px; left: 7px; right: auto; width: 2px; height: auto; }
  .tl:last-child::before { display: none; }
}

/* the thesis question: where the product is heading */
.thesis { margin: clamp(48px, 6vw, 72px) 0 0; padding: clamp(24px, 4vw, 40px); background: var(--ink); color: var(--on-dark); border-radius: var(--radius); }
.thesis figcaption { font-size: 15px; font-weight: 600; color: var(--signal-on-dark); }
.thesis blockquote { margin: 12px 0 0; }
.thesis blockquote p { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; font-weight: 600; font-family: var(--font-display); letter-spacing: -.01em; max-width: 40ch; }

/* FAQ */
.faq-wrap { max-width: 880px; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-weight: 650; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--steel); max-width: 62ch; }
.faq a { color: var(--ink); text-underline-offset: 3px; }

/* CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: var(--ink); padding-block: clamp(96px, 12vw, 168px); }
.cta .band__img img { object-position: 50% 35%; }
.cta .band__img::after { background: linear-gradient(90deg, rgba(var(--ink-rgb), .9) 0%, rgba(var(--ink-rgb), .7) 55%, rgba(var(--ink-rgb), .35) 100%); }
.cta-inner h2 { max-width: 16ch; }
.cta-inner p { margin-top: 18px; font-size: 19px; color: var(--on-dark-2); max-width: 34em; }

/* ---------- 8. Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: 56px 0 32px; font-size: 15px; }
.site-footer .brand { color: var(--on-dark); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 28ch; }
.footer-label { color: var(--on-dark); font-weight: 650; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer ul a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }
.footer-bottom span:last-child { max-width: 70ch; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ============================================================
   9. Otsara umbrella components
   ============================================================ */

/* brand: Otsara logo, with the current product after a hairline */
.brand__logo { height: 32px; width: auto; display: block; }
.brand__product { display: inline-flex; align-items: center; gap: 12px; font: 600 15px/1 var(--font-display); color: var(--product-ink); white-space: nowrap; }
.brand__product::before { content: ""; width: 1px; height: 20px; background: var(--line-strong); }
.site-footer .brand__logo { height: 28px; }
@media (max-width: 560px) { .brand__product { display: none; } .brand__logo { height: 26px; } }

.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }

/* hero without the product console: copy only, wider measure */
.hero--solo .hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero--solo .hero-copy { max-width: 640px; }
.hero--solo h1 { font-size: clamp(36px, 5vw, 66px); }
.tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font: 600 13px/1 var(--font); color: var(--ink-2);
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

/* home: the products, side by side */
/* two columns; the lead product (.product--feature) spans both, photo beside its text */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 28px); }
/* the open tile: an invitation, so it reads as a frame, not a product */
.product.product--next { background: transparent; border: 1.5px dashed var(--line-strong); justify-content: center; }
.product.product--next .product__body { justify-content: center; }
.product.product--next .product__link { margin-top: 8px; }   /* stays with its text, the block centred in the tile */
.product.product--next:hover { border-color: var(--ink); box-shadow: none; }
.product {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.product:hover { border-color: var(--line-strong); box-shadow: 0 24px 48px -32px rgba(var(--ink-rgb), .45); }
.product__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--concrete); }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product .product__for { font-size: 14px; font-weight: 600; color: var(--signal-text); }  /* .product p would otherwise win */
.product h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.02em; }
.product p { color: var(--steel); }
.product ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.product li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 15px; }
.product li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 9.5 16.5 5 12'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.product__link { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
@media (max-width: 700px) { .products { grid-template-columns: minmax(0, 1fr); } }

.product--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.product--feature .product__media { aspect-ratio: auto; min-height: 340px; }
.product--feature .product__body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.product--feature h3 { font-size: clamp(28px, 3.2vw, 40px); }
.product--feature .product__body > p:not(.product__for) { font-size: 18px; }
@media (max-width: 860px) {
  .product--feature { grid-template-columns: minmax(0, 1fr); }
  .product--feature .product__media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* availability label on a product tile */
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-strong);
  font: 600 12px/1 var(--font); color: var(--steel); background: var(--card);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live { color: var(--signal-text); border-color: currentColor; }

/* shared principles: three columns divided by rules */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.pillar { padding: 24px 28px 0 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar p { margin-top: 8px; color: var(--steel); }
.pillar small { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar + .pillar { padding: 20px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
}

/* partners */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.partner { border-top: 2px solid var(--ink); padding-top: 20px; }
.partner p { margin-top: 8px; color: var(--steel); }
.partner a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 760px) { .partners { grid-template-columns: minmax(0, 1fr); } }

/* AEC Buddy: small label above a group of abilities */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font: 600 14px/1 var(--font); color: var(--signal-text); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.section-head + .eyebrow { margin-top: -12px; }

/* AEC Buddy: the model console. The Viewer with its one-line conversation bar,
   and the answer card beside it, as in the product's Viewer section. */
.mconsole__body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; padding: 14px; }
.viewer {
  display: flex; flex-direction: column; min-height: 100%;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--inset) 100%);
}
.viewer svg { display: block; width: 100%; height: auto; margin-block: auto; padding: 14px 18px 6px; }
.viewer__ask {
  display: flex; align-items: center; gap: 10px; margin: 0 10px 10px; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); font-size: 13px;
}
.viewer__ask::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.mcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.mcard__read { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 12px 10px; font-size: 12px; color: var(--steel); }
.chip { font-weight: 600; color: var(--ink-2); background: var(--bubble); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--c); }
.mcard__gap { padding: 9px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--steel); }
.mcard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 0 12px 12px; }
.cbtn--on { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.badge--info { background: var(--bubble); color: var(--signal-text); }
@media (max-width: 860px) { .mconsole__body { grid-template-columns: minmax(0, 1fr); } }

/* AEC Buddy: the two dashboards. Each is a console frame with its description
   below; the frames share a row so they end on the same line. */
.dboards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); }
.dboard { display: flex; flex-direction: column; gap: 28px; }
@supports (grid-template-rows: subgrid) {
  .dboard { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 28px; }
}
.dboard .console__frame { height: 100%; display: flex; flex-direction: column; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 24px 48px -32px rgba(var(--ink-rgb), .45); }
.dash__body { flex: 1; display: grid; align-content: start; gap: 12px; padding: 14px; }
.dash__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--steel); }
.dash__foot .cbtn { min-height: 26px; padding: 0 10px; font-size: 12px; color: var(--ink); }

.dstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dstat { display: grid; gap: 2px; padding: 10px 10px 9px; border: 1px solid var(--line); border-radius: 8px; }
.dstat b { font: 650 24px/1.1 var(--font-display); letter-spacing: -.02em; }
.dstat span { font-size: 12px; line-height: 1.3; color: var(--steel); }
.dstat--late b { color: var(--late); }

.dtile { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.dsum { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.badge--late { background: var(--late-soft); color: var(--late); }
.badge--mute { background: var(--inset); color: var(--steel); }

/* horizontal bars: label, bar, value. --w is the share of the largest value,
   --c the group colour (the signal colour when a chart has one series) */
.dbars { display: grid; gap: 8px; padding: 2px 12px 12px; font-size: 12px; }
.dbar { display: grid; grid-template-columns: 96px minmax(0, 1fr) 28px; align-items: center; gap: 10px; }
.dbar span { color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbar i { display: block; height: 10px; width: var(--w); border-radius: 3px; background: var(--c, var(--signal)); }
.dbar b { text-align: right; font-weight: 600; }
.dbar--mute i { background: var(--line-strong); }

/* checks: a status dot per row, always with the outcome in words beside it */
.dchecks { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.dcheck { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.dcheck::before { content: ""; grid-row: 1 / span 2; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--ok); }
.dcheck--fail::before { background: var(--late); }
.dcheck--skip::before { background: transparent; border: 2px solid var(--steel); }
.dcheck b { font-weight: 600; }
.dcheck span { grid-column: 2; font-size: 12px; color: var(--steel); }
.dcheck--more { display: block; }
.dcheck--more::before { display: none; }

.dboard__copy p { margin-top: 8px; color: var(--steel); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; border-top: 2px solid var(--ink); padding-top: 18px; }
.ticks li { position: relative; padding-left: 26px; color: var(--steel); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 9.5 16.5 5 12'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.fineprint a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 860px) {
  .dboards { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 460px) {
  .dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dbar { grid-template-columns: 84px minmax(0, 1fr) 28px; }
}

/* AEC Buddy: comparing model versions. The copy beside a console with two answers:
   the summary of changes, then a follow-up with values before and after. */
.vcompare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(56px, 7vw, 88px); }
.vcompare__copy h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.vcompare__copy > p:not(.fineprint) { margin-top: 10px; color: var(--steel); }
.vcompare__copy .fineprint { margin-top: 22px; font-size: 14px; }
.vc__body { display: grid; gap: 10px; padding: 14px; }
.vc__ask { margin: 0; }
.vc__body .dstats { padding: 0 12px 12px; }
.vc__body .mcard__actions { padding-top: 10px; }
.dstat--add b { color: var(--ok); }
.dstat--del b { color: var(--late); }
.vdiff { margin-left: 10px; font-weight: 600; }
@media (max-width: 980px) { .vcompare { grid-template-columns: minmax(0, 1fr); } }

.abilities--after { margin-top: clamp(40px, 5vw, 56px); }
.fineprint { margin-top: 28px; max-width: 72ch; font-size: 15px; color: var(--steel); }
.fineprint b { color: var(--ink); }

/* four roles in a row */
.roles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1000px) { .roles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .roles--4 { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   10. Product themes
   A theme swaps the palette only: layout, type and components stay
   the Otsara ones, so every product reads as part of the family.
   Put the class on <body> for a product page, or on a single
   element (a home page tile) to tint just that element.
   ============================================================ */

/* AEC Buddy: Blueprint blue on graphite, the product's own palette
   (Otsara.AecBuddy, wwwroot/design/tokens.css). Blue carries white
   text (7.0:1), so unlike Otsara orange it is used for text too. */
.theme-buddy {
  --paper:          #F5F7F9;   /* neutral-50 */
  --card:           #FFFFFF;
  --concrete:       #EDF0F3;   /* neutral-100 */
  --inset:          #F5F7F9;
  --ink:            #151A21;   /* neutral-900 */
  --ink-2:          #232B35;   /* neutral-800 */
  --steel:          #4D5867;   /* neutral-600, 6.8:1 on paper */
  --paper-rgb:      245, 247, 249;
  --ink-rgb:        21, 26, 33;
  --line:           rgba(21, 26, 33, .12);
  --line-strong:    rgba(21, 26, 33, .22);

  --signal:         #145F80;   /* brand-600 */
  --signal-hover:   #0F4C68;   /* brand-700 */
  --on-signal:      #FFFFFF;
  --signal-text:    #145F80;
  --signal-on-dark: #7DB6D0;   /* brand-300, 7.8:1 on graphite */
  --focus:          #237599;   /* brand-500, the product's focus colour */

  --ok:             #1C6B47;   /* success-text */
  --ok-soft:        rgba(46, 154, 102, .13);
  --late:           #A83226;   /* danger-text */
  --late-soft:      rgba(168, 50, 38, .10);

  --hero-bg:        #C2CAD3;
  --header-bg:      rgba(245, 247, 249, .9);
  --scrim:          rgba(21, 26, 33, .78);
  --ask-bg:         #0F4C68;   /* white on brand-700, 9.4:1 */
  --product-ink:    #145F80;
  --bubble:         #ECF5F9;   /* brand-50, the product's own user message */
  --bubble-ink:     #151A21;
}
