/* ============================================
   Prezmo — section-specific styles
   ============================================ */

/* ============ HERO ============ */
.hero {
  padding: 140px 0 100px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%; top: 70%;
  width: 1200px; height: 1200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(200, 67, 30, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
[data-variant="cinematic"] .hero::before {
  background: radial-gradient(circle at center, rgba(232, 192, 101, 0.12) 0%, transparent 60%);
}
[data-variant="swiss"] .hero::before { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 64px; } }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.hero-eyebrow-sep { color: var(--fg-muted); opacity: 0.5; }
.hero-ticker {
  color: var(--fg);
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  display: inline-block;
}

.hero-title {
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: 1.08;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.hero-title-line { display: block; }
.hero-title-line--accent { color: var(--accent); }
[data-variant="swiss"] .hero-title-line--accent { color: var(--accent); }

/* Trim leading side-bearing for JP chars so the first character aligns
   flush with the other lines */
.hero-title-line {
  margin-left: -0.08em;
  font-feature-settings: "palt" 1;
}
.hero-title-line--accent { margin-left: -0.14em; }
[data-variant="swiss"] .hero-title-line { margin-left: 0; }
[data-variant="swiss"] .hero-title-line--accent { margin-left: -0.06em; }

.hero-lede {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--fg-soft);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-lede .num { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--accent); padding: 0 0.1em; }

.hero-cta { display: flex; gap: 12px; margin-bottom: 64px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta-num {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--ink-green);
}
.hero-meta-unit { font-size: 18px; opacity: 0.6; padding-left: 2px; }
.hero-meta-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); }

/* Hero stack (right) */
.hero-stack { position: relative; min-height: 520px; }

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: absolute;
  transition: transform 0.6s var(--ease-out);
}
[data-variant="swiss"] .hero-card { border-radius: 0; }

.hero-card--video {
  right: 4%; top: 28%;
  width: 66%;
  aspect-ratio: 16/10;
  z-index: 2;
  transform: rotate(1.5deg);
}
@media (max-width: 1000px) {
  .hero-card--video { width: 72%; right: 2%; }
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.hero-card-head .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-strong);
}
.hero-card-filename {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.hero-card-body { padding: 20px; display: grid; gap: 10px; }
.doc-line {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 3px;
}
.doc-line--thin { height: 6px; opacity: 0.6; }
.doc-chart {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding: 8px;
  background: var(--bg);
  border-radius: 6px;
}
.doc-bar {
  flex: 1;
  background: var(--ink-green-soft);
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
}
.doc-bar:nth-child(4) { background: var(--accent); opacity: 0.9; }

.hero-arrow {
  position: absolute;
  top: 45%;
  left: 48%;
  transform: translate(-50%, -50%) rotate(-8deg);
  z-index: 3;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-arrow-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: -8px;
  white-space: nowrap;
}

.hero-anno {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 4;
}
.hero-anno-num { color: var(--accent); font-weight: 500; }
.hero-anno--a { top: -10px; left: 12%; transform: rotate(-4deg); }
.hero-anno--b { bottom: -10px; right: 6%; transform: rotate(3deg); }

/* Hero inputs (multi-input chips) */
.hero-inputs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.hero-input {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 150px;
}
[data-variant="swiss"] .hero-input { border-radius: 0; }
[data-variant="cinematic"] .hero-input { background: rgba(20,22,26,0.85); border-color: rgba(255,255,255,0.12); color: var(--fg); }
.hero-input-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--paper);
  flex-shrink: 0;
}
[data-variant="swiss"] .hero-input-icon { border-radius: 0; }
.hero-input-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.hero-input-name {
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.hero-input--txt   { top: 2%;   left: -4%;  transform: rotate(-3deg); }
.hero-input--doc   { top: 14%;  right: -2%; transform: rotate(2.5deg); }
.hero-input--audio { top: 66%;  left: -6%;  transform: rotate(-2deg); }
.hero-input--vid   { top: 6%;   left: 32%;  transform: rotate(1.5deg); }

/* Video stub waveform */
.video-wave {
  position: absolute;
  bottom: 42px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  opacity: 0.6;
}
.video-wave span {
  flex: 1;
  background: currentColor;
  border-radius: 1px;
  animation: wave 1.4s ease-in-out infinite;
}
.video-wave span:nth-child(2n) { animation-delay: 0.1s; }
.video-wave span:nth-child(3n) { animation-delay: 0.3s; }
.video-wave span:nth-child(4n) { animation-delay: 0.5s; }
.video-wave span:nth-child(5n) { animation-delay: 0.2s; }
@keyframes wave {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--fg-muted));
  animation: scroll-hint 2.2s ease-in-out infinite;
}
.scroll-indicator-txt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
@keyframes scroll-hint {
  0% { transform: translateY(-8px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ============ HOW IT WORKS ============ */
.how { background: var(--bg-alt); }
.how-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: baseline;
  margin-bottom: 96px;
}
@media (max-width: 800px) { .how-head { grid-template-columns: 1fr; gap: 16px; } }
.how-title { font-size: clamp(40px, 5.5vw, 80px); letter-spacing: -0.02em; }
.how-lede { color: var(--fg-soft); max-width: 540px; font-size: 16px; line-height: 1.8; }

.how-track { position: relative; }
.how-track-line {
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .how-track-line { display: none; }
}
.how-step { position: relative; transition: transform 0.5s var(--ease-out); display: flex; flex-direction: column; }
.how-step-num {
  font-size: 72px;
  line-height: 1;
  color: var(--ink-green);
  opacity: 0.2;
  margin-bottom: 24px;
  transition: opacity 0.5s var(--ease-out), color 0.5s var(--ease-out);
  letter-spacing: -0.04em;
}
.how-step.active .how-step-num {
  opacity: 1;
  color: var(--accent);
}
.how-step-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.how-step-body h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin-bottom: 12px;
}
.how-step-body p {
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}
.how-step-prog {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.how-step-fill {
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ============ FEATURE SPLIT ============ */
.feature { position: relative; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}
.feature--reverse .feature-grid { direction: rtl; }
.feature--reverse .feature-grid > * { direction: ltr; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature--reverse .feature-grid { direction: ltr; }
}

.feature-title {
  font-size: clamp(36px, 5vw, 72px);
  margin: 24px 0 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.feature-lede {
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 32px;
}
.feature-quote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 20px;
  max-width: 480px;
}
.feature-quote-txt {
  font-family: var(--serif-jp);
  font-style: italic;
  font-size: 15px;
  color: var(--fg-soft);
  margin-bottom: 10px;
  line-height: 1.7;
}
.feature-quote-src {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.feature-bullets { list-style: none; display: grid; gap: 14px; padding: 0; }
.feature-bullets li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--fg-soft);
}
.feature-bullets li .num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-size: 22px;
  min-width: 32px;
}

/* Input card */
.input-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
}
[data-variant="swiss"] .input-card { border-radius: 0; }
.input-card-head { margin-bottom: 20px; }
.input-field {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.input-field-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.input-field-value {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.7;
}
.input-attach {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-radius: 10px;
  font-size: 13px;
  color: var(--fg-soft);
  margin-bottom: 20px;
}
[data-variant="swiss"] .input-attach { border-radius: 0; }
.input-attach-size {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
}
.input-gen-btn {
  width: 100%;
  padding: 14px;
  background: var(--ink-green);
  color: var(--paper);
  border: none;
  border-radius: 10px;
  font-family: var(--sans-jp);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s;
}
[data-variant="swiss"] .input-gen-btn { border-radius: 0; }
.input-gen-btn:hover { transform: translateY(-2px); }

/* Input types grid (any input → video) */
.input-types {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
[data-variant="swiss"] .input-types { border-radius: 0; }
[data-variant="cinematic"] .input-types { background: rgba(20,22,26,0.85); border-color: rgba(255,255,255,0.1); }
.input-types-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.input-types-arrow { color: var(--fg-muted); display: inline-flex; }
.input-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  margin-bottom: 18px;
}
[data-variant="swiss"] .input-types-grid { border-radius: 0; }
.input-type {
  padding: 18px 14px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: background 0.3s;
}
.input-type:hover { background: var(--bg-alt); }
.input-type-ic { color: var(--ink); margin-bottom: 4px; }
.input-type-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.input-type-meta {
  font-size: 11px;
  color: var(--fg-muted);
}
.input-types-foot {
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.video-stub--mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: calc(var(--radius) - 4px);
}
[data-variant="swiss"] .video-stub--mini { border-radius: 0; }
.video-stub--mini .video-stub__play {
  position: static;
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper);
  inset: auto;
}
.video-stub--mini .video-stub__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
  position: static;
  padding: 0;
}
.video-stub--mini .video-stub__timer {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  margin-top: 2px;
  position: static;
  padding: 0;
}

/* PDF flow */
.pdf-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .pdf-flow { grid-template-columns: 1fr; }
  .pdf-flow-arrow { transform: rotate(90deg); justify-self: center; }
}
.pdf-flow-doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3/4;
}
[data-variant="swiss"] .pdf-flow-doc { border-radius: 0; }
.pdf-flow-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pdf-flow-lines { display: grid; gap: 8px; }
.pdf-flow-arrow { color: var(--fg-muted); opacity: 0.7; }
.pdf-flow-video {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
[data-variant="swiss"] .pdf-flow-video { border-radius: 0; }

/* Custom panel */
.custom-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
[data-variant="swiss"] .custom-panel { border-radius: 0; }
.custom-field {
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
}
[data-variant="swiss"] .custom-field { border-radius: 0; }
.custom-field-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.custom-field-value { font-size: 14px; color: var(--fg); }
.custom-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-soft);
}
.pill--on {
  background: var(--ink-green);
  color: var(--paper);
  border-color: var(--ink-green);
}
[data-variant="swiss"] .pill { border-radius: 0; }

/* Slack card */
.slack-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
}
[data-variant="swiss"] .slack-card { border-radius: 0; }
.slack-head {
  background: #3A1C4A;
  color: #FFF;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
[data-variant="cinematic"] .slack-head { background: #2A1538; }
.slack-hash { opacity: 0.7; }
.slack-members {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.7;
  font-family: var(--mono);
}
.slack-msg {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.slack-msg:last-child { border-bottom: none; }
.slack-avatar {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.slack-avatar--bot { background: var(--ink-green); }
.slack-body { flex: 1; font-size: 13px; }
.slack-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--fg-muted);
  font-size: 11px;
}
.slack-meta b { color: var(--fg); font-size: 13px; }
.slack-bot-tag {
  background: var(--fg-muted);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}
.slack-text { line-height: 1.7; color: var(--fg-soft); }
.mention {
  background: rgba(200, 67, 30, 0.1);
  color: var(--accent);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}
.slack-attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 12px;
  color: var(--fg-soft);
}
[data-variant="swiss"] .slack-attach { border-radius: 0; }
.slack-progress {
  height: 3px;
  background: var(--bg-alt);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}
.slack-progress-bar {
  width: 38%;
  height: 100%;
  background: var(--accent);
  animation: slack-prog 3s ease-in-out infinite;
}
@keyframes slack-prog {
  0% { width: 15%; }
  50% { width: 68%; }
  100% { width: 15%; }
}

/* Terminal */
.terminal {
  background: #0D0C0A;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  margin: 0 auto;
  font-family: var(--mono);
}
[data-variant="swiss"] .terminal { border-radius: 0; }
.terminal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #17140E;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-head .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot--r { background: #FF5F57; }
.dot--y { background: #FEBC2E; }
.dot--g { background: #28C840; }
.terminal-title {
  margin-left: 10px;
  font-size: 11px;
  color: rgba(245,241,230,0.6);
  letter-spacing: 0.1em;
}
.terminal-body { padding: 24px; font-size: 13px; line-height: 1.7; color: #D4A574; }
.term-cmt { color: #6B8E5C; margin-bottom: 2px; }
.term-line { color: #F5F1E6; }
.term-p { color: #E8C065; margin-right: 8px; }
.term-cmd { color: #F5F1E6; }
.term-str { color: #D4A574; }
.term-spc { height: 12px; }
.term-ind { padding-left: 20px; color: #A89B7F; }
.term-caret {
  color: #E8C065;
  animation: blink 1s step-end infinite;
  margin-top: 4px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ QUALITY ============ */
.quality { background: var(--bg-alt); }
.quality-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: baseline;
}
@media (max-width: 800px) { .quality-head { grid-template-columns: 1fr; gap: 16px; } }
.quality-title { font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.02em; }

.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .quality-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .quality-grid { grid-template-columns: 1fr; } }

.q-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
[data-variant="swiss"] .q-card { border-radius: 0; }
.q-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.q-card-idx {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.q-card h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.q-card p {
  color: var(--fg-soft);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: auto;
}
.q-card .num { font-family: var(--display); font-style: italic; color: var(--accent); }
.q-card-bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 20px; }
.q-card-bars span { flex: 1; background: var(--ink-green-soft); border-radius: 1px; opacity: 0.7; }
.q-card-bars span:nth-child(3) { background: var(--accent); opacity: 1; }
.q-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.q-card-tags span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--fg-muted);
}
[data-variant="swiss"] .q-card-tags span { border-radius: 0; }
.q-card-eta { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; }
.q-card-eta-num { font-size: 32px; color: var(--ink-green); letter-spacing: -0.02em; }
.q-card-eta-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--fg-muted); text-transform: uppercase; }
.q-card-sub { margin-top: 20px; padding: 12px; background: var(--bg-alt); border-radius: 6px; }
[data-variant="swiss"] .q-card-sub { border-radius: 0; }
.q-card-sub-line {
  font-family: var(--serif-jp);
  font-size: 12px;
  color: var(--fg-soft);
  font-style: italic;
}

/* ============ USE CASES ============ */
.usecases-head {
  text-align: left;
  margin-bottom: 80px;
}
.usecases-head .eyebrow { margin-bottom: 24px; }
.usecases-title {
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.02em;
  max-width: 900px;
}
.usecases-title .accent { color: var(--accent); padding: 0 0.12em; }

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 800px) { .usecases-grid { grid-template-columns: 1fr; } }
.uc-card {
  background: var(--bg);
  padding: 40px;
  text-decoration: none;
  color: var(--fg);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: background 0.3s var(--ease-out);
}
.uc-card:hover { background: var(--paper); }
.uc-card:hover .uc-card-arrow { transform: translate(8px, -8px); opacity: 1; }
.uc-card-idx {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  font-family: var(--mono);
  font-style: normal;
  letter-spacing: 0.1em;
}
.uc-card h3 {
  font-size: clamp(24px, 2.5vw, 34px);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.uc-card p {
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: auto;
}
.uc-card-arrow {
  position: absolute;
  top: 40px;
  right: 40px;
  font-family: var(--sans-en);
  font-size: 22px;
  color: var(--fg-muted);
  opacity: 0.4;
  transition: all 0.4s var(--ease-out);
}

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--bg-alt); }
.testi-head { margin-bottom: 64px; }
.testi-head .eyebrow { margin-bottom: 20px; }
.testi-title { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.02em; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
}
[data-variant="swiss"] .testi-card { border-radius: 0; }
.testi-card::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 20px;
  font-family: var(--display);
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
}
.testi-card blockquote {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 28px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.testi-card blockquote .num { font-family: var(--display); font-style: italic; color: var(--accent); font-weight: 400; padding: 0 0.1em; }
.testi-name { font-weight: 500; margin-bottom: 2px; }
.testi-role { font-size: 12px; color: var(--fg-muted); font-family: var(--mono); letter-spacing: 0.08em; }

/* ============ PRICING ============ */
.pricing-head {
  text-align: center;
  margin-bottom: 72px;
}
.pricing-head .eyebrow { justify-content: center; margin-bottom: 20px; }
.pricing-head .eyebrow::before, .pricing-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.pricing-title {
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.pricing-lede {
  color: var(--fg-soft);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.pricing-lede .num { font-family: var(--display); font-style: italic; color: var(--accent); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
[data-variant="swiss"] .plan { border-radius: 0; }
.plan--featured {
  border-color: var(--ink-green);
  background: var(--ink-green);
  color: var(--paper);
  transform: translateY(-8px);
}
.plan--featured .plan-sub,
.plan--featured .plan-feats li { color: rgba(250, 247, 238, 0.7); }
.plan--featured .plan-feats li::before { color: var(--accent-2); }
[data-variant="swiss"] .plan--featured { background: var(--fg); color: var(--paper); border-color: var(--fg); }

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 4px 12px;
  border-radius: 999px;
}
[data-variant="swiss"] .plan-badge { border-radius: 0; }

.plan-name {
  font-family: var(--sans-jp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.plan-price {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.plan--featured .plan-price { color: var(--paper); }
.plan-price-unit {
  font-size: 14px;
  font-family: var(--mono);
  font-style: normal;
  color: var(--fg-muted);
  padding-left: 2px;
}
.plan--featured .plan-price-unit { color: rgba(250, 247, 238, 0.6); }
.plan-sub {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.plan--featured .plan-sub { border-color: rgba(250, 247, 238, 0.15); }
.plan-feats {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}
.plan-feats li {
  font-size: 13px;
  color: var(--fg-soft);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.plan-feats li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
}
.plan-feats li .num { font-family: var(--display); font-style: italic; color: var(--accent); font-weight: 400; }
.plan--featured .plan-feats li .num { color: var(--accent-2); }
.plan-cta { justify-content: center; font-size: 13px; }

.pricing-note {
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

/* ============ FINAL CTA ============ */
.finalcta {
  background: var(--bg-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 14vw, 180px) 0;
}
.finalcta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><path d='M30 0v60M0 30h60' stroke='rgba(250,247,238,0.04)' stroke-width='1'/></svg>");
  pointer-events: none;
}
.finalcta-inner { text-align: center; max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.finalcta-inner .eyebrow { justify-content: center; margin-bottom: 28px; }
.finalcta-inner .eyebrow::before, .finalcta-inner .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.4; }
.finalcta-title {
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.finalcta-title .accent {
  color: var(--accent);
  padding-left: 0.15em;
  font-weight: 400;
}
.finalcta-lede {
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(250, 247, 238, 0.7);
  line-height: 1.8;
  margin-bottom: 48px;
}
.finalcta-lede .num {
  font-family: var(--sans-jp);
  font-style: normal;
  font-weight: 700;
  color: var(--accent-2);
  padding: 0 0.15em;
  letter-spacing: 0;
}
.finalcta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.finalcta-btn {
  background: var(--paper);
  color: var(--bg-deep);
  padding: 20px 40px;
  font-size: 15px;
}
.finalcta-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4); }
.finalcta-btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(250, 247, 238, 0.3);
}
.finalcta-btn--ghost:hover { background: rgba(250, 247, 238, 0.08); }

.finalcta-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(250, 247, 238, 0.5);
  text-transform: uppercase;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.finalcta-meta .sep { opacity: 0.5; }


/* ====== Edit chat (feature 04) ====== */
.edit-chat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
[data-variant="swiss"] .edit-chat { border-radius: 0; }
[data-variant="cinematic"] .edit-chat { background: rgba(20,22,26,0.85); border-color: rgba(255,255,255,0.1); }
.edit-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.edit-chat-slide {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}
.edit-chat-body { display: grid; gap: 14px; }
.edit-msg { display: grid; gap: 6px; }
.edit-msg--user { justify-items: end; }
.edit-msg--ai { justify-items: start; }
.edit-msg-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
}
.edit-msg-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
}
.edit-msg--user .edit-msg-bubble {
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px 14px 2px 14px;
}
.edit-msg--ai .edit-msg-bubble {
  background: var(--bg-alt);
  color: var(--fg);
  border-radius: 14px 14px 14px 2px;
  border: 1px solid var(--line);
}
[data-variant="swiss"] .edit-msg-bubble { border-radius: 0 !important; }
.edit-msg-diff {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
[data-variant="swiss"] .edit-msg-diff { border-radius: 0; }
.edit-diff-row { display: flex; gap: 8px; align-items: baseline; }
.edit-diff-row--old { color: var(--fg-muted); text-decoration: line-through; opacity: 0.7; }
.edit-diff-row--new { color: var(--fg); }
.edit-diff-mk {
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.edit-diff-row--old .edit-diff-mk { color: var(--fg-muted); }
.edit-msg-note {
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
  font-family: var(--serif-jp);
}

/* ====== Share card (feature 05) ====== */
.share-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 44px 48px 48px;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
[data-variant="swiss"] .share-card { border-radius: 0; }
.share-card-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  line-height: 1.2;
}
.share-card-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* Video preview block */
.share-video {
  position: relative;
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 14px 18px 14px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
[data-variant="swiss"] .share-video { border-radius: 0; }
.share-video-label {
  position: absolute; top: -9px; left: 18px;
  background: var(--bg-alt);
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.share-video-thumb {
  position: relative;
  width: 108px; height: 64px;
  border-radius: 3px;
  overflow: hidden;
  background: #111;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
[data-variant="swiss"] .share-video-thumb { border-radius: 0; }
/* Film perf holes */
.share-video-thumb::before, .share-video-thumb::after {
  content: ""; position: absolute; left: 0; right: 0; height: 5px;
  background-image: radial-gradient(circle, var(--bg-alt) 0 1.2px, transparent 1.4px);
  background-size: 8px 5px;
  background-repeat: repeat-x;
  background-position: 3px center;
  z-index: 3;
}
.share-video-thumb::before { top: 0; }
.share-video-thumb::after { bottom: 0; }
.share-thumb-tag {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  display: flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 7px; letter-spacing: 0.16em; color: #fff;
}
.share-thumb-rec {
  width: 4px; height: 4px; border-radius: 50%; background: #ff3b3b;
  animation: share-blink 1.4s ease-in-out infinite;
}
@keyframes share-blink { 50% { opacity: 0.25; } }
.share-thumb-res {
  position: absolute; right: 8px; bottom: 8px; z-index: 4;
  font-family: var(--mono); font-size: 7px; letter-spacing: 0.14em; color: rgba(255,255,255,0.75);
}
.share-thumb-frames { position: absolute; inset: 0; }
.share-fr {
  position: absolute; inset: 0; opacity: 0;
  animation: share-framecycle 16s linear infinite;
  padding: 8px 10px; color: #fff;
  font-family: var(--sans-jp);
  display: flex; flex-direction: column; justify-content: space-between;
}
.share-fr:nth-child(1) { animation-delay: 0s; }
.share-fr:nth-child(2) { animation-delay: -12s; }
.share-fr:nth-child(3) { animation-delay: -8s; }
.share-fr:nth-child(4) { animation-delay: -4s; }
@keyframes share-framecycle {
  0% { opacity: 0; } 3% { opacity: 1; } 22% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; }
}
.share-fr--a { background: #0f0f10; }
.share-fr-m { font-family: var(--mono); font-size: 6px; letter-spacing: 0.18em; opacity: 0.55; text-transform: uppercase; }
.share-fr-t { font-family: var(--serif-jp); font-size: 10px; font-weight: 500; line-height: 1.25; }
.share-fr--b { background: var(--accent); }
.share-fr-bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.share-fr-bars b { display: block; width: 6px; background: #fff; opacity: 0.85; }
.share-fr--c { background: var(--bg-alt); color: #111; }
.share-fr--d { background: #1a1a1a; }
.share-fr-big { font-family: var(--serif-jp); font-size: 22px; font-weight: 500; line-height: 1; }
.share-thumb-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--accent);
  display: grid; place-items: center; z-index: 2;
}
.share-thumb-play svg { width: 9px; height: 9px; margin-left: 2px; }
.share-thumb-play::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  animation: share-pulse 2.6s ease-out infinite;
}
@keyframes share-pulse { 0% { transform: scale(0.9); opacity: 0.45; } 100% { transform: scale(1.35); opacity: 0; } }

.share-video-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.share-video-topline {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--fg-soft); text-transform: uppercase;
}
.share-video-topline b { color: var(--fg); font-weight: 600; }
.share-video-tc { color: var(--fg-muted); }
.share-video-tc-cur { color: var(--accent); }
.share-wave {
  display: flex; align-items: center; gap: 3px; height: 32px; overflow: hidden;
}
.share-wave i {
  display: block; width: 3px; border-radius: 2px;
  background: var(--fg);
  animation: share-wavepulse 1.8s ease-in-out infinite;
}
.share-wave i.played { background: var(--accent); }
@keyframes share-wavepulse { 0%, 100% { transform: scaleY(0.85); } 50% { transform: scaleY(1.05); } }

/* PDF / Link rows */
.share-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.share-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-alt); border-radius: 4px; padding: 18px 20px;
}
[data-variant="swiss"] .share-row { border-radius: 0; }
.share-row-ico {
  width: 54px; height: 54px; background: var(--paper); border-radius: 4px;
  display: grid; place-items: center; flex: 0 0 auto; color: var(--fg);
}
[data-variant="swiss"] .share-row-ico { border-radius: 0; }
.share-row-body { flex: 1; min-width: 0; }
.share-row-h { font-weight: 700; font-size: 15px; letter-spacing: 0.01em; }
.share-row-s { color: var(--fg-muted); font-size: 13px; margin-top: 3px; }
.share-row-size { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); letter-spacing: 0.1em; }

/* ====== Legacy export (unused) ====== */
.export-option-size {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.export-option--primary .export-option-size { color: rgba(255,255,255,0.6); }


/* ====== Plan credit block ====== */
.plan-credit {
  padding: 16px 0;
  margin: 8px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.plan--featured .plan-credit {
  border-color: rgba(250, 247, 238, 0.18);
}
.plan-credit-pt {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.plan--featured .plan-credit-pt { color: var(--paper); }
.plan-credit-unit {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-left: 6px;
  text-transform: lowercase;
}
.plan--featured .plan-credit-unit { color: rgba(250,247,238,0.6); }
.plan-credit-note {
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-top: 6px;
}
.plan--featured .plan-credit-note { color: rgba(250,247,238,0.72); }
.plan-credit-note .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
  padding: 0 0.08em;
}
.plan--featured .plan-credit-note .num { color: var(--accent-2); }


/* ====== Slide editor (feature 04 — direct-edit) ====== */
.slide-editor {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
[data-variant="swiss"] .slide-editor { border-radius: 0; }
[data-variant="cinematic"] .slide-editor { background: rgba(20,22,26,0.85); border-color: rgba(255,255,255,0.1); }

.slide-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.slide-editor-page {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

/* Canvas wrapper so instruction card can overlap */
.slide-editor-canvas {
  position: relative;
  padding-bottom: 12px;
}

/* Fake slide */
.slide-canvas {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 16/10;
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
}
[data-variant="swiss"] .slide-canvas { border-radius: 0; }
[data-variant="cinematic"] .slide-canvas { background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.08); }
.slide-canvas-title {
  font-family: var(--serif-jp);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 14px;
}
.slide-canvas-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 52%;
  padding: 6px;
}
.slide-canvas-bar {
  flex: 1;
  background: var(--line-strong);
  border-radius: 2px 2px 0 0;
  opacity: 0.55;
  position: relative;
}
.slide-canvas-bar--highlight {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent-2), 0 6px 18px rgba(37, 60, 210, 0.35);
}
.slide-canvas-bar-lbl {
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.slide-canvas-caption {
  position: absolute;
  bottom: 16px;
  left: 22px;
  font-size: 12px;
  color: var(--fg);
  padding: 6px 10px;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
[data-variant="swiss"] .slide-canvas-caption { border-radius: 0; }
.slide-canvas-caption strong { color: var(--accent); font-weight: 700; }
.slide-canvas-caption--selected {
  outline: 1.5px dashed var(--accent);
  outline-offset: 4px;
}
/* Corner handles */
.slide-canvas-selmark {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--paper);
  border: 1.5px solid var(--accent);
}
.slide-canvas-selmark--tl { top: -8px; left: -8px; }
.slide-canvas-selmark--tr { top: -8px; right: -8px; }
.slide-canvas-selmark--bl { bottom: -8px; left: -8px; }
.slide-canvas-selmark--br { bottom: -8px; right: -8px; }

/* Inline instruction card */
.slide-instruction {
  position: absolute;
  right: -8px;
  bottom: -22px;
  width: 64%;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  transform: translateY(10%);
}
[data-variant="swiss"] .slide-instruction { border-radius: 0; }
.slide-instruction::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 12px; height: 12px;
  background: var(--ink);
  transform: rotate(45deg);
}
.slide-instruction-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.slide-instruction-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
  animation: slideInstructionPulse 1.8s ease-in-out infinite;
}
@keyframes slideInstructionPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.slide-instruction-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}
.slide-instruction-input {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--paper);
  margin-bottom: 10px;
}
[data-variant="swiss"] .slide-instruction-input { border-radius: 0; }
.slide-instruction-caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--accent-2);
  animation: slideInstructionCaret 1s steps(2, end) infinite;
}
@keyframes slideInstructionCaret {
  50% { opacity: 0; }
}
.slide-instruction-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.slide-instruction-chip {
  font-size: 10.5px;
  padding: 5px 9px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
[data-variant="swiss"] .slide-instruction-chip { border-radius: 0; }
.slide-instruction-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  font-family: var(--mono);
  letter-spacing: 0.08em;
}
.slide-instruction-status { display: flex; align-items: center; gap: 6px; }
.slide-instruction-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: slideInstructionPulse 1.4s ease-in-out infinite;
}
.slide-instruction-cta { color: var(--accent-2); font-weight: 600; }

.slide-editor-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.slide-editor-thumbs {
  display: flex;
  gap: 5px;
}
.slide-thumb {
  width: 24px;
  height: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 2px;
}
[data-variant="swiss"] .slide-thumb { border-radius: 0; }
.slide-thumb--active {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--accent-2);
}
.slide-editor-meta {
  font-size: 11px;
  color: var(--fg-muted);
  font-style: italic;
  font-family: var(--serif-jp);
}
