:root {
  --bg: #f7f5f0;
  --bg-2: #efeae1;
  --panel: #fffcf8;
  --line: #e4ddd2;
  --text: #1c1916;
  --muted: #6b645c;
  --accent: #1f3a2e;
  --accent-2: #2f5a46;
  --ok: #2f6b4f;
  --danger: #a33b2b;
  --hover: #f1ebe2;
  --input: #fff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 25, 22, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.mark img {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    padding: 0.4rem 0.65rem;
    font: inherit;
    border-radius: 8px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 3.6rem;
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 0.5rem 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 1rem;
  }

  .nav-cta {
    margin: 0.4rem 0.75rem;
    text-align: center;
  }
}

.hero {
  padding: 4.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.proof {
  margin: -0.6rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.phone {
  width: min(100%, 220px);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  border: 9px solid #1c1916;
  background: #1c1916;
  box-shadow: 0 22px 50px rgba(28, 25, 22, 0.18);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: #2a2622;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-stage {
  position: relative;
  height: 100%;
  background:
    radial-gradient(circle at 50% 38%, #f3e6d4 0%, transparent 42%),
    linear-gradient(180deg, #3f5d4c 0%, #1f3a2e 55%, #172820 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem 0.9rem 1rem;
  color: #fffcf8;
}

.phone-product {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 78px;
  height: 110px;
  transform: translateX(-50%);
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #fff8ef, #e7d3b8);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.phone-product::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 28px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #c4b49a;
}

.phone-copy span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 0.25rem;
}

.phone-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 600;
}

.phone-end {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  opacity: 0.85;
}

.phone-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.kicker {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.08;
}

.lede {
  margin: 1.1rem 0 1.6rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.82rem 1.2rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card p:last-child {
  margin: 0;
}

.hero-card strong {
  color: var(--text);
  font-weight: 600;
}

.section {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.7rem;
}

.steps,
.grid-3,
.plans {
  display: grid;
  gap: 1rem;
}

.steps,
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.3rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tile h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.tile p,
.tile li {
  color: var(--muted);
  margin: 0;
}

.tile ol {
  margin: 0;
  padding-left: 1.1rem;
}

.band {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.cta-band p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.page-head {
  padding: 2.8rem 0 1.5rem;
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-head p {
  max-width: 38rem;
  color: var(--muted);
}

.plans {
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 2rem;
}

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(31, 58, 46, 0.12);
}

.page-pricing {
  font-family: var(--sans);
}

.page-pricing h1,
.page-pricing h2,
.page-pricing .amount,
.page-pricing .mark {
  font-family: var(--serif);
}

.page-pricing .plan h2 {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.page-pricing .amount {
  font-weight: 600;
  letter-spacing: -0.04em;
}

.page-pricing .plan li,
.page-pricing .faq,
.page-pricing .page-head p,
.page-pricing .lede {
  font-size: 1.02rem;
  line-height: 1.55;
}

.plan h2 {
  margin: 0;
  font-size: 1.35rem;
}

.plan .amount {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 0.7rem 0 0.2rem;
}

.plan .period {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.plan ul {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
}

.plan li + li {
  margin-top: 0.4rem;
}

.plan > a {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.faq {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 3rem;
}

.page-studio .studio-faq {
  max-width: 42rem;
  padding-top: 2.5rem;
  padding-bottom: 0;
}

.faq a {
  color: inherit;
}

.faq details {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.account {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.5rem;
  padding-bottom: 3.5rem;
}

.side {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.6rem;
  height: fit-content;
  border-radius: var(--radius);
}

.side a {
  display: block;
  text-decoration: none;
  padding: 0.7rem 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.side a.is-active,
.side a:hover {
  color: var(--text);
  background: var(--hover);
}

.profile {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.35rem;
}

.avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #e8efe9;
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-family: var(--serif);
}

.profile small {
  display: block;
  color: var(--muted);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.account-guest {
  max-width: 36rem;
  margin-bottom: 3.5rem;
}

.account-guest .btn {
  margin-top: 0.35rem;
}

.is-hidden {
  display: none !important;
}

.account-main {
  display: grid;
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}

.fields {
  display: grid;
  gap: 0.85rem;
}

label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

input,
select {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.8rem 0.9rem;
  font: inherit;
  border-radius: 10px;
}

input:focus,
select:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}

.row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.row input {
  flex: 1 1 16rem;
  width: auto;
  min-width: 0;
}

.usage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.stat {
  border: 1px solid var(--line);
  padding: 0.9rem;
  border-radius: 12px;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  border: 1px solid var(--ok);
  color: var(--ok);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.6rem;
}

.hint,
.status {
  color: var(--muted);
  font-size: 0.9rem;
}

.status[data-kind="error"] {
  color: var(--danger);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.35rem;
  border-radius: var(--radius);
  position: relative;
}

.panel.is-locked {
  opacity: 0.78;
}

.welcome-banner[hidden] {
  display: none !important;
}

.welcome-banner {
  margin: 0 0 1.15rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.welcome-banner p {
  margin: 0;
  color: var(--text);
}

.sample-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
}

.sample-row button {
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--text);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.studio-gate {
  display: none;
  margin: 0 0 1.25rem;
}

.studio-gate.is-visible {
  display: block;
}

.studio-gate .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.studio-gate h2 {
  text-transform: none;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  color: var(--text);
}

#result {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.price {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.meta {
  white-space: pre-wrap;
  line-height: 1.45;
  margin: 0;
}

.beat {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.beat:last-child {
  margin-bottom: 0;
}

.images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.video-card video {
  display: block;
  width: min(100%, 22rem);
  margin: 0.35rem 0 0.75rem;
  background: #1c1916;
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.video-card video[data-aspect="1:1"] {
  aspect-ratio: 1 / 1;
  width: min(100%, 26rem);
}

.video-card video[data-aspect="16:9"] {
  aspect-ratio: 16 / 9;
  width: min(100%, 36rem);
}

.studio-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
}

.studio-grid fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.studio-grid legend {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips button,
.chip-mini {
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.chips button small {
  color: var(--muted);
  font-size: 0.7rem;
}

.chips button.is-on,
.chip-mini.is-on {
  border-color: var(--accent);
  background: var(--hover);
}

.chips button.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.clip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.check {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.plan-detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  padding-bottom: 3.5rem;
}

.plan-detail ul {
  color: var(--muted);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: 22rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero,
  .steps,
  .grid-3,
  .plans,
  .account,
  .plan-detail,
  .usage,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band {
    display: grid;
  }
}

.page-studio .studio-wrap {
  width: min(1180px, calc(100% - 2rem));
  padding-bottom: 3.5rem;
}

.page-studio .studio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.2rem 0 1.4rem;
}

.page-studio .studio-head h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin: 0;
}

.page-studio .studio-head p {
  margin: 0.45rem 0 0;
  max-width: 34rem;
  color: var(--muted);
}

.page-studio .kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.page-studio .studio-plan {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-studio .studio-board {
  display: grid;
  grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.page-studio .studio-composer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 4.6rem;
}

.page-studio .studio-composer.is-locked {
  opacity: 0.72;
}

.page-studio .composer-block input {
  border-radius: 12px;
  padding: 0.95rem 1rem;
}

.page-studio .drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 7.2rem;
  margin-bottom: 0.85rem;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--bg);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.page-studio .drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.page-studio .drop.is-on {
  border-color: var(--accent);
  color: var(--text);
}

.page-studio .clip-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.page-studio .clip-list:empty {
  display: none;
}

.page-studio .clip-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.82rem;
}

.page-studio .clip-list button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.page-studio .studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.page-studio .studio-grid fieldset {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.8rem 0.85rem;
}

.page-studio .studio-grid legend {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.page-studio .studio-grid .check {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  padding: 0.75rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.page-studio .chips button {
  background: var(--panel);
}

.page-studio .chips button.is-on {
  background: var(--accent);
  color: #fffcf8;
  border-color: var(--accent);
}

.page-studio .chips button.is-on small {
  color: rgba(255, 252, 248, 0.75);
}

.page-studio .composer-hint {
  margin: 0.75rem 0 0.7rem;
}

.page-studio .composer-submit {
  width: 100%;
}

.page-studio .studio-stage {
  min-height: 34rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(243, 230, 212, 0.7), transparent 46%),
    var(--accent);
  color: #fffcf8;
  border-radius: 24px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(31, 58, 46, 0.18);
}

.page-studio .studio-empty[hidden],
.page-studio .studio-video[hidden] {
  display: none !important;
}
  max-width: 18rem;
}

.page-studio .studio-empty p {
  margin: 1rem 0 0;
  color: rgba(255, 252, 248, 0.78);
  font-size: 0.92rem;
}

.page-studio .stage-phone {
  width: 148px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border: 7px solid #14110f;
  border-radius: 22px;
  background: #14110f;
  overflow: hidden;
}

.page-studio .stage-phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 0.9rem;
  background: linear-gradient(180deg, #4a6a58 0%, #1f3a2e 100%);
}

.page-studio .stage-phone-screen span {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.page-studio .stage-phone-screen strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.page-studio .studio-video {
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-studio .studio-video .video-card {
  background: transparent;
  border: 0;
  padding: 0;
  width: min(100%, 22rem);
}

.page-studio .studio-video .video-card h2,
.page-studio .studio-video .hint,
.page-studio .studio-video .clip-row {
  color: #fffcf8;
}

.page-studio .studio-video .video-card h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.page-studio .studio-video video {
  width: 100%;
  max-width: none;
  margin: 0 0 0.75rem;
  border-color: rgba(255, 252, 248, 0.16);
}

.page-studio .studio-video .chip-mini {
  background: rgba(255, 252, 248, 0.1);
  color: #fffcf8;
  border-color: rgba(255, 252, 248, 0.2);
}

.page-studio .studio-video .chip-mini.is-on {
  background: #fffcf8;
  color: var(--accent);
  border-color: #fffcf8;
}

.page-studio .studio-status {
  margin: 1rem 0 0;
  text-align: center;
  color: rgba(255, 252, 248, 0.82);
}

.page-studio .studio-status[data-kind="error"] {
  color: #f3c0b8;
}

.page-studio .studio-script {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.page-studio .studio-script .card {
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.page-studio .studio-script .images img {
  border-radius: 10px;
}

.page-studio .studio-gate {
  margin-bottom: 1rem;
}

.page-studio .studio-gate .card {
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .page-studio .studio-board,
  .page-studio .studio-script,
  .page-studio .studio-grid {
    grid-template-columns: 1fr;
  }

  .page-studio .studio-composer {
    position: static;
  }

  .page-studio .studio-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-studio .studio-stage {
    min-height: 26rem;
  }
}
