/* ==========================================================================
   HOME SECTIONS — light/dark blocks + the sections added 2026-11-07
   (system map section, proof cards, a day in the system, who this is for,
   pricing, the written door form, sticky phone CTA). Loads after site.css
   and system-map.css. site.css stays untouched.
   ========================================================================== */

/* ---- blocks ---------------------------------------------------------------- */
.dark { background: var(--bg); position: relative; z-index: 1; }
.light, .dark { isolation: isolate; }

/* ---- legacy components on a light block -------------------------------------- */
.light .bezel { border-color: rgba(23, 20, 31, .09); box-shadow: 0 0 0 1px rgba(23, 20, 31, .02), 0 24px 60px -30px rgba(23, 20, 31, .28), inset 0 1px 0 #fff; }
.light .bezel::before { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(126, 34, 206, .18), rgba(249, 115, 22, .08) 45%, transparent 70%); }
.light .bezel > .core { background: linear-gradient(180deg, #fff, #fbfafd); box-shadow: inset 0 1px 0 #fff; }
.light .spot::after { background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(126, 34, 206, .06), transparent); }
.light .flagship { background: linear-gradient(180deg, #fff, #faf8fd) padding-box, var(--grad-brand) border-box; }
.light .flagship .flag-tag { color: #c2410c; }
.light .stagerow { background: #fff; border-color: rgba(23, 20, 31, .1); }
.light .stagerow div + div { border-left-color: rgba(23, 20, 31, .1); }
.light .stagerow .v { color: var(--text); }
.light .flag-visual { border-color: rgba(23, 20, 31, .1); }
.light .flag-strip a span { color: var(--text); }
.light .chips span { color: var(--text); background: #fff; border-color: rgba(23, 20, 31, .12); }
.light .chips span.chip-hot { background: linear-gradient(90deg, var(--brand-purple), #c026d3); border-color: transparent; color: #fff; }
.light .svc .go, .light .go, .light .build-list .go { color: #c2410c; }
.light .build-list a:hover h3 { color: var(--brand-purple); }
.light .wf .shot, .light .compare { box-shadow: 0 10px 30px -18px rgba(23, 20, 31, .5); }
.light .faq-q .qt { color: var(--text); }
.light .faq-q .fx { background: #fff; border-color: rgba(23, 20, 31, .14); }
.light .faq-q .fx::before, .light .faq-q .fx::after { background: var(--text); }
.light .faq-q .ftag { border-color: rgba(23, 20, 31, .12); }
.light .faq-item.open .faq-q .fx { border-color: rgba(126, 34, 206, .5); }
.light .morework .btn-ghost { background: #fff; }
.light .sec-head, .light h3 { color: var(--text); }

/* ---- the system section (homepage, under the hero) -------------------------- */
.system { padding: 72px 0 150px; text-align: center; }
.system .smap { text-align: left; }
.system .sub { margin-left: auto; margin-right: auto; }
.system .actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
/* the flagship app card lives inside the system section since 2026-11-08: map -> outcomes -> the screen it fills */
.system .flagship-shell { margin-top: 64px; text-align: left; }
.system .flag-lead { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: clamp(1.15rem, 1.7vw, 1.35rem); margin: 72px auto 0; max-width: 40rem; text-wrap: balance; }
.system .flag-lead + .flagship-shell { margin-top: 22px; }

/* outcome lines under the chart: a ruled list, no cards, no icon tiles (2026-11-08) */
.proof { display: grid; gap: 0 40px; margin: 56px 0 0; padding: 0; list-style: none; text-align: left; border-top: 2px solid var(--text); }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof li { padding: 22px 2px 24px; border-bottom: 1px solid rgba(23, 20, 31, .12); color: var(--muted); line-height: 1.55; }
@media (min-width: 760px) { .proof li { border-bottom: 0; } }
.tile { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #7e22ce; background: #faf5ff; border: 1px solid rgba(126, 34, 206, .18); margin-bottom: 16px; }
.tile svg { width: 24px; height: 24px; }
.proof b { display: block; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.25; margin-bottom: 10px; letter-spacing: -.015em; text-wrap: balance; }
.proof span.t { display: block; font-size: .95rem; max-width: 34ch; }

/* ---- a day in the system (dark block) --------------------------------------- */
.dayin { padding: 0 0 150px; text-align: center; }
.dayin .sub { margin-left: auto; margin-right: auto; }
.day { margin-top: 48px; text-align: left; }
.day-track { position: relative; height: 4px; background: rgba(255, 255, 255, .1); border-radius: 2px; margin: 70px 0 18px; }
.day-track::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, #7e22ce, #d946ef 55%, #f97316); opacity: .4; }
.day-dot { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, #d946ef 65%, #7e22ce); box-shadow: 0 0 0 4px rgba(217, 70, 239, .18), 0 0 14px rgba(217, 70, 239, .9); animation: day-run 16s linear infinite; z-index: 2; }
@keyframes day-run { from { left: 0; } to { left: 100%; } }
.day-ticks { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin: 0; padding: 0; }
.day-ticks li { list-style: none; position: relative; text-align: center; padding-top: 16px; }
.day-ticks li::before { content: ""; position: absolute; top: -32px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #0d0d0f; border: 2px solid #4a4654; animation: tick-pulse 16s linear infinite; animation-delay: var(--d); }
@keyframes tick-pulse { 0%, 100% { border-color: #4a4654; box-shadow: none; } 1.5% { border-color: #d946ef; box-shadow: 0 0 0 5px rgba(217, 70, 239, .22); } 9% { border-color: #d946ef; box-shadow: none; } 11% { border-color: #4a4654; } }
.day-ticks time { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--brand-fuchsia); font-weight: 600; }
.day-ticks span { display: block; font-size: .8rem; line-height: 1.35; color: var(--muted); margin-top: 4px; }
.day-note { font-size: .85rem; color: var(--muted); margin-top: 26px; text-align: center; }
@media (max-width: 760px) {
  .day-track, .day-dot { display: none; }
  .day-ticks { grid-template-columns: 1fr; gap: 0; border-left: 2px dashed rgba(217, 70, 239, .4); margin-left: 8px; padding-left: 22px; }
  .day-ticks li { text-align: left; padding: 10px 0 14px; }
  .day-ticks li::before { top: 14px; left: -29px; margin: 0; animation: none; border-color: #d946ef; }
}
@media (prefers-reduced-motion: reduce) { .day-dot, .day-ticks li::before { animation: none; } }

/* ---- how I work: the three-weeks line ---------------------------------------- */
.how-list .new { display: inline-block; margin-top: 12px; font-size: .9rem; color: #fff; font-weight: 600; background: rgba(217, 70, 239, .08); border: 1px solid rgba(217, 70, 239, .3); border-radius: 10px; padding: 6px 10px; text-align: left; }

/* ---- who this is for (light) ------------------------------------------------- */
.fitfor { padding: 110px 0 150px; text-align: center; }
.fitfor .sub { margin-left: auto; margin-right: auto; }
.fit { display: grid; gap: 18px; margin-top: 40px; text-align: left; }
@media (min-width: 820px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit > div { background: #fff; border: 1px solid rgba(23, 20, 31, .09); border-radius: 20px; padding: 28px 28px 22px; box-shadow: 0 14px 34px -22px rgba(23, 20, 31, .35), 0 2px 6px -2px rgba(23, 20, 31, .08); }
.fit h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fit h3 i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 15px; }
.fit .yes h3 i { background: #ecfdf5; color: #15803d; border: 1px solid #86efac; }
.fit .no h3 i { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
.fit ul { list-style: none; padding: 0; margin: 0; }
.fit li { padding: 11px 0; border-top: 1px solid var(--hairline); font-size: .93rem; color: var(--muted); line-height: 1.5; }
.fit li b { color: var(--text); font-weight: 600; }

/* ---- pricing (light) ---------------------------------------------------------- */
.pricing { padding: 0 0 150px; text-align: center; }
.pricing .sub { margin-left: auto; margin-right: auto; }
.price { display: grid; gap: 18px; margin-top: 40px; text-align: left; }
@media (min-width: 820px) { .price { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.price .tiers { display: grid; gap: 12px; }
.price .tier { background: #fff; border: 1px solid rgba(23, 20, 31, .09); border-radius: 16px; padding: 18px 20px; box-shadow: 0 14px 34px -22px rgba(23, 20, 31, .3); display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; }
.price .tier .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: #7e22ce; padding-top: 4px; white-space: nowrap; }
.price .tier b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.price .tier span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; margin-top: 3px; }
.price .rules { background: #fff; border: 1px solid rgba(126, 34, 206, .25); border-radius: 20px; padding: 26px 28px; box-shadow: 0 24px 50px -30px rgba(126, 34, 206, .35); }
.price .rules h3 { font-size: 1.15rem; margin-bottom: 10px; }
.price .rules ul { padding: 0; margin: 0; }
.price .rules li { font-size: .93rem; color: var(--muted); line-height: 1.5; padding: 9px 0; border-top: 1px solid var(--hairline); list-style: none; }
.price .rules li b { color: var(--text); font-weight: 600; }

/* ---- the written door (light) ------------------------------------------------- */
.task { padding: 0 0 150px; text-align: center; scroll-margin-top: 100px; }
.task .sub { margin-left: auto; margin-right: auto; }
.task-wrap { display: grid; gap: 28px; margin-top: 40px; text-align: left; }
@media (min-width: 900px) { .task-wrap { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.task-side h3 { font-size: 1.3rem; margin-bottom: 10px; }
.task-side p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.task-side ul { list-style: none; padding: 0; margin: 18px 0 0; }
.task-side li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hairline); font-size: .93rem; color: var(--muted); }
.task-side li i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #faf5ff; border: 1px solid rgba(126, 34, 206, .18); color: #7e22ce; font-style: normal; flex: 0 0 auto; }
.task-side li i svg { width: 18px; height: 18px; }
.task-form { background: #fff; border: 1px solid rgba(23, 20, 31, .09); border-radius: 22px; padding: 28px; box-shadow: 0 24px 50px -30px rgba(126, 34, 206, .35), 0 2px 6px -2px rgba(23, 20, 31, .08); position: relative; }
.task-form .row { display: grid; gap: 14px; }
@media (min-width: 600px) { .task-form .row.two { grid-template-columns: 1fr 1fr; } }
.task-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin: 14px 0 6px; }
.task-form label small { font-weight: 400; color: var(--muted); }
.task-form input, .task-form textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: #fbfafd; border: 1px solid rgba(23, 20, 31, .14); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .3s, box-shadow .3s; }
.task-form input:focus, .task-form textarea:focus { border-color: #7e22ce; box-shadow: 0 0 0 4px rgba(126, 34, 206, .12); background: #fff; }
.task-form textarea { min-height: 110px; resize: vertical; }
.task-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.task-form .foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.task-form .foot small { color: var(--muted); font-size: .82rem; }
.task-form button.btn-cta { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.task-form button[disabled] { opacity: .6; cursor: progress; }
.task-msg { margin-top: 14px; font-size: .9rem; padding: 12px 14px; border-radius: 12px; display: none; text-align: left; }
.task-msg.err { display: block; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }
.task-msg.err a { color: #7e22ce; font-weight: 600; }
.task-done { text-align: center; padding: 30px 10px; }
.task-done .tile { margin: 0 auto 14px; width: 56px; height: 56px; }
.task-done h3 { font-size: 1.35rem; }
.task-done p { color: var(--muted); margin-top: 8px; }

/* ---- sticky phone CTA ---------------------------------------------------------- */
/* hidden = visibility hidden too, so its links leave the tab order while aria-hidden (2026-11-08) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-top: 1px solid rgba(23, 20, 31, .1); transform: translateY(110%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s linear .45s; }
.sticky-cta.on { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.sticky-cta .btn-cta { width: 100%; justify-content: space-between; padding-left: 1.3rem; }
.sticky-cta a.alt { display: block; text-align: center; font-size: .82rem; color: #5d5869; margin-top: 6px; }
@media (max-width: 760px) { .sticky-cta { display: block; } body.menu-open .sticky-cta { display: none; } }

/* ---- case study: the map as a light panel inside a dark page ------------------- */
.map-light { border-radius: var(--r-lg); padding: 28px 28px 24px; margin-top: 2rem; border: 1px solid rgba(23, 20, 31, .06); }
.map-light .smap { margin-top: 0; }
.map-light .map-cap { color: var(--muted); }
.map-light .map-cap a { color: #7e22ce; }
@media (max-width: 760px) { .map-light { padding: 18px 14px; } }

/* map hint: name the action the device actually has (2026-11-08) */
.tap-hint { display: none; }
@media (hover: none), (max-width: 900px) { .hover-hint { display: none; } .tap-hint { display: inline; } }

/* phones: tighter rhythm for the homepage sections (2026-11-08) */
@media (max-width: 640px) {
  .system { padding: 56px 0 96px; }
  .system .flag-lead { margin-top: 56px; }
  .dayin, .pricing, .task { padding-bottom: 96px; }
  .fitfor { padding: 72px 0 96px; }
}
