/* Webshow Studio · Pilotti
   Aligned with webshow.fi: Funnel Display, sentence-case headings (300–500),
   one purple accent word, 16px glow cards, pill controls, dark + white sections.
   Palette: ink #0a0b1b · ghost #f4f8ff · white #fff · purple #6b7fff · orange #fd4415 (start CTA + alerts only) */

:root {
  --ink: #0a0b1b;
  --ghost: #f4f8ff;
  --blue: #6b7fff;
  --orange: #fd4415;
  --font: 'Funnel Display', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --card-dark-bg: rgba(4, 12, 25, .92);
  --card-dark-bd: rgba(128, 170, 226, .22);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--ghost); font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.label { font-size: 12.8px; font-weight: 400; letter-spacing: normal; text-transform: uppercase; }
.muted { color: var(--muted, #9aa0b8); }
.accent { color: var(--blue); }

/* ---------- Buttons (pills, as on webshow.fi) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: 32px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s ease, background-color .6s ease, color .6s ease, border-color .6s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translate(4px, -4px); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { box-shadow: 0 18px 44px -14px rgba(253, 68, 21, .7); }
.btn-purple { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.btn-purple:hover { box-shadow: 0 18px 44px -14px rgba(107, 127, 255, .75); }
.btn-on { background: var(--on-bg, var(--ghost)); color: var(--on-fg, var(--ink)); }
.btn-on:hover { box-shadow: 0 18px 44px -14px rgba(107, 127, 255, .6); }
.btn-ghost { background: transparent; color: var(--fg, var(--ghost)); border-color: var(--line2, rgba(244, 248, 255, .3)); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn[disabled] { pointer-events: none; }

/* ---------- Cards (webshow.fi features-card) ---------- */
.card-glow {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-bd);
  box-shadow: var(--card-shadow);
}
.card-glow::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: var(--card-light);
}
.card-glow > * { position: relative; }

/* ---------- Stage ---------- */
.stage {
  position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--bg); color: var(--fg);
  transition: background-color .9s cubic-bezier(.65, 0, .35, 1), color .6s ease;
}
.stage * { transition: color .6s ease, background-color .6s ease, border-color .6s ease, outline-color .6s ease, transform .5s var(--ease), box-shadow .45s ease, opacity .45s ease; }
.layer { position: relative; z-index: 2; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { 0% { transform: translate3d(-2%, 0, 0) scale(1); } 100% { transform: translate3d(2%, -3%, 0) scale(1.08); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes inkIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes iconIn { from { opacity: 0; transform: rotate(-20deg) scale(.6); } to { opacity: 1; transform: none; } }

.act > * { animation: rise .9s var(--ease) both; }
.act > *:nth-child(2) { animation-delay: .08s; }
.act > *:nth-child(3) { animation-delay: .16s; }
.act > *:nth-child(4) { animation-delay: .24s; }
.act > *:nth-child(5) { animation-delay: .32s; }
.act > *:nth-child(6) { animation-delay: .40s; }

.hero-glow { position: absolute; left: -10%; right: -10%; top: 0; height: 1100px; pointer-events: none; z-index: 0; background: radial-gradient(68% 85% at 50% -12%, rgba(93, 79, 255, .88) 0%, rgba(77, 68, 216, .76) 20%, rgba(49, 45, 143, .55) 42%, rgba(28, 29, 76, .28) 64%, rgba(9, 10, 27, 0) 90%); animation: fadeIn 1.6s ease both, drift 16s ease-in-out infinite alternate; transform-origin: 50% 0; }
.hero-dots { position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: radial-gradient(circle, rgba(130, 175, 255, .22) 1px, rgba(0, 0, 0, 0) 1.5px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 85%); mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 85%); animation: fadeIn 2.4s ease both; }

/* Masthead */
.masthead { display: flex; flex-direction: column; gap: 18px; padding: 20px 56px 0; }
.masthead-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 42px; height: auto; animation: iconIn 1s var(--ease) both; }
.logo:hover img { transform: rotate(-10deg) scale(1.08); }
.logo .word { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo .sub { font-size: 12.8px; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line2); }
.live { display: flex; align-items: center; gap: 10px; font-size: 12.8px; text-transform: uppercase; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 999px; background: var(--orange); animation: pulse 1.8s ease-in-out infinite; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 32px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 400; text-transform: uppercase; }
.tab span:first-child { opacity: .6; }
.tab:hover { transform: translateY(-2px); }
.tab.done { color: var(--fg); border-color: var(--line2); }
.tab[aria-current="step"] { background: var(--blue); color: var(--ink); border-color: var(--blue); }

.body { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; padding: 56px 56px 96px; width: 100%; max-width: 1560px; margin: 0 auto; }
.main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }

/* Act typography (webshow.fi h2: 300, tight, sentence case, one purple accent) */
.eyebrow { font-size: 12.8px; font-weight: 400; text-transform: uppercase; color: var(--muted); }
.h2 { margin: 0; font-size: clamp(36px, 3.8vw, 56px); font-weight: 300; line-height: 1.05; letter-spacing: -.03em; max-width: 900px; }
.head { display: flex; flex-direction: column; gap: 14px; }
.group { display: flex; flex-direction: column; gap: 14px; }
.group > .label { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 20px; border: 1px solid var(--line2); border-radius: 32px; background: transparent; color: var(--fg); font-size: 15px; font-weight: 400; letter-spacing: -.01em; text-transform: uppercase; }
.chip:hover { transform: translateY(-2px); border-color: var(--blue); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.lead { margin: 0; font-size: 17px; color: var(--muted); max-width: 600px; }

.field-big { min-height: 64px; padding: 0 24px; border: 1px solid var(--line2); border-radius: 32px; background: transparent; color: var(--fg); font-size: 28px; font-weight: 300; letter-spacing: -.02em; width: 100%; max-width: 720px; }
.field-big:focus { border-color: var(--blue); outline: none; }
.field-big::placeholder { color: var(--fg); opacity: .35; }

/* Cover (centered, like the webshow.fi hero) */
.cover { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; padding-top: 32px; }
.cover h1 { margin: 0; font-size: clamp(48px, 6vw, 80px); font-weight: 500; line-height: 1; letter-spacing: -.025em; max-width: 980px; }
.cover-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.tag { padding: 8px 14px; border: 1px solid var(--line2); border-radius: 32px; font-size: 12.8px; text-transform: uppercase; color: var(--muted); }
.cover-media { width: min(720px, 100%); aspect-ratio: 16 / 10; margin-top: 16px; padding: 0; }
.cover-media img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn 1.4s ease both; }

/* Product strip */
.product { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; padding: 16px; }
.product .thumb { width: 200px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .info { flex: 1 1 260px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px; }
.product .info strong { font-size: 30px; font-weight: 400; letter-spacing: -.02em; }

/* Goal cards */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gcard { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 170px; padding: 28px; color: var(--fg); text-align: left; }
.gcard .n { font-size: 12.8px; text-transform: uppercase; color: var(--muted); }
.gcard .t { font-size: 32px; font-weight: 400; letter-spacing: -.025em; line-height: 1.05; }
.gcard .d { font-size: 15px; color: var(--muted); }
.gcard:hover { transform: translateY(-4px); }
.gcard:hover .t { color: var(--blue); }
.gcard[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--card-shadow); }
.gcard[aria-pressed="true"] .t { color: var(--blue); }

/* Promises */
.prows { display: flex; flex-direction: column; gap: 12px; }
.prow { display: flex; align-items: center; gap: 24px; min-height: 104px; padding: 22px 28px; color: var(--muted); text-align: left; }
.prow .n { flex: 0 0 32px; font-size: 12.8px; }
.prow .t { flex: 1 1 auto; font-size: clamp(26px, 2.8vw, 40px); font-weight: 300; letter-spacing: -.025em; line-height: 1.1; }
.prow .d { flex: 0 0 12px; height: 12px; border-radius: 999px; border: 1px solid var(--line2); }
.prow:hover .t { transform: translateX(8px); color: var(--fg); }
.prow[aria-pressed="true"] { color: var(--fg); border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--card-shadow); }
.prow[aria-pressed="true"] .t { font-weight: 400; }
.prow[aria-pressed="true"] .n { color: var(--blue); }
.prow[aria-pressed="true"] .d { background: var(--blue); border-color: var(--blue); }

/* Brand */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.sw { display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 14px; color: var(--fg); text-align: left; }
.sw .c { display: block; height: 96px; border-radius: 10px; }
.sw:hover { transform: translateY(-4px); }
.sw .r { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 0 4px; }
.sw .k { font-size: 12.8px; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.sw[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--card-shadow); }
.sw[aria-pressed="true"] .k { color: var(--blue); }
.empty-note { padding: 28px; border: 1px dashed var(--line2); border-radius: 16px; color: var(--muted); font-size: 15px; }
.fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fonts > div { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.fonts .aa { font-size: 56px; line-height: 1; }
.styles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sty { display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 16px; color: var(--fg); text-align: left; }
.sty .p { border-radius: 10px; overflow: hidden; }
.sty:hover { transform: translateY(-6px); }
.sty[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--card-shadow); }
.sty .row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px; }
.sty .row b { font-size: 20px; font-weight: 400; }
.sty .row span { font-size: 12.8px; text-transform: uppercase; color: var(--muted); }
.sty[aria-pressed="true"] .row span { color: var(--blue); }

/* Episodes */
.ep { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 100px; padding: 18px 22px; }
.ep.on { border-color: var(--blue); }
.ep .t { font-size: 19px; font-weight: 400; }
.ep:hover .t { transform: translateX(4px); }
.ep .d { font-size: 14px; color: var(--muted); }
.rec { padding: 3px 10px; border-radius: 32px; background: var(--blue); color: var(--ink); font-size: 11px; font-weight: 500; text-transform: uppercase; }

/* Premiere */
.assets { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; }
.asset { display: flex; flex-direction: column; gap: 10px; }
.asset > div:first-child { border-radius: 12px; overflow: hidden; }
.asset:hover { transform: translateY(-8px); }
.showpage { border-radius: 16px; overflow: hidden; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow .node { padding: 9px 16px; border: 1px solid var(--line2); border-radius: 32px; font-size: 13px; text-transform: uppercase; }
.flow .node:hover { transform: translateY(-3px); }
.flow .node.last { background: var(--blue); border-color: var(--blue); color: var(--ink); }

/* Close (centered, glow) */
.close { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; padding-top: 24px; }
.close-h { margin: 0; font-size: clamp(48px, 6vw, 88px); font-weight: 500; line-height: 1; letter-spacing: -.03em; max-width: 1000px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 1100px; text-align: left; }
.grid3 > div { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.grid3 > div:hover { transform: translateY(-4px); }
.grid3 b { font-size: 22px; font-weight: 400; }

/* Nav */
.navbar { display: flex; flex-direction: column; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.note { display: flex; gap: 14px; font-size: 14px; color: var(--muted); }
.note b { flex: 0 0 auto; font-size: 12.8px; font-weight: 400; text-transform: uppercase; color: var(--blue); }
.navrow { display: flex; justify-content: space-between; gap: 12px; }

/* Show frame: exploded view, the one signature element */
.frame { flex: 1 1 360px; max-width: 440px; display: flex; flex-direction: column; gap: 16px; padding: 26px 24px; }
.frame .top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); }
.frame .title { font-size: 30px; font-weight: 500; letter-spacing: -.025em; line-height: 1.05; overflow-wrap: anywhere; }
.iso { --gap: 30px; position: relative; height: 290px; }
.iso:hover { --gap: 46px; }
.iso.built { --gap: 20px; }
.iso.built:hover { --gap: 40px; }
.iso-stack { position: absolute; left: 50%; top: 68%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-45deg); }
.plane { position: absolute; left: -80px; top: -80px; width: 160px; height: 160px; border: 1px dashed var(--line2); border-radius: 18px; overflow: hidden; animation: fadeIn .8s ease both; }
.plane .n { position: absolute; left: 12px; top: 8px; font-size: 11px; color: var(--muted); }
.plane .l1, .plane .l2 { position: absolute; border: 1px solid var(--fg); }
.plane .l1 { inset: 26px; opacity: .45; border-radius: 12px; } .plane .l2 { inset: 52px; opacity: .25; border-radius: 8px; }
.plane.filled { border-style: solid; border-color: var(--fg); background: var(--plane-fill); }
.plane.filled .n { color: var(--fg); }
.plane.current { border-style: solid; border-color: var(--blue); background: rgba(107, 127, 255, .28); box-shadow: 0 0 40px rgba(107, 127, 255, .45); }
.plane.current .n { color: var(--blue); }
.plane.current .l1, .plane.current .l2 { border-color: var(--blue); }
.plane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.bill { display: flex; flex-direction: column; }
.bill > div { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.bill .n { flex: 0 0 22px; font-size: 11px; padding-top: 3px; color: var(--muted); }
.bill .k { flex: 0 0 76px; font-size: 11px; text-transform: uppercase; padding-top: 3px; color: var(--muted); }
.bill .v { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.35; animation: inkIn .7s var(--ease) both; }
.bill .e { flex: 1 1 auto; font-size: 14px; color: var(--muted); }
.bill .cur .n, .bill .cur .k { color: var(--blue); }
.frame-colors { display: flex; align-items: center; gap: 6px; }
.frame-colors span { width: 20px; height: 20px; border-radius: 999px; outline: 1px solid var(--line2); animation: inkIn .7s var(--ease) both; }
.frame-logo { max-height: 36px; width: auto; }

/* ---------- Ohjaamo (control panel) ---------- */
.ohj-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 50; }
.ohj { position: fixed; top: 0; left: 0; bottom: 0; width: min(440px, 100vw); z-index: 60; overflow-y: auto; background: #0d0e20; color: var(--ghost); border-right: 1px solid var(--card-dark-bd); box-shadow: 40px 0 80px -30px rgba(0, 0, 0, .6); transform: translateX(-105%); transition: transform .55s var(--ease); }
.ohj.open { transform: none; }
.ohj.page { position: static; width: 100%; max-width: 760px; margin: 0 auto; transform: none; box-shadow: none; border: 0; min-height: 100vh; }
.ohj-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #0d0e20; border-bottom: 1px solid rgba(244, 248, 255, .12); }
.ohj-head .save { font-size: 12px; text-transform: uppercase; color: #9aa0b8; }
.ohj-head .save.err { color: var(--orange); }
.ohj section { padding: 22px 20px; border-bottom: 1px solid rgba(244, 248, 255, .08); display: flex; flex-direction: column; gap: 14px; }
.ohj h3 { margin: 0; font-size: 12.8px; font-weight: 400; text-transform: uppercase; color: var(--blue); }
.f { display: flex; flex-direction: column; gap: 6px; }
.f label, .f .lbl { font-size: 12px; text-transform: uppercase; color: #9aa0b8; }
.inp { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid rgba(244, 248, 255, .2); border-radius: 12px; background: rgba(244, 248, 255, .04); color: var(--ghost); font-size: 15px; }
.inp:focus { border-color: var(--blue); outline: none; }
.inp.pill-field { min-height: 46px; padding: 0 22px; border-radius: 32px; }
textarea.inp { min-height: 64px; resize: vertical; line-height: 1.35; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9aa0b8 50%), linear-gradient(135deg, #9aa0b8 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.inp option { background: #0d0e20; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 16px; border: 1px dashed rgba(244, 248, 255, .35); border-radius: 16px; text-align: center; color: #c3c8da; font-size: 14px; cursor: pointer; }
.drop.over { border-color: var(--blue); background: rgba(107, 127, 255, .08); }
.drop input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.thumbs .t { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; outline: 1px solid rgba(244, 248, 255, .2); }
.thumbs .t.hero { outline: 2px solid var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .acts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 1px; opacity: 0; }
.thumbs .t:hover .acts, .thumbs .t:focus-within .acts { opacity: 1; }
.thumbs .acts button { flex: 1; min-height: 32px; border: 0; background: rgba(10, 11, 27, .85); color: var(--ghost); font-size: 11px; text-transform: uppercase; }
.colorrow { display: grid; grid-template-columns: 44px 1fr 1fr 44px 44px; gap: 6px; align-items: center; }
.colorrow input[type=color] { width: 44px; height: 44px; padding: 0; border: 1px solid rgba(244, 248, 255, .2); border-radius: 12px; background: none; overflow: hidden; }
.iconbtn { width: 44px; height: 44px; border: 1px solid rgba(244, 248, 255, .2); border-radius: 32px; background: transparent; color: var(--ghost); font-size: 14px; }
.iconbtn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.suggest button { width: 32px; height: 32px; border: 1px solid rgba(244, 248, 255, .3); border-radius: 32px; }
.hint { font-size: 12px; color: #9aa0b8; }
.uploading { font-size: 12px; color: var(--blue); }

/* ---------- Studio (list) ---------- */
.bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.interactive-dots-grid { pointer-events: none; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.studio { min-height: 100vh; background: transparent; color: var(--ghost); position: relative; z-index: 1; overflow: hidden;
  --fg: #f4f8ff; --muted: #9aa0b8; --line: rgba(244,248,255,.12); --line2: rgba(244,248,255,.3);
  --card-bg: var(--card-dark-bg); --card-bd: var(--card-dark-bd);
  --card-shadow: inset 0 1px 0 rgba(192, 216, 249, .09), 0 30px 60px -30px rgba(0, 0, 0, .6);
  --card-light: radial-gradient(circle at 50% 120%, rgba(182, 218, 249, .35), rgba(81, 132, 225, .18) 18%, rgba(34, 73, 161, .08) 34%, rgba(0, 0, 0, 0) 55%); }
.studio .wrap { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 24px 48px 96px; }
.studio header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.studio .intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin: 72px 0 40px; }
.studio h1 { margin: 0; font-size: clamp(44px, 6vw, 80px); font-weight: 500; line-height: 1; letter-spacing: -.025em; }
.newform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; max-width: 900px; margin: 0 auto 56px; padding: 20px; }
.newform .f { flex: 1 1 220px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ghost); }
.card:hover { transform: translateY(-6px); }
.card:hover .media img { transform: scale(1.04); }
.card:hover .go { transform: translate(4px, -4px); }
.card .media { aspect-ratio: 16 / 10; overflow: hidden; margin: 10px 10px 0; border-radius: 10px; background: #111225; display: flex; align-items: center; justify-content: center; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card .media .ph { font-size: 64px; font-weight: 300; letter-spacing: -.04em; color: rgba(244, 248, 255, .14); }
.card .meta { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 22px; }
.card .meta .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card .meta b { font-size: 24px; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.card .go { transition: transform .45s var(--ease); }
.card { transition: transform .45s var(--ease); }
.pill { padding: 4px 10px; border-radius: 32px; font-size: 11px; text-transform: uppercase; border: 1px solid rgba(244, 248, 255, .3); }
.pill.Palaveri { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.pill.Lähetetty { background: var(--ghost); border-color: var(--ghost); color: var(--ink); }
.pill.Tuotannossa { background: transparent; border-color: var(--blue); color: var(--blue); }
.dots { display: flex; gap: 4px; }
.dots span { width: 12px; height: 12px; border-radius: 999px; outline: 1px solid rgba(244, 248, 255, .2); }
.login { max-width: 420px; margin: 16vh auto 0; display: flex; flex-direction: column; gap: 16px; }
.setup { margin-top: 32px; padding: 20px; border: 1px solid rgba(253, 68, 21, .5); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.setup code { font-size: 13px; color: var(--orange); }
.err { color: var(--orange); font-size: 14px; }

@media (max-width: 900px) {
  .masthead, .body { padding-left: 20px; padding-right: 20px; }
  .grid2, .grid3, .styles3, .fonts { grid-template-columns: 1fr; }
  .frame { max-width: none; }
  .studio .wrap { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
