/* ==========================================================================
   Little Bird Studio
   A small, opinionated design system. No framework, no build step.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --paper-3: #e5dfd2;
  --white: #ffffff;
  --ink: #132019;
  --ink-2: #22332a;
  --ink-3: #405048;
  --muted: #6d756e;
  --muted-light: rgba(246, 244, 238, 0.62);
  --line: rgba(19, 32, 25, 0.12);
  --line-strong: rgba(19, 32, 25, 0.22);
  --accent: #ffd84d;
  --accent-deep: #e6b91f;
  --accent-soft: #fff3bd;
  --canvas: #0b110e;
  --canvas-2: #101814;
  --canvas-3: #16211b;
  --canvas-line: rgba(255, 255, 255, 0.1);
  --success: #1e6a45;
  --success-soft: #e4f2e9;
  --danger: #a93b2c;
  --danger-soft: #f7e4df;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(19, 32, 25, 0.04), 0 8px 24px rgba(19, 32, 25, 0.05);
  --shadow: 0 30px 70px -28px rgba(19, 32, 25, 0.28), 0 2px 8px rgba(19, 32, 25, 0.05);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 450;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code,
pre {
  font-family: var(--font-mono);
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(255, 216, 77, 0.25);
}

.lede {
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-3);
}

.section {
  padding: 108px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(38px, 4.6vw, 62px);
}

.section-lede {
  max-width: 48ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 44px;
}

.split-head h2 {
  font-size: clamp(38px, 4.8vw, 64px);
}

.split-head .section-lede {
  padding-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(19, 32, 25, 0.5);
}
.btn-dark:hover {
  background: #21342a;
  border-color: #21342a;
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #ffe07a;
  border-color: #ffe07a;
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: rgba(19, 32, 25, 0.04);
  border-color: var(--ink);
}

.btn-ghost {
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(19, 32, 25, 0.05);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #be4635;
  border-color: #be4635;
}

.btn-lg {
  min-height: 52px;
  padding: 15px 24px;
  font-size: 15px;
}
.btn-sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12.5px;
}
.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.18s ease;
}
.text-link:hover {
  border-color: var(--ink);
}
.text-link svg {
  width: 14px;
  height: 14px;
}

.linklike,
.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--accent);
}
.brand-mark svg {
  width: 19px;
  height: 19px;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-suffix {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 3px;
}
.brand-dark {
  color: var(--paper);
}
.brand-dark .brand-mark {
  background: var(--accent);
  color: var(--ink);
}
.brand-dark .brand-suffix {
  color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 238, 0.86);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.18s ease;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}
.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--accent-deep);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-signin {
  font-size: 14px;
  color: var(--ink-3);
}
.nav-signin:hover {
  color: var(--ink);
}
.nav-toggle {
  display: none;
  padding: 6px;
  border: 0;
  background: transparent;
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav a:not(.btn) {
  padding: 10px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn {
  margin-top: 12px;
}
body.nav-open .mobile-nav {
  display: flex;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 92px;
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.flight-path {
  position: absolute;
  top: 0;
  right: -8%;
  width: 62%;
  max-width: 900px;
  height: auto;
  color: rgba(19, 32, 25, 0.2);
}
.atmosphere-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.orb-a {
  width: 520px;
  height: 520px;
  top: -240px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 216, 77, 0.5), rgba(255, 216, 77, 0) 66%);
}
.orb-b {
  width: 420px;
  height: 420px;
  bottom: -260px;
  left: -140px;
  background: radial-gradient(circle, rgba(199, 181, 145, 0.4), rgba(199, 181, 145, 0) 68%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
}
.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(54px, 6.2vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy h1 em {
  position: relative;
  white-space: nowrap;
}
.hero-copy h1 em::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 0;
  bottom: 0.06em;
  height: 0.16em;
  background: var(--accent);
  border-radius: 999px;
  z-index: -1;
  transform: rotate(-1deg);
}
.hero-copy .lede {
  max-width: 500px;
  margin: 26px 0 30px;
  font-size: 18px;
  animation: rise 0.7s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy .eyebrow {
  animation: rise 0.7s 0.02s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.7s 0.14s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--muted);
  animation: rise 0.7s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-note svg {
  width: 14px;
  height: 14px;
  color: var(--success);
}

.hero-visual {
  position: relative;
  animation: rise 0.8s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.editor-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.editor-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.traffic {
  display: flex;
  gap: 5px;
}
.traffic i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper-3);
}
.traffic i:first-child {
  background: #efc9c1;
}
.traffic i:nth-child(2) {
  background: #f0dfae;
}
.traffic i:nth-child(3) {
  background: #cfe0cd;
}
.editor-file {
  flex: 1;
}
.editor-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.editor-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}
.editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.editor-recipes {
  display: flex;
  gap: 6px;
}
.editor-recipes span {
  padding: 5px 9px;
  border-radius: 999px;
}
.editor-recipes .is-active {
  background: var(--ink);
  color: var(--paper);
}
.editor-dims {
  white-space: nowrap;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  animation: rise 0.8s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.float-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--ink);
}
.float-icon svg {
  width: 15px;
  height: 15px;
}
.float-card strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
}
.float-card small {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
}
.float-a {
  top: -24px;
  right: -18px;
}
.float-b {
  bottom: 72px;
  left: -32px;
}
.float-chip {
  position: absolute;
  right: 26px;
  bottom: -17px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px -8px rgba(19, 32, 25, 0.5);
}
.float-chip span {
  margin-left: 5px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Compare
   -------------------------------------------------------------------------- */

.compare {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  isolation: isolate;
}
.compare-hero {
  aspect-ratio: 1 / 1.03;
}
.compare-example {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}
.compare-pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.scene-room {
  background:
    linear-gradient(120deg, rgba(255, 245, 225, 0.2), transparent 45%),
    linear-gradient(145deg, #d6c6b2 0%, #bda98f 44%, #8b735b 100%);
  filter: saturate(0.88) contrast(0.96);
}
.scene-studio {
  z-index: 2;
  background:
    radial-gradient(circle at 50% 28%, #ffffff 0%, #f8f4ea 48%, #ece5d7 100%);
  clip-path: inset(0 0 0 var(--pos));
}
.room-window {
  position: absolute;
  top: 7%;
  left: 8%;
  width: 46%;
  height: 58%;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.12));
  box-shadow: 0 0 40px rgba(255, 244, 218, 0.5);
  transform: rotate(-1deg);
  filter: blur(0.6px);
}
.room-window::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(98, 82, 61, 0.28);
}
.room-window::after {
  content: '';
  position: absolute;
  top: 52%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(98, 82, 61, 0.24);
}
.room-table {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 23%;
  background: linear-gradient(180deg, #af9272, #7e6247);
  box-shadow: inset 0 14px 30px rgba(255, 255, 255, 0.08);
}
.room-plant {
  position: absolute;
  right: 6%;
  bottom: 20%;
  width: 25%;
  height: 47%;
  border-radius: 48% 52% 46% 54% / 60% 55% 45% 40%;
  background:
    radial-gradient(ellipse at 40% 36%, rgba(100, 119, 88, 0.9), rgba(60, 78, 54, 0.75) 55%, transparent 70%),
    radial-gradient(ellipse at 70% 62%, rgba(88, 107, 77, 0.8), transparent 66%);
  filter: blur(2px);
  opacity: 0.72;
  transform: rotate(3deg);
}
.room-plant::after {
  content: '';
  position: absolute;
  left: 48%;
  bottom: -18%;
  width: 3px;
  height: 44%;
  background: rgba(58, 67, 46, 0.7);
  transform: rotate(3deg);
}
.scene-product {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 3;
  width: 42%;
  max-height: 76%;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 24px rgba(40, 27, 14, 0.28));
}
.scene-studio .scene-product {
  width: 40%;
  filter: drop-shadow(0 30px 28px rgba(42, 33, 20, 0.2));
}
.studio-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.9), transparent 52%);
}
.studio-shadow {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 36%;
  height: 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(40, 30, 18, 0.24), transparent 66%);
  transform: translateX(-50%);
  filter: blur(7px);
}
.compare-enhance .scene-room {
  filter: saturate(0.68) contrast(0.88) brightness(0.92) sepia(0.08);
}
.compare-enhance .scene-studio {
  filter: saturate(1.08) contrast(1.05) brightness(1.04);
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 4;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
  transform: translateX(-1px);
  pointer-events: none;
}
.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(10, 16, 12, 0.28);
  transform: translate(-50%, -50%);
}
.compare-handle i {
  width: 1.5px;
  height: 12px;
  background: currentColor;
  border-radius: 2px;
}
.compare-handle i:first-child {
  margin-right: 5px;
}
.compare-range {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.compare-tag {
  position: absolute;
  top: 14px;
  z-index: 5;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(12, 18, 14, 0.58);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.tag-before {
  left: 14px;
}
.tag-after {
  right: 14px;
  background: var(--accent);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Format strip
   -------------------------------------------------------------------------- */

.format-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(239, 236, 227, 0.52);
  padding: 16px 0;
}
.format-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.format-strip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.format-strip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.format-strip-list i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* --------------------------------------------------------------------------
   Formats
   -------------------------------------------------------------------------- */

.formats-section {
  padding-top: 96px;
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.format-card {
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.format-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.format-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  height: 262px;
  border-radius: 12px;
  background: var(--paper-2);
}
.format-shape {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 24px -14px rgba(19, 32, 25, 0.3);
  backdrop-filter: blur(2px);
}
.format-frame .ratio-square {
  width: 170px;
  height: 170px;
}
.format-frame .ratio-story {
  width: 112px;
  height: 200px;
}
.format-frame .ratio-landscape {
  width: 214px;
  height: 112px;
}
.format-frame .ratio-wide {
  width: 228px;
  height: 128px;
}
.ratio-square {
  aspect-ratio: 1 / 1;
}
.ratio-story {
  aspect-ratio: 9 / 16;
}
.ratio-landscape {
  aspect-ratio: 1.91 / 1;
}
.ratio-wide {
  aspect-ratio: 16 / 9;
}
.ratio-portrait {
  aspect-ratio: 4 / 5;
}
.format-frame img {
  width: 44%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(40, 27, 14, 0.22));
  transition: transform 0.35s ease;
}
.format-frame:hover img {
  transform: translateY(-3px) scale(1.02);
}
.format-card:hover .format-frame img {
  transform: translateY(-3px) scale(1.02);
}
.tint-paper {
  background: radial-gradient(circle at 50% 26%, #fff, #f3ede1 74%);
}
.tint-sand {
  background: radial-gradient(circle at 50% 22%, #fbf6ea, #e8dcc6 78%);
}
.tint-white {
  background: radial-gradient(circle at 50% 24%, #fff, #f0eee7 78%);
}
.tint-ink {
  background: radial-gradient(circle at 50% 22%, #26382e, #0e1611 76%);
}
.format-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 5px 4px;
}
.format-meta strong {
  font-size: 12.5px;
  font-weight: 600;
}
.format-meta span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features-section {
  background: rgba(239, 236, 227, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
}
.feature-icon svg {
  width: 20px;
  height: 20px;
}
.feature-card h3 {
  font-size: 25px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.mini-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 16px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature-cutout .feature-visual {
  position: relative;
  margin-top: auto;
  padding-top: 28px;
}
.mini-studio {
  display: grid;
  place-items: center;
  aspect-ratio: 1.45 / 1;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 28%, #fff, #f1ebde 76%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mini-studio img {
  width: 37%;
  max-height: 82%;
  filter: drop-shadow(0 18px 18px rgba(40, 27, 14, 0.2));
}
.visual-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--ink-3);
  backdrop-filter: blur(8px);
}
.visual-badge svg {
  width: 12px;
  height: 12px;
  color: var(--success);
}
.enhance-visual {
  position: relative;
  display: flex;
  height: 128px;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.enhance-half {
  flex: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.5), transparent 46%),
    linear-gradient(135deg, #c7b496, #8d7456);
}
.enhance-half.after {
  background:
    radial-gradient(circle at 50% 42%, #fff, transparent 54%),
    linear-gradient(135deg, #eadfca, #c3ad8d);
  filter: saturate(1.08) brightness(1.05);
}
.enhance-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.9);
}
.enhance-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
}
.hires-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.hires-pill {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.hires-rule {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}
.hires-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.also-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 30px;
}
.also-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.also-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.also-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  color: var(--ink-3);
}
.also-list svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Examples (dark)
   -------------------------------------------------------------------------- */

.examples-section {
  background: var(--ink);
  color: var(--paper);
}
.examples-section .eyebrow {
  color: var(--muted-light);
}
.examples-section h2 em {
  color: var(--accent);
}
.examples-section .section-lede {
  color: var(--muted-light);
}
.examples-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}
.tab-row {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--canvas-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.tab {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}
.tab:hover {
  color: var(--paper);
}
.tab.is-active {
  background: var(--accent);
  color: var(--ink);
}
.example-stage {
  padding: 10px;
  border: 1px solid var(--canvas-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.02);
}
.example-panel {
  border-radius: 18px;
  overflow: hidden;
}
.example-panel .compare {
  border-radius: 16px;
}
.example-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 8px 5px;
}
.example-caption strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.example-caption span {
  display: block;
  font-size: 11.5px;
  color: var(--muted-light);
}
.caption-meta {
  font-family: var(--font-mono);
  font-size: 9.5px !important;
  letter-spacing: 0.04em;
  text-align: right;
}
.example-disclaimer {
  margin-top: 18px;
  font-size: 10.5px;
  color: rgba(246, 244, 238, 0.42);
  text-align: center;
}
.resize-stage {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #0f1713;
}
.resize-frame {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
}
.resize-frame img {
  width: 44%;
  max-height: 80%;
  filter: drop-shadow(0 16px 18px rgba(40, 27, 14, 0.22));
}
.resize-frame span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}
.resize-stage .ratio-story {
  aspect-ratio: 9 / 10;
}

/* --------------------------------------------------------------------------
   Workflow
   -------------------------------------------------------------------------- */

.workflow-section {
  padding-top: 96px;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.step-card {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.step-number {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.step-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 168px;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.step-card h3 {
  font-size: 23px;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-3);
}
.drop-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--ink-3);
}
.drop-icon svg {
  width: 20px;
  height: 20px;
}
.drop-line {
  width: 110px;
  height: 1px;
  background: var(--line);
}
.drop-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.recipe-visual {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
}
.recipe-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 11.5px;
  color: var(--ink-3);
}
.recipe-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.recipe-pill svg {
  width: 13px;
  height: 13px;
}
.recipe-pill.is-active svg {
  color: var(--accent);
}
.export-visual {
  flex-direction: row;
  gap: 8px;
}
.export-chip {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-3);
}
.export-chip:nth-child(2) {
  width: 36px;
  height: 46px;
}
.export-chip:nth-child(3) {
  width: 30px;
  height: 52px;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.export-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}
.export-arrow svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Audience
   -------------------------------------------------------------------------- */

.audience-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.audience-card {
  padding: 26px 24px 8px;
  border-right: 1px solid var(--line);
}
.audience-card:last-child {
  border-right: 0;
}
.audience-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.audience-icon svg {
  width: 17px;
  height: 17px;
}
.audience-card h3 {
  font-size: 21px;
  margin-bottom: 7px;
}
.audience-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-section {
  padding-top: 96px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.plan.is-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(19, 32, 25, 0.55);
}
.plan-flag {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan-head h3 {
  font-size: 25px;
  margin-bottom: 4px;
}
.plan-head p {
  font-size: 12.5px;
  color: var(--muted);
}
.plan.is-featured .plan-head p {
  color: var(--muted-light);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 24px 0 6px;
}
.plan-price strong {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
}
.plan-price span {
  font-size: 12px;
  color: var(--muted);
}
.plan.is-featured .plan-price span {
  color: var(--muted-light);
}
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 28px;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.plan.is-featured .plan-list li {
  color: rgba(246, 244, 238, 0.8);
}
.plan-list svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--success);
}
.plan.is-featured .plan-list svg {
  color: var(--accent);
}
.plan .btn {
  margin-top: auto;
}
.plan.is-featured .btn-outline {
  border-color: rgba(246, 244, 238, 0.24);
  color: var(--paper);
}
.plan.is-featured .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--paper);
}
.pricing-note {
  margin-top: 20px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.pricing-hero {
  padding: 78px 0 30px;
}
.pricing-hero h1 {
  max-width: 14ch;
  font-size: clamp(44px, 5.6vw, 74px);
  margin-bottom: 22px;
}
.pricing-page {
  padding-top: 44px;
}
.compare-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.compare-table th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(239, 236, 227, 0.4);
}
.compare-table tr:last-child td {
  border-bottom: 0;
}
.compare-table td:not(:first-child) {
  text-align: center;
}
.compare-table svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: var(--success);
}
.table-note {
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
}
.billing-note-section {
  padding-top: 0;
}
.billing-note {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.billing-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--white);
  color: var(--ink);
}
.billing-icon svg {
  width: 22px;
  height: 22px;
}
.billing-note h2 {
  font-size: 24px;
  margin-bottom: 5px;
}
.billing-note p {
  max-width: 62ch;
  font-size: 13px;
  color: var(--ink-3);
}
.billing-note .btn {
  margin-left: auto;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-section {
  padding-top: 90px;
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 70px;
}
.faq-intro h2 {
  font-size: clamp(36px, 4.2vw, 54px);
}
.faq-intro p:last-child {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}
.faq-intro a {
  border-bottom: 1px solid var(--line-strong);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 500;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary svg {
  transform: rotate(180deg);
}
.faq-list details p {
  max-width: 68ch;
  padding: 0 34px 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-3);
}
.faq-list details p a {
  border-bottom: 1px solid var(--line-strong);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 76px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}
.cta-band .eyebrow {
  color: var(--muted-light);
}
.cta-band h2 {
  font-size: clamp(38px, 4.8vw, 62px);
}
.cta-band h2 em {
  color: var(--accent);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}
.cta-actions .btn-ghost {
  color: var(--paper);
}
.cta-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.cta-actions p {
  font-size: 10.5px;
  color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 58px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 46px;
}
.footer-tagline {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink-2);
}
.footer-note {
  max-width: 30ch;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.footer-col h3 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--ink-3);
  transition: color 0.18s ease;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.footer-bottom span {
  margin-left: 6px;
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-meta a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Page hero / generic
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 82px 0 48px;
}
.page-hero h1 {
  max-width: 15ch;
  font-size: clamp(44px, 5.6vw, 76px);
  margin-bottom: 22px;
}
.page-hero .lede {
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 60px;
  align-items: center;
}
.about-hero h1 {
  max-width: 13ch;
}
.about-mark {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #fff, #ece5d6 72%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.about-mark img {
  width: 42%;
  max-height: 72%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 26px 26px rgba(40, 27, 14, 0.24));
}
.about-orb {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(10px);
  opacity: 0.9;
}
.about-story {
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
}
.about-grid h2 {
  font-size: clamp(34px, 4vw, 50px);
}
.prose-wide p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-3);
}
.principles-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.principle-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.principle-number {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.principle-card h3 {
  margin: 20px 0 8px;
  font-size: 24px;
}
.principle-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-3);
}
.company-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.company-card h2 {
  font-size: 40px;
  margin-bottom: 14px;
}
.company-copy {
  max-width: 46ch;
  margin-bottom: 24px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.company-facts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.company-facts div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.company-facts div:last-child {
  border-bottom: 0;
}
.company-facts dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.company-facts dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
}
.company-facts a {
  border-bottom: 1px solid var(--line-strong);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-hero {
  padding-top: 78px;
  padding-bottom: 90px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 70px;
  align-items: start;
}
.contact-copy h1 {
  max-width: 10ch;
  font-size: clamp(44px, 5.6vw, 74px);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact-details div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: baseline;
}
.contact-details span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-details a,
.contact-details strong {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.contact-details a {
  border-bottom: 1px solid var(--line-strong);
  justify-self: start;
}
.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}
.contact-card-head {
  margin-bottom: 22px;
}
.contact-card-head h2 {
  font-size: 28px;
  margin-bottom: 6px;
}
.contact-card-head p {
  font-size: 12.5px;
  color: var(--muted);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-help {
  padding-top: 0;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.help-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.help-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.help-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--accent-soft);
}
.help-icon svg {
  width: 18px;
  height: 18px;
}
.help-card h3 {
  font-size: 21px;
  margin-bottom: 7px;
}
.help-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 500;
}
.help-link svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field {
  margin-bottom: 16px;
}
.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.field label span {
  font-weight: 400;
  color: var(--muted);
}
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(246, 244, 238, 0.5);
  color: var(--ink);
  font-size: 14px;
  outline: 0;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.input::placeholder {
  color: rgba(109, 117, 110, 0.72);
}
.input:focus {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 216, 77, 0.32);
}
textarea.input {
  resize: vertical;
  min-height: 100px;
}
.input-wrap {
  position: relative;
}
.input-wrap .input {
  padding-right: 44px;
}
.input-action {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
}
.input-action:hover {
  background: rgba(19, 32, 25, 0.06);
  color: var(--ink);
}
.input-action svg {
  width: 17px;
  height: 17px;
}
.form-message {
  min-height: 20px;
  margin: 2px 0 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--danger);
}
.form-message.is-success {
  color: var(--success);
}
.form-foot {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.form-foot a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 16px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.check-row input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  accent-color: var(--ink);
}
.check-row a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
}
.field-hint {
  margin-top: 7px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.5;
}
.notice svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.notice-warn {
  background: var(--accent-soft);
  color: #5c4a08;
}
.notice code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(19, 32, 25, 0.08);
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */

.auth-page {
  background: var(--paper);
}
.auth-page .site-footer {
  display: none;
}
.app-page .site-footer {
  display: none;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  min-height: 100vh;
}
.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 44px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.auth-art::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 77, 0.24), transparent 66%);
}
.auth-art::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 143, 121, 0.18), transparent 66%);
}
.auth-art-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted-light);
}
.auth-back svg {
  width: 13px;
  height: 13px;
}
.auth-art-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: auto 0;
  padding: 54px 0;
}
.auth-art-copy .eyebrow {
  color: var(--muted-light);
}
.auth-art-copy h1 {
  font-size: clamp(42px, 4.6vw, 66px);
  line-height: 1.02;
}
.auth-art-copy h1 em {
  color: var(--accent);
}
.auth-art-copy > p {
  max-width: 44ch;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-light);
}
.auth-points {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 28px;
}
.auth-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: rgba(246, 244, 238, 0.78);
}
.auth-points svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.auth-art-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 26px;
}
.auth-mini-studio {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(300px, 60%);
  aspect-ratio: 1.2 / 1;
  padding: 14px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 30%, #fff, #ece5d7 78%);
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
}
.auth-mini-studio img {
  width: 46%;
  max-height: 72%;
  align-self: center;
  filter: drop-shadow(0 18px 18px rgba(40, 27, 14, 0.24));
}
.auth-mini-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}
.auth-mini-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 8.5px;
  color: var(--ink-3);
}
.auth-mini-chip svg {
  width: 11px;
  height: 11px;
  color: var(--success);
}
.auth-mini-format {
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-light);
}
.auth-art-foot {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(246, 244, 238, 0.38);
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 44px 28px;
}
.auth-card {
  width: min(430px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.auth-head {
  margin-bottom: 22px;
}
.auth-head h2 {
  font-size: 33px;
  margin-bottom: 8px;
}
.auth-head > p:last-child {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
.auth-head .eyebrow {
  margin-bottom: 10px;
}
.auth-form .btn {
  margin-top: 2px;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 14px;
  font-size: 11.5px;
  color: var(--muted);
}
.auth-row a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
}
.auth-resend {
  display: block;
  margin: -2px 0 12px;
  font-size: 11.5px;
}
.form-message a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-legal {
  margin-top: 18px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.auth-preview-link {
  margin-top: 14px;
}
.callback-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 30px;
  background: var(--paper);
}
.callback-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.callback-card .brand {
  justify-content: center;
  margin-bottom: 28px;
}
.callback-spinner {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.callback-spinner svg {
  width: 22px;
  height: 22px;
  animation: spin 1s linear infinite;
}
.callback-card h1 {
  font-size: 30px;
  margin-bottom: 8px;
}
.callback-card p {
  font-size: 13px;
  color: var(--muted);
}
.verify-form {
  margin-top: 20px;
}
.verify-form .btn {
  width: 100%;
}
.callback-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   Legal
   -------------------------------------------------------------------------- */

.legal-hero {
  padding: 70px 0 40px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.legal-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 50px;
  align-items: start;
}
.legal-hero h1 {
  max-width: 16ch;
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 16px;
}
.legal-updated {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}
.legal-nav a {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-3);
}
.legal-nav a:hover {
  background: rgba(19, 32, 25, 0.05);
}
.legal-nav a.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.legal-body {
  padding: 52px 0 90px;
}
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
  align-items: start;
}
.legal-prose h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: 27px;
}
.legal-prose section:first-child h2 {
  margin-top: 0;
}
.legal-prose p {
  margin-bottom: 13px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-3);
}
.legal-prose ul {
  margin: 4px 0 18px;
  padding-left: 18px;
  list-style: disc;
}
.legal-prose li {
  margin-bottom: 7px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.legal-prose a {
  border-bottom: 1px solid var(--line-strong);
}
.legal-aside {
  position: sticky;
  top: 100px;
}
.legal-card {
  padding: 20px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.legal-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.legal-card p {
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.legal-card-muted {
  background: var(--paper-2);
}

/* --------------------------------------------------------------------------
   App header
   -------------------------------------------------------------------------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--canvas);
  color: var(--paper);
  border-bottom: 1px solid var(--canvas-line);
}
.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 20px;
  max-width: 1800px;
  margin: 0 auto;
}
.app-header-left,
.app-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.app-nav {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}
.app-nav a {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted-light);
}
.app-nav a:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
}
.app-nav a.is-active {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}
.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 216, 77, 0.24);
  border-radius: 999px;
  background: rgba(255, 216, 77, 0.09);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.credit-pill svg {
  width: 13px;
  height: 13px;
}
.credit-pill-label {
  color: var(--muted-light);
  font-family: var(--font-body);
  font-size: 10px;
}
.app-user {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--muted-light);
}
.app-link {
  font-size: 11.5px;
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 216, 77, 0.3);
}
.app-signout {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--canvas-line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted-light);
}
.app-signout:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
}
.app-signout svg {
  width: 15px;
  height: 15px;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 20px;
  background: rgba(255, 216, 77, 0.1);
  border-top: 1px solid rgba(255, 216, 77, 0.18);
  color: #e9d487;
  font-size: 10.5px;
}
.demo-bar svg {
  width: 13px;
  height: 13px;
}
.demo-bar code {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   Studio
   -------------------------------------------------------------------------- */

.studio-page {
  background: var(--canvas);
  color: var(--paper);
  min-height: calc(100vh - 64px);
}
.studio-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr) 344px;
  max-width: 1800px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}
.studio-rail {
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  border-right: 1px solid var(--canvas-line);
  background: var(--canvas-2);
  overflow-y: auto;
}
.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 12px;
}
.rail-head .eyebrow {
  margin: 0;
  color: var(--muted-light);
}
.rail-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--canvas-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-light);
}
.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.recipe-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--paper);
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.recipe-card:hover {
  background: rgba(255, 255, 255, 0.04);
}
.recipe-card.is-active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}
.recipe-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-light);
}
.recipe-card.is-active .recipe-icon {
  background: rgba(255, 216, 77, 0.14);
  color: var(--accent);
}
.recipe-icon svg {
  width: 17px;
  height: 17px;
}
.recipe-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.recipe-copy strong {
  font-size: 12.5px;
  font-weight: 500;
}
.recipe-copy small {
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--muted-light);
}
.recipe-check {
  display: none;
  flex: 0 0 auto;
  color: var(--accent);
}
.recipe-check svg {
  width: 14px;
  height: 14px;
}
.recipe-card.is-active .recipe-check {
  display: block;
}
.rail-note {
  display: flex;
  gap: 7px;
  margin-top: 18px;
  padding: 11px;
  border: 1px solid var(--canvas-line);
  border-radius: 10px;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--muted-light);
}
.rail-note svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 1px;
}
.rail-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 18px 8px 2px;
  font-size: 10.5px;
  color: var(--muted-light);
}
.rail-help svg {
  width: 13px;
  height: 13px;
}
.rail-help:hover {
  color: var(--paper);
}

.studio-canvas-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 68, 56, 0.28), transparent 52%),
    var(--canvas);
}
.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--canvas-line);
  font-size: 11px;
  color: var(--muted-light);
}
.canvas-file {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.file-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.canvas-file > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-dims {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(246, 244, 238, 0.38);
}
.canvas-tools {
  display: flex;
  gap: 5px;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--canvas-line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted-light);
  font-size: 10.5px;
}
.tool-btn:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
}
.tool-btn svg {
  width: 13px;
  height: 13px;
}
.canvas-stage {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 460px;
  padding: 22px;
}
.dropzone {
  width: min(520px, 94%);
  padding: 46px 28px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.dropzone.is-dragging,
.dropzone:hover {
  border-color: rgba(255, 216, 77, 0.55);
  background: rgba(255, 216, 77, 0.035);
}
.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dropzone-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid var(--canvas-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
}
.dropzone-icon svg {
  width: 23px;
  height: 23px;
}
.dropzone h2 {
  font-size: 27px;
  margin-bottom: 5px;
}
.dropzone p {
  font-size: 12.5px;
  color: var(--muted-light);
}
.dropzone .linklike {
  color: var(--accent);
}
.dropzone-meta {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(246, 244, 238, 0.32);
}
.sample-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--canvas-line);
  font-size: 10.5px;
  color: var(--muted-light);
}
.sample-row span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 244, 238, 0.36);
}
.sample-row button {
  padding: 4px 8px;
  border: 1px solid var(--canvas-line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 10px;
}
.sample-row button:hover {
  border-color: rgba(255, 216, 77, 0.4);
  color: var(--accent);
}

.canvas-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.checker {
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
  padding: 14px;
  border-radius: 12px;
  background-color: #dfe3dd;
  background-image:
    linear-gradient(45deg, #cfd5ce 25%, transparent 25%),
    linear-gradient(-45deg, #cfd5ce 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cfd5ce 75%),
    linear-gradient(-45deg, transparent 75%, #cfd5ce 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.checker img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 4px;
}
.result-compare {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #dfe3dd;
  background-image:
    linear-gradient(45deg, #cfd5ce 25%, transparent 25%),
    linear-gradient(-45deg, #cfd5ce 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cfd5ce 75%),
    linear-gradient(-45deg, transparent 75%, #cfd5ce 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.result-pane {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 22px 14px 14px;
  border-radius: 8px;
  overflow: hidden;
}
.result-pane img {
  max-width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 4px;
}
.result-after {
  background: rgba(255, 255, 255, 0.16);
}
.result-label {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(12, 18, 14, 0.62);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.result-label.is-accent {
  background: var(--accent);
  color: var(--ink);
}
.canvas-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 9, 0.68);
  backdrop-filter: blur(5px);
}
.loading-card {
  width: min(360px, 90%);
  padding: 28px;
  border: 1px solid var(--canvas-line);
  border-radius: 18px;
  background: var(--canvas-2);
  text-align: center;
}
.loading-spinner {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(255, 216, 77, 0.1);
  color: var(--accent);
}
.loading-spinner svg {
  width: 21px;
  height: 21px;
  animation: spin 1s linear infinite;
}
.loading-spinner.small {
  width: 24px;
  height: 24px;
  margin: 0;
}
.loading-spinner.small svg {
  width: 14px;
  height: 14px;
}
.loading-card h3 {
  font-size: 22px;
  margin-bottom: 5px;
}
.loading-card p {
  font-size: 12px;
  color: var(--muted-light);
}
.loading-steps {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 244, 238, 0.32);
}
.loading-steps span.is-active {
  color: var(--accent);
}
.canvas-result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--canvas-line);
  background: var(--canvas-2);
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-light);
}
.result-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #82c99e;
}
.result-status svg {
  width: 12px;
  height: 12px;
}
.result-buttons {
  display: flex;
  gap: 6px;
  position: relative;
}
.result-buttons .btn-outline {
  border-color: var(--canvas-line);
  color: var(--paper);
}
.result-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}
.export-menu {
  position: relative;
}
.export-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: 236px;
  padding: 7px;
  border: 1px solid var(--canvas-line);
  border-radius: 12px;
  background: var(--canvas-3);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.6);
}
.export-pop-label {
  display: block;
  padding: 6px 8px 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.export-pop button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--paper);
  font-size: 11px;
  text-align: left;
}
.export-pop button:hover {
  background: rgba(255, 255, 255, 0.06);
}
.export-pop small {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted-light);
}

body.demo-mode .studio-shell {
  min-height: calc(100vh - 92px);
}
body.demo-mode .studio-inspector {
  max-height: calc(100vh - 92px);
}

.studio-inspector {
  background: var(--paper);
  color: var(--ink);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  max-height: calc(100vh - 64px);
}
.inspector-scroll {
  padding: 20px 18px 26px;
}
.inspector-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.inspector-head .eyebrow {
  margin-bottom: 8px;
}
.inspector-head h2 {
  font-size: 25px;
  margin-bottom: 4px;
}
.inspector-head p:last-child {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}
.inspector-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.inspector-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.inspector-label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(109, 117, 110, 0.7);
}
.text-btn {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.size-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-2);
  text-align: left;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}
.size-btn:hover {
  border-color: var(--line-strong);
  background: var(--white);
}
.size-btn.is-active {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 216, 77, 0.35);
}
.size-shape {
  flex: 0 0 auto;
  height: 19px;
  width: calc(19px * var(--w) / var(--h));
  max-width: 26px;
  min-width: 6px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: 0.6;
}
.size-btn.is-active .size-shape {
  opacity: 1;
}
.size-btn > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.size-btn strong {
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
}
.size-btn small {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
}
.custom-size {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}
.custom-size label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
}
.custom-size input {
  width: 72px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  outline: 0;
}
.custom-size input:focus {
  border-color: var(--ink);
}
.custom-x {
  font-size: 10px;
  color: var(--muted);
}
.swatch-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.swatch {
  padding: 5px 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: center;
}
.swatch span {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 4px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.swatch small {
  display: block;
  font-size: 8px;
  line-height: 1.1;
  color: var(--muted);
}
.swatch.is-active {
  border-color: var(--ink);
  background: var(--white);
}
.swatch.is-active span {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
}
.reference-drop {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 66px;
  padding: 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: 10.5px;
}
.reference-drop:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.reference-drop > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.reference-drop svg {
  width: 16px;
  height: 16px;
}
.reference-drop img {
  max-height: 80px;
  border-radius: 5px;
}
.char-count {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0;
  color: var(--muted);
}
.advanced {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
}
.advanced summary::-webkit-details-marker {
  display: none;
}
.advanced summary svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.advanced[open] summary svg {
  transform: rotate(180deg);
}
.advanced pre {
  margin: 10px 0 6px;
  padding: 10px;
  max-height: 190px;
  overflow: auto;
  border-radius: 8px;
  background: var(--paper-2);
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--ink-3);
  white-space: pre-wrap;
  word-break: break-word;
}
.inspector-error {
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 10.5px;
  line-height: 1.45;
}
.generate-block {
  position: sticky;
  bottom: -26px;
  margin: 16px -18px -26px;
  padding: 14px 18px 20px;
  background: linear-gradient(180deg, rgba(246, 244, 238, 0.72), var(--paper) 30%);
}
.generate-block .btn {
  justify-content: space-between;
}
.generate-credit {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(19, 32, 25, 0.1);
  font-family: var(--font-mono);
  font-size: 9px;
}
.generate-credit svg {
  width: 11px;
  height: 11px;
}
.generate-note {
  margin-top: 7px;
  font-size: 9.5px;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */

.modal {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  max-height: none;
}
.modal::backdrop {
  background: rgba(10, 16, 12, 0.56);
  backdrop-filter: blur(5px);
}
.modal-card {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.45);
}
.modal-card h2 {
  font-size: 30px;
  margin-bottom: 8px;
}
.modal-lede {
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.modal-close:hover {
  color: var(--ink);
  background: rgba(19, 32, 25, 0.05);
}
.modal-close svg {
  width: 15px;
  height: 15px;
}
.modal-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
}
.modal-icon svg {
  width: 22px;
  height: 22px;
}
.modal-icon-warn {
  background: var(--danger-soft);
  color: var(--danger);
}
.modal-actions {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.modal-foot {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */

.dashboard-page {
  min-height: calc(100vh - 64px);
  padding: 46px 0 80px;
  background: var(--paper);
}
.dashboard-wrap {
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
}
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}
.dash-head h1 {
  font-size: clamp(42px, 5vw, 62px);
}
.dash-lede {
  max-width: 48ch;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.dash-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
}
.dash-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dash-card-head .eyebrow {
  margin-bottom: 8px;
}
.dash-card-head h2 {
  font-size: 24px;
}
.plan-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.credits-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 216, 77, 0.35), transparent 46%),
    var(--white);
}
.credits-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 12px;
}
.credits-number strong {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.85;
}
.credits-number span {
  font-size: 11px;
  color: var(--muted);
}
.credit-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.credit-dots i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.credit-dots i.is-filled {
  background: var(--accent);
  border-color: var(--accent-deep);
}
.credits-note {
  margin-bottom: 18px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}
.jobs-card {
  min-height: 300px;
}
.job-list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}
.job-loading,
.job-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 170px;
  font-size: 12px;
  color: var(--muted);
}
.job-empty {
  flex-direction: column;
  text-align: center;
}
.job-empty svg {
  width: 28px;
  height: 28px;
  color: var(--muted);
}
.job-empty strong {
  font-size: 14px;
  color: var(--ink-2);
}
.job-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.job-row:last-child {
  border-bottom: 0;
}
.job-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--ink-3);
}
.job-icon svg {
  width: 16px;
  height: 16px;
}
.job-info {
  flex: 1;
  min-width: 0;
}
.job-info strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.job-info small {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
}
.job-status {
  padding: 3px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-completed {
  background: var(--success-soft);
  color: var(--success);
}
.status-processing,
.status-submitting {
  background: var(--accent-soft);
  color: #6a5306;
}
.status-failed {
  background: var(--danger-soft);
  color: var(--danger);
}
.job-download {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--ink-3);
}
.job-download:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.job-download svg {
  width: 13px;
  height: 13px;
}
.account-card {
  align-self: start;
}
.account-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--success);
}
.account-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.account-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--muted);
}
.account-icon svg {
  width: 15px;
  height: 15px;
}
.account-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.account-row strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.account-delete {
  margin-top: 14px;
  color: var(--danger);
}
.account-delete:hover {
  background: var(--danger-soft);
  color: var(--danger);
}
.help-card {
  background: var(--accent-soft);
}
.help-card h2 {
  max-width: 20ch;
  font-size: 26px;
  margin-bottom: 7px;
}
.help-card p {
  max-width: 42ch;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.dash-foot {
  margin-top: 20px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Admin
   -------------------------------------------------------------------------- */

.admin-page {
  background: var(--paper);
}
.admin-page .site-footer {
  display: none;
}
.admin-shell {
  min-height: 100vh;
  padding-bottom: 70px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.admin-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-wrap {
  width: min(calc(100% - 48px), 1400px);
  margin: 0 auto;
  padding-top: 38px;
}
.admin-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}
.admin-title h1 {
  font-size: 44px;
  margin-bottom: 7px;
}
.admin-title p:last-child {
  font-size: 12px;
  color: var(--muted);
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.admin-stats div {
  min-width: 90px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.admin-stats span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}
.admin-section {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.admin-section-head h2 {
  font-size: 21px;
}
.admin-section-head span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
}
.admin-empty {
  padding: 20px 0;
  font-size: 12px;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 11.5px;
}
.admin-table th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-3);
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.admin-table a {
  border-bottom: 1px solid var(--line-strong);
}
.cell-wrap {
  max-width: 440px;
  white-space: normal;
  word-break: break-word;
}
.status-pill {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */

.error-page {
  padding: 90px 0 120px;
}
.error-card {
  max-width: 640px;
  text-align: center;
}
.error-art {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(110px, 18vw, 190px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.error-card h1 {
  font-size: clamp(40px, 5vw, 58px);
  margin-bottom: 10px;
}
.error-card .lede {
  margin: 0 auto 24px;
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
}

/* --------------------------------------------------------------------------
   Small app additions
   -------------------------------------------------------------------------- */

.resolution-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
}
.resolution-row button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-3);
}
.resolution-row button:hover {
  border-color: var(--line-strong);
}
.resolution-row button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.resolution-row span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
}
.reference-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 9px;
  color: var(--muted);
}
.reference-foot .text-btn {
  font-size: 9px;
  color: var(--danger);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
  animation: rise 0.25s ease both;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.toast-error {
  border-left-color: #e68e7e;
}
.toast-success {
  border-left-color: #8fd2a8;
}
.toast.is-out {
  opacity: 0;
  transform: translateY(6px);
}

/* --------------------------------------------------------------------------
   Utility / animations
   -------------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-grid {
    gap: 40px;
  }
  .hero-copy h1 {
    font-size: clamp(50px, 6vw, 74px);
  }
  .studio-shell {
    grid-template-columns: 226px minmax(0, 1fr) 318px;
  }
  .footer-grid {
    gap: 32px;
  }
}

@media (max-width: 1020px) {
  .site-nav {
    gap: 20px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 30px;
  }
  .float-b {
    left: -12px;
  }
  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audience-card:nth-child(2) {
    border-right: 0;
  }
  .audience-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .studio-shell {
    grid-template-columns: 210px minmax(0, 1fr) 300px;
  }
  .recipe-copy small {
    display: none;
  }
  .studio-inspector {
    font-size: 13px;
  }
  .auth-art {
    padding: 30px;
  }
  .auth-art-copy h1 {
    font-size: clamp(38px, 4.5vw, 54px);
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav-signin {
    display: none;
  }
  .hero {
    padding-top: 46px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hero-copy,
  .hero-visual {
    min-width: 0;
  }
  .hero-copy h1 em {
    white-space: normal;
  }
  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(52px, 9vw, 82px);
  }
  .hero-copy .lede {
    max-width: 56ch;
  }
  .hero-visual {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }
  .split-head,
  .faq-grid,
  .about-grid,
  .about-hero-grid,
  .company-card,
  .contact-grid,
  .legal-grid,
  .legal-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .split-head {
    align-items: start;
  }
  .split-head .section-lede {
    padding-bottom: 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    min-height: 0;
  }
  .step-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .pricing-grid .plan.is-featured {
    order: -1;
  }
  .billing-note {
    flex-wrap: wrap;
  }
  .billing-note .btn {
    margin-left: 0;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .cta-actions {
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-art {
    min-height: 0;
    padding: 28px;
  }
  .auth-art-copy {
    padding: 40px 0 24px;
  }
  .auth-art-copy h1 {
    max-width: 14ch;
  }
  .auth-art-visual {
    display: none;
  }
  .auth-art-foot {
    display: none;
  }
  .auth-panel {
    padding: 28px 20px 50px;
  }
  .auth-card {
    margin-top: -28px;
    position: relative;
    z-index: 2;
  }
  .studio-shell {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
  }
  .studio-rail {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--canvas-line);
    overflow-x: auto;
  }
  .rail-head,
  .rail-note,
  .rail-help {
    display: none;
  }
  .recipe-list {
    flex-direction: row;
    gap: 6px;
  }
  .recipe-card {
    width: auto;
    flex: 0 0 auto;
    align-items: center;
    padding: 7px 9px;
  }
  .recipe-copy small {
    display: none;
  }
  .recipe-check {
    display: none !important;
  }
  .studio-canvas-area {
    min-height: 520px;
  }
  .canvas-stage {
    min-height: 380px;
  }
  .studio-inspector {
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .inspector-scroll {
    padding-bottom: 30px;
  }
  .generate-block {
    position: static;
    margin-bottom: 0;
  }
  .dashboard-page {
    padding-top: 32px;
  }
  .dash-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .admin-title {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-stats {
    width: 100%;
  }
  .admin-header {
    padding: 14px 18px;
  }
  .admin-wrap {
    width: calc(100% - 32px);
  }
  .legal-aside {
    position: static;
  }
  .legal-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .app-header-inner {
    gap: 8px;
    padding: 0 12px;
  }
  .app-header-left,
  .app-header-right {
    gap: 8px;
  }
  .app-header .brand-word {
    display: none;
  }
  .app-nav {
    margin-left: 0;
  }
  .app-nav a {
    padding: 5px 7px;
    font-size: 11px;
  }
  .app-user,
  .app-link {
    display: none;
  }
  .credit-pill {
    padding: 4px 8px;
  }
  .credit-pill-label {
    display: none;
  }
  .demo-bar {
    flex-wrap: wrap;
    padding: 6px 12px;
    font-size: 9.5px;
    line-height: 1.45;
  }
  .studio-canvas-area,
  .studio-inspector {
    width: 100%;
  }
  .studio-inspector .size-grid {
    gap: 8px;
  }
}

@media (max-width: 600px) {
  body {
    overflow-x: clip;
  }
  .header-actions .btn {
    display: none;
  }
  .hero-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
  }
  .hero-copy h1 em {
    white-space: normal;
  }
  .container {
    width: calc(100% - 36px);
  }
  .section {
    padding: 72px 0;
  }
  .hero {
    padding-bottom: 70px;
  }
  .hero-copy h1 {
    font-size: clamp(46px, 13vw, 64px);
  }
  .hero-actions .btn {
    flex: 1;
  }
  .float-card,
  .float-chip {
    display: none;
  }
  .compare-hero {
    aspect-ratio: 1 / 1.1;
  }
  .scene-product {
    width: 48%;
  }
  .format-grid {
    grid-template-columns: 1fr;
  }
  .format-card {
    max-width: 420px;
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .audience-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 0 18px;
  }
  .audience-card:last-child {
    border-bottom: 0;
  }
  .examples-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .example-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .caption-meta {
    text-align: left;
  }
  .resize-stage {
    grid-template-columns: 1fr 1fr;
  }
  .resize-stage .ratio-story {
    display: none;
  }
  .also-list span {
    font-size: 10.5px;
  }
  .plan-price strong {
    font-size: 46px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    gap: 8px;
  }
  .footer-meta {
    flex-wrap: wrap;
  }
  .page-hero {
    padding-top: 56px;
  }
  .page-hero h1,
  .pricing-hero h1,
  .contact-copy h1 {
    font-size: clamp(38px, 11vw, 54px);
  }
  .company-card {
    padding: 24px;
  }
  .company-facts div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 22px;
  }
  .auth-art-copy {
    padding: 30px 0 10px;
  }
  .auth-card {
    padding: 24px;
    margin-top: -18px;
  }
  .auth-panel {
    padding: 20px 14px 40px;
  }
  .modal-card {
    padding: 24px;
  }
  .studio-canvas-area {
    min-height: 440px;
  }
  .canvas-toolbar {
    padding: 9px 12px;
  }
  .canvas-stage {
    padding: 12px;
  }
  .result-compare {
    inset: 10px;
  }
  .dropzone {
    padding: 36px 18px;
  }
  .dropzone h2 {
    font-size: 23px;
  }
  .canvas-result-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-buttons {
    width: 100%;
  }
  .result-buttons .btn {
    flex: 1;
  }
  .inspector-scroll {
    padding: 16px 14px 24px;
  }
  .generate-block {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .dashboard-wrap {
    width: calc(100% - 28px);
  }
  .dash-head h1 {
    font-size: 38px;
  }
  .dash-card {
    padding: 18px;
  }
  .credits-number strong {
    font-size: 60px;
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .error-actions {
    flex-direction: column;
  }
  .error-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
