/* StruXure.co v4 Platform page, all three options (platform.html, -2, -3; built by build_platform.py). Tokens, chrome,
   the iso kit styles (sx-iso.css) and the option 1/2/3 hero layouts (products.css) come from shared files, read-only;
   this file is the page's own layout. Phase B shapes: 8px corners, 48px buttons, 4..160 spacing, 1px #D1D6DC rules. */

.pf-sec { padding-block: var(--sec); }
.v-narrow { display: none; }

/* ---- sheet index (option 2's left scroll menu) ----------------------------------------- */
.pf-index { display: none; }
@media (min-width: 1340px) {
  .pf-index { display: block; position: fixed; z-index: 40; left: 24px; top: 132px; width: 184px; max-height: calc(100vh - 156px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: opacity .25s ease-out, transform .25s var(--ease); }
  .pf-index.off { opacity: 0; transform: translateX(-12px); pointer-events: none; }
  /* make room for it: the page's sections sit to the right of the index, header and footer stay centred */
  main .w { width: min(100vw - 276px, var(--w)); margin-left: max(236px, (100vw - var(--w)) / 2); margin-right: auto; }
}
.pf-index-h { display: block; padding: 10px 12px 8px; border-bottom: 1px solid var(--navy); font: 600 13px/1.2 var(--display); color: var(--navy); }
.pf-index ol { margin: 0; padding: 0; list-style: none; }
.pf-index li + li { border-top: 1px solid var(--line); }
.pf-index a { display: grid; grid-template-columns: 44px 1fr; gap: 6px; align-items: baseline; padding: 7px 10px 7px 12px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.3; text-decoration: none; transition: background-color .16s, color .16s; }
.pf-index .no { font: 600 12px/1.3 var(--display); color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.pf-index a:hover { background: var(--slate); color: var(--navy); }
.pf-index a[aria-current="true"] { background: var(--navy); color: #fff; }
.pf-index a[aria-current="true"] .no { color: var(--cyan-light); }
.pf-index a:focus-visible { outline-offset: -3px; border-radius: 0; }

/* ---- P-001 hero (layouts from products.css: p1-hero, p2-hero, p3-hero) ------------------- */
.pf-h { scroll-margin-top: 96px; }
.pf-h .display { max-width: 18ch; }
.p2-hero.pf-h .display { margin-inline: auto; }
.pf-hero-art { margin: 0 calc(-1 * var(--gut) / 2) 0 0; }
@media (min-width: 961px) { .p1-hero.pf-h .p1-hero-g { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (max-width: 960px) { .pf-hero-art { margin: 8px 0 0; } }
.p3-hero.pf-h .btn { background: #fff; border-color: #fff; color: var(--navy); }

/* ---- P-101..P-108 the products ---------------------------------------------------------- */
.pf-walk { padding-top: calc(var(--sec) * .8); }
.feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.4vw, 72px); align-items: center; padding-block: clamp(36px, 4.4vw, 60px); border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.feat:first-child { border-top: 0; padding-top: 0; }
.feat.flip .feat-media { order: 2; }
.feat-media { position: relative; display: flex; flex-direction: column; background: var(--grid-paper), #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.feat-tb { position: relative; display: flex; align-items: center; gap: 16px; margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--navy); }
.feat-tb .no { white-space: nowrap; font: 700 18px/1 var(--display); letter-spacing: -0.01em; padding-right: 16px; border-right: 1px solid var(--line); }
.also { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); }
.also .mp4 { width: 132px; flex: none; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.also .mp4 .play { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.also .mp4 .play::before { border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 3px; }

/* the real screens on iso laptops and phones (isokit.device_fig); the play button loads the struxure.co video */
.dev-iso { margin: 32px 32px 16px; }
.dev-iso.p-dev-phone { width: min(320px, 70%); align-self: center; }
@media (max-width: 639px) { .dev-iso { margin: 24px 16px 12px; } }

/* video facade: the real screen with a play button; the click swaps in the product video from struxure.co */
.mp4 { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.mp4 img { transition: filter .3s ease-out; }
.mp4:hover img { filter: brightness(.94); }
.mp4 .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--teal-deep); display: grid; place-items: center; box-shadow: 0 8px 24px -8px rgba(16, 45, 123, .5); transition: background-color .18s, transform .18s var(--ease); }
.mp4 .play::before { content: ''; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.mp4:hover .play { background: var(--navy); transform: scale(1.06); }
.mp4:focus-visible { outline-offset: 4px; }
video.played { display: block; width: 100%; background: #000; }

.feat-copy .h3 { margin: 14px 0 14px; font-size: clamp(1.55rem, 2.3vw, 2rem); line-height: 1.15; }
.feat-copy > p { color: var(--ink-soft); }
.feat-copy .btns { margin-top: 24px; }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.ticks li::before { content: ''; position: absolute; left: 3px; top: .38em; width: 6px; height: 11px; border-right: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep); transform: rotate(40deg); }

/* ---- P-201..P-204 the plates ------------------------------------------------------------ */
.pf-plates .w { display: grid; gap: clamp(28px, 3.4vw, 44px); }
.plate { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); scroll-margin-top: 96px; }
.plate > .sx-area { display: flex; align-items: center; justify-content: center; padding: clamp(14px, 2vw, 26px); }
.plate .sx-drawing { width: 100%; }
.plate.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.plate.flip > .sx-area { order: 2; }
.plate.flip .plate-notes { border-left: 0; border-right: 1px solid var(--navy); margin: 6px 0 6px 6px; }
.plate-notes { position: relative; display: flex; flex-direction: column; margin: 6px 6px 6px 0; padding: 24px 26px 18px; border-left: 1px solid var(--navy); }
.plate-notes .h3 { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--navy); font-size: clamp(1.4rem, 1.9vw, 1.7rem); line-height: 1.16; }
.plate-notes > p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.kn { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.kn li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 11px 6px 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink); cursor: default; border-radius: 4px; transition: background-color .16s; }
.kn li:hover, .kn li:focus-visible, .kn li.hot { background: var(--slate); }
.kn li:focus-visible { outline-offset: 0; }
.kb { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 13px/1 var(--display); }
.plate .tbno { align-self: flex-end; margin-top: auto; padding-top: 14px; color: var(--navy); font: 700 26px/1 var(--display); letter-spacing: -0.02em; }
/* the blueprint plate: white line on the navy drafting ground */
.plate > .sx-area.bp { background: var(--grid-navy), var(--navy); margin: 6px 0 6px 6px; border-radius: 1px; }
.plate.flip > .sx-area.bp { margin: 6px 6px 6px 0; }

/* keynotes on the iso drawings: products.css lights .sx-tag.kn-N when the plate has kn-on-N (platform.js) */
.on-navy .sx-tag:not(.kn) { background: var(--navy); color: #fff; border-color: rgba(255, 255, 255, .7); }
.on-navy .sx-tag.kn { background: #fff; color: var(--navy); border-color: var(--navy); }

/* ---- P-301 the wall -------------------------------------------------------------------- */
.elim-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.elim-head .lead { font-size: 1.05rem; }
.elim-head .go { margin-top: 10px; }
.wall-sheet { margin: clamp(32px, 4vw, 48px) 0 0; grid-template-columns: minmax(0, 1fr); }
.wall-sheet .sx-area { padding: 18px 22px 10px; }
.wall-sheet .sx-tb { flex-direction: row; margin: 0 6px 6px; border-left: 0; border-top: 1px solid var(--navy); }
.wall-sheet .sx-tb > div { border-bottom: 0; border-right: 1px solid var(--navy); }
.wall-sheet .sx-tb > div:last-child { border-right: 0; }
.wall-sheet .sx-tb .ttl { font-size: 15px; }
.wall-sheet .sx-tb .no { font-size: 24px; }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0 0 0 0; list-style: none; }
.four li { padding: 22px clamp(14px, 1.8vw, 24px) 0; border-left: 1px solid var(--line); }
.four li:first-child { border-left: 0; padding-left: 0; }
.four h3 { font-size: 1.25rem; }
.four p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---- P-401 Stacks Up ------------------------------------------------------------------- */
.stack-head { max-width: 760px; }
.stack-head .h2 { margin: 14px 0 12px; }
.comps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 4vw, 48px); }
.comp { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); }
.comp-img { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: #1A2330; border-bottom: 1px solid var(--line); }
.comp-img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .5s var(--ease); }
.comp:hover .comp-img img { transform: scale(1.02); }
.comp-t { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: clamp(22px, 2.6vw, 32px); }
.comp-t .kicker { color: var(--teal-deep); }
.comp-t h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.18; color: var(--navy); }
.comp-t > p { color: var(--ink-soft); font-size: 15px; }
.comp-t .ticks { margin-top: 2px; }
.sec-navy .comp-t .btn { align-self: flex-start; margin-top: auto; background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.sec-navy .comp-t .btn:hover { background: #026B8F; border-color: #026B8F; }
.sec-navy .comp-t .kicker { color: var(--teal-deep); }

/* ---- P-501 FAQ and the note ------------------------------------------------------------ */
.faq-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-side { position: sticky; top: 110px; }
.tech-note { display: grid; grid-template-columns: 44px 1fr; gap: 16px; margin-top: 28px; padding: 22px 22px 22px 18px; }
.tech-note h3 { font: 600 16px/1.35 var(--sans); color: var(--navy); letter-spacing: 0; }
.tech-note p { margin-top: 6px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.tn-stamp { width: 44px; height: 44px; overflow: visible; }
.tn-stamp circle { fill: #fff; stroke: var(--green); stroke-width: 2.2; }
.tn-stamp circle.in { fill: none; stroke-width: 1; }
.tn-stamp path { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.faq-list { border-top: 1.5px solid var(--navy); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: block; padding: 20px 48px 20px 0; cursor: pointer; list-style: none; font: 600 1.12rem/1.35 var(--display); color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .faq-list summary::before { content: ''; position: absolute; right: 12px; top: 50%; width: 14px; height: 2px; background: var(--teal-deep); transition: transform .22s var(--ease); }
.faq-list summary::before { transform: rotate(90deg); }
.faq-list details[open] summary::before { transform: rotate(0); }
.faq-list summary:hover { color: var(--teal-deep); }
.faq-list summary:focus-visible { outline-offset: 2px; }
.faq-list .a { padding: 0 0 22px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.faq-list .a p + p, .faq-list .a ul, .faq-list .a ol { margin-top: 12px; }
.faq-list .a ul, .faq-list .a ol { padding-left: 22px; display: grid; gap: 10px; }
.faq-list .a strong { color: var(--ink); font-weight: 600; }

/* ---- close and form (same as the v3 home) ---------------------------------------------- */
.close-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.close h2 { font-size: clamp(2.2rem, 4vw, 3.25rem); }
.close .lead { margin: 16px 0 28px; max-width: 42ch; }
.close-form { display: grid; gap: 12px; padding: clamp(20px, 3vw, 32px); color: var(--ink); }
.close-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.close-form label { display: block; }
.close-form .lab { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.close-form input, .close-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: #fff; border: 1px solid #C3CAD3; border-radius: var(--r); color: var(--ink); font: 400 15px/1.4 var(--sans); }
.close-form textarea { resize: vertical; }
.close-form ::placeholder { color: var(--muted); opacity: 1; }
.close-form input:focus-visible, .close-form textarea:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 1px; border-color: var(--teal-deep); }
.close-form .btn { justify-self: start; background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.close-form .btn:hover { background: #026B8F; border-color: #026B8F; }
.close-form .btn:disabled { opacity: .6; cursor: progress; }
.form-msg { padding: 12px 14px; border-radius: var(--r); background: #E8F4EE; color: #165C3A; font-size: 15px; font-weight: 500; }
.form-msg.bad { background: #FBEDEC; color: #9E2A23; }

/* ---- motion: the keynotes come in with their sheet; everything final under reduced motion ---- */
.js:not(.rm) .plate:not(.play) .kn li { opacity: 0; transform: translateX(-8px); }
.js:not(.rm) .plate.play .kn li { opacity: 1; transform: none; transition: opacity .4s ease-out calc(var(--d, 0) * 1ms), transform .4s var(--ease) calc(var(--d, 0) * 1ms), background-color .16s; }
.js:not(.rm) .plate:not(.play) .kn li { animation: sx-failsafe 0s 6s forwards; }

/* ---- responsive ------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .plate, .plate.flip { grid-template-columns: minmax(0, 1fr); }
  .plate.flip > .sx-area { order: 0; }
  .plate-notes, .plate.flip .plate-notes { margin: 0 6px 6px; border-left: 0; border-right: 0; border-top: 1px solid var(--navy); }
  .plate > .sx-area.bp, .plate.flip > .sx-area.bp { margin: 6px 6px 0; }
}
@media (max-width: 960px) {
  .pf-hero-t, .elim-head, .faq-g, .close-g { grid-template-columns: minmax(0, 1fr); }
  .pf-hero-t { gap: 16px; }
  .faq-side { position: static; }
  .feat, .feat.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feat.flip .feat-media { order: 0; }
  .comps { grid-template-columns: minmax(0, 1fr); }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .four li, .four li:first-child { border-left: 0; padding: 22px 0 0; }
}
@media (max-width: 639px) {
  .v-wide { display: none; }
  .v-narrow { display: block; }
  .plate-notes { padding: 20px 18px 14px; }
  .feat-tb { font-size: 12.5px; }
  .also .mp4 { width: 104px; }
  .four { grid-template-columns: minmax(0, 1fr); }
  .wall-sheet .sx-area { padding: 10px; }
  .close-form .two { grid-template-columns: minmax(0, 1fr); }
  .faq-list summary { font-size: 1.05rem; }
}
.feat-tb .len, .also .len { margin-left: auto; white-space: nowrap; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

/* option 3 hero without a kicker: headline left, the lead then the button on the right */
@media (min-width: 961px) {
  .p3-hero.pf-h .p3-copy h1 { grid-row: 1 / span 2; align-self: end; }
  .p3-hero.pf-h .p3-copy .lead { grid-row: 1; }
  .p3-hero.pf-h .p3-copy .btns { grid-row: 2; margin-top: 0; }
}

/* 7 Nov: the hero's two moving sheets are yellow (Max: "a yellow sheet"), the brand's bright amber */
.pf-hero-art .tdoc { fill: var(--amber-bright, #E6A700); }
.pf-hero-art .tdoc-l { stroke: #5a3d00; }
