/* Homepage design trials A / B / C. Loaded only on index-a/b/c.html. Builds on style.css tokens. */

/* ================= Shared bits ================= */
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid #D5D5D9; background: #fff; color: var(--ink); border-radius: 30px; padding: 8px 16px;
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: #000; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.note-inline { font-size: .85rem; color: var(--muted); }

/* ================= A — Spec Sheet ================= */
.utility { background: var(--grey-50); border-bottom: 1px solid var(--line); font-size: .86rem; }
.utility .container { display: flex; gap: 26px; align-items: center; height: 42px; overflow-x: auto; white-space: nowrap; }
.utility a { color: var(--text); font-weight: 600; }
.utility a:hover { color: var(--red); }
.utility .push { margin-left: auto; color: var(--red); }

.a-hero { padding: 70px 0 56px; border-bottom: 1px solid var(--line); }
.a-hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.a-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); letter-spacing: -.02em; }
.a-hero h1 em { font-style: normal; color: var(--red); }
.a-hero .lead { font-size: 1.12rem; max-width: 560px; margin-bottom: 30px; }
.a-hero .search-field { max-width: 560px; }
.a-hero .search-field input { border-radius: 8px; height: 60px; border-color: #C9C9CE; }
.a-facts { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.a-facts h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 16px 22px; margin: 0; border-bottom: 1px solid var(--line); background: var(--grey-50); }
.a-facts dl { margin: 0; }
.a-facts .row { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.a-facts .row:last-child { border-bottom: 0; }
.a-facts dt { color: var(--text); }
.a-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.a-facts dd b { color: var(--red); }

.spec { padding: 70px 0 90px; }
.spec-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 22px; }
.spec-head h2 { margin: 0; }
.spec .chip-row { margin-bottom: 18px; }
.spec-table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
table.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 900px; }
.spec-table th { text-align: left; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--grey-50); padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.spec-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover { background: #FCFCFD; }
.spec-table .prod { font-weight: 700; color: var(--ink); }
.spec-table .proc { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 4px; background: var(--grey-50); border: 1px solid var(--line); white-space: nowrap; }
.spec-table .std { font-size: .85rem; color: var(--ink); white-space: nowrap; }
.spec-table .std:empty::before { content: "—"; color: #B5B5BA; }
.spec-table .acts { white-space: nowrap; text-align: right; }
.spec-table .acts a { font-size: .85rem; font-weight: 700; margin-left: 12px; }
.spec-table .acts .doc { color: var(--ink); border-bottom: 1px solid currentColor; }
.spec-table .acts .doc:hover { color: var(--red); }
.spec-table .acts .smp { color: #fff; background: var(--red); padding: 7px 12px; border-radius: 4px; }
.spec-table .acts .smp:hover { background: var(--red-dark); }
.spec-table tr[hidden] { display: none; }
.spec .foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

.doclib { background: var(--grey-50); padding: 80px 0; }
.doclib .cards.three .card { background: #fff; }
.doclib .card .ico { width: 44px; height: 44px; border-radius: 8px; background: var(--red-pale); color: var(--red); display: grid; place-items: center; margin-bottom: 14px; }
.doclib .card a { display: inline-block; margin-top: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badges span { font-size: .78rem; font-weight: 700; border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; color: var(--ink); background: #fff; }

.principals-a { padding: 80px 0; }
.principals-a .list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.principals-a .item { padding: 24px 22px 26px 0; border-bottom: 1px solid var(--line); }
.principals-a .item + .item { padding-left: 22px; border-left: 1px solid var(--line); }
.principals-a .item .word { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.principals-a .item p { margin: 8px 0 12px; color: var(--muted); font-size: .93rem; }

.cantfind { padding: 0 0 100px; }
.cantfind .box { border: 2px solid var(--ink); border-radius: 14px; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; }
.cantfind .box > div { padding: 32px 28px; }
.cantfind .box > div + div { border-left: 1px solid var(--line); }
.cantfind h2 { font-size: 1.7rem; margin: 0; }
.cantfind h3 { font-size: 1.1rem; }
.cantfind p { color: var(--muted); font-size: .95rem; }

/* ================= B — Process Atlas ================= */
.b-hero { padding: 90px 0 40px; }
.b-hero h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -.035em; max-width: 1050px; line-height: 1.02; }
.b-hero h1 span { color: var(--red); }
.b-hero .lead { font-size: 1.2rem; max-width: 640px; color: var(--muted); }

.stepper { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 50px 0 0; list-style: none; padding: 0; }
.stepper::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: var(--line); }
.stepper .bar { position: absolute; left: 24px; top: 24px; height: 2px; width: 0; background: var(--red); transform-origin: left center; transform: scaleX(0); transition: transform .35s ease; }
.step-btn {
  position: relative; background: none; border: 0; padding: 0 16px 0 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
}
.step-btn .n { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-weight: 800; font-size: 1.05rem; color: var(--muted); transition: all .2s; position: relative; z-index: 1; }
.step-btn .t { display: block; margin-top: 16px; font-weight: 700; font-size: 1.1rem; }
.step-btn .s { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.step-btn:hover .n { border-color: var(--ink); color: var(--ink); }
.step-btn[aria-selected="true"] .n, .step-btn.done .n { background: var(--red); border-color: var(--red); color: #fff; }

.atlas { padding: 40px 0 100px; }
.atlas-panel { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 18px; overflow: hidden; background: var(--grey-50); min-height: 460px; }
.atlas-panel[hidden] { display: none; }
.atlas-panel .copy { padding: 52px; }
.atlas-panel .copy h2 { font-size: 2.2rem; }
.atlas-panel .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #DDDDE0; margin: 26px 0 30px; }
.atlas-panel .facts div { padding: 16px 16px 0 0; }
.atlas-panel .facts div + div { padding-left: 16px; border-left: 1px solid #DDDDE0; }
.atlas-panel .facts b { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.atlas-panel .facts span { color: var(--ink); font-weight: 600; font-size: .95rem; }
.atlas-panel .visual { background: linear-gradient(150deg, #29292C, #48484D); position: relative; display: flex; align-items: center; justify-content: center; }
.atlas-panel .visual svg { width: 78%; height: auto; }
.atlas-panel .visual .ph { position: absolute; bottom: 14px; left: 16px; right: 16px; font-size: .78rem; color: rgba(255,255,255,.55); }

.cases { padding: 100px 0; border-top: 1px solid var(--line); }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.case { border-top: 3px solid var(--ink); padding-top: 18px; }
.case .sector { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.case h3 { margin: 10px 0 10px; font-size: 1.2rem; }
.case dl { margin: 0; font-size: .92rem; }
.case dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 10px; }
.case dd { margin: 2px 0 0; color: var(--ink); }

.learn { background: var(--ink); color: #D9D9DD; padding: 100px 0; }
.learn h2 { color: #fff; }
.learn .section-head p { color: #A9A9AF; }
.learn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.guide { background: #2A2A2D; border-radius: 12px; padding: 26px; display: flex; flex-direction: column; min-height: 230px; transition: background .2s, transform .2s; }
.guide:hover { background: #333337; transform: translateY(-3px); }
.guide .tag { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--red); text-transform: uppercase; }
.guide h3 { color: #fff; font-size: 1.2rem; margin: 12px 0 10px; }
.guide p { font-size: .93rem; color: #A9A9AF; flex: 1; }
.guide .more { color: #fff; font-weight: 700; font-size: .9rem; }

.support-b { padding: 100px 0; }
.support-b .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.support-b ol { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.support-b li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.support-b li::before { content: counter(s, decimal-leading-zero); font-weight: 800; font-size: 1.4rem; color: var(--red); }
.support-b li h3 { font-size: 1.1rem; margin: 0 0 4px; }
.support-b li p { margin: 0; color: var(--muted); font-size: .95rem; }
.principals-b { display: flex; flex-wrap: wrap; gap: 14px 46px; align-items: baseline; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principals-b .word { font-size: 1.6rem; font-weight: 800; color: #9A9AA0; letter-spacing: -.02em; transition: color .2s; }
.principals-b a:hover .word { color: var(--ink); }
.principals-b .lbl { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 10px; }

/* ================= C — Ask an Engineer ================= */
.c-hero { background: var(--grey-50); padding: 70px 0 90px; }
.c-hero .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.c-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); letter-spacing: -.02em; }
.c-hero .lead { font-size: 1.12rem; max-width: 500px; }
.c-hero .assure { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.c-hero .assure li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); }
.c-hero .assure li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }

.selector { background: #fff; border-radius: 22px; padding: 34px; box-shadow: 0 40px 70px -40px rgba(0,0,0,.35); }
.selector .progress { display: flex; gap: 6px; margin-bottom: 22px; }
.selector .progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.selector .progress i.on { background: var(--red); }
.selector fieldset { border: 0; margin: 0; padding: 0; }
.selector fieldset[hidden] { display: none; }
.selector legend { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; padding: 0; }
.selector .hint { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt label {
  display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-weight: 600; color: var(--ink);
  transition: border-color .15s, background .15s; height: 100%;
}
.opt label small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.opt input:hover + label { border-color: #B9B9BE; }
.opt input:checked + label { border-color: var(--red); background: var(--red-pale); }
.opt input:focus-visible + label { outline: 3px solid rgba(237,28,36,.35); outline-offset: 2px; }
.sel-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.sel-nav .back { background: none; border: 0; font: inherit; color: var(--muted); font-weight: 600; cursor: pointer; padding: 8px 0; }
.sel-nav .back[hidden] { visibility: hidden; display: inline; }
.result[hidden] { display: none; }
.result h3 { font-size: 1.3rem; }
.rec { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.rec h4 { margin: 0 0 4px; font-size: 1.05rem; }
.rec p { margin: 0; color: var(--muted); font-size: .9rem; }
.rec .add { border: 1.5px solid var(--ink); background: #fff; color: var(--ink); border-radius: 30px; padding: 8px 14px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rec .add[aria-pressed="true"] { background: var(--ink); color: #fff; }
.result .row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.experts { padding: 100px 0; }
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.expert { border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.expert .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--grey-50); border: 1px dashed #C9C9CE; display: grid; place-items: center; color: var(--muted); margin-bottom: 16px; }
.expert h3 { font-size: 1.12rem; margin-bottom: 4px; }
.expert .role { color: var(--red); font-weight: 700; font-size: .85rem; }
.expert p { color: var(--muted); font-size: .93rem; flex: 1; margin: 12px 0 18px; }
.expert .links { display: flex; gap: 8px; }
.expert .links a { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 30px; padding: 8px 10px; font-weight: 700; font-size: .85rem; color: var(--ink); }
.expert .links a:hover { border-color: var(--red); color: var(--red); }

.proof { background: var(--grey-50); padding: 80px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proof-card { background: #fff; border-radius: 14px; padding: 24px; }
.proof-card h3 { font-size: 1.05rem; }
.proof-card p { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }

.faq { padding: 100px 0; }
.faq .grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; color: var(--ink); font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; font-weight: 400; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--text); }

/* Request tray (C) */
.tray-btn {
  position: fixed; right: 20px; bottom: 80px; z-index: 85; display: none; align-items: center; gap: 10px;
  background: var(--red); color: #fff; border: 0; border-radius: 40px; padding: 14px 20px; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(237,28,36,.6);
}
.tray-btn.show { display: inline-flex; }
.tray-btn b { background: #fff; color: var(--red); border-radius: 20px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: .82rem; }
.tray {
  position: fixed; right: 20px; bottom: 140px; z-index: 86; width: min(360px, calc(100vw - 40px)); background: #fff; border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); padding: 22px; display: none;
}
.tray.open { display: block; }
.tray h4 { margin: 0 0 12px; }
.tray ul { list-style: none; padding: 0; margin: 0 0 16px; max-height: 240px; overflow: auto; }
.tray li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; color: var(--ink); }
.tray li button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.tray .btn { width: 100%; justify-content: center; }

/* ================= Responsive ================= */
@media (max-width: 1020px) {
  .a-hero .grid, .c-hero .grid, .support-b .grid, .faq .grid, .atlas-panel { grid-template-columns: 1fr; gap: 36px; }
  .principals-a .list, .case-grid, .learn-grid, .expert-grid, .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .principals-a .item + .item { padding-left: 0; border-left: 0; }
  .principals-a .item:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .cantfind .box { grid-template-columns: 1fr 1fr; }
  .cantfind .box > div + div { border-left: 0; }
  .cantfind .box > div { border-top: 1px solid var(--line); }
  .cantfind .box > div:first-child { grid-column: 1 / -1; border-top: 0; }
  .atlas-panel .visual { min-height: 260px; }
  .stepper { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
}
@media (max-width: 640px) {
  .a-hero { padding: 44px 0 40px; }
  .spec, .doclib, .principals-a, .cases, .learn, .support-b, .experts, .proof, .faq { padding: 64px 0; }
  .principals-a .list, .case-grid, .learn-grid, .expert-grid, .proof-grid, .cantfind .box { grid-template-columns: 1fr; }
  .opts { gap: 8px; }
  .opt label { padding: 12px; font-size: .92rem; }
  .opt label small { display: none; }
  .selector legend { font-size: 1.2rem; }
  .principals-a .item:nth-child(even) { padding-left: 0; border-left: 0; }
  .b-hero { padding: 56px 0 20px; }
  .stepper { grid-template-columns: repeat(5, 140px); margin-right: calc(var(--gutter) * -1); }
  .atlas-panel .copy { padding: 30px 24px; }
  .atlas-panel .copy h2 { font-size: 1.7rem; }
  .atlas-panel .facts { grid-template-columns: 1fr; }
  .atlas-panel .facts div + div { padding-left: 0; border-left: 0; }
  .c-hero { padding: 44px 0 60px; }
  .selector { padding: 24px 20px; border-radius: 18px; }
  .rec { grid-template-columns: 1fr; }
  .tray-btn { bottom: 74px; right: 14px; }
  .utility .push { margin-left: 0; }
}
.atlas-panel .copy .link-arrow { margin-left: 20px; }
@media (max-width: 640px) { .atlas-panel .copy .link-arrow { display: flex; margin: 16px 0 0; } }

/* ---------- Photos in versions ---------- */
.a-photo { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #fff; }
.a-photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.atlas-panel .visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-photo { margin: 30px 0 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; max-width: 480px; }
.c-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
@media (max-width: 1020px) { .c-photo { max-width: none; } }
