/* Studio 3D · Timelapse-3D */
[hidden] { display: none !important; }
:root {
  --bg: #ffffff; --bg-alt: #f8fafc; --surface: #ffffff; --surface-accent: #f1f5f9;
  --ink: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --teal: #0d9488; --teal-d: #0f766e; --teal-soft: #ccfbf1;
  --violet: #7c3aed; --violet-soft: #ede9fe;
  --amber: #d97706; --amber-soft: #fef3c7; --red: #dc2626; --red-soft: #fee2e2; --green: #16a34a; --green-soft: #dcfce7;
  --radius: 12px; --radius-lg: 22px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / .08), 0 2px 4px -2px rgb(0 0 0 / .06);
  --shadow-lg: 0 20px 40px -8px rgb(0 0 0 / .14);
  --font: "DM Sans", system-ui, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: var(--teal); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* Header */
.header { position: sticky; top: 0; z-index: 180; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: .7rem 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.logo__img { width: 2.1rem; height: 2.1rem; }
.logo__brand { color: var(--ink); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.logo__studio { color: var(--teal); font-weight: 700; margin-left: .35rem; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { color: var(--muted); font-weight: 600; text-decoration: none; font-size: .9rem; }
.nav a:not(.btn):hover { color: var(--teal); }
.nav-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 2.6rem; height: 2.6rem; background: var(--teal); border: 0; border-radius: 8px; cursor: pointer; }
.nav-burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.25rem; border-radius: 10px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; border: 1.5px solid transparent; text-decoration: none; transition: .18s; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(13,148,136,.3); }
.btn--primary:hover:not(:disabled) { background: var(--teal-d); transform: translateY(-1px); }
.btn--outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--outline:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover:not(:disabled) { color: var(--teal); background: var(--teal-soft); }
.btn--sm { padding: .45rem .85rem; font-size: .85rem; }
.btn--lg { padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--account { background: var(--surface-accent); color: var(--ink); border-color: var(--line); padding: .5rem .9rem; }
.btn--account:hover { border-color: var(--teal); }
.btn__cost { font-weight: 600; font-size: .78rem; opacity: .85; background: rgba(255,255,255,.2); padding: .1rem .5rem; border-radius: 999px; }
.btn--outline .btn__cost, .btn--ghost .btn__cost { background: var(--surface-accent); }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-accent); color: var(--muted); }
.pill--credits { background: var(--teal-soft); color: var(--teal-d); }
.pill--free { background: var(--green-soft); color: var(--green); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--teal); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; background: radial-gradient(1200px 500px at 85% -10%, var(--teal-soft), transparent 60%), radial-gradient(800px 400px at -10% 110%, var(--violet-soft), transparent 60%); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: .4rem 0 1.2rem; }
.hero .accent { color: var(--teal); }
.lead { font-size: 1.12rem; color: #334155; max-width: 56ch; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 1.4rem; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.3rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero__points i { color: var(--teal); margin-right: .3rem; }
.demo-card { background: #0f172a; color: #e2e8f0; border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow-lg); font-size: .9rem; }
.demo-card__prompt { background: rgba(255,255,255,.08); border-radius: 10px; padding: .7rem .9rem; font-style: italic; }
.demo-card__arrow { text-align: center; color: var(--teal); margin: .4rem 0; }
.demo-card__code { font-family: var(--mono); font-size: .78rem; line-height: 1.45; background: #020617; border-radius: 10px; padding: .9rem; margin: 0; overflow-x: auto; color: #a5f3fc; }
.demo-card__out { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; font-weight: 700; }
.demo-card__out .pill { background: rgba(255,255,255,.1); color: #e2e8f0; }

/* Sections */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--studio { background: linear-gradient(180deg, #fff, var(--bg-alt)); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 2.6rem; }
.section__head--left { text-align: left; margin: 0 0 1.6rem; max-width: none; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.step__n { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; margin-bottom: .9rem; }
.step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* Studio layout */
.studio { position: relative; }
.studio__grid { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 1.5rem; align-items: start; }
.studio__gate { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(248,250,252,.78); backdrop-filter: blur(5px); border-radius: var(--radius-lg); }
.studio.is-locked .studio__grid { min-height: 520px; pointer-events: none; user-select: none; filter: saturate(.6); }
.gate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 2.2rem; text-align: center; max-width: 440px; box-shadow: var(--shadow-lg); }
.gate-card__icon { font-size: 2rem; color: var(--teal); margin-bottom: .8rem; }
.gate-card h3 { margin-bottom: .5rem; }
.gate-card p { color: var(--muted); margin-bottom: 1.2rem; }
.gate-card__actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

.tabs { display: flex; gap: .4rem; background: var(--surface-accent); padding: .3rem; border-radius: 12px; margin-bottom: 1rem; }
.tab { flex: 1; border: 0; background: transparent; padding: .6rem .6rem; border-radius: 9px; font: inherit; font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.tab.is-active { background: #fff; color: var(--teal-d); box-shadow: var(--shadow); }
.tabs--small .tab { font-size: .82rem; padding: .5rem .4rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.panel__title { font-weight: 800; display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.panel__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; align-items: center; }
.label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.hint { color: var(--muted); font-size: .82rem; margin-top: .8rem; }
.input { width: 100%; font: inherit; font-size: .95rem; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.code { font-family: var(--mono); font-size: .78rem; line-height: 1.45; background: #0f172a; color: #e2e8f0; border-color: #1e293b; }
select.input { appearance: auto; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 700; }
.field > span { color: var(--ink); }
.field output { font-weight: 600; color: var(--teal-d); margin-left: .3rem; }
.field--check { justify-content: flex-end; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .85rem; color: var(--muted); cursor: pointer; }
.check input { width: 1rem; height: 1rem; accent-color: var(--teal); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .75rem; font: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.chip:hover { border-color: var(--teal); color: var(--teal); }

.dropzone { position: relative; border: 2px dashed var(--line); border-radius: 14px; min-height: 150px; display: grid; place-items: center; cursor: pointer; background: var(--bg-alt); transition: .15s; overflow: hidden; }
.dropzone:hover, .dropzone.is-over { border-color: var(--teal); background: var(--teal-soft); }
.dropzone__empty { text-align: center; color: var(--muted); font-size: .9rem; font-weight: 600; display: grid; gap: .4rem; padding: 1rem; }
.dropzone__empty i { font-size: 1.6rem; color: var(--teal); }
.dropzone__preview { max-height: 220px; max-width: 100%; object-fit: contain; display: block; padding: .5rem; }
.dropzone__clear { position: absolute; top: .5rem; right: .5rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 0; background: rgba(15,23,42,.75); color: #fff; cursor: pointer; }

/* Params */
.params { display: grid; gap: .7rem; }
.param { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; align-items: center; font-size: .85rem; }
.param__label { font-weight: 700; }
.param__value { font-family: var(--mono); font-size: .8rem; color: var(--teal-d); display: flex; align-items: center; gap: .3rem; }
.param__value input { width: 5.2rem; font: inherit; font-size: .8rem; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: 6px; text-align: right; }
.param input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--teal); }
.refine-history { display: grid; gap: .4rem; margin-bottom: .7rem; max-height: 180px; overflow: auto; }
.refine-history__item { font-size: .82rem; padding: .45rem .7rem; border-radius: 10px; background: var(--surface-accent); color: #334155; display: flex; justify-content: space-between; gap: .6rem; }
.refine-history__item b { color: var(--teal-d); white-space: nowrap; }
.code-wrap { margin-top: .9rem; }

/* Viewer */
.viewer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.viewer { position: relative; height: 460px; background: #f1f5f9; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer__placeholder, .viewer__busy { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--muted); gap: .4rem; z-index: 2; }
.viewer__placeholder i { font-size: 2.6rem; color: #cbd5e1; }
.viewer__busy { background: rgba(241,245,249,.86); backdrop-filter: blur(3px); font-weight: 700; color: var(--ink); }
.viewer__busy small { color: var(--muted); font-weight: 500; max-width: 300px; }
.spinner { width: 2.6rem; height: 2.6rem; border: 4px solid var(--teal-soft); border-top-color: var(--teal); border-radius: 50%; animation: spin .9s linear infinite; margin: 0 auto .4rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer__tools { position: absolute; top: .7rem; right: .7rem; display: flex; gap: .35rem; z-index: 3; }
.tool { width: 2.1rem; height: 2.1rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--muted); cursor: pointer; }
.tool.is-active, .tool:hover { color: var(--teal); border-color: var(--teal); }
.viewer__stats { display: flex; gap: 1.2rem; flex-wrap: wrap; padding: .7rem 1.1rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
.viewer__stats b { color: var(--ink); }
.compile-error { border-top: 1px solid var(--line); background: var(--amber-soft); padding: .9rem 1.1rem; }
.compile-error__head { font-weight: 800; color: var(--amber); display: flex; gap: .5rem; align-items: center; }
.compile-error pre { font-family: var(--mono); font-size: .74rem; max-height: 160px; overflow: auto; background: #fff; border-radius: 8px; padding: .6rem; margin: .6rem 0 0; white-space: pre-wrap; }

/* Result */
.result { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow); }
.result__head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.result__head h3 { font-size: 1.3rem; flex: 1; min-width: 200px; }
.result__head h3[contenteditable=true] { outline: 2px dashed var(--teal); border-radius: 6px; padding: 0 .3rem; }
.result__summary { color: #334155; }
.result__more { margin-top: .7rem; font-size: .9rem; }
.result__more summary { cursor: pointer; font-weight: 700; color: var(--teal-d); }
.result__more p { margin-top: .5rem; white-space: pre-line; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.choice__card { border: 1.5px solid var(--line); border-radius: 16px; padding: 1.1rem; }
.choice__card--print { border-color: var(--teal); background: linear-gradient(180deg, #fff, var(--teal-soft)); }
.choice__card h4 { font-size: 1rem; margin-bottom: .3rem; display: flex; gap: .5rem; align-items: center; }
.choice__card p { color: var(--muted); font-size: .86rem; margin-bottom: .8rem; }
.choice__btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.print-panel { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.print-panel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.print-panel__quote { margin-top: 1rem; background: var(--bg-alt); border-radius: 14px; padding: 1rem 1.1rem; }
.quote-lines { display: grid; gap: .25rem; font-size: .88rem; color: #334155; }
.quote-lines div { display: flex; justify-content: space-between; }
.quote-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .6rem; }
.quote-total b { color: var(--teal-d); }

/* History */
.history { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.history__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.history__head h3 { font-size: 1.05rem; display: flex; gap: .5rem; align-items: center; }
.history__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.hist { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; text-align: left; padding: 0; font: inherit; transition: .15s; }
.hist:hover { border-color: var(--teal); transform: translateY(-1px); box-shadow: var(--shadow); }
.hist.is-current { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.hist__thumb { height: 100px; background: #f1f5f9 center/cover no-repeat; display: grid; place-items: center; color: #cbd5e1; font-size: 1.6rem; }
.hist__body { padding: .5rem .6rem .6rem; }
.hist__title { font-weight: 700; font-size: .83rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist__meta { font-size: .72rem; color: var(--muted); display: flex; justify-content: space-between; }
.hist__del { position: absolute; top: .3rem; right: .3rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 0; background: rgba(15,23,42,.6); color: #fff; cursor: pointer; font-size: .7rem; opacity: 0; transition: .15s; }
.hist:hover .hist__del { opacity: 1; }
.hist__badge { position: absolute; top: .3rem; left: .3rem; font-size: .65rem; font-weight: 800; background: var(--teal); color: #fff; border-radius: 999px; padding: .05rem .45rem; }

/* Packs */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 980px; margin: 0 auto; }
.pack { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem; text-align: center; box-shadow: var(--shadow); display: grid; gap: .5rem; }
.pack--popular { border-color: var(--teal); box-shadow: 0 12px 30px -10px rgba(13,148,136,.35); }
.pack__badge { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: .72rem; font-weight: 800; padding: .25rem .8rem; border-radius: 999px; }
.pack__credits { font-size: 2.1rem; font-weight: 900; letter-spacing: -.03em; }
.pack__credits small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.pack__price { font-size: 1.3rem; font-weight: 800; color: var(--teal-d); }
.price-table { max-width: 820px; margin: 2.4rem auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.price-table > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.2rem; font-size: .92rem; border-bottom: 1px solid var(--line); }
.price-table > div:last-child { border-bottom: 0; }
.price-table span { color: var(--muted); text-align: right; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.2rem; margin-bottom: .7rem; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: .6rem; color: #334155; font-size: .95rem; }

/* Footer */
.footer { background: #0f172a; color: #cbd5e1; padding: 2.5rem 0; margin-top: 2rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.footer .logo__brand { color: #fff; }
.footer .muted { color: #94a3b8; font-size: .88rem; margin-top: .4rem; }
.footer__links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__links a { color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer__links a:hover { color: #fff; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 1rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); }
.modal__card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 1.8rem; width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal__close { position: absolute; top: .8rem; right: .8rem; border: 0; background: var(--surface-accent); width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; color: var(--muted); }
.form { display: grid; gap: .9rem; }
.alert { padding: .7rem .9rem; border-radius: 10px; font-size: .9rem; font-weight: 600; margin-bottom: .9rem; }
.alert--error { background: var(--red-soft); color: var(--red); }
.alert--success { background: var(--green-soft); color: var(--green); }
.account__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.account__email { font-weight: 800; word-break: break-all; }
.account__balance { background: var(--teal-soft); border-radius: 14px; padding: 1rem 1.2rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.account__balance b { font-size: 2rem; color: var(--teal-d); }
.account__packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.2rem; }
.pack-mini { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: .6rem .4rem; font: inherit; cursor: pointer; display: grid; gap: .1rem; font-size: .8rem; color: var(--muted); }
.pack-mini b { color: var(--ink); font-size: 1rem; }
.pack-mini:hover { border-color: var(--teal); }
.modal h4 { font-size: .95rem; margin-bottom: .5rem; }
.ledger { display: grid; gap: .3rem; max-height: 240px; overflow: auto; font-size: .82rem; }
.ledger__row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: .4rem .6rem; border-radius: 8px; background: var(--bg-alt); }
.ledger__row small { color: var(--muted); display: block; }
.ledger__row b.pos { color: var(--green); } .ledger__row b.neg { color: var(--red); }

/* Flash / toast */
.flash { padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; margin-bottom: 1rem; }
.flash--success { background: var(--green-soft); color: var(--green); }
.flash--error { background: var(--red-soft); color: var(--red); }
.flash--info { background: var(--teal-soft); color: var(--teal-d); }
.toast { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; padding: .8rem 1.2rem; border-radius: 12px; font-weight: 600; font-size: .92rem; z-index: 600; box-shadow: var(--shadow-lg); max-width: 92vw; }
.toast--error { background: var(--red); }
.toast--success { background: var(--green); }

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .studio__grid { grid-template-columns: 1fr; }
  .viewer { height: 400px; }
  .print-panel__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__demo { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.5rem 1.4rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav.is-open { display: flex; }
  .nav-burger { display: flex; }
  .packs { grid-template-columns: 1fr; max-width: 420px; }
  .choice { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
@media (max-width: 560px) {
  .steps, .grid2, .print-panel__grid, .account__packs { grid-template-columns: 1fr; }
  .viewer { height: 320px; }
  .price-table > div { flex-direction: column; gap: .1rem; }
  .price-table span { text-align: left; }
}
