/* AIM site: layout and behavior carried over from the approved wireframe (V2). The look lives in design.css. */
/* =====================================================================
   STAGE 1 — WIREFRAME
   Structure, hierarchy, navigation and behavior only.
   Grayscale, one system font, square corners, no shadows, gradients,
   imagery or motion. Brand and UI styling come later (brand.css).
   ===================================================================== */
:root {
  --ink: #222;
  --muted: #595959;
  --line: #777;
  --line-soft: #c4c4c4;
  --surface: #f2f2f2;
  --surface-2: #e6e6e6;
  --bg: #fff;
  --gap: 1.5rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .button { display: inline-block; padding: .7rem 1rem; border: 1px solid var(--ink); background: var(--bg); cursor: pointer; text-decoration: none; text-align: center; }
.button.primary, button.primary { border-width: 3px; padding: calc(.7rem - 2px) calc(1rem - 2px); font-weight: bold; }
button:hover, .button:hover { background: var(--surface-2); }
button:disabled { color: #767676; background: #eee; border-color: #999; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.125rem; } h4 { font-size: 1rem; }
p { max-width: 70ch; margin: 0 0 1rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- placeholder content ---------- */
.ph { color: var(--muted); }                       /* [Bracketed role labels] */
.lines { display: grid; gap: .5rem; margin: 0 0 1rem; max-width: 60ch; }
.lines i { display: block; height: .7rem; background: var(--line-soft); }
.lines i:last-child { width: 65%; }
.lines.short i:last-child { width: 40%; }
.media { border: 1px dashed var(--line); background: var(--surface); display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); min-height: 180px; }
.media.sq { min-height: 0; aspect-ratio: 1; max-width: 100%; }
.logo-box { display: inline-grid; place-items: center; border: 1px dashed var(--line); padding: .4rem .9rem; color: var(--muted); font-size: .875rem; text-decoration: none; }
.tbd { display: inline-block; border: 1px dashed var(--ink); padding: .1rem .4rem; font-size: .7rem; font-weight: bold; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; background: var(--bg); }

/* ---------- site shell ---------- */
.phonebar { border-bottom: 1px solid var(--line); background: var(--surface); font-size: .875rem; }
.phonebar .wrap { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding-block: .5rem; }
.phonebar a { font-weight: bold; white-space: nowrap; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; }
.site-nav { display: none; width: 100%; flex-direction: column; gap: .75rem; }
.site-nav[data-open="true"] { display: flex; }
.site-nav a { text-decoration: none; padding-block: .2rem; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; font-weight: bold; }
.menu-toggle { display: block; }

main > section { padding-block: 2rem; border-bottom: 1px solid var(--line); }
main > section:last-child { border-bottom: 0; }
.page-head { background: var(--surface); }
.eyebrow { font-size: .875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.panel-box { border: 1px solid var(--line); padding: 1.25rem; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.path { display: grid; gap: .35rem; text-align: left; padding: 1.25rem; border: 3px solid var(--ink); background: var(--bg); width: 100%; }
.path .w { font-size: 1.5rem; font-weight: bold; }
.strip { border: 1px solid var(--ink); background: var(--surface); padding: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.list-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.list-rows li { border-bottom: 1px solid var(--line-soft); padding: .75rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr); }
.checklist li::before { content: "• "; }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.steps li { border: 1px solid var(--line); padding: 1rem; counter-increment: s; }
.steps li::before { content: "Step " counter(s); display: block; font-size: .75rem; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
details.faq { border: 1px solid var(--line); padding: 1rem; margin-bottom: .75rem; }
details.faq summary { cursor: pointer; font-weight: bold; }

.side-tabs { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 30; display: none; gap: .4rem; justify-items: end; padding-right: env(safe-area-inset-right, 0px); }
.side-tabs .tabs-label { font-size: .7rem; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; line-height: 1.25; text-align: right; color: var(--muted); background: var(--bg); padding: .4rem .6rem; min-width: 6.5rem; }
.side-tabs button { display: flex; align-items: center; gap: .5rem; background: #111; color: #fff; border: 0; font-weight: bold; min-width: 6.5rem; text-align: left; padding: .8rem .9rem .8rem .7rem; cursor: pointer; }
.side-tabs button .chev { font-size: 1.1rem; line-height: 1; }
.side-tabs button .sub { display: none; color: #fff; font-weight: normal; font-size: .85rem; white-space: nowrap; }
.side-tabs button:hover, .side-tabs button:focus-visible { background: #000; color: #fff; padding-left: 1.1rem; }
.side-tabs button:hover .sub, .side-tabs button:focus-visible .sub { display: inline; }
.side-tabs button:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; background: var(--bg); border-top: 2px solid var(--ink); padding: .5rem var(--gutter-r) calc(.5rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.bottom-bar a, .bottom-bar button { display: grid; place-items: center; text-align: center; font-weight: bold; text-decoration: none; border: 1px solid var(--ink); padding: .65rem .25rem; background: var(--bg); font-size: .9rem; }
.bottom-bar button { background: #111; color: #fff; border-color: #111; }
.bottom-bar button:hover { background: #333; }
body { padding-bottom: 4.5rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 2rem; }
.site-footer .cols { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }

/* ---------- request panel ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 100vw; background: var(--bg); z-index: 60; display: flex; flex-direction: column; border-left: 3px solid var(--ink); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.d-head { border-bottom: 1px solid var(--line); padding: 1rem var(--gutter-r) 0 var(--gutter-l); display: grid; gap: .75rem; }
.d-top { display: flex; align-items: flex-start; gap: 1rem; }
.d-title { margin: 0; display: grid; gap: .15rem; }
.d-title:focus { outline: none; }
.d-title .tw { font-size: 1.75rem; }
.d-title .tl { font-size: 1rem; font-weight: normal; color: var(--muted); }
.d-close { margin-left: auto; min-width: 2.75rem; }
.modes { display: flex; flex-wrap: wrap; gap: .5rem; }
.modes button { border-width: 1px; }
.modes button[aria-pressed="true"] { border-width: 3px; padding: calc(.7rem - 2px) calc(1rem - 2px); font-weight: bold; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.stepper li { flex: 1; min-width: 0; }
.stepper button { width: 100%; border: 0; border-bottom: 3px solid var(--line-soft); text-align: left; padding: .5rem .1rem; font-size: .8rem; background: none; }
.stepper button .n { display: block; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; }
.stepper button .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper .done button { border-color: var(--line); }
.stepper .cur button { border-color: var(--ink); font-weight: bold; }
.stepper button:disabled { background: none; color: var(--muted); cursor: default; }
.urgent { border-bottom: 1px solid var(--ink); background: var(--surface-2); padding: .6rem var(--gutter-r) .6rem var(--gutter-l); font-size: .9rem; }
.d-body { flex: 1; overflow-y: auto; padding: 1.25rem var(--gutter-r) 2rem var(--gutter-l); overscroll-behavior: contain; }
.d-foot { border-top: 1px solid var(--line); padding: .75rem var(--gutter-r) .75rem var(--gutter-l); display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.d-foot .grow { flex: 1; color: var(--muted); font-size: .85rem; }
.form-stack { display: grid; gap: 1.5rem; max-width: 820px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button[aria-checked="true"] { border-width: 3px; padding: calc(.7rem - 2px) calc(1rem - 2px); font-weight: bold; }
.chips button[aria-checked="true"]::before { content: "● "; }
fieldset { border: 1px solid var(--line); margin: 0; padding: 1rem; min-width: 0; }
legend { font-weight: bold; padding: 0 .35rem; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem 1.25rem; }
.field { display: grid; gap: .35rem; min-width: 0; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field label, .field .lbl { font-weight: bold; font-size: .9rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { width: 100%; padding: .6rem; border: 1px solid var(--line); background: var(--bg); }
.field textarea { min-height: 90px; resize: vertical; }
.field.bad input, .field.bad textarea { border: 2px solid var(--ink); }
.req { font-weight: normal; font-size: .8rem; }
.err { font-weight: bold; font-size: .85rem; margin: 0; }
.err::before { content: "⚠ "; }
.err:empty { display: none; }
.hint { color: var(--muted); font-size: .85rem; }
.drop { border: 2px dashed var(--line); background: var(--surface); padding: 1rem; display: grid; gap: .75rem; }
.drop.primary { border-color: var(--ink); }
.quick-box { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; border: 1px dashed var(--ink); padding: .85rem 1rem; }
.quick-box strong { display: block; }
.drop.over { background: var(--surface-2); }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.files:empty { display: none; }
.files li { border: 1px solid var(--line); padding: .2rem .2rem .2rem .6rem; display: flex; gap: .4rem; align-items: center; font-size: .85rem; max-width: 100%; }
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files button { padding: 0 .4rem; }
.radios, .checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.radios label, .checks label { display: flex; gap: .4rem; align-items: center; font-weight: normal; }
.checkline { display: flex; gap: .75rem; align-items: flex-start; border: 2px solid var(--ink); padding: 1rem; cursor: pointer; }
.checkline input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex-shrink: 0; }
.from { font-size: .7rem; font-weight: bold; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--ink); padding: 0 .3rem; margin-left: .35rem; white-space: nowrap; font-style: normal; }
.rv { border: 1px solid var(--line); }
.rv-h { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--surface); padding: .5rem 1rem; border-bottom: 1px solid var(--line); }
.rv-h h4 { margin: 0; }
.rv-h button { padding: .3rem .6rem; }
.rv dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.rv dt, .rv dd { margin: 0; padding: .45rem 1rem; font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.rv dt { color: var(--muted); padding-bottom: 0; }
.rv dd { border-bottom: 1px solid var(--line-soft); }
.done-box { border: 3px solid var(--ink); padding: 1.25rem; }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; border-bottom: 3px solid transparent; background: none; }
.tabs button[aria-selected="true"] { border-color: var(--ink); font-weight: bold; }
.email { border: 1px solid var(--line); font-size: .9rem; }
.email .meta { background: var(--surface); padding: .75rem 1rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .75rem; border-bottom: 1px solid var(--line); }
.email .meta span { overflow-wrap: anywhere; }
.email .meta span:nth-child(odd) { color: var(--muted); }
.email .body { padding: 1rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
td { border: 1px solid var(--line-soft); padding: .4rem .6rem; vertical-align: top; overflow-wrap: anywhere; }
td:first-child { color: var(--muted); width: 38%; }

/* AI preview */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.chat { border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 360px; }
.chat-h { border-bottom: 1px solid var(--line); padding: .6rem 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
.msgs { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--surface); overflow-y: auto; max-height: 55vh; }
.msg { max-width: 85%; border: 1px solid var(--line); background: var(--bg); padding: .5rem .75rem; font-size: .9rem; }
.msg.you { align-self: flex-end; border: 2px solid var(--ink); }
.msg .who { display: block; font-size: .7rem; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.chat-f { border-top: 1px solid var(--line); padding: .5rem; display: flex; gap: .5rem; }
.chat-f input { flex: 1; min-width: 0; padding: .6rem; border: 1px solid var(--line); background: var(--surface); }
.sum { border: 1px solid var(--line); }
.sum-h { padding: .6rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.sum dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.sum dt, .sum dd { margin: 0; padding: .35rem 1rem; border-bottom: 1px solid var(--line-soft); font-size: .85rem; min-width: 0; overflow-wrap: anywhere; }
.sum dt { color: var(--muted); }
.sum dd.empty { color: #8a8a8a; }

/* ---------- wider screens ---------- */
@media (min-width: 701px) {
  .menu-toggle { display: none; }
  .site-nav, .site-nav[data-open="true"] { display: flex; width: auto; flex-direction: row; gap: 1.5rem; }
  .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; }
  
  main > section { padding-block: 3rem; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv dl { grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); }
  .rv dt { padding-bottom: .45rem; border-bottom: 1px solid var(--line-soft); }
}
@media (min-width: 861px) {
  .side-tabs { display: grid; }
  .bottom-bar { display: none; }
  body { padding-bottom: 0; }
}
/* keep page content clear of the side tabs until the screen is wide enough */
@media (min-width: 861px) and (max-width: 1400px) {
  main .wrap, .site-footer .wrap { padding-right: calc(var(--gutter-r) + 5.5rem); }
}
@media (min-width: 901px) {
  .drawer { width: min(1080px, calc(100vw * .75)); }
  .ai-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}
@media print {
  .side-tabs, .bottom-bar, .skip, .drawer, .scrim { display: none !important; }
  body { padding: 0; }
}
.skip { position: absolute; left: 1rem; top: -100px; background: var(--bg); padding: 1rem; z-index: 100; border: 1px solid var(--ink); }
.skip:focus { top: 1rem; }

/* small additions for the populated wireframe */
.inline-lines { display: inline-grid; width: 9rem; margin: 0; }
.inline-lines i:last-child { width: 100%; }
.d-call { margin: .25rem 0 0; font-size: .9rem; }
.sub { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: .5rem; }
.panel-box h3 { margin-bottom: .5rem; }
.team .role { color: var(--muted); margin-bottom: .75rem; }
@media (max-width: 700px) { .phonebar .inline-lines { display: none; } }

/* process roadmap: vertical on phones, horizontal on wide screens */
.roadmap { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); counter-reset: r; }
.roadmap li { position: relative; padding: 0 0 1.5rem 3rem; counter-increment: r; display: grid; gap: .25rem; min-width: 0; }
.roadmap li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border: 2px solid var(--ink); background: var(--bg); display: grid; place-items: center; font-weight: bold; z-index: 1; }
.roadmap li::after { content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.25rem; bottom: 0; border-left: 2px solid var(--line); }
.roadmap li:last-child::after { display: none; }
.roadmap span { color: var(--muted); font-size: .9rem; }
@media (min-width: 901px) {
  .roadmap { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .roadmap li { padding: 3rem .75rem 0 0; }
  .roadmap li::after { left: 2.25rem; right: 0; top: calc(1.125rem - 1px); bottom: auto; border-left: 0; border-top: 2px solid var(--line); }
}
.cta-box { border-style: dashed; display: grid; gap: .5rem; align-content: start; }
.cta-box .actions button { padding: .4rem .7rem; }


/* phone bar email + main-menu divider between the service pages and company pages */
.phonebar .sep { color: var(--line); }
.nav-sep { display: block; border-top: 1px solid var(--line-soft); margin: .25rem 0; }
@media (min-width: 701px) { .nav-sep { border-top: 0; border-left: 1px solid var(--line); align-self: stretch; margin: .1rem 0; } }
@media (max-width: 700px) { .phonebar .sep { display: none; } .phonebar .wrap { gap: .15rem 1rem; } }
.site-footer .logo-box { margin-bottom: 1.25rem; }


/* Request panel slides in from the right over a fading backdrop, so it reads as a panel, not a new page. */
.scrim { opacity: 0; transition: opacity .3s ease; }
.scrim.open { opacity: 1; }
.drawer { transform: translateX(100%); transition: transform .3s ease; will-change: transform; }
.drawer.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .scrim, .drawer { transition: none !important; } }

