:root {
  --paper: #fcf8f5;
  --card: #ffffff;
  --ink: #24151a;
  --muted: #64505a;
  --line: #eedfd9;
  --soft: #f6ebe5;
  --accent: #b3154f;
  --accent-ink: #ffffff;
  --brand-1: #b8145f;
  --brand-2: #d12f3f;
  --brand-3: #c2460f;
  --brand: linear-gradient(100deg, var(--brand-1), var(--brand-2) 52%, var(--brand-3));
  --brand-text: linear-gradient(100deg, var(--brand-1), var(--brand-2) 52%, var(--brand-3));
  --on-brand: #ffffff;
  --shadow: 0 18px 40px rgb(96 24 44 / .2);
  --display: 'Bricolage Grotesque', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #170e11;
    --card: #23171b;
    --ink: #faf1ee;
    --muted: #cbb8bc;
    --line: #402c32;
    --soft: #302127;
    --accent: #ff93a8;
    --accent-ink: #ffffff;
    --brand-text: linear-gradient(100deg, #ff7fae, #ff8f73 52%, #ffb268);
    --shadow: 0 18px 40px rgb(0 0 0 / .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #170e11;
  --card: #23171b;
  --ink: #faf1ee;
  --muted: #cbb8bc;
  --line: #402c32;
  --soft: #302127;
  --accent: #ff93a8;
  --accent-ink: #ffffff;
  --brand-text: linear-gradient(100deg, #ff7fae, #ff8f73 52%, #ffb268);
  --shadow: 0 18px 40px rgb(0 0 0 / .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 500 17px/1.55 var(--sans); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 14px max(24px, calc((100% - 1180px) / 2)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 24px var(--display); text-decoration: none; }
.nav nav { display: flex; gap: 28px; font-size: 15px; font-weight: 700; color: var(--muted); }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: var(--ink); }

.nav-end { display: flex; align-items: center; gap: 16px; }
.nav-login { font-size: 15px; font-weight: 700; text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; color: var(--on-brand); background: var(--brand); border: 0; border-radius: 12px; font-size: 16px; font-weight: 800; text-align: center; text-decoration: none; transition: transform .15s ease, filter .15s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.button.small { min-height: 44px; padding-inline: 18px; font-size: 15px; }
.button.ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.light { color: #a3124f; background: #ffffff; }
.button.center { display: flex; width: fit-content; margin: 36px auto 0; }

main > section { width: min(1180px, 100%); margin-inline: auto; padding-inline: 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 48px; padding-block: 56px 72px; }
h1 { font: 800 clamp(46px, 6.4vw, 84px)/1 var(--display); letter-spacing: -.02em; }
h1 em { display: block; width: fit-content; padding-bottom: .08em; font-style: normal; color: var(--accent); background: var(--brand-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { max-width: 33em; margin-top: 24px; font-size: 20px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 36px; font-size: 16px; color: var(--muted); }
.facts b { display: block; font: 800 34px/1.1 var(--display); color: var(--ink); }

.studio-demo { min-width: 0; }
.fan { position: relative; width: 100%; aspect-ratio: 1 / 1.08; }
.fan canvas { position: absolute; top: 5%; width: 41%; aspect-ratio: 9 / 16; height: auto; background: var(--soft); border-radius: 18px; box-shadow: var(--shadow); transition: transform .35s ease; }
.fan canvas:nth-child(1) { left: 3%; transform: rotate(-7deg) translateY(7%); }
.fan canvas:nth-child(2) { left: 29.5%; z-index: 2; top: 2%; width: 44%; }
.fan canvas:nth-child(3) { right: 3%; transform: rotate(7deg) translateY(7%); }
.fan canvas:hover { z-index: 3; }
.fan canvas:nth-child(1):hover { transform: rotate(-4deg) translateY(4%); }
.fan canvas:nth-child(3):hover { transform: rotate(4deg) translateY(4%); }

.tryout { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 16px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.tryout p { grid-row: span 2; font: 800 19px/1.1 var(--display); max-width: 4.5em; }
.demo-palettes, .demo-fonts { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-palettes button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background-repeat: no-repeat; background-size: 100% 100%; box-shadow: 0 1px 4px rgb(33 28 22 / .3); cursor: pointer; }
.demo-palettes button[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.demo-fonts button { min-height: 44px; padding: 0 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 18px; cursor: pointer; }
.demo-fonts button[aria-pressed="true"] { color: var(--on-brand); background: var(--brand); border-color: transparent; }

.section { padding-block: 72px; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section h2, .closing h2 { font: 800 clamp(36px, 4.6vw, 56px)/1.05 var(--display); letter-spacing: -.015em; }
.section-head p { margin-top: 14px; font-size: 19px; color: var(--muted); }

.filters { display: flex; gap: 8px; margin-bottom: 24px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; min-height: 44px; padding: 0 18px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; font: 700 15px var(--sans); cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--on-brand); background: var(--brand); border-color: transparent; }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.gallery a { display: grid; gap: 8px; min-width: 0; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.gallery canvas { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--soft); border-radius: 12px; box-shadow: 0 6px 16px rgb(45 33 18 / .16); transition: transform .18s ease; }
.gallery a:hover canvas { transform: translateY(-5px); }
.gallery a:hover { color: var(--ink); }

.steps-section { border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step-no { display: block; width: fit-content; font: 800 72px/1.05 var(--display); color: var(--accent); background: var(--brand-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.steps h3 { margin-top: 12px; font: 800 26px/1.15 var(--display); }
.steps p { margin-top: 10px; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.plan.featured { color: var(--on-brand); background: var(--brand); border-color: transparent; box-shadow: var(--shadow); }
.plan h3 { font: 800 28px var(--display); }
.tag { position: absolute; top: 28px; right: 28px; padding: 4px 12px; color: #a3124f; background: #ffffff; border-radius: 999px; font-size: 14px; font-weight: 800; }
.price { margin-top: 10px; }
.price b { font: 800 52px/1.1 var(--display); }
.price span { font-size: 18px; }
.price s { margin-right: 4px; font-size: 24px; font-weight: 700; }
.plan-note { color: var(--muted); }
.featured .plan-note { color: #ffffff; }
.plan ul { display: grid; gap: 10px; margin-block: 24px 28px; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before { content: ''; position: absolute; left: 3px; top: .38em; width: 13px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.featured li::before { border-color: #ffffff; }
.plan .button { margin-top: auto; }
.featured .button { color: #a3124f; background: #ffffff; }
.plan-foot { margin-top: 12px; font-size: 15px; color: #ffffff; text-align: center; }

.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding-block: 14px; font: 700 20px/1.25 var(--display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 30px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq p { padding-bottom: 20px; color: var(--muted); }

main > .closing { width: 100%; max-width: none; padding: 84px 24px; color: var(--on-brand); background: var(--brand); text-align: center; }
.closing h2 { max-width: 15em; margin: 0 auto 28px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 26px max(24px, calc((100% - 1180px) / 2)); font-size: 15px; color: var(--muted); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 40px 56px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { padding: 10px 16px; }
  .nav nav, .nav-login { display: none; }
  main > section { padding-inline: 16px; }
  .section { padding-block: 52px; }
  .lede { font-size: 18px; }
  .cta-row .button { flex: 1 1 100%; }
  .tryout { grid-template-columns: minmax(0, 1fr); }
  .tryout p { grid-row: auto; max-width: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .steps, .plans { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .plan { padding: 24px; }
  main > .closing { padding: 60px 16px; }
  .foot { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .fan canvas, .gallery canvas { transition: none; }
}
