/* Creator Studio front page (the signed-out view of /admin). Drawn in the Studio theme (clean, Apple-like: THEMES.studio
   in admin.js), light or dark with the device, whatever theme a brand picked inside. */
.landing {
  --l-bg: #f5f5f7; --l-panel: #ffffff; --l-ink: #1d1d1f; --l-muted: #6e6e73; --l-accent: #0071e3; --l-accent2: #7a5af8; --l-on: #ffffff;
  --l-card: #ffffff; --l-line: rgba(0, 0, 0, 0.08); --l-soft: rgba(0, 113, 227, 0.08); --l-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --l-display: "Inter Tight", "Inter", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --l-text: "Inter", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: var(--l-ink); font-family: var(--l-text); color-scheme: light; -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  .landing {
    --l-bg: #000000; --l-panel: #111113; --l-ink: #f5f5f7; --l-muted: #a1a1a6; --l-accent: #2997ff; --l-accent2: #a78bfa; --l-on: #ffffff;
    --l-card: #1c1c1e; --l-line: rgba(255, 255, 255, 0.1); --l-soft: rgba(41, 151, 255, 0.14); --l-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
body.signed-out:has(#signin:not([hidden])) { background: #f5f5f7; }
@media (prefers-color-scheme: dark) { body.signed-out:has(#signin:not([hidden])) { background: #000; } }
.signed-out main { padding: 0 !important; }
.admin main > section.landing { max-width: none; margin: 0; position: relative; overflow: hidden; background: var(--l-bg); }
.landing > * { width: min(1140px, 100% - 32px); margin-inline: auto; }
.landing h1, .landing h2, .landing h3 { font-family: var(--l-display); color: var(--l-ink); letter-spacing: -0.03em; }
.landing a { color: var(--l-accent); }
.landing .muted { color: var(--l-muted); }

.l-nav { position: sticky; top: 0; z-index: 5; width: 100% !important; padding-inline: max(16px, (100% - 1140px) / 2); background: color-mix(in srgb, var(--l-bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--l-line); display: flex; align-items: center; justify-content: space-between; height: 56px; }
.l-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--l-ink) !important; font: 600 1rem var(--l-display); text-decoration: none !important; }
.l-logo img { border-radius: 8px; }
.l-logo i { font-style: normal; font-weight: 500; color: var(--l-muted); margin-inline-start: 4px; }

.l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 0.85rem 1.4rem; font: 500 1rem/1 var(--l-text); cursor: pointer; border: 1px solid transparent; text-decoration: none !important; transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s; }
.l-btn:hover { transform: none; }
.l-btn.google { background: var(--l-accent); color: var(--l-on); }
.l-btn.google:hover { background: color-mix(in srgb, var(--l-accent) 88%, #000); }
.l-btn .g { width: 22px; height: 22px; padding: 3px; background: #fff; border-radius: 50%; }
.l-btn.ghost { background: transparent; color: var(--l-accent); border-color: var(--l-accent); }
.l-btn.ghost:hover { background: var(--l-soft); }
.l-btn.sm { padding: 0.55rem 1rem; font-size: 0.92rem; }

.l-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; padding: 3.5rem 0 3rem; animation: rise 0.7s var(--ease) both; }
.l-eyebrow { margin: 0 0 0.9rem; color: var(--l-accent); font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.landing h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.04; font-weight: 700; }
.landing h1 span { background: linear-gradient(100deg, var(--l-accent), var(--l-accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--l-muted); margin: 1.4rem 0 2rem; max-width: 34rem; }
.l-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.landing .msg { margin: 1rem 0 0; }
.landing .msg:empty { display: none; }
/* Sign in with an email code: a quiet link under the buttons that opens a two-step form. */
/* Sign in with email code is the main button; Continue with Google is the same size, white, right under it. */
.l-btn.l-wide { min-width: 17.5rem; }
.l-btn .code { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.l-btn .code circle { fill: currentColor; stroke: none; }
.l-btn .g { flex: none; }
.l-btn.l-wide { white-space: nowrap; }
.l-btn.gsi { background: var(--l-card); color: var(--l-ink); border-color: var(--l-line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.l-btn.gsi:hover { background: color-mix(in srgb, var(--l-card) 92%, var(--l-ink)); }
.l-cta.l-alt { margin-top: 0.8rem; }
.l-nav .l-btn { white-space: nowrap; }
.l-end-btns { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
@media (max-width: 560px) { .l-btn.l-wide { min-width: 0; width: 100%; } }
.l-code-open { margin: 1rem 0 0; padding: 0; background: none; border: 0; color: var(--l-accent); font: 500 0.95rem var(--l-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.l-code { margin: 1rem 0 0; padding: 1.1rem 1.2rem; max-width: 30rem; border-radius: 18px; border: 1px solid var(--l-line); background: var(--l-card); box-shadow: var(--l-shadow); }
.l-code label { display: block; margin: 0 0 0.55rem; font-size: 0.92rem; color: var(--l-muted); overflow-wrap: anywhere; }
.l-code label b { color: var(--l-ink); font-weight: 600; }
.l-code-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.l-code-row input { flex: 1 1 12rem; min-width: 0; padding: 0.65rem 0.9rem; border-radius: 12px; border: 1px solid var(--l-line); background: var(--l-bg); color: var(--l-ink); font: 1rem var(--l-text); }
.l-code-row input:focus { outline: 2px solid var(--l-accent); outline-offset: 1px; }
#l-code-digits { font: 600 1.25rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.35em; }
.l-code-links { margin: 0.7rem 0 0; font-size: 0.88rem; color: var(--l-muted); }
.l-code-links button { padding: 0; background: none; border: 0; color: var(--l-accent); font: inherit; cursor: pointer; }
.l-code-note { margin: 0.7rem 0 0; font-size: 0.9rem; color: var(--l-muted); }
.l-code-note:empty { display: none; }
.l-code-note.bad { color: #d70015; }
@media (prefers-color-scheme: dark) { .l-code-note.bad { color: #ff6961; } }
.l-end .l-code-open { margin: 0; }
.l-invite { margin: 1.4rem 0 0; font-size: 0.92rem; color: var(--l-muted); }
.l-invite b { color: var(--l-ink); font-weight: 500; }

.l-phone { position: relative; justify-self: center; width: min(300px, 70vw); aspect-ratio: 9 / 16; border-radius: 34px; padding: 8px; background: #1d1d1f; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--l-line); }
.l-phone::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(closest-side, var(--l-soft), transparent); pointer-events: none; }
.l-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; display: block; background: #000; }
.l-tag { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); white-space: nowrap; background: var(--l-panel); color: var(--l-ink); font-weight: 600; font-size: 0.82rem; padding: 0.5rem 0.9rem; border-radius: 999px; box-shadow: var(--l-shadow); border: 1px solid var(--l-line); }

.l-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--l-line); }
.l-proof span { padding: 1.3rem 1rem; color: var(--l-muted); font-size: 0.92rem; text-align: center; }
.l-proof span + span { border-inline-start: 1px solid var(--l-line); }
.l-proof b { display: block; font: 700 2rem/1.1 var(--l-display); color: var(--l-ink); margin-bottom: 0.2rem; }

.l-sec { padding: 5rem 0 0; }
.landing h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.1; max-width: 40rem; }
.l-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.l-grid article { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 18px; padding: 1.5rem; box-shadow: var(--l-shadow); transition: border-color 0.2s, transform 0.2s var(--ease); }
.l-grid article:hover { transform: scale(1.01); }
.l-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--l-soft); color: var(--l-accent); margin-bottom: 1rem; }
.l-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.l-grid h3, .l-steps h3 { font-size: 1.15rem; font-weight: 700; }
.l-grid p, .l-steps p { margin: 0.45rem 0 0; color: var(--l-muted); line-height: 1.55; }

.l-reel-head { max-width: 40rem; }
.l-reel-head p.muted { margin: 1rem 0 0; font-size: 1.05rem; line-height: 1.6; }
.l-stills { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8rem; margin-top: 2rem; }
.l-stills img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%; border-radius: 16px; border: 1px solid var(--l-line); }
.l-stills img:nth-child(even) { transform: translateY(1.6rem); }

/* Animation styles: one phone-shaped muted loop per look, from our own series (img/styles/). */
.l-style-row { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: space-between; gap: 1.4rem; margin-top: 2.2rem; }
.l-style { margin: 0; }
.l-style-frame { aspect-ratio: 9 / 16; border-radius: 26px; padding: 6px; background: #1d1d1f; box-shadow: var(--l-shadow), 0 0 0 1px var(--l-line); }
.l-style-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: 21px; display: block; background: #000; }
.l-style figcaption { padding: 1rem 0.3rem 0; }
.l-style h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.l-style p { margin: 0.35rem 0 0; color: var(--l-muted); line-height: 1.5; font-size: 0.95rem; }
.l-style .l-style-src { color: var(--l-ink); font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.l-badge { font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--l-soft); color: var(--l-accent); }
.l-badge.live { background: color-mix(in srgb, #34c759 16%, transparent); color: #1f8a3b; }
@media (prefers-color-scheme: dark) { .l-badge.live { color: #5fd37a; } }
.l-also { margin: 1.8rem 0 0; color: var(--l-muted); font-size: 0.95rem; }
.l-also b { color: var(--l-ink); font-weight: 600; }

.l-steps { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
.l-steps li { border-top: 2px solid var(--l-line); padding-top: 1.2rem; }
.l-steps li:first-child { border-top-color: var(--l-accent); }
.l-steps b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--l-accent); color: var(--l-on); font-size: 0.88rem; margin-bottom: 0.8rem; }
.l-chips { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.l-chips li { border: 1px solid var(--l-line); border-radius: 999px; padding: 0.45rem 0.9rem; font-size: 0.9rem; color: var(--l-muted); }

.l-end { margin-top: 5.5rem !important; text-align: center; padding: 3.5rem 1.5rem; border-radius: 28px; border: 1px solid var(--l-line);
  background: var(--l-card); box-shadow: var(--l-shadow); }
.l-end h2 { margin: 0 auto 1.6rem; }
.l-end p { margin: 1.2rem 0 0; }
.l-foot { display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 2.5rem 0 3rem; color: var(--l-muted); font-size: 0.88rem; }
.l-foot a { color: var(--l-muted) !important; }

@media (max-width: 860px) {
  .l-hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 1.5rem; text-align: start; }
  .l-phone { width: min(260px, 68vw); transform: none; }
  .l-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-proof span:nth-child(3) { border-inline-start: 0; }
  .l-proof span:nth-child(n + 3) { border-top: 1px solid var(--l-line); }
  .l-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .l-grid article { padding: 1.1rem; }
  .l-grid p { font-size: 0.9rem; }
  .l-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-style-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 0.9rem; margin-inline: -16px; padding: 0 16px 0.5rem; scrollbar-width: none; }
  .l-style { flex: none; width: 62%; scroll-snap-align: start; }
  .l-stills { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 0.5rem; scrollbar-width: none; }
  .l-stills img { flex: none; width: 42%; scroll-snap-align: start; }
  .l-stills img:nth-child(even) { transform: none; }
  .l-sec { padding-top: 3.8rem; }
  .l-nav .l-logo i { display: none; }
}
@media (max-width: 480px) {
  .l-cta .l-btn { flex: 1 1 100%; }
  .l-steps { grid-template-columns: 1fr; }
  .l-tag { bottom: 0.8rem; font-size: 0.78rem; padding: 0.4rem 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .l-hero { animation: none; }
  .l-btn, .l-grid article { transition: none; }
}

/* Terms of Service and Privacy Policy acceptance after the first sign-in (admin.html #terms-gate, admin.js termsGate). */
body.signed-out:has(#terms-gate:not([hidden])) { background: #f5f5f7; }
@media (prefers-color-scheme: dark) { body.signed-out:has(#terms-gate:not([hidden])) { background: #000; } }
.terms-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.tg-card { width: min(100%, 480px); background: var(--card-hi); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12); }
.tg-card > img { border-radius: 12px; }
.tg-card h1 { font-size: 1.6rem !important; }
.tg-card > p { margin: 0; }
.tg-docs { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.tg-docs li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tg-docs a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.tg-docs li > span { white-space: nowrap; }
.tg-docs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; flex: none; }
.tg-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px 4px; cursor: pointer; line-height: 1.45; }
.tg-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.tg-ok { width: 100%; padding: 0.85rem 1.4rem; }
.tg-card .msg { margin: 0; min-height: 0; }
.tg-card .msg:empty { display: none; }
.tg-who { text-align: center; }
@media (max-width: 480px) { .tg-card { padding: 26px 18px 20px; } .tg-docs li > span { display: none; } }
.tg-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.tg-link:hover { text-decoration: underline; }
