/* Riley Legal VSL pages. Black, silver type, light from above, hairline frames that catch the light.
   Sizes follow the reference build: ≥1200px desktop, 810–1199 tablet, <810 phone. A single dark look on purpose. */
:root {
  color-scheme: dark;
  --bg: #000;
  --white: #fff;
  --silver: #e4e5f2;
  --text: #ccc;
  --dim: #8d8e96;
  --field: #141416;
  --line: rgba(237, 237, 237, 0.2);
  --edge: linear-gradient(124deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.4) 23.5%, rgba(255,255,255,0) 36%, rgba(255,255,255,.8) 53%, rgba(255,255,255,.1) 77.8%, rgba(255,255,255,.1) 100%);
  --edge-big: linear-gradient(239deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.4) 23.5%, rgba(255,255,255,0) 36%, rgba(255,255,255,.8) 53%, rgba(255,255,255,.1) 77.8%, rgba(255,255,255,.1) 100%);
  --pill: linear-gradient(#fff 0%, #ebebeb 52.36%, #ccc 100%);
  --pill-shadow: 0 2px 5px rgba(0,0,0,.2), 0 10px 10px rgba(0,0,0,.17), 0 22px 13px rgba(0,0,0,.1), 0 40px 16px rgba(0,0,0,.03);
  --display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad-x: 48px;
  --pad-y: 96px;
  --h1: 64px;
  --h2: 44px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 1199.98px) and (min-width: 810px) { .founder { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 36px; padding-right: 36px; } .founder-proof { font-size: 21px; } }
@media (max-width: 1199.98px) { :root { --pad-x: 30px; --pad-y: 72px; --h1: 52px; --h2: 38px; } }
@media (max-width: 809.98px) { :root { --pad-x: 16px; --pad-y: 48px; --h1: 36px; --h2: 30px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { position: relative; isolation: isolate; margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 16px; }
.max { width: 100%; max-width: 1200px; margin-inline: auto; }
.narrow { max-width: 1000px; }
.sep { margin: 0 10px; color: var(--dim); }

/* Type */
.h1, .h2, .h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
.h1 {
  font-size: var(--h1); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; text-align: center; max-width: 900px;
  background: linear-gradient(142deg, #e4e5f2 38.8%, rgba(228,229,242,.3) 92%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 { font-size: var(--h2); font-weight: 400; line-height: 1.2; color: var(--white); text-align: center; }
.h3 { font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--white); }
.lead { font-size: 19px; line-height: 1.5; color: var(--text); }

/* The pill above the headline: a lit dot and a label */
.badge {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 99px;
  font: 400 13px/1.5 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--white); background: rgba(255,255,255,.02); isolation: isolate;
}
.badge::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: var(--edge); z-index: -1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.badge-dot { display: grid; place-items: center; width: 16px; height: 16px; padding: 3px; border-radius: 48px; background: var(--line); }
.badge-dot span { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(165deg, #e4e5f2 0%, rgba(228,229,242,.3) 100%); }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 500 16px/1.5 var(--sans); border-radius: 999px; min-height: 52px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.pill-light { color: #000; background: var(--pill); padding: 8px 8px 8px 26px; box-shadow: var(--pill-shadow); }
.pill-light:hover { transform: translateY(-1px); box-shadow: var(--pill-shadow), 0 0 0 4px rgba(228,229,242,.08); }
.pill-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #000; color: #fff; flex: none; transition: transform .25s var(--ease); }
.pill:hover .pill-arrow { transform: translateX(2px); }
.pill-dark { color: var(--white); background: rgba(237,237,237,.12); padding: 12px 28px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.pill-dark:hover { background: rgba(237,237,237,.2); }
.pill-block { width: 100%; }
.pill-wide { min-width: min(100%, 420px); }
.text-link { border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 16px; color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(204,204,204,.4); }
.text-link:hover { color: var(--white); text-decoration-color: var(--white); }

/* Frames: a 1px wrapper whose background is the light along the edge, and a black card inside */
.frame { position: relative; padding: 1px; border-radius: 24px; background: var(--edge); }
.frame-in { position: relative; border-radius: 23px; background: #000; overflow: hidden; height: 100%; }
.frame-soft { background: var(--line); }
.frame-big { border-radius: 36px; background: var(--edge-big); }
.frame-big > .frame-in { border-radius: 35px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 30; padding: calc(20px + env(safe-area-inset-top, 0px)) var(--pad-x) 20px; transition: background .3s; }
.nav.is-stuck { background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav-row { max-width: 1200px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 500 17px/1 var(--display); color: var(--white); text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 600 10px/1 var(--sans); color: #000; background: var(--pill); box-shadow: 0 0 12px rgba(228,229,242,.25); }
.nav-right { display: flex; align-items: center; gap: 20px; }
/* The header's button appears once the hero's buttons have scrolled away, so the next step is always one tap away. */
.pill-sm { min-height: 40px; font-size: 14px; padding: 4px 4px 4px 18px; }
.pill-sm .pill-arrow { width: 30px; height: 30px; }
.nav-buy { display: none; }
.nav.show-buy .nav-buy { display: inline-flex; animation: nav-in .3s var(--ease); }
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }
.nav-buy-short { display: none; }
.nav-tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

/* Hero: light from above, a dot field, the headline, the framed video */
.hero-bg {
  position: absolute; inset: 0 0 auto; height: 1400px; pointer-events: none; z-index: -1; overflow: hidden;
  background: radial-gradient(54% 36% at 50% -6%, rgba(228,229,242,.32), rgba(228,229,242,.08) 55%, transparent 80%), radial-gradient(40% 30% at 50% 52%, rgba(228,229,242,.07), transparent 75%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(228,229,242,.5) 1px, transparent 1.2px); background-size: 12px 12px; opacity: .22;
  -webkit-mask-image: radial-gradient(18% 14% at 4% 12%, #000, transparent 70%), radial-gradient(44% 9% at 50% 4%, #000, transparent 75%);
  mask-image: radial-gradient(18% 14% at 4% 12%, #000, transparent 70%), radial-gradient(44% 9% at 50% 4%, #000, transparent 75%);
}
.hero { padding: 40px var(--pad-x) 32px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-lead { text-align: center; max-width: 760px; }
.vsl { position: relative; width: 100%; max-width: 1080px; }
.vsl-light { position: absolute; left: 10%; right: 10%; top: -60px; height: 140px; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.35), transparent 70%); filter: blur(12px); }
.vsl-frame { position: relative; padding: 6px; border-radius: 32px; background: rgba(228,229,242,.1); box-shadow: 0 40px 120px -40px rgba(228,229,242,.25); }
.vsl-frame::before { content: ""; position: absolute; left: 15%; right: 15%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent); }
.vsl-media { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 26px; background: #000; overflow: hidden; }
.vsl-still, .vsl-play { display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--white); }
.vsl-still { background: radial-gradient(60% 70% at 50% 35%, #232327 0%, #0d0d0f 60%, #050506 100%); }
.vsl-player { position: relative; }
.vsl-player video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vsl-play { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0,0,0,.18); cursor: pointer; }
.vsl-player.is-playing .vsl-play { display: none; }
.play-ring {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; padding-left: 4px; color: #fff;
  background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .3s var(--ease), background .3s;
}
.vsl-play:hover .play-ring { transform: scale(1.06); background: rgba(255,255,255,.22); }
.vsl-caption { font-size: 15px; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.note { font-size: 15px; color: var(--text); text-align: center; margin-top: -14px; }

/* Sections */
.section { padding: var(--pad-y) var(--pad-x) 0; position: relative; }
.section-founder { padding-top: 56px; }
.section-last { padding-bottom: var(--pad-y); }

/* Philip: the reason to trust, given real weight — a large portrait and his record beside it */
.founder { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: center; padding: 28px 56px 28px 28px; }
.founder-light { position: absolute; width: 700px; height: 700px; right: -260px; top: -420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(228,229,242,.22), transparent); filter: blur(60px); pointer-events: none; }
.founder-photo { position: relative; aspect-ratio: 4 / 5; width: 100%; border-radius: 24px; overflow: hidden; background: #0c0c0e; box-shadow: 0 0 0 1px rgba(237,237,237,.16), 0 40px 80px -30px rgba(228,229,242,.18); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.initials { width: 100%; height: 100%; display: grid; place-items: center; font: 400 96px/1 var(--display); letter-spacing: -.04em; background: radial-gradient(70% 60% at 50% 30%, #2a2a2f, #0c0c0e 75%); color: rgba(228,229,242,.55); }
.founder-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.founder-name { margin: 6px 0 0; font: 400 var(--h2)/1.15 var(--display); color: var(--white); }
.founder-role { font-size: 18px; color: var(--dim); margin-top: -8px; }
.founder-proof { font: 400 24px/1.4 var(--display); letter-spacing: -.01em; color: var(--white); margin-top: 8px; text-wrap: pretty; }
.founder-commit { font-size: 18px; line-height: 1.55; color: var(--text); }

/* The assessment */
.offer { padding: 64px 64px 56px; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.panel-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(228,229,242,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(228,229,242,.12) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 80%); mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 80%);
}
.panel-light { position: absolute; width: 820px; height: 820px; left: 50%; top: -560px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(228,229,242,.3), transparent); filter: blur(60px); pointer-events: none; }
.offer-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.price { font: 500 64px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px;
  background: linear-gradient(180deg, #fff 30%, rgba(228,229,242,.55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.terms { font-size: 16px; color: var(--text); }
.receive { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; width: 100%; max-width: 820px; }
.receive li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; }
.receive strong { display: block; font: 500 18px/1.4 var(--display); color: var(--white); margin-bottom: 4px; }
.receive div > span { display: block; font-size: 16px; color: var(--text); }
.tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #000; background: var(--pill); margin-top: 1px; }
.after { position: relative; width: 100%; max-width: 820px; padding: 28px; border-radius: 20px; background: rgba(237,237,237,.05); box-shadow: inset 0 0 0 1px rgba(237,237,237,.12); display: grid; gap: 10px; }
.after-title { margin: 0; font: 500 20px/1.35 var(--display); color: var(--white); }
.after p { font-size: 16px; color: var(--text); }
.after .after-scope { font-size: 14px; color: var(--dim); }
.offer-cta { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.agreement { font-size: 14px; color: var(--dim); }

/* Footer */
.footer { padding: 32px var(--pad-x) calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(237,237,237,.1); }
.footer-line { font-size: 14px; color: var(--dim); text-align: center; }

/* The two forms, over the page */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet-box { position: relative; width: 100%; max-width: 500px; max-height: calc(100dvh - 32px); border-radius: 20px; }
.sheet-in { border-radius: 19px; padding: 32px; overflow-y: auto; max-height: calc(100dvh - 34px); background: radial-gradient(90% 50% at 50% 0%, #1a1a1d, #000 70%); }
.sheet-x { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(237,237,237,.1); color: var(--white); cursor: pointer; }
.sheet-in > .h3 { padding-right: 40px; }
.sheet-lead { font-size: 16px; color: var(--text); margin: 8px 0 20px; padding-right: 24px; }
.form { display: grid; gap: 14px; }
.form label:not(.check) { display: grid; gap: 6px; font-size: 14px; color: var(--white); }
.form input:not([type=checkbox]), .form textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(237,237,237,.16); background: var(--field);
  font: 400 16px/1.4 var(--sans); color: var(--white);
}
.form textarea { resize: vertical; min-height: 88px; }
.form input::placeholder, .form textarea::placeholder { color: #6f7077; }
.form input:focus, .form textarea:focus { outline: none; border-color: rgba(228,229,242,.6); }
.form-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-err { padding: 10px 12px; border-radius: 10px; background: rgba(255,90,90,.12); color: #ffb4b4; font-size: 14px; }
.form .pill { margin-top: 6px; }
.form .pill[disabled] { opacity: .6; cursor: wait; }
.form-fine { font-size: 13px; color: var(--dim); text-align: center; }
body.is-open { overflow: hidden; }

/* Motion: content rises in once; headings sharpen from a blur. Without script or with reduced motion it is simply there. */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.blur, .js .reveal .blur { filter: blur(10px); transition: filter .9s var(--ease), opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in.blur, .js .reveal.is-in .blur { filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.blur, .js .reveal .blur { opacity: 1; transform: none; filter: none; transition: none; }
  .pill, .pill-arrow, .play-ring { transition: none; }
}

/* Phone */
@media (max-width: 809.98px) {
  body { font-size: 16px; }
  .nav-tag { display: none; }
  .nav-buy { font-size: 14px; padding-left: 14px; }
  .nav-buy-long { display: none; }
  .nav-buy-short { display: inline; }
  .hero { padding-top: 24px; }
  .hero-inner { gap: 26px; }
  .lead { font-size: 17px; }
  .vsl-frame { padding: 3px; border-radius: 18px; }
  .vsl-media { border-radius: 15px; }
  .play-ring { width: 58px; height: 58px; }
  .vsl-caption { font-size: 13px; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .pill { font-size: 15px; }
  .note { font-size: 13px; margin-top: -8px; }
  .note .sep { margin: 0 5px; }
  .section-founder { padding-top: 40px; }
  .founder { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 14px 14px 26px; }
  .founder-photo { aspect-ratio: 4 / 4.2; border-radius: 18px; }
  .founder-photo img { object-position: 50% 18%; }
  .founder-copy { padding: 0 8px; gap: 12px; }
  .founder-proof { font-size: 19px; }
  .founder-commit { font-size: 16px; }
  .offer { padding: 40px 18px 28px; gap: 28px; }
  .price { font-size: 52px; }
  .terms { font-size: 14px; }
  .terms .sep { margin: 0 5px; }
  .receive { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .after { padding: 20px; }
  .offer-cta, .offer-cta .pill { width: 100%; }
  .form-2 { grid-template-columns: minmax(0, 1fr); }
  .sheet { padding: 10px; }
  .sheet-in { padding: 24px 20px; }
}
