:root {
  --bg: #0b0b0d;
  --ink: #ffffff;
  --muted: rgba(255,255,255,.62);
  --card: rgba(255,255,255,.08);
  --card-hover: rgba(255,255,255,.13);
  --line: rgba(255,255,255,.12);
  --sheet: #18181b;
  --badge: #00aff0;
  /* Per-creator values; each page overrides these from its creator.json theme */
  --accent: #00aff0;
  --g1: #5b3fa8;
  --g2: #141420;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.page { max-width: 480px; margin: 0 auto; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* Hero photo with the name over it */
.hero { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: linear-gradient(160deg, var(--g1), var(--g2) 70%, var(--bg)); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,11,13,0) 45%, var(--bg) 98%); }
.hero-text { position: absolute; left: 16px; right: 16px; bottom: 8px; z-index: 1; text-align: center; }
h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.handle { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* Placeholder shown until a photo is added */
.placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-weight: 700; letter-spacing: -.04em; color: rgba(255,255,255,.14);
  user-select: none;
}
.hero .placeholder { font-size: 140px; padding-bottom: 18%; }
.feature .placeholder { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.28); }

.body { padding: 0 16px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.social {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.social:hover { background: var(--card-hover); }
.social svg { width: 20px; height: 20px; }
.bio { margin: 14px 0 0; text-align: center; font-size: 15px; white-space: pre-line; }

.links { display: grid; gap: 12px; margin-top: 22px; }

/* Big photo card (the main link) */
.feature {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 3.2; padding: 0; border: 0; border-radius: 22px; overflow: hidden;
  background: linear-gradient(150deg, var(--g1), var(--g2));
  text-align: left; cursor: pointer; text-decoration: none; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease;
}
.feature:active { transform: scale(.985); }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Crop (set in the editor): the point kept in view, and the zoom around it. */
.hero img, .feature img { object-position: var(--fx, 50%) var(--fy, 50%); transform: scale(var(--z, 1)); transform-origin: var(--fx, 50%) var(--fy, 50%); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,.72)); }
.feature .title { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-size: 20px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
.feature .badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 5px 10px; border-radius: 999px;
  background: var(--badge); color: #fff; font-size: 12px; font-weight: 600;
}

/* Regular buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); color: var(--ink);
  text-decoration: none; font-weight: 600; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--card-hover); }
.btn:active { transform: scale(.985); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.feature:focus-visible, .btn:focus-visible, .social:focus-visible, .mini:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Backup accounts */
.backups { margin-top: 28px; text-align: center; }
.backups h3 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.backups-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mini {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--card); color: var(--ink); text-decoration: none; font-size: 13px;
  -webkit-tap-highlight-color: transparent;
}
.mini:hover { background: var(--card-hover); }
.mini svg { width: 15px; height: 15px; }

/* Bottom sheets: 18+ check and "open in browser" help */
.overlay { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,.6); display: none; align-items: flex-end; justify-content: center; }
.overlay.open { display: flex; }
.sheet {
  width: 100%; max-width: 480px;
  background: var(--sheet); border-radius: 22px 22px 0 0;
  padding: 22px 16px calc(18px + env(safe-area-inset-bottom));
  text-align: center;
}
.sheet h2 { margin: 0 0 6px; font-size: 19px; }
.sheet p { margin: 0 0 18px; color: var(--muted); }
.sheet .btn + .btn { margin-top: 10px; }
.sheet .ghost { background: none; border: 0; color: var(--muted); font-weight: 500; min-height: 46px; }
/* "Open in browser" spotlight. The app's ••• menu sits just above the page's top-right
   corner, so everything aims there: --tx/--ty is that spot, set from JS. */
.spot {
  --tx: calc(100% - 30px); --ty: 0px;
  position: fixed; inset: 0; z-index: 12; display: none;
  background: radial-gradient(circle at var(--tx) var(--ty), rgba(0,0,0,0) 0 44px, rgba(0,0,0,.9) 120px);
}
.spot.open { display: block; animation: fade-in .25s ease-out; }
@keyframes fade-in { from { opacity: 0; } }

.spot-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spot-arrows path.core, .spot-arrows path.glow { fill: none; stroke: var(--accent); stroke-linecap: round; }
.spot-arrows path.core { stroke-width: 4; }
.spot-arrows path.glow { stroke-width: 14; stroke-opacity: .3; }
.spot-arrows path.head { fill: #fff; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }

/* The pointing arm (the other half of the A/B test) */
.arm { filter: drop-shadow(4px 8px 6px rgba(0,0,0,.45)); }
/* The arm stays pointing at the menu, so the instruction sits lower, clear of it */
.spot.hand .spot-callout, .spot.lights .spot-callout, .spot.leaves .spot-callout { top: auto; bottom: calc(150px + env(safe-area-inset-bottom)); }
.spot.hand .spot-callout::before, .spot.lights .spot-callout::before, .spot.leaves .spot-callout::before { display: none; }
/* Runway lights */
.spot-arrows path.chev { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--accent)); }

/* The splash where they all land, then a ring that keeps pulsing on the menu */
.spot-burst { position: absolute; left: var(--tx); top: var(--ty); width: 0; height: 0; pointer-events: none; }
.spark {
  position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%;
  background: var(--c, #fff); box-shadow: 0 0 10px var(--c, #fff);
  animation: spark .75s cubic-bezier(.1,.7,.3,1) forwards;
}
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.ring { position: absolute; width: 24px; height: 24px; margin: -12px; border-radius: 50%; border: 3px solid #fff; animation: ring .7s ease-out forwards; }
@keyframes ring { from { opacity: 1; } to { transform: scale(7); opacity: 0; } }
.pulse { position: absolute; width: 56px; height: 56px; margin: -28px; border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 0 18px var(--accent); animation: pulse 1.3s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* The one bright thing on screen */
.spot-callout {
  position: absolute; top: calc(70px + env(safe-area-inset-top)); right: 12px;
  width: min(330px, calc(100% - 24px));
  padding: 16px 18px; border-radius: 26px 6px 26px 6px; /* a leaf; the sharp corner sits under the pointer */
  background: #fff; color: #111;
  box-shadow: 0 0 0 4px var(--accent), 0 0 40px var(--accent), 0 12px 40px rgba(0,0,0,.6);
  transform-origin: calc(100% - 22px) -24px;
  opacity: 0; transform: scale(.3);
}
.spot-callout::before { /* little pointer up at the menu */
  content: ""; position: absolute; top: -11px; right: 14px;
  border: 12px solid transparent; border-top: 0; border-bottom-color: #fff;
}
.spot-callout h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.35; }
.spot-callout .key { display: inline-block; padding: 0 8px; border-radius: 9px 2px 9px 2px; background: #111; color: #fff; letter-spacing: .06em; }
.spot-callout p { margin: 0; color: #555; font-size: 14px; }
.spot.landed .spot-callout { animation: pop .5s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }

.spot-actions {
  position: absolute; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom));
  max-width: 448px; margin: 0 auto; display: grid; gap: 8px; opacity: 0;
}
.spot-actions .btn { min-height: 50px; }
.spot-actions .ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 600; }
.spot.landed .spot-actions { animation: fade-up .35s .3s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .spot-callout, .spot-actions { opacity: 1; transform: none; }
  .pulse { animation: none; }
}

@keyframes bob { 50% { transform: translateY(-8px); } }

/* "Open in browser" banner */
.banner {
  position: sticky; top: 0; z-index: 9;
  display: flex; align-items: center; gap: 4px;
  padding-top: env(safe-area-inset-top);
  background: var(--accent); color: #fff; font-size: 14px; line-height: 1.3;
}
.banner-text { flex: 1; padding: 12px 0; }
.banner-text b { white-space: nowrap; }
.banner-x { background: none; border: 0; color: #fff; cursor: pointer; padding: 12px 10px 12px 14px; font-size: 15px; opacity: .8; -webkit-tap-highlight-color: transparent; }
.banner-arrow { padding: 0 16px 0 6px; font-size: 22px; font-weight: 700; animation: bob .9s ease-in-out infinite; }

footer { margin-top: 32px; text-align: center; color: var(--muted); font-size: 12px; }
footer a { color: inherit; }

/* Front page, privacy and not-found pages */
.roster-page { max-width: 480px; margin: 0 auto; padding: calc(56px + env(safe-area-inset-top)) 16px 40px; }
.roster-page h1 { text-align: center; font-size: 26px; }
.roster-page .sub { text-align: center; color: var(--muted); margin: 6px 0 28px; }
.home h1 { font-size: 40px; letter-spacing: -.02em; margin-bottom: 0; }
.points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.points li { padding: 14px 16px; border-radius: 18px; background: var(--card); color: var(--muted); }
.points b { display: block; color: var(--ink); margin-bottom: 2px; }
.actions { text-align: center; }
.signin { display: inline-block; padding: 12px 28px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.signin:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.debug {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 20;
  padding: 10px 12px; border-radius: 10px;
  background: #000; color: #9f9; font: 12px/1.4 ui-monospace, Menlo, monospace;
  white-space: pre-wrap; word-break: break-all; pointer-events: none;
}

/* Privacy page */
.privacy { max-width: 620px; text-align: left; }
.privacy h2 { font-size: 16px; margin: 22px 0 6px; }
.privacy p { color: var(--muted); line-height: 1.55; margin: 0; }
.privacy a { color: inherit; }
.privacy p + p { margin-top: 10px; }
.privacy .visit { padding: 10px 12px; border-radius: 12px; background: var(--card); color: var(--ink); }
.report-form { display: grid; gap: 10px; margin-top: 18px; }
.report-choice { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; }
.report-details { display: grid; gap: 6px; color: var(--muted); margin-top: 6px; }
.report-details textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.report-form button { font: inherit; font-weight: 600; font-size: 16px; padding: 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); cursor: pointer; margin-top: 6px; }
.report-err { color: #ff8a80 !important; }
.privacy .visit code { font: 600 15px ui-monospace, Menlo, monospace; letter-spacing: .04em; user-select: all; }

/* ---------- Beta page options ---------- */
/* Announcement bar at the top of the page */
.announce { padding: 10px 16px; background: var(--accent); color: #fff; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.35; }

/* Button shape and font */
body.btn-pill .links .btn { border-radius: 999px; }
body.btn-pill .links .feature { border-radius: 32px; }
body.btn-square .links .btn { border-radius: 6px; }
body.btn-leaf .links .btn { border-radius: 20px 5px 20px 5px; }
body.btn-leaf .links .feature { border-radius: 30px 8px 30px 8px; }
body.btn-square .links .feature { border-radius: 8px; }
body.font-serif { font-family: ui-serif, "New York", Georgia, "Times New Roman", serif; }
body.font-rounded { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", -apple-system, system-ui, sans-serif; }
body.font-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: -.01em; }

/* Little extras on a link: a discount code and a countdown */
.links .btn { flex-wrap: wrap; row-gap: 4px; padding-top: 8px; padding-bottom: 8px; }
.code, .countdown, .sched-note {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: var(--ink);
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.countdown { background: #ff4d6d; color: #fff; }
.feature .code, .feature .countdown, .feature .sched-note { position: absolute; z-index: 1; right: 12px; top: 12px; }
.feature .code ~ .countdown { top: 44px; }
.feature .sched-note { top: auto; bottom: 52px; }
.scheduled { opacity: .5; outline: 2px dashed rgba(255,255,255,.45); outline-offset: 2px; }

/* Attention effects */
.fx-pulse { animation: fx-pulse 2s ease-out infinite; }
@keyframes fx-pulse { 0% { box-shadow: 0 0 0 0 var(--accent); } 70% { box-shadow: 0 0 0 12px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
.btn.fx-shine { background-image: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.26) 50%, transparent 62%); background-size: 260% 100%; animation: fx-shine 3s ease-in-out infinite; }
.feature.fx-shine::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.3) 50%, transparent 62%); background-size: 260% 100%;
  animation: fx-shine 3s ease-in-out infinite;
}
@keyframes fx-shine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
.fx-wiggle { animation: fx-wiggle 3.5s ease-in-out infinite; }
@keyframes fx-wiggle { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-2deg); } 90% { transform: rotate(2deg); } 94% { transform: rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .fx-pulse, .fx-wiggle, .btn.fx-shine, .feature.fx-shine::before { animation: none; } }

/* Small note at the bottom, e.g. "Code copied" */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 30;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px;
  background: #fff; color: #111; font-size: 14px; font-weight: 600; text-align: center;
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Free plan: a small leaf-shaped profile picture instead of the big photo header */
body.basic .hero { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: calc(44px + env(safe-area-inset-top)) 16px 4px; background: none; overflow: visible; }
body.basic .hero::after { display: none; }
body.basic .hero > img, body.basic .hero > .placeholder {
  position: relative; inset: auto; width: 116px; height: 116px; flex: none;
  border-radius: 58px 6px; overflow: hidden; object-fit: cover; transform: none;
  background: linear-gradient(150deg, var(--g1), var(--g2));
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
body.basic .hero .placeholder { display: grid; place-items: center; padding: 0; font-size: 40px; color: rgba(255,255,255,.55); }
body.basic .hero-text { position: static; }

/* Bubbles are leaf-shaped (round-sharp-round-sharp corners), like the Leavr mark */
.feature .badge, .code, .countdown, .sched-note { border-radius: 12px 3px 12px 3px; }
.mini, .signin, .toast { border-radius: 16px 4px 16px 4px; }
