/* Build RUO funnel. Structure mirrors the Fee Finders funnel (single column: VSL → apply → proof),
   styled to match buildruo.com: light UI, deep navy + teal, Sora / IBM Plex Sans / IBM Plex Mono. */
:root {
  --bg: #ffffff;
  --bg-2: #f0f4f9;
  --panel: #ffffff;
  --line: #e0e5eb;
  --input: #d9dfe6;
  --text: #0a1936;
  --muted: #596475;
  --navy: #0c1d40;
  --navy-fg: #f3f6fb;
  --primary: #0f244d;
  --primary-fg: #f9fafc;
  --accent: #00c0b0;
  --accent-text: #00968a;
  --accent-ink: #001b25;
  --radius: 16px;
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow-card: 0 1px 2px rgba(12, 29, 64, .06), 0 12px 32px -16px rgba(12, 29, 64, .18);
  --shadow-media: 0 1px 2px rgba(12, 29, 64, .06), 0 30px 60px -24px rgba(12, 29, 64, .35);
  --shadow-glow: 0 10px 40px -10px rgba(0, 192, 176, .55);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
p { margin: 0 0 16px; }

.accent { color: var(--accent-text); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

/* ---------- Funnel page ---------- */
body.funnel {
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(0, 192, 176, .20), transparent 70%),
    radial-gradient(50% 40% at 0% 45%, rgba(15, 36, 77, .07), transparent 70%),
    var(--bg);
}
body.funnel::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 720px; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(12, 29, 64, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 29, 64, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(at top, #000 30%, transparent 75%);
  mask-image: radial-gradient(at top, #000 30%, transparent 75%);
}
.column {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 16px 72px;
  text-align: center;
}

/* Logo: bottle mark + Build RUO wordmark */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 34px; height: 44px;
  object-fit: contain;
}
.brand-text { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.025em; white-space: nowrap; }
.brand-text .accent { color: var(--accent); }
.column > .brand { margin-bottom: 32px; }
.column > .brand .brand-mark { width: 40px; height: 52px; }
.column > .brand .brand-text { font-size: 24px; }

.headline {
  font-size: clamp(28px, 6.2vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 18px;
}
.subhead { color: var(--muted); font-weight: 500; font-size: 17px; margin-bottom: 32px; }

/* Media: VSL, testimonial, placeholders */
.vsl, .testimonial {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #13295a, var(--navy));
}
.vsl {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-media);
  margin-bottom: 56px;
}
.vsl iframe, .testimonial iframe, .faq-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(60% 70% at 85% 0%, rgba(0, 192, 176, .35), transparent 70%);
  color: var(--navy-fg);
  border: 0; width: 100%; font: inherit; cursor: pointer; padding: 0 16px;
}
.media-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(243, 246, 251, .7);
}
.media-soon { margin-top: -8px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 246, 251, .5); }
.play {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(0, 192, 176, .2), var(--shadow-glow);
  transition: transform .15s ease;
}
.media-placeholder:hover .play { transform: scale(1.06); }
.play svg { width: 28px; height: 28px; fill: var(--accent-ink); margin-left: 4px; }

.step {
  font-family: var(--mono);
  color: var(--accent-text);
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 6px;
}
.block-title {
  font-size: clamp(22px, 4.4vw, 28px);
  margin-bottom: 24px;
}

/* Typeform embed */
.typeform-embed {
  min-height: 520px;
  display: grid; place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 72px;
  color: var(--muted);
  scroll-margin-top: 24px;
}
.typeform-embed.is-live { display: block; }
.typeform-embed [data-tf-widget],
.typeform-embed [data-tf-live] { width: 100%; min-height: 520px; }
.typeform-embed p { margin: 0; font-size: 14px; }
.loader { width: 32px; height: 32px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--bg-2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Testimonials */
.testimonial {
  width: min(320px, 100%);
  aspect-ratio: 9 / 16;
  margin: 0 auto 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-media);
}
.vsl.is-live { aspect-ratio: auto; background: #000; }
.vsl wistia-player { display: block; width: 100%; }
.testimonial.is-live { aspect-ratio: auto; background: #000; }
.testimonial wistia-player { display: block; width: 100%; }
.wins {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.win {
  display: block;
  width: 100%;
  aspect-ratio: 920 / 1180;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}
.win--empty {
  display: grid; place-items: center;
  border: 1px dashed var(--input); box-shadow: none;
  background: repeating-linear-gradient(135deg, #fff, #fff 12px, #f6f8fb 12px, #f6f8fb 24px);
}
.win--empty span { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.wins .win:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
.wins .win.win--full:nth-child(n) { grid-column: 1 / -1; width: min(420px, 100%); justify-self: center; aspect-ratio: auto; height: auto; object-fit: contain; }
.wins-note { font-size: 12px; color: var(--muted); margin: -24px auto 32px; max-width: 520px; }

/* Buttons: navy pill (accent variant for the main CTA) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary);
  color: var(--primary-fg);
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font: 500 16px/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, background .15s ease, filter .15s ease;
}
.btn:hover { background: #253a62; transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-glow); font-weight: 600; }
.btn-accent:hover { background: var(--accent); filter: brightness(1.05); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 18px; }
.btn-block { width: 100%; }

/* ---------- Shared header (policy pages) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (max-width: 380px) {
  .site-header .brand-text { font-size: 17px; }
}

/* ---------- Footer: navy block ---------- */
.site-footer { padding: 44px 0; background: var(--navy); color: var(--navy-fg); }
.disclaimer { font-size: 12px; opacity: .7; max-width: 640px; margin: 0 auto 18px; }
.legal { font-size: 13px; opacity: .85; margin: 0; }
.legal a { color: var(--navy-fg); text-decoration: none; margin: 0 4px; }
.legal a:hover { color: var(--accent); }

/* ---------- Policy pages ---------- */
.policy { padding: 56px 0 88px; }
.policy h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; margin-bottom: 8px; }
.policy .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.policy h2 { font-size: 20px; margin: 36px 0 12px; }
.policy h2 .n { color: var(--accent-text); margin-right: 8px; }
.policy p, .policy li { color: var(--muted); }
.policy strong { color: var(--text); }
.policy ul, .policy ol { padding-left: 22px; margin: 0 0 16px; }
.policy li { margin-bottom: 6px; }
.policy a { color: var(--accent-text); }
.policy .callout { background: var(--bg-2); border-left: 4px solid var(--accent); border-radius: 8px; padding: 16px 20px; margin: 0 0 24px; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .loader { animation-duration: 3s; }
}
.policy mark.fill { background: #fff3c4; color: #7a5a00; border-radius: 4px; padding: 0 4px; font-weight: 600; }
