/* Friendly, bright creator studio: warm sky background, white rounded cards, cheerful pops of colour. */
:root {
  --bg: #f3f6ff; --card: #ffffff; --card2: #f1f3fb; --line: #e2e6f3;
  --text: #1d2340; --muted: #5b6482;
  --neon: #6c4cff; --neon-ink: #ffffff;          /* main brand colour (violet); name kept so templates still work */
  --go: #16b364; --go-ink: #ffffff;                /* approve / start: a happy green */
  --sun: #ffb020; --pink: #ff5fa2; --sky: #38bdf8;
  --warn: #b26b00; --bad: #d93a4a; --r: 22px;
  --shadow: 0 6px 24px rgba(40, 52, 120, .10), 0 1px 3px rgba(40, 52, 120, .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 17px/1.55 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(900px 500px at 10% -10%, #e4e9ff 0%, transparent 60%),
              radial-gradient(700px 420px at 110% 0%, #ffe6f1 0%, transparent 55%),
              radial-gradient(800px 500px at 50% 110%, #fff1dc 0%, transparent 60%), var(--bg);
  background-attachment: fixed; min-height: 100vh; }
a { color: var(--neon); font-weight: 700; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.brand { font: 900 26px/1 "Baloo 2", "Nunito", system-ui, sans-serif; letter-spacing: .02em; text-decoration: none;
  background: linear-gradient(90deg, var(--neon), var(--pink) 60%, var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font: 800 12px/1.2 "Nunito", system-ui, sans-serif; letter-spacing: .14em; color: var(--muted); margin-top: 2px;
  -webkit-text-fill-color: var(--muted); }
nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 800; }
nav a:hover { background: var(--card2); }
nav a[aria-current="page"] { background: var(--neon); color: #fff; box-shadow: 0 4px 14px rgba(108, 76, 255, .35); }

main { padding: 22px 0 44px; }
h1, h2, h3 { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; }
h1 { font-size: 34px; line-height: 1.1; margin: 8px 0 16px; }
h2 { font-size: 23px; margin: 30px 0 12px; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hello { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r); margin-bottom: 18px; color: #fff;
  background: linear-gradient(120deg, var(--neon), var(--pink)); box-shadow: 0 10px 30px rgba(108, 76, 255, .30); }
.hello strong { font: 900 24px/1.1 "Baloo 2", system-ui, sans-serif; display: block; }
.hello span { opacity: .95; }
.hello .face { font-size: 38px; line-height: 1; }

label { display: block; font-weight: 800; margin: 16px 0 6px; }
.hint { display: block; font-weight: 600; color: var(--muted); font-size: 15px; }
input[type=text], input[type=url], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 2px solid var(--line);
  border-radius: 14px; padding: 13px 14px; min-height: 54px; }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { font: inherit; color: var(--muted); width: 100%; padding: 12px 0; }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
input:focus, textarea:focus, select:focus { border-color: var(--neon); outline: none; box-shadow: 0 0 0 4px rgba(108, 76, 255, .18); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 22px;
  border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--text);
  font: 800 17px/1.1 "Nunito", system-ui, sans-serif; text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 var(--line); }
.btn:hover { border-color: var(--neon); color: var(--neon); }
.btn.go { background: var(--go); color: var(--go-ink); border-color: var(--go); box-shadow: 0 4px 0 #0c8a4c, 0 8px 20px rgba(22, 179, 100, .3); }
.btn.go:hover { color: var(--go-ink); filter: brightness(1.05); }
.btn.big { min-height: 66px; font-size: 21px; width: 100%; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btns { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg input { position: absolute; opacity: 0; }
.seg label { margin: 0; padding: 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; font-weight: 800; }
.seg label span { display: block; font-weight: 600; color: var(--muted); font-size: 15px; }
.seg input:checked + label { border-color: var(--neon); background: #f3efff; box-shadow: 0 0 0 3px rgba(108, 76, 255, .18); }
.seg input:focus-visible + label { outline: 3px solid var(--neon); outline-offset: 2px; }

.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; background: var(--card2); color: var(--muted); }
.pill.ok { background: #dcfce9; color: #0b7a45; }
.pill.warn { background: #fff1d6; color: var(--warn); }
.pill.bad { background: #ffe1e5; color: var(--bad); }
.alert { border-radius: 16px; padding: 14px 16px; margin: 12px 0; border: 2px solid; }
.alert.bad { border-color: #ffc2ca; background: #fff3f5; }
.alert.warn { border-color: #ffd98f; background: #fff8e8; }
.alert.ok { border-color: #a8ecc6; background: #effcf4; }

.thumb { aspect-ratio: 1; background: linear-gradient(135deg, #eef0ff, #ffeef6) center/cover; border-radius: 16px; margin-bottom: 10px;
  display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.idea a.cover { text-decoration: none; color: inherit; }
.idea h3 { margin: 0 0 4px; font-size: 20px; }
.player { width: 100%; border-radius: 18px; background: #11131d; max-height: 72vh; box-shadow: var(--shadow); }
.progress { height: 12px; border-radius: 99px; background: var(--card2); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon), var(--pink), var(--sun)); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding: 10px 0 10px 48px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--neon); color: #fff; font-weight: 900; display: grid; place-items: center; }
.copy { display: flex; gap: 8px; align-items: flex-start; }
.copy > :first-child { flex: 1; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; }
.stat { font: 900 38px/1 "Baloo 2", system-ui, sans-serif; color: var(--neon); }
svg.chart { width: 100%; height: auto; }
.versions { display: flex; gap: 8px; flex-wrap: wrap; }
.versions a { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; text-decoration: none; color: var(--text); font-weight: 800; }
.versions a[aria-current="true"] { border-color: var(--neon); background: var(--neon); color: #fff; }
pre.notes { white-space: pre-wrap; font: inherit; color: var(--muted); margin: 0 0 10px; }
footer { padding: 22px 0 32px; color: var(--muted); font-size: 15px; text-align: center; }
@media (max-width: 520px) { h1 { font-size: 28px; } .btns { grid-template-columns: 1fr; } nav a { padding: 8px 11px; } .hello strong { font-size: 21px; } }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .12s, filter .15s, border-color .15s, color .15s; }
  .btn:active { transform: translateY(2px); }
  .card.idea { transition: transform .15s; } .card.idea:hover { transform: translateY(-3px); }
}

.surprise { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); font-weight: 600;
  border: 2px dashed var(--sun); background: linear-gradient(120deg, #fff8e8, #fff0f7); }
.surprise strong { font: 900 22px/1.2 "Baloo 2", system-ui, sans-serif; color: var(--neon); }
.surprise .gift { font-size: 44px; line-height: 1; }
.logo-pick.chosen { border: 3px solid var(--go); }
.logo-pick .player { background: #0c0a14; aspect-ratio: 1; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .surprise .gift { animation: wiggle 1.6s ease-in-out infinite; }
  @keyframes wiggle { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(0); } } }

.card.ask { border: 2px solid #d9cfff; background: linear-gradient(135deg, #ffffff, #f6f2ff); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card.install { border: 2px solid #bfe6ff; background: #f0f9ff; } .card.install .btn { margin-top: 10px; }
/* safe areas when it runs as an installed app on an iPhone with a notch */
header { padding-top: env(safe-area-inset-top); } footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
