/* Tori Patterns — one continuous dark instrument.
   Type: GeistPixel-Circle (display) · Geist Mono (labels) · Geist (body).
   Color: near-black chrome; the five Figma hues do all the talking. */

@font-face {
  font-family: 'Geist Pixel';
  src: url('../fonts/GeistPixel-Circle.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0A0A0B;
  --panel: #121214;
  --ink: #EDEDED;
  --dim: #9A9AA0;
  --line: rgba(255, 255, 255, 0.1);

  --f-red: #F24E1E;
  --f-orange: #FF7262;
  --f-purple: #A259FF;
  --f-blue: #1ABCFE;
  --f-green: #0ACF83;

  --accent: var(--f-green);

  --pixel: 'Geist Pixel', 'Courier New', monospace;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --sans: 'Geist', system-ui, sans-serif;

  --z-marquee: 1;
  --z-header: 10;
  --z-modal: 50;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--mono); cursor: pointer; }
.hidden { display: none !important; }

::selection { background: var(--f-green); color: #04140C; }

:focus-visible {
  outline: 2px solid var(--f-green);
  outline-offset: 2px;
}

/* ============ header ============ */

.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 40px);
  height: 60px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  font-family: var(--pixel);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand em {
  font-style: normal;
  color: var(--f-green);
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 12px;
}

.nav-link { color: var(--dim); transition: color 0.15s ease; }
.nav-link:hover { color: var(--ink); }

/* ============ hero ============ */

.hero {
  position: relative;
  min-height: min(74vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.1) 40%, rgba(10,10,11,0.82) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  padding: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(32px, 6vh, 72px);
  max-width: 1100px;
}

.hero h1 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 0.92em;
  margin-left: 0.08em;
  vertical-align: text-bottom;
  background: var(--f-green);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  margin-top: 22px;
  font-family: var(--sans);
  font-weight: 450;
  font-size: 15px;
  line-height: 1.65;
  max-width: 52ch;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  font-size: 12px;
}

.hero-hint { color: var(--dim); }
.hero-hint kbd {
  font-family: var(--mono);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--ink);
  background: rgba(255,255,255,0.06);
}

/* ============ marquee ============ */

.marquee {
  position: relative;
  z-index: var(--z-marquee);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee 36s linear infinite;
}

.marquee b {
  font-weight: 400;
  color: var(--ink);
}

.marquee .tick { color: var(--f-green); margin: 0 14px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ engine index ============ */

.index-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: clamp(28px, 5vh, 48px) clamp(16px, 3vw, 40px) 14px;
  font-size: 12px;
  color: var(--dim);
}

.index-head .count { color: var(--ink); }

.engine-row {
  position: relative;
  display: block;
  height: clamp(150px, 24vh, 230px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.engine-row:last-of-type { border-bottom: 1px solid var(--line); }

.row-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.row-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10,10,11,0.88) 0%,
    rgba(10,10,11,0.55) 45%,
    rgba(10,10,11,0.25) 100%);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.engine-row:hover .row-scrim,
.engine-row:focus-visible .row-scrim { opacity: 0.35; }

.row-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 3vw, 40px);
}

.row-name {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 62px);
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color 0.25s ease;
}

.engine-row:hover .row-name,
.engine-row:focus-visible .row-name { color: var(--row-accent, var(--f-green)); }

.row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-align: right;
  flex-shrink: 0;
}

.row-dot {
  width: 9px;
  height: 9px;
  background: var(--row-accent, var(--f-green));
}

.row-tag { max-width: 34ch; }

.row-arrow {
  color: var(--ink);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.engine-row:hover .row-arrow { transform: translateX(5px); }

/* Landing hero is a banner, not a full screen — the use cases must peek. */
.hero-landing { min-height: min(46vh, 440px); }

.hero-landing h1 { font-size: clamp(34px, 5vw, 64px); }

.hero-landing .hero-copy { padding-bottom: clamp(24px, 4vh, 40px); }

.hero-landing .hero-sub { margin-top: 14px; font-size: 14px; }

/* ============ landing: use cases ============ */

.usecases {
  padding: clamp(40px, 8vh, 88px) clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.uc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vh, 40px);
}

.uc-head h2 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: 0.01em;
}

.uc-head p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 44ch;
}

.uc-head kbd {
  font-family: var(--mono);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--ink);
}

/* Four equal tall cards, all visible at once — no scrolling. */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 26px);
}

.uc {
  display: flex;
  flex-direction: column;
}

.uc-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  aspect-ratio: 3 / 4;
}

.uc-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.uc figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 12px;
  font-size: 12px;
}

.uc figcaption b { font-weight: 500; color: var(--ink); }
.uc figcaption span { font-family: var(--sans); color: var(--dim); }
.uc figcaption a { font-size: 11px; margin-top: 3px; }
.uc figcaption a:hover { filter: brightness(1.25); }

/* poster mockup — light field, dark ink */
.poster-type {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: #1E1E1E;
}

.poster-kicker { font-size: 10px; letter-spacing: 0.14em; }

.poster-title {
  font-family: var(--pixel);
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.04;
  letter-spacing: 0.02em;
}

.poster-foot { font-size: 10px; letter-spacing: 0.1em; }

/* slide mockup */
.slide-type {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,10,11,0.12), rgba(10,10,11,0.45));
}

.slide-logo { position: absolute; top: 18px; left: 22px; font-size: 11px; letter-spacing: 0.1em; }
.slide-page { position: absolute; top: 18px; right: 22px; font-size: 11px; color: rgba(255,255,255,0.75); }

.slide-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.01em;
}

/* browser mockup */
.browser-frame { display: flex; flex-direction: column; }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #151517;
  font-size: 10px;
  color: var(--dim);
}

.browser-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.browser-bar span { margin-left: 10px; }

.browser-body { position: relative; flex: 1; min-height: 0; }

.browser-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 18px 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(5,7,10,0.35), rgba(5,7,10,0.05) 40%, rgba(5,7,10,0.35));
}

.browser-nav {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.browser-links { color: rgba(255,255,255,0.7); }

.browser-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.browser-h {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 28px);
}

.browser-cta {
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  background: #fff;
  color: #05070A;
  border-radius: 3px;
}

/* event screen mockup */
.screen-type {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #fff;
  background: radial-gradient(ellipse at center, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.1) 75%);
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}

.screen-kicker, .screen-foot { font-size: 10px; letter-spacing: 0.18em; opacity: 0.85; }

.screen-title {
  font-family: var(--pixel);
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.05;
  letter-spacing: 0.03em;
}

/* ============ landing: photo lab ============ */

.photolab {
  padding: clamp(40px, 8vh, 88px) clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.ba {
  --pos: 55%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
  height: min(68vh, 620px);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.ba-drop-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.72);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

.ba canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
}

.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0A0A0B;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-label {
  position: absolute;
  top: 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.65);
  color: #fff;
}

.ba-l { left: 12px; }
.ba-r { right: 12px; }

.ba-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

/* photo mode page */
.stage-ba {
  width: 100%;
  height: min(60vh, 640px);
  flex-shrink: 0;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 18px;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--accent);
  background: rgba(10, 207, 131, 0.07);
}

.dropzone-big {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.dropzone-small {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--dim);
}

.btn-upload {
  margin-left: auto;
  background: rgba(10, 207, 131, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  transition: filter 0.15s ease;
}

.btn-upload:hover { filter: brightness(1.2); }

/* ============ landing: engine strip ============ */

.strip {
  padding: clamp(36px, 7vh, 72px) clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.strip-head h2 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.01em;
}

.strip-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.strip-item {
  position: relative;
  height: 120px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.strip-item canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.strip-name {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--pixel);
  font-size: 17px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  transition: color 0.2s ease;
}

.strip-item:hover .strip-name { color: var(--row-accent, var(--f-green)); }

/* ============ pricing + footer ============ */

.pricing {
  padding: clamp(36px, 7vh, 72px) clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 640px);
  gap: 32px;
}

.pricing h2 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.01em;
}

.price-list { font-size: 13px; }

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.price-line:first-child { padding-top: 4px; }

.price-what { color: var(--ink); }
.price-how { color: var(--dim); white-space: nowrap; }
.price-how.free { color: var(--f-green); }

.price-note {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  color: var(--dim);
  max-width: 56ch;
}

.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px clamp(16px, 3vw, 40px);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.site-foot a { color: var(--ink); }
.site-foot a:hover { color: var(--f-green); }

/* ============ editor ============ */

.editor {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.editor-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  height: 56px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  flex-shrink: 0;
}

.back { color: var(--dim); }
.back:hover { color: var(--ink); }

.editor-title {
  font-family: var(--pixel);
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-size: 11px;
  padding: 5px 12px;
  transition: all 0.15s ease;
}

.chip:hover {
  color: var(--ink);
  border-color: var(--dim);
}

.editor-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  min-width: 0;
}

.stage-frame {
  max-width: 100%;
  max-height: calc(100% - 40px);
  width: min(100%, calc((100vh - 200px) * var(--ar, 1.6)));
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.stage-frame canvas { width: 100%; height: 100%; }

.stage-info {
  display: flex;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

/* panel */

.panel {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

.panel-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px 18px 18px;
}

.ctl-group {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--dim);
  padding: 20px 0 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.ctl { margin-bottom: 14px; }

.ctl-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ctl-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: block;
}

.ctl-value {
  font-size: 11px;
  color: var(--dim);
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: grab;
}

input[type='range']:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ctl-size .size-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--dim);
}

.ctl-size input {
  width: 80px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 8px;
}

.ctl-color .color-well,
.palette-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

input[type='color'] {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

input[type='color']::-webkit-color-swatch-wrapper { padding: 3px; }
input[type='color']::-webkit-color-swatch { border: none; border-radius: 2px; }

.color-hex {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.palette-row { margin-bottom: 10px; }
.palette-meta { flex: 1; }

.ctl-select select {
  width: 100%;
  margin-top: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 8px;
}

.ctl-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  transition: background 0.15s ease;
}

.toggle .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dim);
  transition: all 0.15s ease;
}

.toggle.on { background: var(--accent); border-color: var(--accent); }
.toggle.on .knob { left: 19px; background: #0A0A0B; }

.panel-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

/* buttons */

.btn {
  border: none;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  transition: filter 0.15s ease;
}

.btn:hover { filter: brightness(1.12); }

.btn-solid { background: var(--accent); color: #0A0A0B; font-weight: 600; }

.btn-generate {
  width: 100%;
  background: var(--accent);
  color: #0A0A0B;
  font-weight: 600;
  padding: 12px;
}

.btn-pro {
  background: none;
  border: 1px solid var(--line);
  color: var(--dim);
}

/* export modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

.modal {
  width: min(440px, calc(100vw - 40px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-title {
  font-family: var(--pixel);
  font-size: 15px;
  letter-spacing: 0.05em;
}

.modal-close {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 14px;
}

.export-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.export-info { display: flex; flex-direction: column; gap: 4px; }
.export-name { font-size: 13px; }
.export-desc { font-size: 11px; color: var(--dim); }

.export-note {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.65;
  color: var(--dim);
}

.export-soon {
  margin-top: 10px;
  font-size: 11px;
  color: var(--f-green);
}

/* scan-to-pay view */

.pay-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pay-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 6px;
  padding: 12px 12px 10px;
}

.pay-cell figcaption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  color: #1E1E1E;
}

.pay-cell figcaption b {
  color: #0A8754;
  font-weight: 600;
  font-size: 12px;
}

.pay-qr {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

.pay-steps {
  margin: 16px 0 0 18px;
  font-size: 12px;
  line-height: 2;
}

.pay-steps b { color: var(--f-green); font-weight: 600; }
.pay-steps .chip { margin-left: 6px; }
.pay-dim { color: var(--dim); font-size: 11px; }

.pay-mail { color: var(--f-blue); word-break: break-all; }
.pay-mail:hover { filter: brightness(1.2); }

/* ============ responsive ============ */

@media (max-width: 900px) {
  .editor { height: auto; min-height: 100vh; }
  .editor-body { flex-direction: column; }
  .panel { width: 100%; border-left: none; border-top: 1px solid var(--line); }
  .pricing { grid-template-columns: 1fr; }
  .row-tag { display: none; }
  .hero { min-height: 60vh; }
  .uc-grid { grid-template-columns: 1fr 1fr; }
  .ba { height: min(52vh, 460px); }
}

@media (max-width: 560px) {
  .uc-grid { grid-template-columns: 1fr; }
  .uc-frame { aspect-ratio: 4 / 3; }
}

/* ============ reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .cursor { animation: none; }
  .row-scrim, .row-arrow, .row-name { transition: none; }
}
