/* Opt-in page for a single freebie, on the V2 tokens in /site.css. The form sits beside the headline, above the fold;
   there is one form per page, and the closing button scrolls back to it. */
.optin{max-width:calc(var(--container) + 2 * var(--gutter));margin:0 auto;padding:0 var(--gutter) 96px}

/* hero: the pitch on the left, the form card on the right */
.optin-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:56px;align-items:start;padding:64px 0 48px;scroll-margin-top:96px}
.optin-hero h1{font-size:clamp(40px,5.4vw,66px);margin-bottom:20px}
.optin-hero h1 em,.optin h2 em{font-style:normal;color:var(--accent)}
.optin-hero .eyebrow .dot{display:none}
.optin-lede{font-size:19px;line-height:1.55;color:var(--muted);margin:0 0 28px;max-width:560px}
.optin-author{display:flex;align-items:center;gap:14px;margin:8px 0 0}
.optin-author img{width:56px;height:56px;border-radius:50%;object-fit:cover}
.optin-author strong{display:block;font-size:15px}
.optin-author span{font-size:14px;color:var(--muted)}
@media(max-width:900px){.optin-hero{grid-template-columns:1fr;gap:28px;padding-top:40px}}

.optin-card{position:sticky;top:96px}
.optin-form{display:flex;flex-direction:column;gap:12px;padding:28px;border-radius:var(--r-panel);background:var(--lime)}
.optin-form .note-label{display:inline-flex;align-self:flex-start;padding:4px 10px;border-radius:var(--r-pill);background:var(--surface);font:500 11px/1.2 var(--font-mono);letter-spacing:.08em;margin:0;color:var(--lime-ink)}
.optin-fields{display:flex;flex-direction:column;gap:10px}
.optin-form label{font-size:14px;font-weight:600}
.optin-form input[type=email],.optin-form input[type=text]{font:inherit;font-size:16px;min-height:48px;padding:0 16px;border:1px solid var(--line-strong);border-radius:var(--r-input);background:var(--surface);color:var(--ink)}
.optin-form input:focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(85,48,240,.22)}
.optin-form button{font:600 15px/1 var(--font-body);min-height:52px;color:#fff;background:var(--accent);border:0;border-radius:var(--r-pill);padding:0 22px;cursor:pointer;margin-top:4px}
.optin-form button:hover{background:var(--accent-hover)}
.optin-form button:disabled{opacity:.7;cursor:wait}
.optin-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;font-weight:400!important;line-height:1.45;cursor:pointer}
.optin-check input{margin-top:2px;width:18px;height:18px;flex:none;accent-color:var(--accent)}
.optin-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.optin-turnstile{min-height:0}
.optin-fine,.optin-thanks{font-size:13px;color:#3d4a1f;margin:0}
.optin-fine a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.optin-status{font-size:14px;font-weight:600;color:var(--ink);margin:0}
.optin-status.is-error{color:#8a1c1c}
.optin-status[hidden],.optin-thanks[hidden],.optin-done[hidden],.optin-next[hidden]{display:none}
/* after a sign-up: "Check your inbox", the server's message, and the guide it goes with */
.optin-form.is-done .optin-fields,.optin-form.is-done .note-label{display:none}
.optin-done{font-family:var(--font-head);font-weight:700;font-size:30px;letter-spacing:-.03em;line-height:1.1;margin:0}
.optin-done::before{content:"✓";display:inline-grid;place-items:center;width:36px;height:36px;margin-right:12px;border-radius:12px;background:var(--surface);font-size:18px;vertical-align:middle}
.optin-next{margin:6px 0 0;padding:14px 16px;border-radius:16px;background:var(--surface);font-size:14px}
.optin-next a{font-weight:600}

/* the sections below the fold */
.optin>section:not(.optin-hero){padding:56px 0 0;max-width:820px}
.optin h2{font-size:clamp(28px,3.4vw,38px);line-height:1.12;margin:0 0 16px}
.optin p{margin:0 0 16px}
.optin-steps{list-style:none;counter-reset:s;padding:0;margin:18px 0;display:grid;gap:10px}
.optin-steps li{counter-increment:s;display:flex;gap:14px;align-items:baseline;padding:16px 18px;border-radius:18px;background:var(--surface);border:1px solid var(--line)}
.optin-steps li::before{content:counter(s,decimal-leading-zero);flex:none;display:inline-grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--lavender);font:500 12px/1 var(--font-mono)}
.optin-list{padding-left:22px;margin:0 0 16px}
.optin-list li{margin:0 0 10px}
.optin-preview{background:var(--ink);color:#F4F1FA;border-radius:var(--r-card);padding:20px 22px;font:13px/1.7 var(--font-mono);overflow-x:auto;white-space:pre-wrap;margin:18px 0}
.optin-preview b{color:var(--lime);font-weight:400}
.optin section>img{width:100%;height:auto;margin:18px 0 0;border-radius:var(--r-card);border:1px solid var(--line)}
.optin-works .logo-row li{padding:8px 16px 8px 10px;border-radius:var(--r-pill);background:var(--surface);border:1px solid var(--line)}
.optin-close{margin-top:56px;padding:40px!important;max-width:none!important;border-radius:var(--r-panel);background:var(--ink);color:#fff}
.optin-close h2{color:#fff}
.optin-close .hl{color:#B9A6FF}
.optin-close p{color:#D8D3E3}

/* what's included cards */
.included{list-style:none;margin:18px 0 22px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.included li{display:flex;flex-direction:column;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:10px 10px 14px;margin:0;font-size:13px;line-height:1.4;color:var(--muted)}
.included img{width:100%;height:auto;display:block;border-radius:12px;margin-bottom:6px}
.included strong{color:var(--ink);font-size:14px}
@media(max-width:520px){.included{grid-template-columns:repeat(2,1fr);gap:10px}.optin-close{padding:28px!important}}
@media(max-width:900px){.optin-card{position:static}}
/* the Turnstile widget is a fixed 300px: keep room for it at 375px wide */
@media(max-width:900px){.optin-hero{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){.optin{padding:0 16px 72px}.optin-form{padding:20px 18px}}
