/* virAI free-agent funnels — single light look (matches free.virai.com + ad creatives).
   Layout: one centered mobile-first column; hero → video → CTA, then steps/FAQ on thank-you pages. */
[hidden] { display: none !important; }
:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --ink: #0d0d0d;
  --text: #3f3c38;
  --muted: #8a8378;
  --line: rgba(13, 13, 13, 0.09);
  --amber-1: #ffc260;
  --amber-2: #ffab22;
  --amber-ink: #c7891e;
  --amber-soft: rgba(255, 194, 96, 0.22);
  --red: #d93025;
  --red-soft: #fff6ec;
  --green: #16a34a;
  --brand: linear-gradient(90deg, #8e24aa 0%, #e0388e 45%, #ff7a45 85%, #f5a524 100%);
  --brand-d: linear-gradient(135deg, #8e24aa 0%, #e0388e 55%, #ff7a45 100%);
  --font:'Outfit',-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --col: 620px;
  --header-bg: rgba(255, 255, 255, 0.72);
  --input-bg: #ffffff;
  --input-border: #d8d6d1;
  --label: #555149;
  --glow-a: rgba(255, 194, 96, 0.22);
  --glow-b: rgba(224, 56, 142, 0.07);
  --avatar-bg: #fff8f3;
  --shadow: rgba(13, 13, 13, 0.08);
  --chip: rgba(13, 13, 13, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0d11; --surface: #17161b; --ink: #f3f1ec; --text: #c9c3b9; --muted: #8f887d; --line: rgba(255, 255, 255, 0.09);
    --amber-soft: rgba(255, 194, 96, 0.14); --amber-ink: #ffc260; --red: #ff7a6b; --red-soft: rgba(255, 122, 107, 0.08); --green: #22c55e;
    --header-bg: rgba(14, 13, 17, 0.72); --input-bg: #1d1c22; --input-border: #34323a; --label: #b8b1a6;
    --glow-a: rgba(255, 171, 34, 0.10); --glow-b: rgba(224, 56, 142, 0.10); --avatar-bg: #26222a; --shadow: rgba(0, 0, 0, 0.45); --chip: rgba(255, 255, 255, 0.07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0d11; --surface: #17161b; --ink: #f3f1ec; --text: #c9c3b9; --muted: #8f887d; --line: rgba(255, 255, 255, 0.09);
  --amber-soft: rgba(255, 194, 96, 0.14); --amber-ink: #ffc260; --red: #ff7a6b; --red-soft: rgba(255, 122, 107, 0.08); --green: #22c55e;
  --header-bg: rgba(14, 13, 17, 0.72); --input-bg: #1d1c22; --input-border: #34323a; --label: #b8b1a6;
  --glow-a: rgba(255, 171, 34, 0.10); --glow-b: rgba(224, 56, 142, 0.10); --avatar-bg: #26222a; --shadow: rgba(0, 0, 0, 0.45); --chip: rgba(255, 255, 255, 0.07);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 520px at 50% -120px, var(--glow-a), transparent 70%),
    radial-gradient(700px 400px at 100% 0, var(--glow-b), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #e0388e; outline-offset: 3px; border-radius: 6px; }

.top {
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  position: relative;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  padding: 12px 16px;
}
.top img { height: 42px; width: auto; }

.wrap { max-width: var(--col); margin: 0 auto; padding-inline: 20px; padding-block: 28px 0; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.center { text-align: center; }

h1 {
  margin: 0;
  font-size: clamp(30px, 6.4vw, 46px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 em, h2 em, .grad {
  font-style: normal;
  background-image: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ty h1 em { background-image: linear-gradient(90deg, var(--amber-1), var(--amber-2)); }
.sub { margin: 0; font-size: clamp(16px, 3.6vw, 19px); color: var(--text); text-wrap: balance; }

.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 24px 60px var(--shadow);
}
.ty .video-card { background: linear-gradient(180deg, var(--amber-1), var(--amber-2)); border: none; padding: 7px; }
.video-card video { width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; background: var(--chip); object-fit: cover; }
.video-note { margin: 10px 12px 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink); text-align: center; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 19px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--amber-1), var(--amber-2));
  color: #0d0d0d;
  font: 700 clamp(17px, 4.2vw, 20px) / 1.2 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 171, 34, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(255, 171, 34, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn svg { width: 20px; height: 20px; flex: none; }
.micro { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.perks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.perks li {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
.ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-d); display: grid; place-items: center; flex: none; }
.ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- thank-you ---------- */
h2 { margin: 0; font-size: clamp(21px, 4.6vw, 26px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.step-head { display: flex; align-items: center; gap: 16px; }
.badge { width: 52px; height: 52px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-ink); font-weight: 800; font-size: 20px; display: grid; place-items: center; flex: none; }
.step-head h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px var(--shadow); }
.card p { margin: 0; color: var(--text); }
.warn { margin-top: 18px; padding: 16px 18px; border: 1.5px solid var(--amber-ink); background: var(--red-soft); border-radius: 14px; color: var(--red); font-style: italic; font-size: 15px; text-align: center; }
.plain { margin: 0; color: var(--text); }

.included { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.included li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.included li span:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chk { width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.chk svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tag-free { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); flex: none; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.total .lbl { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.total .val { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; }

.abilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ability { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.ability b { display: block; font-size: 15px; margin-bottom: 2px; }
.ability p { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.45; }

.honest { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.honest p { margin: 0 0 12px; color: var(--text); }
.honest p:last-child { margin-bottom: 0; }
.honest strong { color: var(--ink); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--text); }

.skip { display: flex; flex-direction: column; gap: 14px; }
.skip .small { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- footer ---------- */
footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); }
footer .wrap { padding-block: 26px 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
footer img { height: 30px; width: auto; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer .disc { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted); max-width: 560px; }

/* ---------- modal ---------- */
dialog.lead {
  width: min(460px, calc(100% - 24px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(13, 13, 13, 0.35);
}
dialog.lead::backdrop { background: rgba(13, 13, 13, 0.55); backdrop-filter: blur(3px); }
dialog.lead[open] { animation: pop 0.22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.lead-in { padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.lead-in .x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--chip); cursor: pointer; font-size: 20px; color: var(--muted); }
.lead-head { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.lead-head img { width: 52px; height: 52px; border-radius: 50%; background: var(--avatar-bg); padding: 3px; border: 2px solid transparent; background-image: linear-gradient(var(--avatar-bg), var(--avatar-bg)), var(--brand-d); background-origin: border-box; background-clip: padding-box, border-box; object-fit: contain; }
.lead-head h2 { font-size: 22px; }
.lead-sub { margin: -4px 0 2px; font-size: 14.5px; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--label); }
.field input, .field select {
  width: 100%;
  font: 500 16px / 1.2 var(--font);
  color: var(--ink);
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  padding: 14px 14px;
  outline: none;
}
.field input:focus, .field select:focus { border-color: #e0388e; box-shadow: 0 0 0 4px rgba(224, 56, 142, 0.12); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.phone { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.err { min-height: 0; margin: 0; font-size: 13px; color: var(--red); }
.consent { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.lock { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 0; }

@media (max-width: 420px) {
  .perks { grid-template-columns: 1fr; }
  .perks li { flex-direction: row; text-align: left; }
  .abilities { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  appearance: none; border: 0; padding: 0; cursor: pointer; background: none;
  position: absolute; right: 14px; top: 50%; translate: 0 -50%;
}
.tt-track {
  position: relative; display: block; width: 50px; height: 27px; border-radius: 99px;
  background: linear-gradient(180deg, #ffe7b8, #ffd27a);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: background 0.35s ease;
  overflow: hidden;
}
.tt-track svg { position: absolute; top: 6px; width: 14px; height: 14px; transition: opacity 0.3s ease; }
.tt-sun { left: 7px; color: #c26a00; }
.tt-moon { right: 7px; color: #c9c3ff; opacity: 0.55; }
.tt-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity 0.4s ease; }
.tt-star.s1 { left: 11px; top: 7px; } .tt-star.s2 { left: 17px; top: 17px; width: 2px; height: 2px; } .tt-star.s3 { left: 24px; top: 8px; width: 2px; height: 2px; }
.tt-knob {
  position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d8, #ffc260 55%, #ff9a1f);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 12px rgba(255, 170, 40, 0.55);
  transition: translate 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.35s ease, box-shadow 0.35s ease;
}
:root[data-theme="dark"] .tt-track { background: linear-gradient(180deg, #23203a, #3a2f5c); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06); }
:root[data-theme="dark"] .tt-knob { translate: 23px 0; background: radial-gradient(circle at 35% 35%, #ffffff, #d9d4ff 50%, #a99cf0); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 14px rgba(170, 156, 240, 0.6); }
:root[data-theme="dark"] .tt-star { opacity: 0.9; }
:root[data-theme="dark"] .tt-sun { opacity: 0.4; }
:root[data-theme="dark"] .tt-moon { opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .tt-track { background: linear-gradient(180deg, #23203a, #3a2f5c); }
  :root:not([data-theme]) .tt-knob { translate: 23px 0; background: radial-gradient(circle at 35% 35%, #ffffff, #d9d4ff 50%, #a99cf0); }
  :root:not([data-theme]) .tt-star { opacity: 0.9; }
}
.theme-toggle:focus-visible .tt-track { outline: 3px solid #e0388e; outline-offset: 3px; }

/* works-with logo strip */
.works ul.wlogos { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; }
.works ul.wlogos li { list-style: none; line-height: 0; }
.works ul.wlogos img { height: 20px; width: auto; opacity: 0.75; filter: brightness(0) invert(1); transition: opacity 0.15s ease; }
.works ul.wlogos img:hover { opacity: 1; }
:root[data-theme="light"] .works ul.wlogos img { filter: brightness(0); opacity: 0.55; }
:root[data-theme="light"] .works ul.wlogos img:hover { opacity: 0.85; }
