/*
 * The checkout lead-in question inside a guide page (scripts/lib/checkout-leadin.js)
 * and the page-side bits of the flow (public/js/checkout/checkout.js). Site
 * tokens only (styles.css / v3.css), so it follows the page's light or dark theme.
 */
.dtc-lead{ margin:36px 0 34px; padding:24px 0 24px; border-top:1px solid var(--outline); border-bottom:1px solid var(--outline); }
.dtc-lead .dtc-lead-eyebrow{ margin:0; font:600 12px/1.3 var(--font-mono); letter-spacing:.12em; text-transform:uppercase; color:var(--accent); }
.dtc-lead .dtc-lead-q{ margin:10px 0 6px; font:700 clamp(22px, 5vw, 27px)/1.15 var(--font-sans); letter-spacing:-0.025em; color:var(--text-1); text-wrap:balance; }
.dtc-lead .dtc-lead-sub{ margin:0; font-size:16px; line-height:1.45; color:var(--text-2); }
.dtc-lead-opts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.dtc-lead-opts button{ height:44px; padding:0 16px; border-radius:999px; border:1px solid var(--outline);
  background:color-mix(in oklab, var(--text-1) 4%, transparent); color:var(--text-1);
  font:600 15px/1 var(--font-sans); letter-spacing:-0.01em; cursor:pointer;
  transition:background .15s, border-color .15s, color .15s, box-shadow .2s; -webkit-tap-highlight-color:transparent; }
.dtc-lead-opts button:hover{ border-color:color-mix(in oklab, var(--accent), transparent 40%); }
.dtc-lead-opts button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.dtc-lead-opts button[aria-pressed="true"]{ background:var(--accent); border-color:var(--accent); color:var(--on-accent, #04161F);
  box-shadow:0 0 22px color-mix(in oklab, var(--accent), transparent 55%); }
.dtc-lead-days{ display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:6px; }
.dtc-lead-days button{ height:52px; padding:0; border-radius:14px; }

.dtc-lead-more:empty{ display:none; }
.dtc-lead-more{ margin-top:22px; animation:dtc-in .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dtc-in{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .dtc-lead-more, .dtc-lead-week .lv, .dtc-lead-dots i{ animation:none !important; } }

/* GLP-1: the week from the shot day, with the label's 1-3 day peak */
.dtc-lead-week{ display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:6px; }
.dtc-lead-week .c{ position:relative; height:74px; border-radius:12px; overflow:hidden; display:flex; align-items:flex-end; justify-content:center; padding-bottom:9px;
  background:color-mix(in oklab, var(--text-1) 4%, transparent); }
.dtc-lead-week .lv{ position:absolute; left:0; right:0; bottom:0; border-radius:10px 10px 0 0; transform-origin:bottom;
  background:linear-gradient(180deg, color-mix(in oklab, var(--accent), transparent 40%), color-mix(in oklab, var(--accent), transparent 88%));
  animation:dtc-grow .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dtc-grow{ from{ transform:scaleY(0); } }
.dtc-lead-week .d{ position:relative; font:700 12.5px/1 var(--font-sans); color:var(--text-2); }
.dtc-lead-week .pk .d, .dtc-lead-week .shot .d{ color:var(--text-1); }
.dtc-lead-week .shot::before{ content:""; position:absolute; top:9px; left:50%; width:8px; height:8px; margin-left:-4px; border-radius:50%; background:var(--accent);
  box-shadow:0 0 10px var(--accent); }
.dtc-lead-legend{ display:flex; justify-content:space-between; gap:12px; margin-top:10px; font-size:13px; color:var(--text-2); }
.dtc-lead-legend b{ color:var(--text-1); font-weight:600; }

/* TRT and general: a row of days */
.dtc-lead-dots{ display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:6px; }
.dtc-lead-dots .c{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.dtc-lead-dots i{ display:block; width:30px; height:30px; border-radius:50%; border:1.5px solid color-mix(in oklab, var(--accent), transparent 65%);
  animation:dtc-in .4s ease both; }
.dtc-lead-dots .on i{ background:var(--accent); border-color:var(--accent); box-shadow:0 0 0 4px color-mix(in oklab, var(--accent), transparent 84%); }
.dtc-lead-dots span{ font:700 12px/1 var(--font-sans); color:var(--text-2); }
.dtc-lead-dots .on span{ color:var(--text-1); }

.dtc-lead .dtc-lead-line{ margin:18px 0; font-size:17px; line-height:1.5; color:var(--text-1); }
.dtc-lead-line b{ color:var(--accent); font-weight:600; }
.dtc-lead .btn.dtc-lead-go{ display:flex; justify-content:center; width:100%; height:54px; padding:0 20px; font-size:17px; }
.dtc-lead .dtc-lead-after{ margin:10px 0 0; font-size:13px; text-align:center; color:var(--text-3); }

/* while the flow is open: the page under it stays put, and the site's email
   offer and app bar stay out of the way */
html.dtc-open, html.dtc-open body{ overflow:hidden; }
html.dtc-open .offer2, html.dtc-open .appbar2{ display:none !important; }
/* on phones the quiz has the whole screen: no site bar over it (Ethen) */
@media (max-width:900px){ html.dtc-open nav.nav{ display:none !important; } }

/* The guide card's "Try it free" (scripts/add-checkout-cta.js): store links under it. */
.app-card-buttons .dtc-start{ width:100%; justify-content:center; }
.app-card-alt{ margin:8px 0 0; width:100%; font-size:13px; line-height:1.5; opacity:.72; text-align:center; }
.app-card-alt a{ color:inherit; text-decoration:underline; }
