/* ai.revelations.consulting: same brand as revelations.consulting (forest, cream, gold; Fraunces + Inter). */
:root {
  --forest: #0E2B0D; --forest-2: #163D15; --cream: #F4EFE6; --cream-2: #EAE3D6;
  --gold: #C9A227; --ink: #1B2A1A; --muted: #4E5B4C; --sage: #BFD3BC;
  --line: rgba(14, 43, 13, 0.14); --radius: 14px;
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); max-width: 24ch; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); padding: 8px 12px; z-index: 100; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #7A5A10; margin-bottom: .8em; }
.dark .eyebrow, .hero .eyebrow { color: var(--gold); }

.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: #D6B23B; }
.btn-ghost { border-color: rgba(244, 239, 230, .4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-dark { background: var(--forest); color: var(--cream); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

.top { position: sticky; top: 0; z-index: 20; background: var(--forest); color: var(--cream); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.brand em { font-style: normal; color: var(--gold); }
.top nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.top nav a:not(.btn) { text-decoration: none; opacity: .85; }
.top nav a:not(.btn):hover { opacity: 1; }

.hero { background: var(--forest); color: var(--cream); padding-block: 72px 88px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.lede { font-size: 1.15rem; color: var(--sage); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.receipt { margin: 0; background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 0 18px 40px rgba(0,0,0,.25); font-variant-numeric: tabular-nums; }
.r-head { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.r-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 0 0 14px; }
.r-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.r-steps li { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: #FBF8F2; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; }
.r-role { font-weight: 600; }
.r-ok { font-size: .78rem; font-weight: 600; color: #2F6B3A; background: #E3EFE0; border-radius: 999px; padding: 2px 10px; }
.r-foot { font-size: .8rem; color: var(--muted); margin: 0; }

.band { background: var(--cream-2); padding-block: 64px; }
.section { padding-block: 80px; }
.section.alt { background: var(--cream-2); }
.section.dark { background: var(--forest); color: var(--cream); }
.two { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.stack { display: grid; gap: 24px; }
.point p { color: var(--muted); margin: 0; }
/* (legacy) */ .weeks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.weeks li { background: #FBF8F2; border: 1px solid var(--line); border-top: 5px solid var(--forest); border-radius: 12px; padding: 20px; }
.weeks p { color: var(--muted); font-size: .95rem; margin: 0; }
.weeks .wk { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7A5A10; margin-bottom: 6px; }
.note { color: var(--muted); margin-top: 24px; font-size: .95rem; }
.lede-dark { color: var(--muted); font-size: 1.05rem; }

.price-card { background: #FBF8F2; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; margin: 0; color: var(--forest); font-variant-numeric: tabular-nums; }
.price-sub { color: var(--muted); font-size: .95rem; }
.slots { display: inline-block; margin: 0 0 12px; padding: 5px 10px; border-radius: 8px; line-height: 1.4; background: var(--forest); color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ticks { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; }
.fine { font-size: .9rem; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0; font-variant-numeric: tabular-nums; }
.stats .n { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--gold); margin: 0; }
.stats p { margin: 0; color: var(--sage); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--forest-2); border: 1px solid #2E5A2C; border-radius: 12px; padding: 20px; }
.card p { color: var(--sage); margin: 0; }
.note-dark { color: var(--sage); margin-top: 20px; }
.note-dark a { color: var(--gold); }
.mail { color: var(--cream); font-weight: 600; user-select: all; }

.faq { display: grid; gap: 10px; margin-top: 20px; max-width: 760px; }
.faq details { background: #FBF8F2; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.form { display: grid; gap: 6px; background: var(--forest-2); border: 1px solid #2E5A2C; border-radius: var(--radius); padding: 24px; }
.form label { font-size: .88rem; font-weight: 600; color: var(--sage); margin-top: 8px; }
.form input, .form textarea { width: 100%; font: 1rem var(--sans); color: var(--ink); background: var(--cream); border: 1px solid transparent; border-radius: 10px; padding: 12px; }
.form button { margin-top: 14px; justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.4em; margin: 8px 0 0; color: var(--cream); }
.form-msg.err { color: #F5B7A8; }
.fine-dark { font-size: .82rem; color: var(--sage); margin: 0; }
.fine-dark a { color: var(--gold); }

.foot { background: var(--forest); color: var(--sage); border-top: 1px solid #2E5A2C; padding-block: 24px; font-size: .9rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot p { margin: 0; }

/* ---------- Products ---------- */
.p-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.p-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #FBF8F2; color: var(--forest); font-size: .9rem; font-weight: 600; text-decoration: none; }
.p-jump a:hover { border-color: var(--forest); }
.p-count { font-size: .75rem; font-weight: 600; color: var(--cream); background: var(--forest); border-radius: 999px; padding: 1px 7px; }
.p-group { margin-top: 36px; scroll-margin-top: 12px; }
.p-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.p-group-head h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; color: var(--forest); }
.p-group-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.products { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.products.pair { grid-template-columns: repeat(2, 1fr); }
.product { position: relative; display: flex; flex-direction: column; background: #FBF8F2; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.product:hover { border-color: var(--forest); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(14, 43, 13, .45); }
.product:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.p-shot { display: block; width: 100%; height: auto; aspect-ratio: 640 / 336; object-fit: cover; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.p-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.product .p-name { margin: 0; }
.p-link { color: inherit; text-decoration: none; }
.p-link:focus { outline: none; }
.p-link::after { content: ""; position: absolute; inset: 0; }
.p-line { margin: 0; }
.p-signer { margin: 4px 0 0; font-size: .86rem; color: var(--ink); line-height: 1.45; }
.p-signer span { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.p-cta { margin-top: auto; padding-top: 10px; font-size: .9rem; font-weight: 600; color: var(--forest); }
.p-arrow { display: inline-block; transition: transform .15s; }
.product:hover .p-arrow { transform: translateX(3px); }
.product.next { background: transparent; border-style: dashed; justify-content: center; }
.product.next:hover { transform: none; box-shadow: none; border-color: var(--line); }
.engine-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; border: 1px solid var(--forest); border-radius: var(--radius); padding: 18px 20px; background: var(--forest); color: var(--cream); margin-top: 28px; transition: transform .15s; }
.engine-tile:hover { transform: translateY(-1px); }
.engine-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.p-market { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #7A5A10; }
.engine-tile .p-market { color: var(--gold); }
.p-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--forest); }
.engine-tile .p-name { color: var(--gold); font-size: 1.5rem; }
.p-line { font-size: .92rem; color: var(--muted); line-height: 1.5; }
.engine-tile .p-line { color: var(--sage); }

/* ---------- Visuals (ai-viz.js) ---------- */
:root { --ok: #2F6B3A; --ok-bg: #E3EFE0; --bad: #A6362A; --bad-bg: #F6E1DC; --bad-dk: #F5B7A8; --run: #7A5A10; --run-bg: #F5EACB; }

/* Hero receipt, live */
.r-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; }
.r-top .r-head { margin: 0; }
.r-live { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .06em; color: var(--run); }
.r-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: 1px; }
.r-title { transition: color .2s; }
.receipt.is-held .r-title { color: var(--bad); }
.r-who { display: flex; flex-direction: column; min-width: 0; }
.r-key { font: 500 .72rem/1.3 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); letter-spacing: .02em; min-height: 0; }
.r-key:empty { display: none; }
.r-key.clash { color: var(--bad); font-weight: 700; }
.r-steps li { transition: background .25s, border-color .25s, opacity .25s; }
.r-steps li.is-run { background: #FFF8E6; border-color: rgba(201, 162, 39, .6); }
.r-steps li.is-bad { background: var(--bad-bg); border-color: rgba(166, 54, 42, .35); }
.r-steps li.is-skip { opacity: .5; }
.r-ok { white-space: nowrap; }
.r-ok.st-wait { color: var(--muted); background: #EEE9DF; }
.r-ok.st-run { color: var(--run); background: var(--run-bg); }
.r-ok.st-run::after { content: ""; display: inline-block; width: 1.1em; text-align: left; animation: r-dots 1s steps(4) infinite; }
@keyframes r-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.r-ok.st-bad { color: #fff; background: var(--bad); }
.r-ok.st-skip { color: var(--muted); background: transparent; border: 1px dashed var(--line); }
.r-foot { min-height: 2.6em; }
.r-foot code { font: 500 .76rem ui-monospace, Menlo, Consolas, monospace; }
.r-foot .bad { color: var(--bad); font-weight: 600; }
.r-ctl { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.r-ctl[hidden] { display: none; }
.r-seg { display: inline-flex; background: #EEE9DF; border-radius: 999px; padding: 3px; }
.r-seg button, .r-replay { font: 600 .8rem var(--sans); border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; background: transparent; color: var(--muted); }
.r-seg button[aria-pressed="true"] { background: var(--forest); color: var(--cream); }
.r-replay { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.r-seg button:focus-visible, .r-replay:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }

/* Eight-week plan */
.plan { margin: 36px 0 0; --tw: 1.25fr; }
.plan-head, .plan-rows > li, .plan-pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--tw)); gap: 28px; align-items: center; }
.plan-grid { display: grid; grid-template-columns: 1.2fr repeat(8, 1fr); }
.plan-head .plan-grid span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 0 8px 6px; border-left: 1px solid var(--line); line-height: 1.3; }
.plan-head .plan-grid span em { display: block; font-style: normal; text-transform: none; letter-spacing: 0; color: #7A5A10; font-weight: 600; }
.plan-head .plan-grid .pre { border-left-color: transparent; }
.plan-rows { list-style: none; margin: 0; padding: 0; }
.plan-rows > li { padding: 18px 0; border-top: 1px solid var(--line); }
.plan-rows > li:last-child { border-bottom: 1px solid var(--line); }
.ph-text h3 { margin-bottom: .25em; }
.ph-text p { color: var(--muted); font-size: .95rem; margin: 0; }
.ph-text .wk { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7A5A10; margin-bottom: 4px; }
.ph-track { position: relative; height: 40px; align-items: center;  }
.ph-track::before { content: ""; position: absolute; inset: 0 0 0 calc(100% * 1.2 / 9.2); background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 12.5% 100%; }
.ph-bar { position: relative; grid-column: var(--s) / var(--e); grid-row: 1; height: 22px; margin: 0 3px; border-radius: 6px; background: var(--forest); transform-origin: left center; transition: transform .7s cubic-bezier(.2,.7,.2,1), background .15s; }
.plan.is-pending .ph-bar { transform: scaleX(0); }
.plan-rows > li:nth-child(2) .ph-bar { transition-delay: .12s; } .plan-rows > li:nth-child(3) .ph-bar { transition-delay: .24s; } .plan-rows > li:nth-child(4) .ph-bar { transition-delay: .36s; }
.plan-rows > li:hover .ph-bar { background: #2B5A29; }
.plan-rows > li:nth-child(3) .ph-bar { background: repeating-linear-gradient(135deg, var(--forest) 0 6px, #2B5A29 6px 9px); }
.plan-pay { padding-top: 16px; }
.plan-pay .ph-text { margin: 0; }
.plan-pay .pay-note { display: block; color: var(--muted); font-size: .95rem; }
.plan-pay ul { list-style: none; margin: 0; padding: 0; }
.plan-pay li { grid-column: var(--c); grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-left: 6px; border-left: 2px solid var(--gold); font-size: .74rem; color: var(--muted); line-height: 1.25; min-width: 0; }
.plan-pay li b { font: 600 1rem var(--serif); color: var(--forest); }

/* Proof figures */
.fig { min-height: 150px; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid #2E5A2C; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.fig-read { margin: 0; font-size: .82rem; color: var(--sage); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-variant-numeric: tabular-nums; }
.fig-read b { color: var(--cream); margin-right: 8px; }
.fig-hover { margin-left: auto; color: var(--gold); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw-ok { background: var(--gold); }
.sw-no { border: 1.5px solid var(--bad-dk); }
.streak { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; max-width: 250px; }
.streak i { aspect-ratio: 1; border-radius: 3px; background: var(--gold); transition: opacity .25s, transform .25s, background .15s; }
.streak i:hover { background: var(--cream); }
.fig.is-pending .streak i { opacity: 0; transform: scale(.4); }
.roles { width: 100%; height: auto; overflow: visible; }
.ro-proc { fill: var(--forest); stroke: var(--sage); stroke-width: 1.5; }
.ro-t { fill: var(--cream); font: 600 13px var(--sans); }
.ro-key { fill: rgba(201, 162, 39, .14); stroke: var(--gold); stroke-width: 1.5; }
.ro-k { fill: var(--cream); font: 500 11.5px var(--sans); }
.ro-ln { fill: none; stroke: var(--sage); stroke-width: 1.5; opacity: .7; }
.ro-bad { fill: none; stroke: var(--bad-dk); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ro-b { fill: var(--bad-dk); font: 600 12px var(--sans); }
.share { display: flex; gap: 2px; height: 28px; }
.share span { border-radius: 4px; transition: flex-grow .9s cubic-bezier(.2,.7,.2,1); }
.sh-a { flex: 2 1 0; background: var(--gold); }
.sh-b { flex: 1 1 0; background: rgba(191, 211, 188, .35); }
.fig.is-pending .sh-a { flex-grow: .001; }
.fig.is-pending .sh-b { flex-grow: 3; }
.share-lbl { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--sage); line-height: 1.3; }
.share-lbl span:last-child { text-align: right; }
.share-lbl b { display: block; font: 600 1.25rem var(--serif); color: var(--cream); }
.share-lbl span:first-child b { color: var(--gold); }

@media (max-width: 900px) {
  .plan-head, .plan-rows > li, .plan-pay { grid-template-columns: 1fr; gap: 10px; }
  .plan-head .plan-gap { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .p-jump a { font-size: .85rem; }
  .hero-grid, .two { grid-template-columns: 1fr; gap: 32px; }
  .weeks, .stats { grid-template-columns: repeat(2, 1fr); }
  .three { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .plan-head .plan-grid span { font-size: .62rem; letter-spacing: .02em; padding-left: 3px; }
  .plan-pay li { font-size: .66rem; padding-left: 3px; }
  .plan-pay li span { display: none; }
  .r-ctl { justify-content: flex-start; }
  .products, .products.pair { grid-template-columns: 1fr; }
  .weeks, .stats { grid-template-columns: 1fr; }
  .r-steps li { grid-template-columns: 1fr auto; }
  .r-steps li span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .ph-bar, .product, .p-arrow, .engine-tile, .streak i, .share span, .r-steps li, .r-ok { transition: none; } .r-ok.st-run::after { animation: none; content: "..."; } }

/* ---------- Section links ---------- */
.h-link { margin-left: .35em; color: inherit; text-decoration: none; font-family: var(--sans); font-weight: 500; font-size: .7em; opacity: 0; transition: opacity .15s; }
h2:hover .h-link, h3:hover .h-link, .h-link:focus-visible { opacity: .55; }
.h-link:hover { opacity: 1; }
.h-link:focus-visible, .p-copy:focus-visible, .faq-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.p-copy { position: absolute; top: 10px; right: 10px; z-index: 2; border: 0; border-radius: 999px; padding: 6px 12px; font: 600 .78rem var(--sans); background: rgba(14, 43, 13, .88); color: var(--cream); cursor: pointer; opacity: 0; transition: opacity .15s; }
.product:hover .p-copy, .p-copy:focus-visible { opacity: 1; }
.faq-link { display: inline-block; margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
section[id], .product[id], .faq details[id] { scroll-margin-top: 12px; }
.product:target { outline: 3px solid var(--gold); outline-offset: 3px; }
.faq details:target summary { color: var(--forest); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.link-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); z-index: 50; background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-size: .9rem; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.link-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .h-link { opacity: .45; } .p-copy { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .h-link, .p-copy, .link-toast { transition: none; } }
