/* The Creator offer: the modal (dialog.creator-offer-dialog) and the full page
   (main.offer-page) share one template from lib/creator-offer.js. Left: the
   pitch with the 25-second tour video; right: the plan card. Tokens come from
   app.css so both themes hold. */
.creator-offer{color:var(--ink);font-family:var(--sans,Sora),system-ui,sans-serif}
.offer-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:36px;align-items:start}
.offer-left{display:grid;gap:16px;align-content:start;min-width:0}

/* Eyebrow: the wordmark image (one per theme) and a Creator chip */
.offer-eyebrow{display:flex;align-items:center;gap:12px;margin:0}
.offer-wm{height:26px;width:auto;display:none}
.offer-wm-dark{display:block}
:root[data-theme="light"] .offer-wm-dark{display:none}
:root[data-theme="light"] .offer-wm-light{display:block}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .offer-wm-dark{display:none}:root:not([data-theme="dark"]) .offer-wm-light{display:block}}
.offer-chip{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:var(--violet-soft);color:var(--violet);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}

.creator-offer h1{margin:0;font-size:34px;line-height:1.12;font-weight:800;letter-spacing:-.02em;text-wrap:balance}
.creator-offer h1:focus{outline:none}
.offer-lead{margin:0;font-size:16px;line-height:1.5;color:var(--ink-2)}

/* The tour video: 16:9, framed like the site's panels, a play button over the poster until it plays. */
.offer-video{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#0F0E17;border:1px solid var(--rule);box-shadow:0 18px 50px rgba(0,0,0,.28)}
.offer-video video{display:block;width:100%;height:100%;object-fit:cover;background:#0F0E17}
.offer-play{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:0;padding:0;background:linear-gradient(180deg,rgba(15,14,23,.02),rgba(15,14,23,.4));color:#F0EFEC;font:inherit;font-size:14px;font-weight:600;letter-spacing:.02em;cursor:pointer}
.offer-play span:last-child{position:absolute;left:16px;bottom:14px;padding:6px 10px;border-radius:999px;background:rgba(15,14,23,.72);font-size:13px}
.offer-play-glyph{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:var(--violet-fill);box-shadow:0 12px 32px rgba(115,44,236,.45);transition:transform .15s}
.offer-play-glyph svg{width:30px;height:30px;margin-left:3px;color:#fff}
.offer-play:hover .offer-play-glyph,.offer-play:focus-visible .offer-play-glyph{transform:scale(1.06)}
.offer-play:focus-visible{outline:3px solid var(--violet);outline-offset:-3px}
.offer-video.is-playing .offer-play{display:none}

/* Benefits: four tight rows */
.offer-benefits{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:10px}
.offer-benefits li{display:flex;align-items:flex-start;gap:12px;font-size:15px;line-height:1.45;color:var(--ink-2)}
.offer-benefits b{color:var(--ink);font-weight:700}
.offer-feature-icon{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--pane-2);color:var(--violet);margin-top:1px}
.offer-feature-icon svg{width:18px;height:18px;display:block}

/* Plan card */
.offer-plan{position:sticky;top:0;background:var(--pane-2);border:1px solid var(--rule);border-radius:18px;padding:22px 22px 18px;display:grid;gap:14px}
.offer-plan h2{margin:0;font-size:22px;font-weight:800;letter-spacing:-.01em}
.offer-pricing{margin:0;padding:0;border:0;display:grid;gap:10px}
.offer-pricing legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.offer-pricing label{display:flex;align-items:center;gap:12px;padding:14px 16px;border:2px solid var(--rule);border-radius:14px;background:var(--pane);cursor:pointer;transition:border-color .15s}
.offer-pricing label:has(input:checked){border-color:var(--violet)}
.offer-pricing input{width:18px;height:18px;margin:0;accent-color:var(--violet-fill);flex:none}
.offer-pricing label>span{display:grid;gap:2px;min-width:0}
.offer-pricing strong{font-size:22px;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.offer-pricing small{font-size:13px;font-weight:600;color:var(--ink-2);margin-left:4px}
.offer-pricing span span{font-size:13px;color:var(--ink-2)}
.offer-pricing span b{color:#22a06b;font-weight:700}
:root[data-theme="light"] .offer-pricing span b{color:#15803D}
.offer-actions{display:grid;gap:10px;text-align:center}
.creator-offer .offer-primary,.creator-offer .offer-primary:visited,.creator-offer .offer-primary:hover{display:flex!important;align-items:center;justify-content:center;min-height:48px;padding:12px 16px!important;font-size:14px!important;color:#fff!important}
.creator-offer .offer-primary[aria-disabled="true"]{opacity:.7;pointer-events:none}
.offer-signin{font-size:13px;color:var(--ink-2);text-underline-offset:4px}
.offer-status{margin:0;min-height:1.2em;font-size:13px;color:var(--ink-2)}
.offer-status:empty{display:none}
.offer-plan-note{margin:0;font-size:12px;line-height:1.5;color:var(--ink-2);text-align:center}
.offer-free{margin:22px 0 0;padding-top:16px;border-top:1px solid var(--rule);font-size:13px;line-height:1.5;color:var(--ink-2)}
.offer-free strong{color:var(--ink)}

/* The modal shell */
.creator-offer-dialog{width:min(1000px,calc(100vw - 32px));max-width:none;border:1px solid var(--rule);border-radius:22px;padding:28px 30px 26px;background:var(--pane);color:var(--ink);box-shadow:0 40px 120px rgba(0,0,0,.45)}
.creator-offer-dialog::backdrop{background:rgba(10,10,18,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.creator-offer-dialog .creator-offer{position:relative}
.creator-offer-dialog .offer-close{position:absolute;top:10px;right:10px;z-index:1;width:40px;height:40px;border-radius:50%;border:1px solid var(--rule);background:var(--pane-2);color:var(--ink);display:grid;place-items:center;cursor:pointer;font-size:20px;line-height:1}

/* The full page (/upgrade and gated pages) */
.offer-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;max-width:1040px;margin:0 auto;padding:18px 20px}
.offer-header a:not(.wordmark){font-size:14px;color:var(--ink-2);text-underline-offset:4px}
.offer-header .wordmark{flex:0 1 auto;min-width:0;padding-right:0}
.offer-header .wordmark .wm-img{height:36px;max-width:100%;object-fit:contain}
.offer-page{max-width:1040px;margin:0 auto;padding:12px 20px 40px}
.offer-legal{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;max-width:1040px;margin:0 auto;padding:16px 20px 40px;font-size:13px}
.offer-legal a{color:var(--ink-2)}

@media (max-width:860px){
  .offer-grid{grid-template-columns:1fr;gap:22px}
  .offer-plan{position:static}
  .creator-offer h1{font-size:28px}
}
@media (max-width:520px){
  .creator-offer-dialog{padding:20px 16px 18px;border-radius:18px}
  .creator-offer h1{font-size:24px}
  .offer-lead{font-size:15px}
  .offer-benefits li{font-size:14px}
  .offer-pricing strong{font-size:20px}
  .offer-play span:last-child{font-size:13px}
}
@media (prefers-reduced-motion:reduce){.offer-play-glyph{transition:none}}

/* The full page already carries the wordmark in its header. */
.offer-page .offer-eyebrow .offer-wm{display:none!important}
