/* Homepage and Free Resources. Colors and type come from site.css tokens, so both themes work. */
.ico { width: 24px; height: 24px; flex: none; }
.text-link .ico { width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; transition: transform .15s ease; }
@media (hover: hover) { a:hover > .text-link .ico, .text-link:hover .ico { transform: translateX(3px); } }

/* Hero */
.hero-links { margin-top: 18px; color: var(--muted); font-size: 15px; }
.hero-links a { color: var(--text); text-underline-offset: 3px; font-weight: 600; }

/* Proof strip */
.home-proof { border-block: 1px solid var(--hairline); background: var(--surface); }
.hp-list { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.hp-list li + li { border-left: 1px solid var(--hairline); }
.hp-list a, .hp-list div { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 26px 12px; text-decoration: none; height: 100%; }
.hp-list b { font: 700 clamp(30px, 4vw, 52px)/1 var(--display); letter-spacing: -.04em; color: var(--stat-num); }
.hp-list span { font-size: 14px; line-height: 1.35; color: var(--muted); }
.hp-list em { font-style: normal; color: var(--text); font-weight: 600; }
@media (max-width: 700px) {
  .hp-list a, .hp-list div { flex-direction: column; gap: 6px; text-align: center; padding: 18px 6px; }
  .hp-list b { font-size: 26px; }
  .hp-list span { font-size: 12px; }
}

/* Leaks */
.home-leaks .section-head { max-width: 860px; }
.home-leaks .section-head h2 { max-width: 26ch; }
.leaks-grid { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .leaks-grid { grid-template-columns: 1.05fr 1fr; } }
.funnel { width: 100%; height: auto; display: block; max-width: 560px; margin-inline: auto; }
.fn-band path { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; transition: fill .25s ease, stroke .25s ease; }
.fn-band text { fill: var(--text); font: 700 20px var(--display); letter-spacing: -.02em; }
.fn-band.is-clean path { fill: var(--lime); stroke: var(--lime); }
.fn-band.is-clean text { fill: #0a0a0a; }
.fn-band.is-on path { stroke: var(--accent-text); fill: color-mix(in srgb, var(--accent-text) 18%, var(--surface-2)); }
.fn-band.is-clean.is-on path { fill: var(--lime); }
.fn-drip { fill: var(--accent-text); opacity: 0; }
[data-theme=light] .fn-drip { fill: #4d5c00; }
.leaks-art.in .fn-drip { animation: drip 2.4s ease-in infinite; animation-delay: var(--d); }
@keyframes drip { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(48px); } }
.leak-list { list-style: none; display: grid; gap: 10px; }
.leak-item { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: default; transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.leak-item.is-on { border-color: var(--accent-text); transform: translateX(6px); background: var(--surface-2); }
.leak-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent-text); border: 1px solid var(--line); flex: none; }
.leak-copy { display: grid; gap: 2px; }
.leak-copy b { font: 700 18px/1.2 var(--display); letter-spacing: -.02em; }
.leak-copy span { color: var(--muted); font-size: 15px; }
.leaks-fact { margin-top: 28px; color: var(--muted); font-size: 15px; }
.leaks-fact a { color: var(--muted); text-underline-offset: 3px; }
.leaks-cta { margin-top: 20px; }

/* Services */
.svc4 { display: grid; gap: var(--card-gap); }
@media (min-width: 720px) { .svc4 { grid-template-columns: 1fr 1fr; } }
.svc4-card { display: flex; flex-direction: column; gap: 12px; padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
@media (hover: hover) { .svc4-card:hover { border-color: var(--accent-text); transform: translateY(-3px); } }
.svc4-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid var(--accent-text); color: var(--accent-text); }
.svc4-ico .ico { width: 28px; height: 28px; }
.svc4-card h3 { font-size: clamp(24px, 2.4vw, 30px); }
.svc4-card p { color: var(--muted); font-size: 16px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips li { padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.svc4-card .text-link { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent-text); }
.svc4-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: var(--card-gap); padding: var(--card-pad); border: 1px solid var(--accent-text); border-radius: var(--radius); background: var(--surface); }
.svc4-strip p { flex: 1 1 320px; font-size: 18px; }
.svc4-strip .text-link { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

/* Start small */
.stairs { list-style: none; display: grid; gap: var(--card-gap); align-items: end; }
@media (min-width: 860px) { .stairs { grid-template-columns: repeat(3, 1fr); } .stair-1 { min-height: 250px; } .stair-2 { min-height: 320px; } .stair-3 { min-height: 390px; } }
.stair { display: flex; flex-direction: column; gap: 10px; padding: var(--card-pad); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stair-2 { border-color: var(--accent-text); }
.stair-tag { font: 700 clamp(30px, 3.4vw, 46px)/1 var(--display); letter-spacing: -.04em; color: var(--stat-num); }
.stair h3 { font-size: 22px; }
.stair p { color: var(--muted); font-size: 16px; }
.stair .text-link { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--accent-text); }

/* Results */
.results-grid { display: grid; gap: var(--card-gap); }
@media (min-width: 900px) { .results-grid { grid-template-columns: 1.5fr 1fr; } }
.result-main, .result-side { display: flex; gap: clamp(20px, 3vw, 40px); padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.result-main { flex-wrap: wrap; align-items: stretch; }
.result-side { flex-direction: column; gap: 12px; }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex: 1 1 240px; min-width: 220px; }
.bar { height: 270px; display: grid; grid-template-rows: 1fr auto auto; }
.bar-fill { align-self: end; height: var(--h); border-radius: 10px 10px 0 0; background: var(--surface-2); border: 1px solid var(--line); border-bottom: 0; transform-origin: bottom; }
.bar-a { --h: 24.6%; background: color-mix(in srgb, var(--text) 22%, var(--surface-2)); }
.bar-b { --h: 100%; background: var(--lime); border-color: var(--lime); }
.bar b { font: 700 24px/1.2 var(--display); letter-spacing: -.03em; margin-top: 10px; }
.bar small { color: var(--muted); font-size: 13px; }
.reveal.in .bar-fill { animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.result-copy { flex: 1 1 240px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.big { font: 700 clamp(56px, 8vw, 104px)/.9 var(--display); letter-spacing: -.05em; color: var(--stat-num); }
.result-copy p:not(.big), .result-side p:not(.big) { color: var(--muted); font-size: 17px; }
.result-note { font-size: 14px !important; }
.result-side blockquote { font-size: 18px; line-height: 1.4; color: var(--text); border-left: 3px solid var(--accent-text); padding-left: 14px; margin-top: 6px; }
.result-side figcaption { color: var(--muted); font-size: 14px; }
.result-main .text-link, .result-side .text-link { margin-top: 6px; font-weight: 700; color: var(--accent-text); }
.result-side .text-link { margin-top: auto; }

/* People and logos */
.home-logos { margin-top: clamp(32px, 5vw, 56px); }
.home-logos-t { font: 700 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* Close */
.home-close { color: #0a0a0a; }
.home-close h2 { color: #0a0a0a; font-size: clamp(36px, 5.5vw, 76px); max-width: 16ch; }
.close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.home-close .btn-dark { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.close-link { color: #0a0a0a; font-weight: 700; text-underline-offset: 4px; }

/* Free Resources */
.res-grid { list-style: none; display: grid; gap: var(--card-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.res-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
@media (hover: hover) { .res-card:hover { border-color: var(--accent-text); transform: translateY(-3px); } }
.res-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.res-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid var(--accent-text); color: var(--accent-text); }
.res-ico .ico { width: 28px; height: 28px; }
.res-time { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); text-align: right; }
.res-card h3, .res-card .res-title { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; margin: 0; max-width: none; }
.res-card p { color: var(--muted); font-size: 16px; }
.res-cta { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent-text); }

@media (prefers-reduced-motion: reduce) {
  .leaks-art.in .fn-drip, .reveal.in .bar-fill { animation: none; }
  .fn-drip { opacity: .9; }
  .leak-item.is-on, .svc4-card:hover, .res-card:hover { transform: none; }
}

/* Phones: shorter page */
.hero-scan h1 { text-wrap: balance; }
}

.result-copy blockquote { font-size: 16px; line-height: 1.45; color: var(--text); border-left: 3px solid var(--accent-text); padding-left: 14px; margin-top: 6px; }
.result-copy figcaption { color: var(--muted); font-size: 14px; }
.result-copy figcaption span { color: var(--text); font-weight: 600; }

.home-services .stack-line { margin-top: 20px; color: var(--muted); font-size: 14px; }

.result-copy .result-sub { color: var(--text) !important; font-weight: 600; }

@media (max-width: 720px) {
  .home-people .founder-grid { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .home-people .founder-card { min-width: 0; }
}
@media (min-width: 900px) {
  .res-grid { grid-template-columns: repeat(6, 1fr); }
  .res-item { grid-column: span 2; }
  .res-item:nth-child(n+4) { grid-column: span 3; }
}

/* Services hub */
.hub-grid { display: grid; gap: var(--card-gap); }
@media (min-width: 900px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
.hub-card { display: flex; flex-direction: column; gap: 12px; padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hub-card h2 { font-size: clamp(26px, 2.6vw, 32px); }
.hub-card > p { color: var(--muted); }
.hub-list { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.hub-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; transition: border-color .2s ease; }
.hub-list a:hover { border-color: var(--accent-text); }
.hub-list b { font-size: 16px; }
.hub-list span { grid-column: 1; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-list .ico { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--accent-text); }
.svc4-strip { margin-top: var(--card-gap); }
.diy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: var(--card-gap); padding: 16px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.diy-row p { flex: 1 1 320px; color: var(--muted); }
.diy-row b { color: var(--text); }

.leak-caption { display: none; }
.fb-short { display: none; }

/* Phone: shorter homepage. Desktop untouched. */
@media (max-width: 700px) {
  .home-leaks, .home-services, .home-start, .home-results, .home-people { padding-block: 48px; }
  .home-leaks .section-head, .home-services .section-head, .home-start .section-head, .home-results .section-head, .home-people .section-head { margin-bottom: 20px; }

  /* Leaks: funnel + 5 tappable names, one caption */
  .leaks-grid { gap: 16px; }
  .funnel { max-width: 300px; }
  .leak-list { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .leak-item { flex-direction: column; gap: 4px; padding: 8px 2px; min-height: 64px; justify-content: center; text-align: center; cursor: pointer; }
  .leak-item.is-on { transform: none; }
  .leak-ico { width: 32px; height: 32px; border-radius: 9px; }
  .leak-ico .ico { width: 18px; height: 18px; }
  .leak-copy b { font-size: 11px; line-height: 1.15; }
  .leak-copy span { display: none; }
  .leak-caption { display: block; min-height: 48px; margin: 0; padding: 12px 14px; border-left: 3px solid var(--accent-text); background: var(--surface); color: var(--muted); font-size: 15px; line-height: 1.35; }
  .leak-caption b { color: var(--text); }
  .leaks-fact { margin-top: 16px; font-size: 13px; }
  .leaks-cta { margin-top: 14px; }

  /* Services: 2x2 tiles */
  .svc4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc4-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .svc4-ico { width: 40px; height: 40px; border-radius: 11px; }
  .svc4-ico .ico { width: 22px; height: 22px; }
  .svc4-card h3 { font-size: 18px; line-height: 1.15; }
  .svc4-card p, .svc4-card .chips { display: none; }
  .svc4-card .text-link { padding-top: 0; font-size: 13px; }
  .svc4-card .text-link { font-size: 0; }
  .svc4-card .text-link .ico { width: 18px; height: 18px; margin-left: 0; }
  .svc4-strip { margin-top: 12px; padding: 16px; gap: 10px 16px; }
  .svc4-strip p { font-size: 16px; flex-basis: 100%; }
  .stack-line { font-size: 13px; margin-top: 12px; }

  /* Start small: three compact rows */
  .stairs { gap: 8px; }
  .stair { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 2px 12px; padding: 12px 14px; border-top-width: 1px; border-left: 4px solid var(--line); }
  .stair-2, .stair-3 { border-left-color: var(--accent-text); }
  .stair-tag { font-size: 20px; grid-row: 1 / span 2; }
  .stair h3 { font-size: 17px; }
  .stair p { display: none; }
  .stair-3 p { display: block; grid-column: 2 / 4; font-size: 13px; line-height: 1.35; }
  .stair-3 .stair-tag { font-size: 17px; }
  .stair .text-link { grid-column: 3; grid-row: 1; padding-top: 0; margin-top: 0; font-size: 0; }
  .stair .text-link .ico { width: 20px; height: 20px; margin-left: 0; }

  /* Proof: one card, shorter bars */
  .result-side { display: none; }
  .result-main { gap: 16px; padding: 18px; }
  .bars { min-width: 0; flex-basis: 100%; }
  .bar { height: 120px; }
  .result-sub { display: none; }
  .bar b { font-size: 20px; margin-top: 6px; }
  .big { font-size: 56px; }
  .result-copy { gap: 8px; }
  .result-copy p:not(.big) { font-size: 15px; }
  .result-side blockquote, .result-copy blockquote { font-size: 16px; }

  /* People: side by side, short */
  .home-people .founder-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-people .founder-card { padding: 14px; }
  .home-people .founder-card h3 { font-size: 17px; }
  .home-people .fb-long { display: none; }
  .home-people .fb-short { display: block; font-size: 14px; line-height: 1.4; margin-top: 4px; }
  .home-people .founder-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .home-people .photo-slot { width: 56px; height: 56px; flex: none; }
  .home-logos { margin-top: 24px; }
}

/* Funnel art on service tiles */
.svc4-art, .hub-art { display: block; width: 100%; max-width: 220px; margin: 2px 0 6px; }
.svc4-card .svc4-ico { display: none; }
.hub-card .hub-art { max-width: 200px; }
@media (max-width: 700px) {
  .svc4-art { max-width: 130px; margin: 0; }
  .hub-art { max-width: 150px; }
}

.home-results .section-head.has-art { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.proof-art { flex: none; width: clamp(96px, 12vw, 150px); }
@media (max-width: 700px) { .proof-art { width: 72px; } }

/* Pour shoppers */
.leaks-art { position: relative; }
.funnel { cursor: pointer; }
.fn-floor { stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 6; }
.fn-dot { fill: var(--text); stroke: var(--bg, #0a0a0a); stroke-width: 1.5; }
.fn-dot.is-plugged { fill: var(--text); }
.fn-dot.is-leak { fill: var(--muted); }
.fn-dot.is-buy { fill: #e7ff2e; stroke: #0a0a0a; }
.fn-splat { fill: var(--muted); opacity: .7; animation: fn-splat 1.4s ease-out forwards; }
@keyframes fn-splat { from { opacity: .8; transform-box: fill-box; transform-origin: center; transform: scaleX(.4); } 30% { transform: scaleX(1.2); } to { opacity: 0; transform: scaleX(1.4); } }
.fn-register rect { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; transition: fill .2s ease; }
.fn-register text { fill: var(--text); font: 700 16px var(--display); }
.fn-register.is-ding rect { animation: fn-ding .5s ease-out; }
@keyframes fn-ding { 0% { fill: #e7ff2e; } 100% { fill: var(--surface-2); } }
.fn-coin { animation: fn-coin .9s ease-out forwards; }
.fn-coin circle { fill: #e7ff2e; stroke: #0a0a0a; stroke-width: 1.5; }
.fn-coin text { fill: #0a0a0a; font: 800 13px var(--display); }
@keyframes fn-coin { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -46px; } }
.leaks-art.is-plugged .fn-band path { fill: #e7ff2e; stroke: #e7ff2e; transition: fill .6s ease, stroke .6s ease; }
.leaks-art.is-plugged .fn-band text { fill: #0a0a0a; }
.leaks-art.is-plugged .fn-drip { display: none; }
.pour { display: grid; justify-items: center; gap: 10px; margin-top: 10px; text-align: center; }
.pour-score { min-height: 2.8em; margin: 0; font-size: 16px; font-weight: 600; max-width: 36ch; }
.pour-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pour-btn { min-height: 44px; }
.pour-note { margin: 0; font-size: 13px; color: var(--muted); max-width: 40ch; }
@media (prefers-reduced-motion: reduce) { .fn-splat, .fn-coin, .fn-register.is-ding rect { animation: none; } }

/* 3D tilt */
.leaks-art.can-tilt { perspective: 900px; }
.leaks-art.can-tilt .funnel { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .25s cubic-bezier(.2,.7,.3,1); will-change: transform; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
