/* HAL CRM website, first draft (O1-6). Plain CSS, no build step.
   Palette is the brand tile's: night steel, frost, the flare. Steel and a
   drawing-sheet grey carry the rest. Barlow: condensed for signage-style
   headings, regular for reading. */

:root {
  --night: #10171E;
  --night-2: #18222B;
  --line: #2C3946;
  --frost: #EEF1F3;
  --sheet: #DCE2E6;
  --steel: #5B6B78;
  --steel-2: #8A99A5;
  --flare: #E4571B;
  --won: #3E8E6A;
  --amber: #C9962B;
  --ink: #10171E;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Barlow', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--frost);
  font: 400 1.0625rem/1.55 var(--text);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; }

.draftbar {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  font-size: .875rem;
  padding: 6px var(--gutter);
  text-align: center;
}

/* ---- top ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.brand span { font: 700 1.5rem/1 var(--display); letter-spacing: .02em; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--steel-2); font-weight: 500; }
.top nav a:hover, .top nav a[aria-current] { color: var(--frost); }
@media (max-width: 640px) { .top nav .doorlink { display: none; } }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--flare);
  min-height: 44px;
}
.btn.solid { background: var(--flare); color: #fff; }
.btn.ghost { color: var(--frost); }
.btn.quiet { border-color: var(--line); color: var(--frost); }
.exits { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 8vw, 96px) var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 {
  font: 700 clamp(2.4rem, 5.6vw, 4.4rem)/.98 var(--display);
  margin: 0 0 22px;
  max-width: 14ch;
}
.hero h1 .then { display: block; color: var(--steel-2); }
.hero p { max-width: 48ch; color: #C9D2D8; margin: 0; }

/* The board: what was logged, beside what could be. The one moment of motion
   on the page: the right column lights up after the left has been read. */
.board {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--night-2);
  overflow: hidden;
}
.board-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  font: 600 1.05rem/1.2 var(--display);
}
.board-head div { padding: 12px 14px; }
.board-head div + div { border-left: 1px solid var(--line); color: var(--flare); }
.board-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.board-row:last-child { border-bottom: 0; }
.board-row > div { padding: 11px 14px; font-size: .9375rem; }
.board-row > div + div { border-left: 1px solid var(--line); }
.tag {
  display: inline-block;
  font: 600 .78rem/1 var(--display);
  letter-spacing: .04em;
  padding: 3px 6px;
  border: 1px solid var(--steel);
  border-radius: 3px;
  color: var(--steel-2);
  margin-right: 6px;
  vertical-align: 1px;
}
.board .gap { color: var(--frost); }
.board .gap b { color: var(--flare); font-weight: 600; }
.board .logged { color: #AEB9C1; }
@media (prefers-reduced-motion: no-preference) {
  .board .gap { opacity: 0; transform: translateX(8px); animation: reveal .5s ease-out forwards; }
  .board-row:nth-child(2) .gap { animation-delay: 1.1s; }
  .board-row:nth-child(3) .gap { animation-delay: 1.5s; }
  .board-row:nth-child(4) .gap { animation-delay: 1.9s; }
  .board-row:nth-child(5) .gap { animation-delay: 2.3s; }
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---- sections ---- */
.band { padding: clamp(48px, 8vw, 88px) var(--gutter); }
.band.sheet { background: var(--sheet); color: var(--ink); }
.inner { max-width: 1240px; margin: 0 auto; }
.band h2 {
  font: 700 clamp(1.9rem, 4vw, 2.8rem)/1.02 var(--display);
  margin: 0 0 14px;
  max-width: 22ch;
}
.lede { max-width: var(--measure); margin: 0 0 32px; }
.sheet .lede { color: #34424E; }

/* The four doors: each is a role, so each gets its own question, not a card kit. */
.doors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 3px solid var(--ink);
}
@media (max-width: 960px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .doors { grid-template-columns: 1fr; } }
.door {
  display: block;
  text-decoration: none;
  padding: 22px 20px 26px 0;
  border-bottom: 1px solid #B9C3CA;
}
.door + .door { padding-left: 20px; border-left: 1px solid #B9C3CA; }
@media (max-width: 960px) {
  .door:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .door + .door { padding-left: 0; border-left: 0; }
}
.door h3 { font: 700 1.6rem/1 var(--display); margin: 0 0 10px; }
.door p { margin: 0 0 14px; color: #34424E; }
.door .go { font-weight: 600; color: var(--flare); text-decoration: underline; text-underline-offset: 3px; }
.door:hover h3 { color: var(--flare); }

/* Setup: a real sequence, so it is numbered. */
.gates { list-style: none; margin: 0; padding: 0; counter-reset: g; display: grid; gap: 0; max-width: 760px; }
.gates li {
  counter-increment: g;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.gates li::before {
  content: counter(g);
  grid-row: span 2;
  font: 700 2.2rem/1 var(--display);
  color: var(--flare);
}
.gates b { font: 600 1.25rem/1.2 var(--display); }
.gates span { color: #B5C0C8; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1000px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.facts p { margin: 0; color: #34424E; }
.facts strong { display: block; font: 700 2.6rem/1 var(--display); color: var(--ink); margin-bottom: 6px; }

/* ---- door pages ---- */
.doorhero { padding: clamp(40px, 7vw, 80px) var(--gutter) 24px; max-width: 1240px; margin: 0 auto; }
.doorhero .who { color: var(--flare); font: 600 1.1rem/1 var(--display); margin: 0 0 10px; }
.doorhero h1 { font: 700 clamp(2.2rem, 5vw, 3.8rem)/1 var(--display); margin: 0 0 16px; max-width: 18ch; }
.doorhero p { max-width: var(--measure); color: #C9D2D8; margin: 0; }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }
.points h3 { font: 700 1.35rem/1.1 var(--display); margin: 0 0 8px; }
.points p { margin: 0; color: #34424E; }

/* ---- the self-running tour ---- */
.tour {
  margin: 0 auto;
  padding: 8px var(--gutter) clamp(40px, 7vw, 72px);
  max-width: 1240px;
}
.tour .frames { list-style: none; margin: 0; padding: 0; position: relative; }
.tour .frame {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-bottom: 32px;
}
@media (max-width: 820px) { .tour .frame { grid-template-columns: 1fr; justify-items: center; } .caption { justify-self: stretch; } }
.js .tour .frames { min-height: 540px; }
@media (max-width: 820px) { .js .tour .frames { min-height: 740px; } }
.js .tour .frame { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s; }
.js .tour .frame.on { opacity: 1; visibility: visible; }
.no-js-note { color: var(--steel-2); }

.phone {
  width: 100%;
  max-width: 340px;
  border: 10px solid #26313B;
  border-radius: 34px;
  background: #F4F6F7;
  color: var(--ink);
  padding: 14px 12px 18px;
  min-height: 440px;
  font-size: .875rem;
}
.phone .ph-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.phone .ph-bar b { font: 700 1.15rem/1 var(--display); }
.phone .ph-bar span { color: var(--steel); font-size: .8rem; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ph-tile { background: #fff; border: 1px solid #D5DCE1; border-radius: 8px; padding: 9px 10px; }
.ph-tile .n { font: 700 1.6rem/1 var(--display); }
.ph-tile .l { color: var(--steel); font-size: .78rem; }
.ph-tile.stop { border-color: var(--flare); }
.ph-tile.stop .n { color: var(--flare); }
.ph-tile.good .n { color: var(--won); }
.ph-panel { background: #fff; border: 1px solid #D5DCE1; border-radius: 8px; margin-bottom: 10px; }
.ph-panel h4 { margin: 0; padding: 8px 10px; font: 600 .95rem/1.2 var(--display); border-bottom: 1px solid #E3E8EB; }
.ph-row { padding: 8px 10px; border-bottom: 1px solid #EEF1F3; display: flex; justify-content: space-between; gap: 8px; }
.ph-row:last-child { border-bottom: 0; }
.ph-row small { display: block; color: var(--steel); }
.ph-row .amt { font-weight: 600; white-space: nowrap; }
.ph-chip { font-size: .72rem; font-weight: 600; padding: 2px 6px; border-radius: 10px; background: #E3E8EB; white-space: nowrap; align-self: center; }
.ph-chip.stop { background: #FBE3D8; color: #A23A0E; }
.ph-chip.won { background: #DCEFE6; color: #22654A; }
.ph-chip.warn { background: #F6EBCF; color: #7A5A12; }
.ph-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 10px; }
.ph-bars i { flex: 1; background: var(--won); border-radius: 2px 2px 0 0; }
.ph-bars i.open { background: #9DB4C2; }

.caption { font-size: 1.15rem; }
.caption h3 { font: 700 1.8rem/1.05 var(--display); margin: 0 0 10px; }
.caption p { margin: 0; color: #C9D2D8; max-width: 44ch; }

.tour-controls { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.tour-controls button {
  background: none; color: var(--frost); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 14px; font: 600 .95rem var(--text); min-height: 40px; cursor: pointer;
}
.ticks { display: flex; gap: 6px; }
.ticks button { width: 28px; height: 6px; min-height: 0; padding: 0; border-radius: 3px; background: var(--line); border: 0; }
.ticks button[aria-current="true"] { background: var(--flare); }

/* ---- foot ---- */
.foot {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--steel-2);
  font-size: .9rem;
}
.foot .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot a { color: var(--steel-2); }

/* On the light sheet the outline buttons take the ink. */
.sheet .btn.ghost, .sheet .btn.quiet { color: var(--ink); }
.sheet .btn.quiet { border-color: var(--steel); }

/* ================= v2 (2026-10-30): colour, texture, desktop views ================= */
:root {
  --navy: #1F3A5A;
  --navy-2: #2D4F6B;
  --tread: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cg fill='%23ffffff' fill-opacity='.045'%3E%3Cg transform='translate(12,12) rotate(34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3Cg transform='translate(34,12) rotate(-34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3Cg transform='translate(12,34) rotate(-34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3Cg transform='translate(34,34) rotate(34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
body { background: var(--night) var(--tread); }
.brand img { border-radius: 8px; width: 38px; height: 38px; }
.top { background: linear-gradient(90deg, rgba(31,58,90,.55), rgba(16,23,30,.2)); }
.hero-wrap {
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(242,128,28,.16), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(45,79,107,.55), transparent 65%),
    var(--tread);
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 16ch; }
.hero h1 .then { display: block; color: var(--flare); }
.hero .sub2 { font: 600 clamp(1.25rem, 2.2vw, 1.6rem)/1.25 var(--display); color: var(--frost); margin: 0 0 14px; max-width: 30ch; }
.band.steel { background: linear-gradient(160deg, #1B2D3D 0%, #10171E 70%), var(--tread); }
.band.flarebar { border-top: 4px solid var(--flare); }
.doorhero-wrap { background: radial-gradient(60% 120% at 90% 0%, rgba(242,128,28,.14), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(45,79,107,.5), transparent 60%); border-bottom: 1px solid var(--line); }

/* the four "no"s */
.nos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 8px 0 34px; }
@media (max-width: 860px) { .nos { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.nos div { border: 1px solid var(--line); border-left: 4px solid var(--flare); border-radius: 6px; padding: 14px 16px; background: rgba(255,255,255,.03); }
.nos b { display: block; font: 700 1.35rem/1.1 var(--display); }
.nos span { color: #B5C0C8; font-size: .95rem; }
.gates li em { font-style: normal; color: var(--flare); font: 600 1rem/1.2 var(--display); grid-column: 2; }

/* revenue upload flow */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; counter-reset: f; margin-bottom: 30px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.flow div { counter-increment: f; padding: 16px 18px 16px 0; border-top: 3px solid var(--ink); }
.flow div::before { content: counter(f); font: 700 2rem/1 var(--display); color: var(--flare); display: block; margin-bottom: 6px; }
.flow b { font: 700 1.25rem/1.1 var(--display); display: block; margin-bottom: 4px; }
.flow span { color: #34424E; }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(24px,4vw,56px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.chartcard { background: #fff; border: 1px solid #C9D2D8; border-radius: 10px; padding: 16px 18px; color: var(--ink); }
.chartcard h4 { margin: 0 0 4px; font: 700 1.15rem/1.1 var(--display); }
.chartcard .legend { display: flex; gap: 16px; font-size: .85rem; color: var(--steel); margin-bottom: 6px; flex-wrap: wrap; }
.chartcard .legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.chartcard svg { width: 100%; height: auto; }

/* AI line */
.ai { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 760px) { .ai { grid-template-columns: 1fr; } }
.ai div { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: rgba(255,255,255,.03); }
.ai b { font: 700 1.25rem/1.1 var(--display); display: block; margin-bottom: 4px; }
.ai span { color: #B5C0C8; }

/* desktop browser frame */
.desk { width: 100%; max-width: 680px; border-radius: 10px; overflow: hidden; border: 1px solid #3A4856; box-shadow: 0 24px 60px rgba(0,0,0,.45); background: #F2F4F6; color: var(--ink); font-size: .8rem; }
.desk .chrome { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: #26313B; }
.desk .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #4A5966; }
.desk .chrome span { margin-left: 10px; background: #18222B; color: #8A99A5; border-radius: 5px; padding: 2px 10px; font-size: .72rem; }
.desk .appbar { background: linear-gradient(90deg, var(--navy-2), var(--navy)); padding: 8px 12px 0; }
.desk .appbar .row1 { display: flex; justify-content: space-between; align-items: center; color: #fff; margin-bottom: 6px; }
.desk .appbar .row1 b { font: 700 1.05rem/1 var(--display); letter-spacing: .04em; }
.desk .appbar .row1 span { font-size: .7rem; opacity: .8; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 2px 6px; }
.desk .tabs { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.desk .tabs em { font-style: normal; font-weight: 600; font-size: .68rem; color: #fff; background: rgba(255,255,255,.12); border-radius: 5px 5px 0 0; padding: 4px 8px; white-space: nowrap; }
.desk .tabs em.on { background: #F2F4F6; color: var(--ink); }
.desk .body { padding: 12px; min-height: 300px; }
.desk .body h5 { margin: 0 0 8px; font: 700 1rem/1.1 var(--display); }
.d-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
.d-tile { background: #fff; border: 1px solid #D5DCE1; border-radius: 7px; padding: 8px; }
.d-tile .n { font: 700 1.25rem/1 var(--display); }
.d-tile .l { color: var(--steel); font-size: .68rem; }
.d-tile.stop { border-color: var(--flare); } .d-tile.stop .n { color: var(--flare); }
.d-tile.good .n { color: var(--won); }
.d-panel { background: #fff; border: 1px solid #D5DCE1; border-radius: 7px; margin-bottom: 8px; }
.d-panel h6 { margin: 0; padding: 7px 10px; font: 600 .85rem/1.2 var(--display); border-bottom: 1px solid #E3E8EB; display: flex; justify-content: space-between; }
.d-panel h6 small { font: 500 .7rem var(--text); color: var(--steel); }
.d-row { display: grid; grid-template-columns: 1.6fr 1fr .9fr .8fr .7fr; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #EEF1F3; align-items: center; }
.d-row:last-child { border-bottom: 0; }
.d-row.head { color: var(--steel); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
.d-row small { display: block; color: var(--steel); font-size: .66rem; }
.d-row .amt { font-weight: 600; text-align: right; }
.d-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.chip { display: inline-block; font-size: .64rem; font-weight: 600; padding: 2px 6px; border-radius: 9px; background: #E3E8EB; white-space: nowrap; }
.chip.stop { background: #FBE3D8; color: #A23A0E; } .chip.won { background: #DCEFE6; color: #22654A; } .chip.warn { background: #F6EBCF; color: #7A5A12; }
.blocklib { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px; }
.blocklib span { font-size: .68rem; border: 1px dashed #9DB0BE; border-radius: 12px; padding: 3px 8px; color: #34424E; background: #F7F9FA; }
.blocklib span.in { border-style: solid; border-color: var(--navy-2); background: #E3ECF3; font-weight: 600; }

/* desktop with a phone beside it */
.combo { position: relative; width: 100%; max-width: 680px; padding-bottom: 120px; }
.combo .phone { position: absolute; right: -36px; bottom: 0; width: 170px; min-height: 0; padding: 8px 7px 10px; border-width: 6px; border-radius: 22px; font-size: .66rem; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.combo .phone .ph-bar b { font-size: .85rem; }
.combo .phone .ph-tile .n { font-size: 1.05rem; }
.combo .phone .ph-row { padding: 5px 6px; }
@media (max-width: 820px) { .combo .phone { display: none; } }
.tour .frame { grid-template-columns: minmax(0, 680px) minmax(0, 1fr); }
.js .tour .frames { min-height: 600px; }
@media (max-width: 820px) { .js .tour .frames { min-height: 820px; } }

/* pipeline review animation: rows tick in turn and fade */
.pr .d-row { position: relative; }
.pr .tick { width: 14px; height: 14px; border: 1.5px solid #9DB0BE; border-radius: 3px; display: inline-block; vertical-align: -2px; margin-right: 6px; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .frame.on .pr .d-row.go { animation: done .5s ease-out forwards; }
  .frame.on .pr .d-row.go .tick { animation: tick .3s ease-out forwards; }
  .frame.on .pr .d-row.go:nth-of-type(2), .frame.on .pr .d-row.go:nth-of-type(2) .tick { animation-delay: .7s; }
  .frame.on .pr .d-row.go:nth-of-type(3), .frame.on .pr .d-row.go:nth-of-type(3) .tick { animation-delay: 1.4s; }
  .frame.on .pr .d-row.go:nth-of-type(4), .frame.on .pr .d-row.go:nth-of-type(4) .tick { animation-delay: 2.1s; }
  .frame.on .pr .d-row.go:nth-of-type(5), .frame.on .pr .d-row.go:nth-of-type(5) .tick { animation-delay: 2.8s; }
  .frame.on .pr .d-row.go:nth-of-type(6), .frame.on .pr .d-row.go:nth-of-type(6) .tick { animation-delay: 3.5s; }
  .frame.on .pr .d-row.fix .chip { animation: fixit .4s ease-out 4.2s forwards; }
  .frame.on .pr .bar i { animation: fill 4.2s linear forwards; }
}
@keyframes tick { to { background: var(--won); border-color: var(--won); box-shadow: inset 0 0 0 2px #fff; } }
@keyframes done { to { opacity: .42; } }
@keyframes fixit { to { background: #DCEFE6; color: #22654A; } }
@keyframes fill { from { width: 25%; } to { width: 92%; } }
.pr .bar { height: 6px; background: #E3E8EB; border-radius: 3px; margin: 0 10px 8px; overflow: hidden; }
.pr .bar i { display: block; height: 100%; width: 92%; background: var(--won); }

/* setup pop-ups */
.modalwrap { position: relative; }
.modalwrap .body { filter: saturate(.6); opacity: .55; }
.modal { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); width: 76%; background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(16,23,30,.45); padding: 14px 16px; border-top: 4px solid var(--flare); }
.modal .stepno { font: 600 .75rem/1 var(--display); color: var(--flare); letter-spacing: .05em; text-transform: uppercase; }
.modal h5 { margin: 4px 0 8px; font: 700 1.15rem/1.1 var(--display); }
.modal .prog { display: flex; gap: 4px; margin: 8px 0 10px; }
.modal .prog i { flex: 1; height: 5px; border-radius: 3px; background: #E3E8EB; }
.modal .prog i.done { background: var(--won); }
.modal .prog i.now { background: var(--flare); }
.modal .mrow { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #EEF1F3; font-size: .78rem; }
.modal .mrow:last-of-type { border-bottom: 0; }
.modal .time { margin-top: 8px; font-size: .75rem; color: var(--steel); display: flex; justify-content: space-between; }
.modal .time b { color: var(--ink); }
.ph-hold { background: #F6EBCF; color: #7A5A12; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.estimate { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; background: rgba(255,255,255,.04); max-width: 820px; }
.estimate h3 { margin: 0 0 6px; font: 700 1.5rem/1.1 var(--display); }
.estimate .egrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 12px 0; }
@media (max-width: 700px) { .estimate .egrid { grid-template-columns: 1fr 1fr; } }
.estimate .egrid b { display: block; font: 700 1.9rem/1 var(--display); color: var(--flare); }
.estimate .egrid span { color: #B5C0C8; font-size: .9rem; }
.estimate p { color: #B5C0C8; margin: 0; font-size: .9rem; }
.options { margin-top: 18px; font-size: .95rem; color: #B5C0C8; }
.options b { color: var(--frost); }

/* ---- v2.1 phone sizing: one column, desktop views shrunk whole ---- */
@media (max-width: 820px) {
  .tour .frame { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
  .tour .caption { justify-self: stretch; }
  .desk { width: 680px; max-width: none; }
  .combo { max-width: none; width: auto; padding-bottom: 0; }
  .js .tour .frames { min-height: 780px; }
}
@media (max-width: 720px) {
  .desk { width: 100%; font-size: .74rem; }
  .desk .body { min-height: 0; padding: 10px; }
  .desk .tabs em:nth-child(n+6) { display: none; }
  .combo .desk { display: none; }
  .combo .phone { display: block; position: static; width: 100%; max-width: 320px; font-size: .85rem; padding: 14px 12px 16px; border-width: 10px; border-radius: 30px; }
  .combo .phone .ph-bar b { font-size: 1.1rem; }
  .combo .phone .ph-tile .n { font-size: 1.5rem; }
  .combo .phone .ph-row { padding: 8px 10px; }
  .d-row { grid-template-columns: 1.5fr .9fr .8fr .7fr; }
  .d-row > div:nth-child(3) { display: none; }
  .d-grid { grid-template-columns: 1fr 1fr; }
  .d-cols { grid-template-columns: 1fr; }
  .js .tour .frames { min-height: 760px; }
  .modal { width: 90%; }
}
@media (max-width: 460px) { .caption h3 { font-size: 1.5rem; } .caption { font-size: 1.05rem; } }
.brand img { width: 46px; height: 46px; border-radius: 9px; }

/* ===== SKINS ===== */

/* richer diamond plate: shadow and highlight like the logo tile */
:root {
  --tread: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill='%23000000' fill-opacity='.35'%3E%3Cg transform='translate(11,11) rotate(34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(30,11) rotate(-34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(11,30) rotate(-34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(30,30) rotate(34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.10'%3E%3Cg transform='translate(9.8,9.8) rotate(34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(28.8,9.8) rotate(-34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(9.8,28.8) rotate(-34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(28.8,28.8) rotate(34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --tread-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill='%231F3A5A' fill-opacity='.10'%3E%3Cg transform='translate(11,11) rotate(34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(30,11) rotate(-34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(11,30) rotate(-34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(30,30) rotate(34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.9'%3E%3Cg transform='translate(9.8,9.8) rotate(34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(28.8,9.8) rotate(-34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(9.8,28.8) rotate(-34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3Cg transform='translate(28.8,28.8) rotate(34)'%3E%3Crect x='-9.5' y='-3.2' width='19' height='6.4' rx='3.2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* the look switch */
.top { flex-wrap: wrap; }
.skins { display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px; margin-left: auto; margin-right: 8px; }
.skins span { font-size: .75rem; color: #C9D2D8; padding: 0 6px 0 8px; }
.skins button { font: 600 .78rem var(--text); color: #E3E8EB; background: none; border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; min-height: 32px; }
.skins button[aria-pressed="true"] { background: var(--flare); color: #fff; }
html[data-skin="light"] .skins { background: #EEF2F5; border-color: #D5DCE1; }
html[data-skin="light"] .skins span, html[data-skin="light"] .skins button { color: #34424E; }
html[data-skin="light"] .skins button[aria-pressed="true"] { color: #fff; }
@media (max-width: 640px) { .skins { order: 3; margin: 8px 0 0; width: 100%; justify-content: center; } .skins span { display: none; } }

html[data-skin="light"] {
  --tread-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cg fill='%231F3A5A' fill-opacity='.05'%3E%3Cg transform='translate(12,12) rotate(34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3Cg transform='translate(34,12) rotate(-34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3Cg transform='translate(12,34) rotate(-34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3Cg transform='translate(34,34) rotate(34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --page: #F4F6F8; --card: #FFFFFF; --rule: #D5DCE1; --body: #34424E; --muted: #5B6B78;
}
html[data-skin="light"] body { background: var(--page) var(--tread-dark); color: var(--ink); }
html[data-skin="light"] .band.sheet { background: #FFFFFF; }
html[data-skin="light"] .band.steel { background: linear-gradient(160deg, #E6EDF3 0%, #F4F6F8 75%), var(--tread-dark); color: var(--ink); }
html[data-skin="light"] .band.steel .lede, html[data-skin="light"] .gates span, html[data-skin="light"] .nos span, html[data-skin="light"] .ai span, html[data-skin="light"] .estimate p, html[data-skin="light"] .options { color: var(--body); }
html[data-skin="light"] .gates li { border-bottom-color: var(--rule); }
html[data-skin="light"] .nos div, html[data-skin="light"] .ai div, html[data-skin="light"] .estimate { background: var(--card); border-color: var(--rule); }
html[data-skin="light"] .estimate .egrid span { color: var(--muted); }
html[data-skin="light"] .tour .caption p { color: var(--body); }
html[data-skin="light"] .tour-controls button { color: var(--ink); border-color: var(--rule); background: var(--card); }
html[data-skin="light"] .ticks button { background: #C9D2D8; }
html[data-skin="light"] .desk { border-color: #C9D2D8; box-shadow: 0 18px 44px rgba(31,58,90,.18); }
html[data-skin="light"] .combo .phone, html[data-skin="light"] .phone { box-shadow: 0 14px 34px rgba(31,58,90,.25); }
html[data-skin="light"] .foot { background: #1F3A5A; color: #C9D6E2; border-top: 0; }
html[data-skin="light"] .foot a { color: #C9D6E2; }
html[data-skin="light"] .gates .ph-hold, html[data-skin="light"] .ph-hold { color: #7A5A12 !important; background: #F6EBCF; }
html[data-skin="light"] .top { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--rule); }
html[data-skin="light"] .top nav a { color: var(--muted); }
html[data-skin="light"] .top nav a:hover, html[data-skin="light"] .top nav a[aria-current] { color: var(--ink); }
html[data-skin="light"] .hero-wrap { background: radial-gradient(60% 80% at 85% 15%, rgba(242,128,28,.12), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(45,79,107,.12), transparent 65%), var(--tread-dark); border-bottom: 1px solid var(--rule); }
html[data-skin="light"] .hero h1 { color: var(--ink); }
html[data-skin="light"] .hero .sub2 { color: #1F3A5A; }
html[data-skin="light"] .hero p { color: var(--body); }
html[data-skin="light"] .btn.ghost, html[data-skin="light"] .btn.quiet { color: var(--ink); }
html[data-skin="light"] .btn.quiet { border-color: #9DB0BE; }
html[data-skin="light"] .board { background: var(--card); border-color: var(--rule); box-shadow: 0 14px 34px rgba(31,58,90,.12); }
html[data-skin="light"] .board-head, html[data-skin="light"] .board-row { border-color: var(--rule); }
html[data-skin="light"] .board-head div + div, html[data-skin="light"] .board-row > div + div { border-color: var(--rule); }
html[data-skin="light"] .board .logged { color: var(--muted); }
html[data-skin="light"] .board .gap { color: var(--ink); }
html[data-skin="light"] .tag { border-color: #9DB0BE; color: var(--muted); }
html[data-skin="light"] .doorhero-wrap { background: radial-gradient(60% 120% at 90% 0%, rgba(242,128,28,.1), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(45,79,107,.12), transparent 60%); border-bottom: 1px solid var(--rule); }
html[data-skin="light"] .doorhero h1 { color: var(--ink); }
html[data-skin="light"] .doorhero p { color: var(--body); }
html[data-skin="light"] .tour .caption h3 { color: var(--ink); }
html[data-skin="app"] {
  --tread-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cg fill='%231F3A5A' fill-opacity='.05'%3E%3Cg transform='translate(12,12) rotate(34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3Cg transform='translate(34,12) rotate(-34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3Cg transform='translate(12,34) rotate(-34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3Cg transform='translate(34,34) rotate(34)'%3E%3Crect x='-10.5' y='-3.4' width='21' height='6.8' rx='3.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --page: #F4F6F8; --card: #FFFFFF; --rule: #D5DCE1; --body: #34424E; --muted: #5B6B78;
}
html[data-skin="app"] body { background: var(--page) var(--tread-dark); color: var(--ink); }
html[data-skin="app"] .band.sheet { background: #FFFFFF; }
html[data-skin="app"] .band.steel { background: linear-gradient(160deg, #E6EDF3 0%, #F4F6F8 75%), var(--tread-dark); color: var(--ink); }
html[data-skin="app"] .band.steel .lede, html[data-skin="app"] .gates span, html[data-skin="app"] .nos span, html[data-skin="app"] .ai span, html[data-skin="app"] .estimate p, html[data-skin="app"] .options { color: var(--body); }
html[data-skin="app"] .gates li { border-bottom-color: var(--rule); }
html[data-skin="app"] .nos div, html[data-skin="app"] .ai div, html[data-skin="app"] .estimate { background: var(--card); border-color: var(--rule); }
html[data-skin="app"] .estimate .egrid span { color: var(--muted); }
html[data-skin="app"] .tour .caption p { color: var(--body); }
html[data-skin="app"] .tour-controls button { color: var(--ink); border-color: var(--rule); background: var(--card); }
html[data-skin="app"] .ticks button { background: #C9D2D8; }
html[data-skin="app"] .desk { border-color: #C9D2D8; box-shadow: 0 18px 44px rgba(31,58,90,.18); }
html[data-skin="app"] .combo .phone, html[data-skin="app"] .phone { box-shadow: 0 14px 34px rgba(31,58,90,.25); }
html[data-skin="app"] .foot { background: #1F3A5A; color: #C9D6E2; border-top: 0; }
html[data-skin="app"] .foot a { color: #C9D6E2; }
html[data-skin="app"] .gates .ph-hold, html[data-skin="app"] .ph-hold { color: #7A5A12 !important; background: #F6EBCF; }
html[data-skin="app"] { --page: #F2F4F6; }
html[data-skin="app"] .top { background: linear-gradient(90deg, #2D4F6B, #1F3A5A); border-bottom: 0; }
html[data-skin="app"] .top nav a { color: #C9D6E2; }
html[data-skin="app"] .top nav a:hover, html[data-skin="app"] .top nav a[aria-current] { color: #fff; }
html[data-skin="app"] .hero-wrap, html[data-skin="app"] .doorhero-wrap { background: linear-gradient(135deg, #2D4F6B 0%, #1F3A5A 60%, #18304A 100%), var(--tread); background-blend-mode: normal; border-bottom: 4px solid var(--flare); color: #fff; }
html[data-skin="app"] .hero-wrap { background-image: radial-gradient(60% 80% at 85% 20%, rgba(242,128,28,.22), transparent 60%), var(--tread), linear-gradient(135deg, #2D4F6B 0%, #1F3A5A 60%, #18304A 100%); }
html[data-skin="app"] .doorhero-wrap { background-image: radial-gradient(60% 120% at 90% 0%, rgba(242,128,28,.2), transparent 60%), var(--tread), linear-gradient(135deg, #2D4F6B 0%, #1F3A5A 70%); }
html[data-skin="app"] .hero h1, html[data-skin="app"] .doorhero h1 { color: #fff; }
html[data-skin="app"] .hero h1 .then { color: #F7A55A; }
html[data-skin="app"] .hero p, html[data-skin="app"] .doorhero p { color: #D7E1EA; }
html[data-skin="app"] .hero .sub2 { color: #fff; }
html[data-skin="app"] .doorhero .who { color: #F7A55A; }
html[data-skin="app"] .board { background: rgba(10,22,34,.35); border-color: rgba(255,255,255,.18); }
html[data-skin="app"] .board-head, html[data-skin="app"] .board-row, html[data-skin="app"] .board-head div + div, html[data-skin="app"] .board-row > div + div { border-color: rgba(255,255,255,.14); }
html[data-skin="app"] .board-head div + div { color: #F7A55A; }
html[data-skin="app"] .board .gap b { color: #F7A55A; }
html[data-skin="app"] .tour { background: transparent; }
html[data-skin="app"] .tour .caption h3 { color: #1F3A5A; }
html[data-skin="app"] .band.steel { background: linear-gradient(135deg, #2D4F6B 0%, #1F3A5A 70%), var(--tread); color: #fff; }
html[data-skin="app"] .band.steel .lede, html[data-skin="app"] .band.steel .gates span, html[data-skin="app"] .band.steel .nos span, html[data-skin="app"] .band.steel .ai span, html[data-skin="app"] .band.steel .estimate p { color: #D7E1EA; }
html[data-skin="app"] .band.steel .nos div, html[data-skin="app"] .band.steel .ai div, html[data-skin="app"] .band.steel .estimate { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
html[data-skin="app"] .band.steel .gates li { border-bottom-color: rgba(255,255,255,.16); }
html[data-skin="app"] .band.steel .estimate .egrid span { color: #C9D6E2; }
html[data-skin="app"] .band.steel .gates li::before, html[data-skin="app"] .band.steel .gates em, html[data-skin="app"] .band.steel .estimate .egrid b { color: #F7A55A; }
html[data-skin="app"] .band.steel .nos div { border-left-color: var(--flare); }
html[data-skin="app"] .band.sheet { background: #FFFFFF; }
html[data-skin="app"] .sheet .door .go, html[data-skin="app"] .door:hover h3 { color: #C2410C; }
html[data-skin="app"] .hero-wrap .btn.quiet { border-color: rgba(255,255,255,.45); }

/* draft 3.1: headline beats, the gate section, roles on the plain band */
.hero h1 .beat { display: block; }
.pull { font: 600 1.25rem/1.35 var(--display); color: var(--flare); max-width: 46ch; margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 3px solid var(--ink); display: grid; gap: 22px; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -36px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--card, #fff); border: 3px solid var(--ink); }
.timeline li:first-child::before { background: var(--flare); border-color: var(--flare); }
.timeline li.go::before { background: var(--won); border-color: var(--won); }
.timeline b { display: block; font: 700 1.5rem/1.1 var(--display); }
.timeline span { color: #34424E; }
.band:not(.sheet):not(.steel) .doors { border-top-color: currentColor; }
.band:not(.sheet):not(.steel) .door p { color: inherit; opacity: .85; }
.band:not(.sheet):not(.steel) .door, .band:not(.sheet):not(.steel) .door + .door { border-color: rgba(127,140,150,.4); }
.eyebrow { font: 600 clamp(1rem, 1.6vw, 1.2rem)/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--flare); margin: 0 0 16px; }
html[data-skin="app"] .eyebrow { color: #F7A55A; }
.brand .tagline { font: 600 .95rem/1.15 var(--display); letter-spacing: .03em; color: #C9D2D8; max-width: 16ch; }
html[data-skin="light"] .brand .tagline { color: #34424E; }
@media (max-width: 1100px) { .brand .tagline { display: none; } }
.hero p.eyebrow { color: var(--flare); max-width: none; }
html[data-skin="app"] .hero p.eyebrow { color: #F7A55A; }
html[data-skin="light"] .hero p.eyebrow { color: #C2410C; }
.chartnote { margin: 8px 0 0; font-size: .9rem; color: #34424E; }
.ready { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
@media (max-width: 900px) { .ready { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ready { grid-template-columns: 1fr; } }
.ready div { border-top: 4px solid var(--flare); background: rgba(255,255,255,.04); border-radius: 0 0 8px 8px; padding: 14px 16px; }
.ready b { display: block; font: 700 1.3rem/1.1 var(--display); margin-bottom: 6px; }
.ready span { opacity: .85; }
html[data-skin="light"] .ready div, html[data-skin="app"] .ready div { background: #fff; border: 1px solid #D5DCE1; border-top: 4px solid var(--flare); }

/* draft 3.2: calmer tours on the phone, controls easy to find */
.tour-controls .step { font-size: 1.3rem; line-height: 1; padding: 6px 14px; }
.tour-controls .count { font: 600 .95rem var(--text); opacity: .75; margin-left: 4px; }
.tour-controls button[data-play] { min-width: 76px; }
@media (max-width: 720px) {
  .tour { display: flex; flex-direction: column; }
  .tour-controls { order: -1; position: sticky; top: 0; z-index: 5; margin: 0 calc(-1 * var(--gutter)) 14px; padding: 10px var(--gutter); flex-wrap: wrap; gap: 10px; background: rgba(16,23,30,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
  html[data-skin="light"] .tour-controls, html[data-skin="app"] .tour-controls { background: rgba(242,244,246,.95); border-bottom-color: #D5DCE1; }
  .tour-controls button[data-play] { min-height: 44px; font-size: 1rem; }
  .tour-controls .step { min-height: 44px; min-width: 48px; }
  .ticks { order: 9; width: 100%; }
  .ticks button { flex: 1; height: 8px; }
  .js .tour .frame { transition: opacity .6s; }
}
html[data-skin] .ticks button[aria-current="true"] { background: var(--flare); }
@media (max-width: 720px) {
  .tour .frame { align-items: start; align-content: start; }
  .js .tour .frames { min-height: 640px; }
}
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 22px; max-width: 1000px; }
@media (max-width: 720px) { .versus { grid-template-columns: 1fr; } }
.versus > div { border-radius: 10px; padding: 16px 20px; }
.versus h3 { margin: 0 0 8px; font: 700 1.3rem/1.1 var(--display); }
.versus ul { margin: 0; padding: 0; list-style: none; }
.versus li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px solid rgba(127,140,150,.25); }
.versus li:last-child { border-bottom: 0; }
.vs-them { background: rgba(127,140,150,.12); border: 1px solid rgba(127,140,150,.3); }
.vs-them h3 { color: #5B6B78; }
.vs-them li { color: #5B6B78; text-decoration: line-through; text-decoration-color: rgba(228,87,27,.7); }
.vs-them li::before { content: '\2715'; position: absolute; left: 4px; color: var(--flare); font-weight: 700; text-decoration: none; }
.vs-us { background: #fff; border: 2px solid var(--won); box-shadow: 0 10px 28px rgba(31,58,90,.12); }
.vs-us h3 { color: var(--won); }
.vs-us li { color: var(--ink); font-weight: 500; }
.vs-us li::before { content: '\2713'; position: absolute; left: 4px; color: var(--won); font-weight: 700; }
.sheet .pull { margin-bottom: 26px; }
/* phone: each step's own heading sits above its picture, right under the controls */
@media (max-width: 720px) {
  .tour .frame .caption { order: -1; }
  .tour .frame { gap: 14px; }
  .tour .caption h3 { margin-bottom: 6px; }
  .tour .caption p { font-size: 1rem; }
}
/* the current step bar fills while autoplay runs, so people see when it will move */
.ticks button { position: relative; overflow: hidden; }
.tour.playing .ticks button.fill[aria-current="true"] { background: rgba(228,87,27,.3); }
.tour.playing .ticks button.fill[aria-current="true"]::after { content: ''; position: absolute; inset: 0; background: var(--flare); transform-origin: left; animation: tickfill var(--every, 10s) linear forwards; }
@keyframes tickfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* the pipeline review explains itself */
.pr .barlabel { display: flex; justify-content: space-between; padding: 8px 10px 4px; font-size: .7rem; color: var(--steel); }
.pr .barlabel b { color: var(--won); }
.pr .oknote, .pr .fixnote { display: block; font-style: normal; font-size: .64rem; font-weight: 600; margin-top: 2px; opacity: 0; }
.pr .oknote { color: var(--won); }
.pr .fixnote { color: #A23A0E; opacity: 1; }
.pr .d-row.fix { background: #FFF6EF; box-shadow: inset 3px 0 0 var(--flare); }
@media (prefers-reduced-motion: no-preference) {
  .frame.on .pr .d-row.go .oknote { animation: shownote .3s ease-out forwards; animation-delay: inherit; }
}
@media (prefers-reduced-motion: reduce) { .pr .oknote { opacity: 1; } }
@keyframes shownote { to { opacity: 1; } }
.frame.on .pr .d-row.fix .chip { animation: none !important; }
.draftbar .fb { margin-left: 10px; color: var(--ink); font-weight: 700; text-decoration: underline; }
.ninja { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--display); color: var(--ink); margin: 4px 0 10px; max-width: 34ch; }
/* outline buttons on light bands read dark (the closing section in HAL colours and Light) */
html[data-skin="light"] .band:not(.steel) .btn.ghost, html[data-skin="light"] .band:not(.steel) .btn.quiet,
html[data-skin="app"] .band:not(.steel) .btn.ghost, html[data-skin="app"] .band:not(.steel) .btn.quiet { color: var(--ink); }
html[data-skin="light"] .band:not(.steel) .btn.quiet, html[data-skin="app"] .band:not(.steel) .btn.quiet { border-color: #5B6B78; }

/* ===== Draft 4 (brief 18hj item 12, 2026-11-04) ===== */
/* [N] The diamond plate stays as the culture piece, on the top, the hero and thin bars between
   sections; reading text sits on plain panels. Two looks: HAL (default) and Light. */
body { background: var(--night); }
.band.steel { background: linear-gradient(160deg, #1B2D3D 0%, #10171E 70%); }
.platebar { height: 22px; background: #1B2D3D var(--tread); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html[data-skin="light"] .platebar { background-color: #DCE2E6; border-color: #C9D2D8; }
.top nav { align-items: center; }
.top nav a.signup { color: #fff; background: var(--flare); padding: 6px 12px; border-radius: 6px; }
@media (max-width: 640px) { .top nav { gap: 12px; } }

.hero h1 { max-width: 12ch; }
.hero .sub2 { margin-top: 4px; }
.subhead { font: 600 clamp(1.15rem, 2vw, 1.4rem)/1.25 var(--display); color: var(--flare); margin: -4px 0 18px; }

/* the four role boxes where the example table was */
.herodoors-h { font: 700 1.1rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--flare); margin: 0 0 12px; }
.hdoors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 480px) { .hdoors { grid-template-columns: 1fr; } }
.hdoor { display: flex; flex-direction: column; gap: 8px; min-height: 170px; padding: 20px; text-decoration: none; background: rgba(16,23,30,.82); border: 1px solid var(--line); border-top: 4px solid var(--flare); border-radius: 10px; }
.hdoor b { font: 700 1.7rem/1 var(--display); color: var(--frost); }
.hdoor span { color: #C9D2D8; font-size: .975rem; flex: 1; }
.hdoor em { font-style: normal; font-weight: 600; color: var(--flare); }
.hdoor:hover { border-color: var(--flare); }
.hdoor:hover b { color: var(--flare); }

/* expanders: detail on request, not on screen */
details.more { max-width: var(--measure); margin: 0 0 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.sheet details.more { border-top-color: #B9C3CA; }
details.more.big { max-width: none; }
details.more summary { cursor: pointer; font: 600 1.2rem/1.3 var(--display); color: var(--flare); list-style: none; min-height: 32px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; display: inline-block; width: 1.2em; }
details.more[open] summary::before { content: "\2212"; }
details.more > *:not(summary) { margin-top: 12px; }
details.more p { margin: 0 0 12px; }

/* features, advantages, benefits */
.fab { border-top: 3px solid var(--flare); margin: 4px 0 26px; }
.fab-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.fab-row > div { padding: 12px 14px 12px 0; }
.fab-head > div { font: 700 .9rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--steel-2); }
.fab-row b { font-weight: 600; }
@media (max-width: 640px) {
  .fab-head { display: none; }
  .fab-row { grid-template-columns: 1fr; padding: 10px 0; }
  .fab-row > div { padding: 2px 0; }
  .fab-row > div:nth-child(2)::before { content: "Which means: "; color: var(--steel-2); }
  .fab-row > div:nth-child(3)::before { content: "So you get: "; color: var(--steel-2); }
}
.sheet .fab-row { border-bottom-color: #B9C3CA; }

/* What is HAL? */
.story-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
@media (max-width: 860px) { .story-inner { grid-template-columns: 1fr; gap: 16px; } }
.story-nav { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; gap: 8px; }
.story-nav a { text-decoration: none; color: #34424E; font-weight: 500; }
.story-nav a:hover { color: var(--flare); }
@media (max-width: 860px) { .story-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; } }
.story-body { max-width: 72ch; }
.story-sec { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid #B9C3CA; scroll-margin-top: 16px; }
.story-sec h2 { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.05 var(--display); margin: 0 0 14px; }
.story-sec h2 .n { color: var(--flare); margin-right: 12px; }
.story-sec p { color: #34424E; margin: 0 0 12px; }
.story-sec ul { margin: 0; padding-left: 1.1em; color: #34424E; }
.story-sec li { margin: 0 0 10px; }
.story-sec li b { color: var(--ink); }
.story .sig { font-weight: 600; color: var(--ink); }
.story .fab-row { border-bottom-color: #B9C3CA; }
.story .fab-head > div { color: var(--steel); }
/* plain reading panels in both looks; the plate only on the hero and the bars */
html[data-skin="app"] .band.steel { background: linear-gradient(135deg, #2D4F6B 0%, #1F3A5A 70%); }
html[data-skin="light"] .band.steel { background: linear-gradient(160deg, #E6EDF3 0%, #F4F6F8 75%); }
html[data-skin] .band.closing { background-image: none; }
html[data-skin="app"] .platebar { background: #1F3A5A var(--tread); border-color: rgba(255,255,255,.12); }
html[data-skin="light"] .platebar { background: #DCE2E6 var(--tread-dark); }
html[data-skin="app"] .band.steel .fab-row { border-bottom-color: rgba(255,255,255,.16); }
html[data-skin="app"] .band.steel .fab-head > div { color: #C9D6E2; }
html[data-skin="app"] .band.steel details.more { border-top-color: rgba(255,255,255,.18); }
html[data-skin="app"] .band.steel details.more summary { color: #F7A55A; }
html[data-skin="light"] .hdoor { background: rgba(16,23,30,.82); }
html[data-skin="app"] body, html[data-skin="light"] body { background: var(--page); }
.hero .sub2 { max-width: 40ch; }
@media (max-width: 480px) {
  .hdoors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hdoor { min-height: 0; padding: 14px; gap: 6px; }
  .hdoor b { font-size: 1.3rem; }
  .hdoor span { font-size: .875rem; }
}
.proof { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; align-items: center; max-width: 900px; margin: 0 0 28px; padding: 18px 20px; border-left: 4px solid var(--flare); background: rgba(255,255,255,.06); border-radius: 6px; }
.proof strong { font: 700 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); color: #F7A55A; }
.proof p { margin: 0; }
html[data-skin="light"] .proof { background: #fff; }
html[data-skin="light"] .proof strong { color: var(--flare); }
@media (max-width: 480px) { .proof { grid-template-columns: 1fr; } }
/* cards opened inside the dark "More detail" panel read dark on white */
.band.steel .ready div { color: var(--ink); }
.band.steel .ready span { color: #34424E; opacity: 1; }
.band.steel .flow div { border-top-color: rgba(255,255,255,.5); }
.band.steel .flow span { color: #D7E1EA; }
html[data-skin="light"] .band.steel .flow div { border-top-color: var(--ink); }
html[data-skin="light"] .band.steel .flow span { color: #34424E; }
html[data-skin="app"] .band.steel .vs-them, html[data-skin="app"] .band.steel .vs-them h3, html[data-skin="app"] .band.steel .vs-them li { color: #C9D2D8; }
html[data-skin="app"] .band.steel .vs-them { border-color: rgba(255,255,255,.22); }
.band.steel details.more.big .versus { max-width: 900px; }

/* ---- draft 5 (2026-11-05): teaser, photo slots, movement, features ---- */
.teaser { align-items: center; }
.problems { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; gap: 12px; max-width: 60ch; }
.problems li { padding: 12px 16px; border-left: 4px solid var(--flare); background: rgba(16,23,30,.06); border-radius: 4px; }
.problems b { display: block; font: 700 1.3rem/1.15 var(--display); color: var(--ink); }
.problems span { color: #34424E; }
.photo-slot { margin: 0; min-height: 320px; display: grid; place-items: center; padding: 24px; text-align: center; border: 2px dashed #8A99A5; border-radius: 10px; background: rgba(91,107,120,.12); color: #34424E; font: 600 1rem/1.3 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.founder { margin: 0 0 8px; padding: 16px 20px; border-left: 4px solid var(--flare); background: rgba(16,23,30,.06); font-size: 1.1rem; color: var(--ink); max-width: 60ch; }
.founder cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; color: #34424E; }
.roleprobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.roleprob { padding: 18px 20px; background: rgba(16,23,30,.6); border: 1px solid var(--line); border-top: 4px solid var(--flare); border-radius: 10px; }
.roleprob h3 { font: 700 1.5rem/1 var(--display); margin: 0 0 10px; }
.roleprob ul { margin: 0 0 12px; padding-left: 1.1em; color: #C9D2D8; }
.roleprob li { margin: 0 0 6px; }
.roleprob a { color: var(--flare); font-weight: 600; }
.featlist { display: grid; gap: 18px; }
.featgrp { border-top: 3px solid var(--flare); }
.featgrp summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.featgrp summary::-webkit-details-marker { display: none; }
.featgrp summary b { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1 var(--display); color: var(--ink); }
.featgrp summary span { color: var(--steel); font-weight: 600; }
.featrows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.featrow { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid #B9C3CA; }
.featarrow { font-style: normal; font-weight: 700; color: var(--flare); }
.featrow b { font-weight: 600; color: var(--ink); }
.featrow span { color: #34424E; }
.featmore { display: inline-block; margin: 14px 0 6px; color: var(--flare); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .platebar.moving { position: relative; overflow: hidden; }
  .platebar.moving::after { content: ""; position: absolute; inset: 0; width: 30%; background: linear-gradient(100deg, transparent, rgba(247,165,90,.35), transparent); animation: sweep 6s ease-in-out infinite; }
  .problems li { opacity: 0; transform: translateY(8px); animation: reveal .6s ease-out forwards; }
  .problems li:nth-child(2) { animation-delay: .25s; } .problems li:nth-child(3) { animation-delay: .5s; }
  .problems li:nth-child(4) { animation-delay: .75s; } .problems li:nth-child(5) { animation-delay: 1s; } .problems li:nth-child(6) { animation-delay: 1.25s; }
}
@keyframes sweep { from { transform: translateX(-120%); } to { transform: translateX(420%); } }
@media (max-width: 760px) {
  .roleprobs, .featrows { grid-template-columns: minmax(0, 1fr); }
  .featrow { grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; }
  .featrow b { grid-column: 1 / -1; }
  .photo-slot { min-height: 200px; }
}
/* [N] 2026-11-05 no photos: the problems use the full width, two columns on a computer; less empty space around the stat. */
.teaser .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.teaser .lede, .teaser .subhead { max-width: 70ch; }
.band.steel:has(> .inner > .proof:only-child) { padding-top: 40px; padding-bottom: 40px; }
@media (max-width: 760px) { .teaser .problems { grid-template-columns: minmax(0, 1fr); } }
.doorhero-wrap + .band .teaser > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: start; }
.doorhero-wrap + .band .teaser > div > h2 { grid-column: 1 / -1; }
@media (max-width: 760px) { .doorhero-wrap + .band .teaser > div { grid-template-columns: minmax(0, 1fr); } }
/* [N] 2026-11-05 14:11: Features in single rows, one feature per line (four columns read as confusing). */
.featrows { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.featrow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
@media (max-width: 760px) { .featrow { grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; } .featrow b { grid-column: 1 / -1; } }
.featgrp { max-width: 900px; }
/* [N] 2026-11-05 14:17: "Why does HAL exist?" in Nathan's words: three beats, then the founder quote large. */
.doorhero-wrap + .band .teaser > div { display: block; }
.whybeats { list-style: none; margin: 18px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: beat; }
.whybeats li { counter-increment: beat; padding: 20px 22px 22px; background: var(--ink); color: #DDE3E8; border-top: 4px solid var(--flare); border-radius: 10px; }
.whybeats li::before { content: counter(beat, decimal-leading-zero); display: block; font: 700 1rem/1 var(--display); color: var(--flare); letter-spacing: .08em; margin-bottom: 10px; }
.whybeats b { display: block; font: 700 1.45rem/1.15 var(--display); color: #fff; margin-bottom: 8px; }
.founder.big { position: relative; max-width: 62ch; margin: 0; padding: 28px 32px 24px 76px; font: 600 clamp(1.25rem, 2.2vw, 1.6rem)/1.35 var(--display); background: rgba(16,23,30,.06); }
.founder.big::before { content: "\201C"; position: absolute; left: 18px; top: 4px; font: 700 5rem/1 var(--display); color: var(--flare); }
.founder.big cite { font: 600 1rem/1.3 var(--body, inherit); margin-top: 14px; }
@media (max-width: 760px) { .whybeats { grid-template-columns: minmax(0, 1fr); } .founder.big { padding: 56px 20px 20px; } .founder.big::before { left: 16px; top: 2px; } }
.founder.big { max-width: none; }
/* [N] 2026-11-05 14:26: Proven, not promised (data control and QA), on What is HAL?; the 103,815 stat moves here from the home page. */
.proofhero { display: flex; align-items: center; gap: 28px; padding: 26px 30px; margin: 14px 0 16px; background: var(--ink); color: #DDE3E8; border-left: 6px solid var(--flare); border-radius: 10px; }
.proofhero strong { font: 700 clamp(3.2rem, 7vw, 5.2rem)/1 var(--display); color: var(--flare); flex: none; }
.proofhero p { margin: 0; font-size: 1.15rem; max-width: 52ch; }
.proofhero b { color: #fff; }
.proofgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prooftile { padding: 20px 22px; background: rgba(16,23,30,.06); border-top: 4px solid var(--flare); border-radius: 10px; }
.prooftile strong { display: block; font: 700 2.4rem/1 var(--display); color: var(--ink); margin-bottom: 8px; }
.prooftile p { margin: 0; color: #34424E; }
.proofnote { margin: 16px 0 0; font-size: .92rem; color: #4A5864; }
@media (max-width: 760px) { .proofhero { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; } .proofgrid { grid-template-columns: minmax(0, 1fr); } }
/* [N] 2026-11-05 14:44: the tagline beside the logo, orange, on every page. */
.brand .tagline { color: #F7A55A; text-transform: uppercase; letter-spacing: .06em; font: 700 .9rem/1.15 var(--display); max-width: 22ch; }
@media (max-width: 1100px) { .brand .tagline { display: block; font-size: .72rem; max-width: 15ch; } }
@media (max-width: 560px) { .brand .tagline { display: none; } }
/* [N] 2026-11-05 14:49: on a phone the Purpose-built line sits as one small line under the top bar. */
.tagline-phone { display: none; }
@media (max-width: 560px) {
  .tagline-phone { display: block; margin: 0; padding: 6px 16px 7px; background: var(--ink); color: #F7A55A; font: 700 .72rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; text-align: center; border-bottom: 1px solid rgba(247,165,90,.25); }
}

/* [N] 2026-11-06: the top bar (logo, What is HAL?, Features, Sign in, Book a demo)
   stays at the top of the screen while the page scrolls (computer widths; on a phone
   it would take a fifth of the screen). */
@media (min-width: 641px) {
  .top { position: sticky; top: 0; z-index: 50; background-color: #1F3A5A; }
  html[data-skin="light"] .top { background-color: #fff; }
}
