/*
  The presentation pages (home, product, pricing): the variant frames, the full-screen dashboard tour, the plans.
  It sits on the site's tokens (site.css), so light and dark both work.
*/

/* ───────── Hero ───────── */
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }

/* ───────── One variant: the same person in another setting, another hook, another caption style, another framing ───────── */
.vf { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.vf-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #cfd2d8; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12); isolation: isolate; }
.vf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -1; }
.vf-fill { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(14px) brightness(0.42) saturate(1.15); z-index: -2; }
.vf[data-fmt="4:5"] .vf-img, .vf[data-fmt="1:1"] .vf-img { object-fit: contain; }
.vf-n, .vf-fmt { position: absolute; top: 10px; padding: 3px 8px; border-radius: 999px; font: 600 10px/1.3 var(--f-mono); letter-spacing: 0.04em; background: rgba(18, 18, 21, 0.62); color: #fff; backdrop-filter: blur(6px); }
.vf-n { left: 10px; }
.vf-fmt { right: 10px; }
/* The hook, drawn in one of the app's caption styles (src/data.mjs, captions): it shows that the text changes too. */
.vf-hook { position: absolute; left: 8px; right: 8px; bottom: 13px; display: block; text-align: center; color: #fff; font: 800 clamp(0.7rem, 0.92vw, 0.95rem)/1.12 var(--f-display); letter-spacing: -0.01em; text-wrap: balance; }
.vf-hook i { font-style: normal; }
.vf-hook .t { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cap-pop { text-transform: uppercase; font-weight: 900; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.7); }
.cap-pop .k { color: #d3f261; }
.cap-block .t { line-height: 1.45; }
.cap-block i { display: inline-block; padding: 0.06em 0.3em; margin: 0.05em 0; border-radius: 0.22em; background: #121215; text-transform: uppercase; font-weight: 900; }
.cap-block .k { background: #d3f261; color: #12150a; }
.cap-marker { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75); }
.cap-marker .k { padding: 0 0.16em; border-radius: 0.14em; background: #ffe14d; color: #12150a; text-shadow: none; }
.cap-subtitle { font: 600 clamp(0.64rem, 0.82vw, 0.86rem)/1.5 var(--f-sans); }
.cap-subtitle .t { padding: 0.18em 0.45em; border-radius: 0.25em; background: rgba(10, 10, 12, 0.74); }
.cap-cc { font: 500 clamp(0.6rem, 0.76vw, 0.8rem)/1.55 var(--f-mono); text-transform: uppercase; }
.cap-cc .t { padding: 0.1em 0.35em; background: #000; }
.cap-label { transform: rotate(-2.5deg); }
.cap-label .t { padding: 0.16em 0.4em; background: #fff; color: #121215; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); line-height: 1.5; }
.cap-label .k { box-shadow: inset 0 -0.32em 0 #ff6aa9; }
.cap-punch { text-transform: uppercase; font-weight: 900; font-style: italic; letter-spacing: 0.01em; line-height: 1.18; text-shadow: 2px 2px 0 #121215, -1px -1px 0 #121215, 1px -1px 0 #121215, -1px 1px 0 #121215; }
.cap-punch .k { color: #ffe14d; }
.cap-glass .t { display: inline-block; padding: 0.4em 0.75em; border-radius: 999px; background: rgba(18, 18, 21, 0.38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); font-family: var(--f-sans); font-weight: 650; }
.cap-clean { font: 600 clamp(0.66rem, 0.86vw, 0.9rem)/1.25 var(--f-sans); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.cap-lower { text-align: left; font: 650 clamp(0.64rem, 0.82vw, 0.86rem)/1.35 var(--f-sans); }
.cap-lower .t { display: inline-block; padding: 0.35em 0.55em; border-left: 3px solid #d3f261; border-radius: 0 0.3em 0.3em 0; background: rgba(18, 18, 21, 0.84); }
.vf figcaption { display: grid; gap: 2px; font-size: 12.5px; line-height: 1.3; }
.vf figcaption b { font-weight: 650; color: var(--fg); }
.vf figcaption span { color: var(--fg-3); }
.vf[data-role="win"] .vf-screen { box-shadow: 0 0 0 2.5px var(--accent), 0 18px 40px -20px rgba(211, 242, 97, 0.5); }
.vf[data-role="win"] .vf-n { background: var(--accent); color: var(--accent-ink); }
.vf[data-role="cut"] .vf-screen { filter: saturate(0.6); opacity: 0.8; }
.vf-source .vf-screen { box-shadow: 0 0 0 2px var(--fg-3), 0 18px 40px -22px rgba(0, 0, 0, 0.55); }

.vgrid { display: grid; grid-template-columns: minmax(150px, 0.8fr) auto minmax(0, 6fr); gap: clamp(14px, 2.2vw, 30px); align-items: start; }
.vgrid-arrow { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 20px; }
.vgrid-set { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 20px); }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 48px); }
.vchips span { height: 34px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--s3); color: var(--fg-2); font: 600 13px/1 var(--f-sans); box-shadow: inset 0 0 0 1px var(--line-2); }
.vnote { margin-top: 18px; color: var(--fg-3); font-size: 14.5px; max-width: 70ch; }
@media (max-width: 1000px) {
  .vgrid { grid-template-columns: minmax(0, 1fr); }
  .vgrid-arrow { transform: rotate(90deg); justify-self: start; }
  .vgrid-source, .vf-source { max-width: 180px; }
  .vgrid-set { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .vgrid-set { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ───────── Hero: four variants fanned out ───────── */
.fan { position: relative; height: clamp(360px, 40vw, 560px); display: grid; place-items: center; }
.fan-i { position: absolute; width: clamp(104px, 10.5vw, 158px); transition: transform 0.6s var(--ease); }
.fan-0 { transform: translate(-138%, 6%) rotate(-7deg); }
.fan-1 { transform: translate(-46%, -6%) rotate(-3deg); z-index: 2; }
.fan-2 { transform: translate(46%, -2%) rotate(3deg); z-index: 3; }
.fan-3 { transform: translate(138%, 8%) rotate(8deg); }
.fan:hover .fan-0 { transform: translate(-148%, 6%) rotate(-9deg); }
.fan:hover .fan-3 { transform: translate(148%, 8%) rotate(10deg); }
.fan-tag { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font: 600 13px/1 var(--f-sans); z-index: 4; white-space: nowrap; }
@media (max-width: 900px) {
  .fan { height: 380px; }
  .fan-i { width: 120px; }
  .fan-0 { transform: translate(-135%, 6%) rotate(-9deg); } .fan-3 { transform: translate(135%, 8%) rotate(10deg); }
}

/* ───────── The dashboard, full screen while you scroll ───────── */
.tour-intro { padding-block: clamp(72px, 9vw, 130px) clamp(28px, 4vw, 48px); }
.tour { position: relative; height: 640vh; background: var(--bg); }
.tour-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--bg); }
.tour-frame { width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
.tour-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px var(--gutter); background: var(--s1); box-shadow: 0 -1px 0 var(--line-2); }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 22px; height: 6px; border-radius: 999px; background: var(--s4); transition: background 0.3s, width 0.3s; }
.tour-dots i.past { background: var(--accent-fg); opacity: 0.5; }
.tour-dots i.on { width: 38px; background: var(--accent); box-shadow: 0 0 0 1px var(--accent-line); }
.tour-cap { font: 600 clamp(0.95rem, 1.2vw, 1.15rem)/1.3 var(--f-sans); color: var(--fg); min-height: 1.3em; }
.tour-cap b { font-family: var(--f-mono); font-size: 0.78em; color: var(--accent-fg); margin-right: 10px; letter-spacing: 0.04em; }
.tour-hint { font: 500 12px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
.nav { transition: transform 0.4s var(--ease); }
body.tour-on .nav { transform: translateY(-110%); }
@media (max-width: 760px) { .tour-hint { display: none; } .tour-bar { grid-template-columns: minmax(0, 1fr); gap: 8px; } .tour { height: 560vh; } }

/* the dashboard shown inside a step (product page) */
.pf-shot { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-lg); }
.pf-shot iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; }
.step .pf-shot { margin-top: 14px; }
@media (min-width: 901px) { .step .pf-shot { display: none; } }

/* ───────── Plans ───────── */
.pf-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: stretch; }
.pf-plan { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; position: relative; }
.pf-plan h3 { font: 900 1.8rem/1 var(--f-display); text-transform: uppercase; letter-spacing: -0.02em; }
.pf-plan .chip { position: absolute; right: 20px; top: 20px; }
.pf-who { color: var(--fg-3); font-size: 14.5px; }
.pf-price { display: flex; align-items: baseline; gap: 8px; }
.pf-price b { font: 900 clamp(2.6rem, 4vw, 3.6rem)/1 var(--f-display); letter-spacing: -0.04em; }
.pf-price span { color: var(--fg-3); font-size: 14px; }
.pf-plan ul { display: grid; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.pf-plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 14.5px; color: var(--fg-2); }
.pf-plan li .icon { color: var(--accent-fg); margin-top: 3px; }
.pf-plan.hot { box-shadow: 0 0 0 2px var(--accent), var(--shadow-md); }
@media (max-width: 900px) { .pf-plans { grid-template-columns: minmax(0, 1fr); } }

/* ───────── Small blocks ───────── */
.points.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .points.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .points.four { grid-template-columns: minmax(0, 1fr); } }
.pf-list { padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 14px; align-content: start; }
.pf-list ul { display: grid; gap: 12px; }
.pf-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--fg-2); }
.pf-list li .icon { margin-top: 3px; color: var(--accent-fg); }
.pf-list:last-child li .icon { color: var(--bad); }

/* ───────── The problem in three numbers (home) ───────── */
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 40px); margin-bottom: clamp(28px, 4vw, 48px); }
.pf-stats > div { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--rx); }
.pf-stats b { font: 900 clamp(3rem, 6vw, 5.4rem)/0.86 var(--f-display); letter-spacing: -0.05em; white-space: nowrap; }
.pf-stats > div:first-child b { color: var(--accent-fg); }
.pf-stats p { color: var(--fg-2); font-size: clamp(1rem, 0.4vw + 0.92rem, 1.18rem); line-height: 1.45; max-width: 34ch; }
.pf-stats span { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 760px) { .pf-stats { grid-template-columns: minmax(0, 1fr); } }

/* ───────── What the interviews changed (home) ───────── */
.pf-learn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3.4vw, 56px); }
.pf-learn-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 0.9fr); gap: 14px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line-2); }
.pf-learn-row p { font-size: 1.06rem; line-height: 1.4; color: var(--fg); }
.pf-learn-row p i { color: var(--fg-2); }
.pf-learn-row p span { display: block; margin-top: 6px; font: 500 11.5px/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.pf-learn-row > .icon { width: 22px; height: 22px; color: var(--accent-fg); justify-self: center; }
.pf-learn-row b { font: 700 1.14rem/1.3 var(--f-display); letter-spacing: -0.01em; color: var(--accent-fg); }
@media (max-width: 900px) { .pf-learn { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pf-learn-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } .pf-learn-row > .icon { justify-self: start; transform: rotate(90deg); } }
