/* How it works (2026-09-22): the founder's mockup as the visual structure, the technical substance of the previous
   page kept under expandable details placed beside the explanation they support. Two reading levels: the page
   explains the model; <details class="hiw"> answers the detailed questions. Every section has an anchor. */

.hiw-hero { text-align: center; padding-top: 36px; }
.hiw-hero .eyebrow { justify-content: center; }
.hiw-hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; margin: 0 auto 18px; letter-spacing: -.02em; }
.hiw-hero .sub { margin: 0 auto 28px; max-width: 46ch; }
.hiw-hero .hiw-tools { display: flex; justify-content: center; gap: 18px; align-items: center; flex-wrap: wrap; margin: 0 0 30px; }
.hiw-hero .hiw-tools .fine { margin: 0; }
.hiw-sceneband { background: #f6f1ea url(/assets/hiw-room.webp) center bottom / cover no-repeat; padding: 36px 0 22px; }
.hiw-scene { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: end; gap: 12px; text-align: left; }
.hiw-scene figure { margin: 0; min-width: 0; }
.hiw-scene img { display: block; width: 100%; height: auto; }
.hiw-scene .env { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px 2%; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(3px); }
.hiw-scene .laptop, .hiw-scene .box { position: relative; }
.hiw-scene .laptop { container-type: inline-size; }
.hiw-scene .screen { position: absolute; left: 29.5%; top: 15%; width: 47%; height: 60%; overflow: hidden; transform: rotate(-1deg); color: #e9ecec; font-family: var(--mono); font-size: clamp(6px, 1.6cqw, 12.5px); line-height: 1.6; }
.hiw-scene .screen strong { display: block; font-size: 1.35em; font-weight: 500; margin-bottom: .9em; color: #fff; }
.hiw-scene .screen strong span { color: #f48e61; }
.hiw-scene .screen p { margin: 0 0 .9em; color: #e9ecec; }
.hiw-scene .screen div { color: #b9c3c7; }
.hiw-scene .screen .scr-ok { color: #8ccfa7; white-space: nowrap; }
.hiw-scene .box-name { position: absolute; left: 25%; top: 66%; display: inline-flex; align-items: center; gap: .3em; font-family: var(--serif); font-weight: 600; font-size: clamp(12px, 1.6vw, 24px); color: var(--ink); transform: rotate(3deg); letter-spacing: -.01em; }
.hiw-scene .card-label { position: absolute; top: 36%; font-family: var(--mono); font-size: clamp(7px, .8vw, 12px); color: var(--ink); }
.hiw-scene .sales { left: 19%; } .hiw-scene .customers { left: 40%; } .hiw-scene .results { left: 65%; }
.hiw-scene figcaption { text-align: center; font-family: var(--mono); font-size: 12px; margin-top: 10px; color: var(--ink-soft); }
.hiw-scene .arrows { align-self: center; padding-bottom: 8%; }
.hiw-scene .arrows svg { display: block; width: 100%; font-family: var(--mono); font-size: 13px; }
/* steps */
.hiw-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hiw-step { padding: 34px 34px 30px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.hiw-step:last-child { border-right: 0; }
.hiw-step h3 { font-size: 30px; margin: 0 0 18px; }
.hiw-step h3 .n { font-family: var(--mono); font-size: 16px; color: var(--accent-deep); margin-right: 14px; vertical-align: 3px; letter-spacing: .04em; }
.hiw-step p { color: var(--ink-soft); font-size: 16px; line-height: 1.5; margin: 16px 0 0; }
.mock { border-radius: 10px; border: 1px solid var(--rule); background: #fff; padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink-soft); min-height: 118px; }
.mock.dialog .dots { display: flex; gap: 5px; margin-bottom: 12px; }
.mock.dialog .dots span { width: 9px; height: 9px; border-radius: 50%; background: #e2d9cd; }
.mock.dialog .dots span:nth-child(1) { background: #f28b73; } .mock.dialog .dots span:nth-child(2) { background: #f6c66a; } .mock.dialog .dots span:nth-child(3) { background: #7fd39a; }
.mock.dialog .q { font-family: var(--sans); font-size: 14px; color: var(--ink); margin: 0 0 12px; }
.mock.dialog .btns { display: flex; gap: 10px; }
.mock.dialog .btns span { font-family: var(--sans); font-size: 13px; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--rule); }
.mock.dialog .btns span.ok { background: var(--action); color: #fff; border-color: var(--action); }
.mock.term { background: var(--night); color: #e9eef1; border-color: var(--night); }
.mock.term .p { color: #f6ad84; }
.mock.kept { background: var(--lake); border-color: #cfe4ee; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--ink); position: relative; }
.mock.kept .tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.mock.kept .tbl { width: 34px; height: 26px; border: 2px solid var(--accent); border-radius: 3px; background: repeating-linear-gradient(90deg, transparent 0 9px, var(--accent) 9px 11px), repeating-linear-gradient(0deg, transparent 0 6px, var(--accent) 6px 8px); }

/* the dark band: the session ends, the data stays */
.hiw-band { background: var(--night); color: var(--bg); padding: 64px 0; }
.hiw-band .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.hiw-band h2 { color: #fff; font-size: clamp(32px, 3.6vw, 48px); margin: 0 0 14px; line-height: 1.05; }
.hiw-band p { color: #c9d1d6; font-size: 18px; margin: 0; }
.hiw-sessions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.hiw-session { border: 1px solid #3d474d; border-radius: 12px; padding: 18px 20px; background: linear-gradient(180deg, #232a2e, #171c1f); font-family: var(--mono); font-size: 13px; color: #e9eef1; }
.hiw-session .hd { color: #9aa5ac; margin-bottom: 12px; }
.hiw-session .row { display: flex; align-items: center; gap: 10px; }
.hiw-session .row::before { content: ""; width: 18px; height: 14px; border: 2px solid var(--accent); border-radius: 2px; flex: none; }
.hiw-session .sub { font-family: var(--mono); font-size: 12px; color: #7fd39a; margin: 10px 0 0 28px; max-width: none; }
.hiw-session .sub.dim { color: #9aa5ac; }
.hiw-sessions .arrow { color: #9aa5ac; font-size: 26px; }

/* the division of work */
.hiw-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.hiw-split > div { padding: 0 40px; }
.hiw-split > div:first-child { padding-left: 0; border-right: 1px solid var(--rule); }
.hiw-split h3 { font-size: 26px; margin: 0 0 18px; }
.hiw-list { list-style: none; margin: 0 0 22px; padding: 0; }
.hiw-list li { display: flex; gap: 14px; align-items: center; font-size: 17px; color: var(--ink-soft); margin: 0 0 14px; }
.hiw-list li .ic { width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 6px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.hiw-note { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: center; margin: 30px 0 0; }

/* engines band */
.hiw-engines { background: var(--lake); padding: 56px 0; }
.hiw-engines .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hiw-engines h2 { font-size: clamp(30px, 3.2vw, 44px); margin: 0 0 10px; }
.hiw-engines .lede { font-size: 18px; color: var(--ink-soft); margin: 0 0 14px; max-width: 46ch; }
.hiw-engines .lnk { color: var(--accent-deep); font-weight: 500; border-bottom: 1px solid var(--accent-deep); }
.hiw-engine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hiw-engine-grid .lbl { grid-column: 1 / -1; text-align: right; font-family: var(--serif); font-size: 18px; color: var(--ink); }
.hiw-engine { background: #fff; border: 1px solid #cfe4ee; border-radius: 10px; padding: 26px 16px; text-align: center; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.hiw-engine small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }
.hiw-constraint { font-size: 15px; color: var(--ink-soft); margin: 18px 0 0; }
.hiw-constraint b { color: var(--ink); font-weight: 500; }

/* lakehouse section: explanation left, expandable rows right */
.hiw-lake { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.hiw-lake h2 { font-size: clamp(32px, 3.6vw, 46px); margin: 0 0 16px; }
.hiw-lake .lede { font-size: 18px; color: var(--ink-soft); margin: 0; }

/* the closing offer */
.hiw-offer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 8px 0 24px; }
.hiw-offer h2 { font-size: clamp(32px, 3.6vw, 46px); margin: 0 0 10px; line-height: 1.05; }
.hiw-offer .lede { font-size: 18px; color: var(--ink-soft); margin: 0; }
.hiw-offer .ctas { justify-content: flex-end; margin: 0 0 10px; }
.hiw-offer .fine { text-align: right; }

/* the expandable details, everywhere */
details.hiw { border-top: 1px solid var(--rule); }
details.hiw:last-of-type { border-bottom: 1px solid var(--rule); }
details.hiw summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; font-family: var(--sans); font-size: 17px; font-weight: 500; color: var(--ink); }
details.hiw summary::-webkit-details-marker { display: none; }
details.hiw summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--ink-soft); flex: none; }
details.hiw[open] summary::after { content: "−"; }
details.hiw .body { padding: 0 2px 22px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
details.hiw .body p { margin: 0 0 12px; }
details.hiw .body p:last-child { margin-bottom: 0; }
details.hiw .body b { color: var(--ink); font-weight: 500; }
details.hiw .body pre { background: var(--code); border-radius: 8px; padding: 14px 16px; font-size: 13px; line-height: 1.6; overflow-x: auto; margin: 0 0 12px; color: var(--ink); }
details.hiw .body pre .c { color: var(--code-dim); }
details.hiw .body table.plain { margin: 6px 0 12px; font-size: 14.5px; }
.hiw-details { margin-top: 28px; }
.hiw-steps + .hiw-details { max-width: 780px; }
.hiw-expand { font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.hiw-expand:hover { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
  .hiw-band .inner, .hiw-split, .hiw-engines .inner, .hiw-lake, .hiw-offer { grid-template-columns: 1fr; }
  .hiw-steps { grid-template-columns: 1fr; }
  .hiw-step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .hiw-step:last-child { border-bottom: 0; }
  .hiw-split > div { padding: 0; }
  .hiw-split > div:first-child { border-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 20px; margin-bottom: 20px; }
  .hiw-sessions { grid-template-columns: 1fr; }
  .hiw-sessions .arrow { transform: rotate(90deg); text-align: center; }
  .hiw-engine-grid { grid-template-columns: 1fr; }
  .hiw-offer .ctas { justify-content: flex-start; }
  .hiw-offer .fine { text-align: left; }
}

@media (max-width: 760px) {
  .hiw-scene { grid-template-columns: 1fr; gap: 22px; max-width: 560px; margin: 0 auto; }
  .hiw-scene .arrows { max-width: 170px; margin: 0 auto; padding-bottom: 0; }
  .hiw-scene .card-label { font-size: 9px; }
  .hiw-scene .box-name { font-size: 18px; }
}
@media (max-width: 900px) { .hiw-sceneband { background-image: url(/assets/hiw-room-900.webp); } }
