/* Shared look for the landing page and the studio. */
:root {
  color-scheme: light dark;
  --bg: light-dark(#f3f5f9, #0e1014);
  --panel: light-dark(#ffffff, #171a21);
  --panel-2: light-dark(#eef1f6, #20242e);
  --text: light-dark(#0f172a, #e9ebf1);
  --muted: light-dark(#475569, #9ba4b6);
  --line: light-dark(#e2e8f0, #2b303c);
  --accent: #c2410c;            /* white text on it passes 4.5:1 */
  --accent-2: #9a3412;
  --accent-text: light-dark(#c2410c, #ff9d66);
  --accent-soft: light-dark(#fff0e6, #33200f);
  --ok: light-dark(#15803d, #4ade80);
  --ok-soft: light-dark(#dcfce7, #14321f);
  --danger: light-dark(#b91c1c, #fca5a5);
  --danger-soft: light-dark(#fee2e2, #3b1616);
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* our own display rules must never un-hide a hidden element */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Inter, "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .display { font-family: "Baloo 2", Inter, "Noto Sans Devanagari", system-ui, sans-serif; line-height: 1.15; }
a { color: var(--accent-text); }
.muted { color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 42px; padding: 0 1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
button:hover:not(:disabled), .btn:hover { background: var(--panel-2); }
button:active:not(:disabled), .btn:active { transform: translateY(1px); }
button.main, .btn.main { background: var(--accent); border-color: var(--accent); color: #fff; }
button.main:hover:not(:disabled), .btn.main:hover { background: var(--accent-2); border-color: var(--accent-2); }
button.ghost { border-color: transparent; background: transparent; color: var(--accent-text); }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

label { display: block; font-size: .88rem; font-weight: 600; margin: .9rem 0 .3rem; }
textarea, input[type=text], input[type=number], input[type=password], select {
  width: 100%; min-height: 42px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text); font: inherit;
}
textarea { resize: vertical; line-height: 1.5; }
textarea:focus, input:focus, select:focus { border-color: var(--accent-text); }
input[type=file] { max-width: 100%; font: inherit; color: var(--muted); }
input[type=file]::file-selector-button {
  min-height: 42px; margin-right: .7rem; padding: 0 1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); vertical-align: -.2rem; }

.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.brand .logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 1.3rem; }
.brand strong { display: block; line-height: 1; font-family: "Baloo 2", Inter, sans-serif; font-size: 1.5rem; }
.brand small { display: block; color: var(--muted); font-size: .78rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }

/* motion shared by the landing page and the studio */
/* entry animations never start from invisible: a paused animation (background tab) must not hide content */
@keyframes gv-pop { 0% { transform: scale(.85); opacity: .5; } 100% { transform: scale(1); opacity: 1; } }
@keyframes gv-rise { 0% { transform: translateY(14px); } 100% { transform: translateY(0); } }
@keyframes gv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes gv-spin { to { transform: rotate(360deg); } }
@keyframes gv-stripes { 0% { background-position: 0 0; } 100% { background-position: 32px 0; } }
@keyframes gv-shimmer { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes gv-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
@keyframes gv-note { 0% { transform: translateY(0) rotate(-8deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-160px) rotate(14deg); opacity: 0; } }
@keyframes gv-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes gv-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(194 65 12 / .35); } 50% { box-shadow: 0 0 0 10px rgb(194 65 12 / 0); } }
.rise { animation: gv-rise .5s ease both; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
