:root {
  color-scheme: light;
  --ink: #18384e;
  --ink-soft: #537084;
  --paper: #fbfcf9;
  --line: #dce7e8;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #93b5c7; color: var(--ink); }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #ffdb88; outline-offset: 4px; }
[hidden] { display: none !important; }
.app { width: 100%; min-height: 100svh; }
.road-screen {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(100%, 460px); height: 100svh; min-height: 710px;
  margin: 0 auto; background: linear-gradient(145deg,#b5d9e7,#7199a0 52%,#7cbdba);
}
.scenery {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scaleX(-1); transform-origin: center;
  pointer-events: none; user-select: none;
}
.road-wash {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,rgba(231,241,246,.68),rgba(236,247,246,.10) 20%,transparent 36%,transparent 78%,rgba(10,42,62,.15));
}
.road-screen.image-unavailable .scenery { display: none; }
.road-heading {
  position: absolute; top: calc(env(safe-area-inset-top) + 26px);
  left: 19px; z-index: 5; width: calc(100% - 155px);
  pointer-events: none;
}
.eyebrow {
  font-size: 11px; letter-spacing: .17em; font-weight: 900;
  color: #1b3b50; text-transform: uppercase;
  text-shadow: 0 1px 8px #fff9;
}
.road-heading h1 {
  margin: 7px 0 0; font-size: clamp(27px, 7vw, 37px);
  line-height: 1.03; font-weight: 940; letter-spacing: -.048em;
  color: #19374b; text-shadow: 0 1px 8px #fff9;
}
.contact-pill {
  position: absolute; top: calc(env(safe-area-inset-top) + 18px);
  right: 15px; z-index: 7;
  display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  min-height: 48px; padding: 10px 17px;
  border: 1px solid #ffffffb7; border-radius: 50px;
  color: #8f436d; font-size: 15px; font-weight: 900;
  background: #fff8f8f0; box-shadow: 0 4px 20px #123d4c23;
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
.contact-pill span { color: #ca3185; font-size: 19px; }
.stops { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.pin {
  position: absolute; display: block; width: 47px; height: 47px;
  transform: translate(-50%, -50%); padding: 0;
  border: 0; background: none; text-align: left;
  pointer-events: auto; touch-action: manipulation; overflow: visible;
}
.pin-node {
  display: grid; place-items: center; position: relative;
  width: 47px; height: 47px; border-radius: 50%;
  color: #fff; font-size: 17px; font-weight: 900; line-height: 1;
  border: 2px solid #fff;
  background: linear-gradient(140deg, color-mix(in srgb,var(--tone) 78%,white 22%),color-mix(in srgb,var(--tone) 78%,#193c52 22%));
  box-shadow: 0 2px 14px #0a24348c, 0 0 0 3px #ffffff8c, 0 0 15px color-mix(in srgb,var(--tone) 33%,transparent);
  text-shadow: 0 1px 3px #15374888;
}
.pin-node::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  border: 1px solid #ffffff8c; pointer-events: none;
}
.pin-name {
  position: absolute; top: 50%; left: calc(100% + 13px);
  transform: translateY(-50%);
  display: flex; align-items: center; min-height: 42px;
  padding: 8px 11px; border-radius: 50px;
  border: 1px solid #ffffff82; color: #fff;
  font-weight: 850; font-size: clamp(11px,3.55vw,15px);
  line-height: 1.18; letter-spacing: -.025em;
  text-shadow: 0 1px 6px #0b2437e8;
  box-shadow: 0 4px 16px #0a212d4d, inset 0 1px #ffffff3d;
  background: linear-gradient(245deg,color-mix(in srgb,var(--tone) 48%,#244056 52%),#122e3fd6 55%,#122f3e8c);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  white-space: normal;
}
.pin-name::before {
  content: ""; position: absolute; top: 50%; left: -13px; width: 13px;
  border-top: 1px solid #fff9;
}
.pin.label-left .pin-name {
  left: auto; right: calc(100% + 13px);
  background: linear-gradient(115deg,color-mix(in srgb,var(--tone) 48%,#244056 52%),#122e3fd6 55%,#122f3e8c);
}
.pin.label-left .pin-name::before { left: auto; right: -13px; }
.pin:hover .pin-node { box-shadow: 0 0 0 5px #fff9, 0 0 23px var(--tone); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-node, .pin:focus-visible .pin-name { outline: 3px solid #ffdb88; outline-offset: 3px; }
/* The sixth road pin uses the bottom turn; the instruction used to cover it on mobile. */
.road-footer { display: none; }
.road-footer {
  position: absolute; left: 20px; right: 20px; bottom: calc(10px + env(safe-area-inset-bottom));
  text-align: center; font-size: 10px; font-weight: 770; color: #fffe;
  text-shadow: 0 2px 6px #162c3cc7; pointer-events: none;
}
.detail-screen {
  width: min(100%, 580px); min-height: 100svh; margin: 0 auto;
  background: linear-gradient(180deg,#e5f2f6 0%,#fdfbf7 38%,#fbfcf9 100%);
}
.detail-header {
  position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 67px; padding: calc(10px + env(safe-area-inset-top)) 18px 11px;
  background: #f2faf9ef; backdrop-filter: blur(14px);
  border-bottom: 1px solid #d8e9eb;
}
.back-link, .detail-contact {
  border: 1px solid #c5dfe3; border-radius: 50px;
  padding: 9px 14px; min-height: 42px;
  font-weight: 850; color: #235469; background: #fffdfa;
}
.back-link { font-size: 23px; display: flex; align-items: center; gap: 6px; line-height: 1; }
.back-link span { font-size: 13px; }
.detail-contact { background: #fff1f7; color: #914573; border-color: #f1d6e7; }
.detail-content { padding: 19px 17px calc(26px + env(safe-area-inset-bottom)); }
.detail-eyebrow { font-size: 10px; font-weight: 950; letter-spacing: .16em; color: #327287; }
.detail-hero h1 { font-size: clamp(28px,8vw,40px); line-height: 1.06; letter-spacing: -.045em; margin: 8px 0 19px; color: #173e55; text-wrap: balance; }
.details-panel { display: grid; gap: 9px; }
.benefit-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 13px; background: #ffffffeb;
  border: 1px solid #e1e9e9; border-radius: 16px;
  box-shadow: 0 8px 25px #294f5a0b;
}
.benefit-number { font: 900 11px/1.3 ui-monospace,SFMono-Regular,monospace; color: #4d9a9a; padding-top: 4px; }
.benefit-copy { flex: 1; min-width: 0; }
.benefit-copy h2 { margin: 0 0 4px; font-size: 16px; line-height: 1.22; color: #1c465c; }
.benefit-copy p { margin: 0; line-height: 1.36; font-size: 13px; color: #567485; }
.detail-foot { padding: 12px 2px; }
.contact-cta {
  width: 100%; min-height: 52px; margin-top: 7px;
  padding: 13px 17px; border: 0; border-radius: 18px;
  color: #fff; background: linear-gradient(110deg,#245b77,#2a8289);
  font-size: 15px; font-weight: 900; box-shadow: 0 10px 24px #1d526337;
}
.contact-dialog {
  width: min(calc(100% - 28px),410px); max-height: 80svh; overflow-y:auto; overscroll-behavior:contain;
  border: 1px solid #e9e2df; border-radius: 24px;
  padding: 23px; color: #193d54; background: #fffdfa;
  box-shadow: 0 20px 70px #17334255;
}
.contact-dialog::backdrop { background: #1837469c; backdrop-filter: blur(4px); }
.contact-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.contact-top h2 { margin:0; font-size:26px; }
.icon-close { width:38px;height:38px;border-radius:50%;border:1px solid #d7e0df;background:#f5faf9;font-size:24px; }
.contact-dialog > p { font-size: 14px; line-height: 1.48; color: #527184; }
.contact-links { display:grid;gap:9px;margin:20px 0; }
.contact-link { display:block; padding:13px 15px; text-decoration:none; color:#fff; border-radius:12px; background:#235a77; font-weight:850; }
.contact-pending { color:#6b8591; background:#f0f5f4; padding:15px; border-radius:13px; font-size:12px; line-height:1.45; }
.contact-location { font-weight: 850; }
@media (max-width: 370px) {
  .road-heading { left: 14px; width: calc(100% - 146px); }
  .road-heading h1 { font-size: 27px; }
  .contact-pill { right: 11px; font-size: 13px; padding: 8px 12px; }
  .pin-node,.pin { width: 43px; height: 43px; }
  .pin-name { min-height: 40px; font-size: 11px; padding: 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Benefit-card quiz: native pressable cards, no visible form or checkbox UI. */
.choice-counter {
  display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;
  border-radius:99px;color:#fff;background:#1b7776;font-size:11px;font-weight:900;
}
.benefit-choice {
  width:100%;min-height:79px;text-align:left;cursor:pointer;
  border:1.5px solid #e1e9e9;
  transition:background-color .16s,border-color .16s,transform .12s,box-shadow .16s;
  -webkit-tap-highlight-color:transparent;
}
.benefit-choice:active {transform:scale(.992);}
.benefit-choice.selected {
  background:linear-gradient(120deg,#ebfaf5 0%,#f5fbf9 75%,#fffdf9 100%);
  border-color:#67b5a5;
  box-shadow:0 6px 19px #377f7022,inset 0 0 0 1px #75bbac4a;
}
.choice-ring {
  position:relative;display:block;flex:none;width:24px;height:24px;
  border:2px solid #9db6bf;border-radius:50%;background:#fff;
  box-shadow:0 2px 5px #17395012;transition:all .16s;
}
.benefit-choice.selected .choice-ring {
  background:#287f7a;border-color:#287f7a;
  box-shadow:0 0 0 3px #74c0b037;
}
.benefit-choice.selected .choice-ring::after {
  content:"";position:absolute;inset:6px;border-radius:50%;background:#fff;
}
.benefit-copy {display:block;}
.benefit-title {display:block;margin:0 0 4px;font-size:16px;font-weight:850;line-height:1.22;color:#1c465c;}
.benefit-description {display:block;line-height:1.38;font-size:13px;color:#567485;}
.benefit-choice.selected .benefit-title {color:#176c66;}
.selection-summary {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:13px 0 16px;color:#416675;font-size:13px;font-weight:850;}
.clear-choices {border:0;background:transparent;color:#67838c;font-size:12px;text-decoration:underline;padding:7px;}
.name-label,.message-label {display:block;margin:11px 0 6px;font-weight:850;font-size:12px;color:#365a70;}
.name-label span {font-weight:500;color:#7b939c;}
.name-input,.message-preview {
  display:block;width:100%;border:1px solid #d5e3e4;border-radius:12px;
  color:#25495f;background:#f8fbfa;padding:11px 12px;font:inherit;font-size:14px;
}
.name-input {min-height:45px;}
.message-preview {height:auto;min-height:115px;max-height:190px;resize:vertical;line-height:1.4;font-size:13px;}
.contact-dialog .contact-links {margin:13px 0 3px;}
.contact-whatsapp {background:#168f6d;}
.contact-instagram {background:linear-gradient(120deg,#7558ae,#c94b87);}
.instagram-note {margin:7px 0 0!important;font-size:11px!important;line-height:1.4!important;color:#758a91!important;}
.copy-message {border:0;background:transparent;padding:8px 1px;font-weight:750;font-size:12px;color:#2c6a83;text-decoration:underline;}
.contact-status {min-height:14px;margin:2px 0 0!important;color:#32776b!important;font-size:11px!important;}
.contact-dialog .contact-location {margin:9px 0 0!important;font-size:12px!important;}
@media (max-width:370px) {
 .benefit-choice {min-height:72px;}
 .benefit-title {font-size:15px;}
 .choice-ring {width:22px;height:22px;}
}
@media (prefers-reduced-motion:reduce) {
 .benefit-choice,.choice-ring {transition:none!important;}
}

/* Seven-point conversion story: the road shows short hooks; detail shows the cause and offer. */
#road-title {
  white-space: pre-line;
  font-size: clamp(25px, 6.8vw, 35px);
  line-height: 1.05;
  max-width: 240px;
  text-wrap: balance;
}
.detail-intro {
  margin: -5px 0 19px;
  color: #395e71;
  font-size: clamp(14px, 3.5vw, 16px);
  line-height: 1.5;
  max-width: 54ch;
}
.proof-promise {
  margin: 13px 0 0;
  color: #214b5e;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.43;
}
@media(max-width: 370px) {
  #road-title { font-size: 25px; max-width: 215px; }
  .detail-intro { font-size: 14px; }
}

/* V3 opening hook on mobile road: compact enough to clear first pin. */

@media (max-width: 370px) {
  #road-title { font-size: 23px; max-width: 195px; }
}

/* Approved v4 hook hierarchy: short road title, one bold benefit-through-mechanism
   subhead, then only the existing three tap-to-select quiz actions. */
.detail-hero h1 {
  margin-bottom: 13px;
}
.detail-intro {
  font-size: clamp(15px, 3.85vw, 17px);
  line-height: 1.42;
  font-weight: 830;
  letter-spacing: -.018em;
  color: #1b465b;
  margin: 0 0 19px;
}
.pin.long-label .pin-name {
  font-size: clamp(11px, 3.05vw, 13px);
  line-height: 1.15;
  padding: 7px 9px;
}
.pin.very-long-label .pin-name {
  font-size: clamp(10px, 2.85vw, 12px);
  line-height: 1.14;
  padding: 6px 8px;
}
@media (max-width: 370px) {
  .detail-intro { font-size: 15px; line-height: 1.4; }
  .pin.very-long-label .pin-name { font-size: 10px; }
}

/* Header: red physical strike-through copied from the approved Spark road treatment.
   TOOLBOX is struck out, red arrow connects to the dominant PROFIT FACTORY. */
.road-heading { width: calc(100% - 130px); }
#road-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  white-space: normal;
  text-wrap: nowrap;
}
#road-title .hero-transition {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.05;
}
#road-title .hero-old-tool {
  position: relative;
  display: inline-block;
  color: #435969;
  font-size: clamp(18px, 5.2vw, 25px);
  font-weight: 900;
  letter-spacing: -.055em;
  opacity: .9;
}
#road-title .hero-old-tool::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 52%;
  left: -4%;
  width: 108%;
  height: 5px;
  border-radius: 10px;
  background: #db3665;
  transform: rotate(-6deg);
  box-shadow: 0 1px 2px #60142c55;
  pointer-events: none;
}
#road-title .hero-arrow {
  color: #db3665;
  font-size: clamp(23px, 6.6vw, 34px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 4px #ffffff9c;
}
#road-title .hero-factory {
  display: block;
  white-space: nowrap;
  font-size: clamp(21px, 6.3vw, 32px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.055em;
  color: #153449;
  text-shadow: 0 1px 6px #ffffffe0;
}
@media (max-width: 370px) {
  .road-heading { width: calc(100% - 120px); }
  #road-title .hero-transition { gap: 7px; }
  #road-title .hero-old-tool { font-size: 19px; }
  #road-title .hero-arrow { font-size: 25px; }
  #road-title .hero-factory { font-size: clamp(20px, 6.2vw, 23px); }
}
