/* "You want..." ad landing pages (scripts/marketing/build-you-want.mjs).
   One thought per screen, big lowercase type, a mid-page offer card.
   Actions come from brand-actions.css; only layout and surfaces live here. */
:root {
  --ink: #0d1929;
  --muted: #566174;
  --indigo: #4e52ff;
  --tint: #efedff;
  --line: #e2e4ed;
  --radius: 0.625rem;
  font-family: Geist, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; line-height: 1.5; background: #fff; overflow-x: hidden; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yw-skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; }
.yw-skip:focus { left: 8px; }
.yw-wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }

.yw-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.yw-header .yw-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

/* Type scale: the beats are the design. */
.yw-xl, .yw-lg, .yw-md { font-weight: 650; letter-spacing: -0.045em; text-wrap: balance; }
.yw-xl { font-size: clamp(64px, 13vw, 168px); line-height: 0.9; }
.yw-lg { font-size: clamp(42px, 7.4vw, 96px); line-height: 0.98; }
.yw-md { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
/* Barry's lo-fi taste (brain brand.md): one blunt highlight block in brand indigo,
   white text. Keep highlighted phrases short so a block rarely wraps. */
/* inline-block so the block's height counts toward its line: a plain inline
   background is taller than these tight line heights and covered the
   descenders of the line above ("yesterday" on mobile). */
.yw-xl em, .yw-lg em, .yw-md em { display: inline-block; font-style: normal; color: #fff; background: var(--indigo); padding: 0.04em 0.12em 0.08em; margin-top: 0.18em; line-height: 1; white-space: nowrap; }
.yw-meet em { background: #fff; color: var(--indigo); }
.yw-body { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 640px; margin-top: 28px; }
.yw-micro { font-size: 13px; color: var(--muted); }

.yw-beat { padding: clamp(64px, 11vh, 128px) 0; }
.yw-beat:first-of-type { padding-top: clamp(56px, 10vh, 112px); }
.yw-beat.is-aside .yw-lg { color: var(--muted); font-size: clamp(34px, 5.6vw, 72px); }
.yw-answer { margin-top: 18px; }
.yw-qa .yw-md, .yw-wonder .yw-md, .yw-keep .yw-md { color: var(--muted); }
.yw-wonder .yw-lg + .yw-lg { margin-top: 18px; }

/* Illustrations between beats. */
.yw-visual { margin-top: clamp(36px, 6vh, 64px); }
.yw-visual figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.yw-ridge .yw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 620px; }
.yw-ridge .yw-pair > div { position: relative; height: clamp(320px, 52vw, 520px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(13, 25, 41, 0.35); }
.yw-ridge .yw-pair span { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 999px; }
.yw-ridge img { width: 100%; }

.yw-chat { max-width: 520px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; box-shadow: 0 18px 40px -24px rgba(13, 25, 41, 0.35); }
.yw-chat-head { font-size: 13px; font-weight: 700; color: var(--muted); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.yw-bubble { font-size: 17px; line-height: 1.45; padding: 10px 14px; background: #f4f5f8; border-radius: 12px; margin-bottom: 10px; max-width: 92%; }
.yw-bubble b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
.yw-bubble.is-you { background: var(--tint); margin-left: auto; }
.yw-chat figcaption { margin-top: 4px; }

.yw-search { max-width: 560px; }
.yw-search-box { display: flex; align-items: center; gap: 12px; font-size: 22px; padding: 16px 22px; border: 1px solid var(--line); border-radius: 30px 30px 0 0; border-bottom: 0; background: #fff; box-shadow: 0 18px 40px -24px rgba(13, 25, 41, 0.35); }
.yw-search-icon { font-size: 26px; color: var(--muted); }
.yw-caret { width: 2px; height: 26px; background: var(--indigo); animation: yw-blink 1s steps(1) infinite; }
.yw-search ul { list-style: none; padding: 6px 0 14px; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; background: #fff; box-shadow: 0 18px 40px -24px rgba(13, 25, 41, 0.35); }
.yw-search li { display: flex; gap: 14px; padding: 9px 22px; font-size: 19px; }
.yw-search li span { color: var(--muted); }
.yw-search li:nth-child(2) { font-weight: 650; }
@keyframes yw-blink { 50% { opacity: 0; } }

.yw-roster ul { list-style: none; padding: 0; max-width: 560px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(13, 25, 41, 0.35); }
.yw-roster li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; font-size: 17px; border-top: 1px solid var(--line); background: #fff; }
.yw-roster li:first-child { border-top: 0; }
.yw-roster .is-quiet { color: var(--muted); }
.yw-roster .is-changed { color: var(--indigo); font-weight: 650; }

/* "meet URL Love It" gets the brand field. */
.yw-meet { background: var(--indigo); color: #fff; padding: clamp(72px, 12vh, 140px) 0; }
.yw-meet .yw-xl { color: #fff; }
.yw-meet-logo { width: min(640px, 100%); margin-top: 18px; }
.yw-meet .yw-lg { margin-top: clamp(40px, 7vh, 72px); font-size: clamp(34px, 5.4vw, 68px); }
.yw-chips { list-style: none; padding: 0; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.yw-chips li { border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 8px 16px; font-size: 16px; font-weight: 550; }
.yw-product img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); background: #fff; }
/* Phones: crop the compare shot to its before/after half (the right ~51%), roughly
   doubling it; the findings panel's text is unreadable at this width anyway. */
@media (max-width: 720px) {
  .yw-product img { width: 100%; aspect-ratio: 1.07; height: auto; object-fit: cover; object-position: right top; }
}
.yw-meet .yw-visual figcaption { color: rgba(255, 255, 255, 0.8); }

.yw-ready .yw-md { margin-top: 14px; color: var(--muted); }
.yw-logos { list-style: none; padding: 0; margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.yw-logos img { width: auto; max-width: 140px; filter: grayscale(1); opacity: 0.75; }

/* The offer card is the page's buy box. */
.yw-offer { background: var(--tint); padding: clamp(72px, 12vh, 128px) 0; }
.yw-offer .yw-md { color: var(--muted); }
.yw-offer h2 { margin-top: 10px; }
.yw-offer-card { margin-top: 36px; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 30px 60px -36px rgba(13, 25, 41, 0.45); }
.yw-plan { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); }
.yw-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.yw-price s { font-size: 28px; color: var(--muted); }
.yw-price strong { font-size: 72px; line-height: 1; letter-spacing: -0.05em; }
.yw-price span { font-size: 18px; color: var(--muted); }
.yw-renewal { margin-top: 8px; font-size: 15px; color: var(--muted); }
.yw-includes { list-style: none; padding: 20px 0; margin: 20px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; font-size: 17px; }
.yw-includes li { display: flex; gap: 12px; align-items: baseline; }
.yw-form { display: grid; gap: 10px; margin-top: 24px; }
.yw-form label { font-weight: 650; font-size: 15px; }
.yw-form input { font: inherit; font-size: 18px; padding: 14px 16px; border: 1px solid #a9afbd; border-radius: 8px; width: 100%; }
.yw-form input:focus { outline: 3px solid rgba(78, 82, 255, 0.35); outline-offset: 1px; border-color: var(--indigo); }
.yw-form input[aria-invalid="true"] { border-color: #c4183c; }
.yw-form .brand-action { width: 100%; justify-content: center; }
.yw-error { color: #c4183c; font-size: 14px; min-height: 0; }
.yw-error:empty { display: none; }
.yw-terms { margin-top: 18px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.switch-audience { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--muted); }

@media (min-width: 960px) {
  .yw-offer .yw-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 520px; column-gap: 64px; align-items: start; }
  .yw-offer .yw-md, .yw-offer h2 { grid-column: 1; }
  .yw-offer h2 { align-self: start; font-size: clamp(56px, 6vw, 84px); }
  .yw-offer-card { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .yw-beat { padding: clamp(80px, 13vh, 150px) 0; }
}
@media (max-width: 720px) { .yw-beat { padding: 64px 0; } }
.yw-keep { text-align: center; padding-bottom: 32px; }
.yw-down { display: block; font-size: 48px; margin-top: 12px; color: var(--indigo); }

.yw-yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.yw-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eceef3; color: #8a93a4; font-size: 13px; font-weight: 800; }
.yw-meh { font-size: 13px; font-style: italic; color: var(--muted); }

.yw-vs { padding: 32px 0 clamp(72px, 12vh, 128px); }
.yw-vs h2 span { color: var(--muted); font-style: italic; }
.yw-table { margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.yw-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); align-items: center; border-top: 1px solid var(--line); }
.yw-row:first-child { border-top: 0; }
.yw-row > span { padding: 16px 14px; font-size: 16px; text-align: center; }
.yw-row > span:first-child { text-align: left; font-weight: 550; }
.yw-row > .is-us { background: var(--tint); align-self: stretch; display: grid; place-items: center; }
.yw-head > span { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.25; }
.yw-head > .is-us { color: var(--indigo); font-size: 15px; }
.yw-center { margin-top: 40px; display: flex; justify-content: center; }

.yw-proof { padding: clamp(72px, 12vh, 128px) 0; border-top: 1px solid var(--line); }
.yw-proof .yw-md { color: var(--muted); margin-top: 12px; }
.yw-catch { max-width: 760px; }
.yw-catch img { border: 1px solid var(--line); border-radius: var(--radius); }
.yw-quotes { display: grid; gap: 20px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.yw-quote { background: var(--tint); border-radius: 16px; padding: 28px; }
.yw-quote blockquote { font-size: 21px; line-height: 1.45; font-weight: 550; letter-spacing: -0.01em; }
.yw-quote figcaption { margin-top: 16px; font-size: 14px; font-weight: 650; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.yw-quote figcaption span { color: var(--muted); font-weight: 500; }
.yw-quote figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.yw-barry { background: #fff; border: 1px solid var(--line); }

/* "it's not just you": real public posts about the problem. */
.yw-wall { padding: clamp(56px, 9vh, 104px) 0; background: #f6f7fa; }
.yw-wall-grid { display: grid; gap: 16px; margin: 36px 0 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.yw-wall figure { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.yw-wall blockquote { font-size: 18px; line-height: 1.45; }
.yw-wall figcaption { margin-top: 12px; font-size: 13px; font-weight: 650; color: var(--muted); }

/* The anonymised catch from Barry's waitlist email. */
.yw-catchup { padding: clamp(64px, 11vh, 128px) 0; background: var(--ink); color: #fff; }
.yw-catchup .yw-md { color: rgba(255, 255, 255, 0.7); }
.yw-catchup .yw-lg { margin-top: 12px; }
.yw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: 40px 0 28px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; overflow: hidden; }
.yw-stats div { background: var(--ink); padding: 20px; }
.yw-stats dt { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.yw-stats dd { margin: 6px 0 0; font: 700 clamp(30px, 3.6vw, 44px)/1 "Geist Mono", Geist, monospace; letter-spacing: -0.03em; }
.yw-stats .is-good { grid-column: 1 / -1; }
.yw-stats .is-good dd { color: #4dd9a8; }
.yw-catchup .yw-quote { max-width: 720px; color: var(--ink); }
.yw-catchup .yw-micro { margin-top: 16px; color: rgba(255, 255, 255, 0.6); max-width: 720px; }

/* Founder video: Barry's 1:33 story, loads YouTube only on click. */
.yw-founder { display: grid; gap: 28px; margin-top: 56px; align-items: center; }
.yw-founder .fv-player { border-radius: var(--radius); overflow: hidden; }
.yw-founder .yw-body { margin-top: 14px; }
@media (min-width: 900px) { .yw-founder { grid-template-columns: 1.2fr 1fr; gap: 48px; } }

.yw-reasons { background: var(--ink); color: #fff; padding: clamp(72px, 12vh, 128px) 0; }
.yw-reasons .yw-md { color: rgba(255, 255, 255, 0.7); }
.yw-reasons ol { list-style: none; padding: 0; margin-top: 48px; display: grid; gap: 40px; max-width: 820px; }
.yw-reasons li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.yw-num { font-size: 44px; font-weight: 700; line-height: 1; color: #a3a6ff; letter-spacing: -0.04em; }
.yw-reasons h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.yw-reasons p { margin-top: 10px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }

.yw-faq { padding: clamp(64px, 10vh, 112px) 0 0; }
.yw-faq h2 { margin-bottom: 24px; }
.yw-faq details { border-top: 1px solid var(--line); max-width: 820px; }
.yw-faq details:last-child { border-bottom: 1px solid var(--line); }
.yw-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 600; }
.yw-faq summary::-webkit-details-marker { display: none; }
.yw-faq summary span { font-size: 24px; line-height: 1; color: var(--indigo); transition: transform 0.2s; }
.yw-faq details[open] summary span { transform: rotate(45deg); }
.yw-faq details p { padding: 0 0 22px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 720px; }

.yw-close { text-align: center; }
.yw-close .yw-xl { font-size: clamp(56px, 10vw, 136px); margin-bottom: 40px; }
.yw-close .yw-micro { margin-top: 14px; }

.yw-footer { border-top: 1px solid var(--line); padding: 32px 0 110px; }
.yw-footer .yw-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: 14px; color: var(--muted); }
.yw-footer nav { display: flex; gap: 20px; margin-left: auto; }
.yw-footer a { text-decoration: none; }

.yw-mobile-cta { display: none; }
@media (max-width: 720px) {
  .yw-wrap { width: calc(100% - 32px); }
  .yw-header .brand-action { display: none; }
  .yw-row { grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); }
  .yw-row > span { padding: 12px 6px; font-size: 13.5px; }
  .yw-head > span { font-size: 11px; }
  .yw-head > .is-us { font-size: 12px; }
  .yw-yes, .yw-no { width: 22px; height: 22px; font-size: 12px; }
  .yw-meh { font-size: 11.5px; }
  .yw-reasons li { grid-template-columns: 40px 1fr; }
  .yw-num { font-size: 32px; }
  .yw-footer nav { margin-left: 0; }
  .yw-mobile-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .yw-mobile-cta .brand-action { flex-shrink: 0; }
  .yw-mobile-cta span { font-size: 12px; color: var(--muted); line-height: 1.3; }
}

/* Beats rise in as they scroll into view, where the browser supports it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .yw-beat .yw-wrap > *, .yw-visual { animation: yw-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes yw-rise { from { opacity: 0; transform: translateY(32px); } }
@media (prefers-reduced-motion: reduce) { .yw-caret { animation: none; } html { scroll-behavior: auto; } }
