/* FxPeek Landing Page Stylesheet
 * 3 Distinct Light-Mode Architectural Themes: swiss | studio | editorial
 * Zero external CDNs, zero emoji, strict CSP compliant.
 */

:root {
  --canvas: #F7FAFA;
  --band-alt-bg: #F7FAFA;
  --surface: #FFFFFF;
  --subtle: #F1F5F9;

  --brand: #0F766E;
  --brand-hover: #115E59;
  --brand-tint: #F0FDFA;
  --brand-border: #99F6E4;
  --brand-ink: #115E59;
  --accent-secondary: #0F766E;

  --cta-bg: #0F766E;
  --cta-hover: #115E59;
  --cta-text: #FFFFFF;

  --ink: #0F172A;
  --ink-secondary: #334155;
  --ink-muted: #475569;
  --ink-quiet: #64748B;

  --hairline: #E2E8F0;
  --hairline-strong: #CBD5E1;

  --trend-up: #EA580C;
  --trend-down: #0284C7;
  --danger: #BE123C;

  --topbar-bg: rgba(247, 250, 250, 0.92);
  --frame-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  --dock-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, "Cascadia Mono", Consolas, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

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

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

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

figure {
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.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;
}

.offscreen-copy {
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Top Navigation
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  color: var(--brand);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topnav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 150ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.style-switch,
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 2px;
}

.style-btn,
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.style-btn:hover,
.lang-btn:hover {
  color: var(--ink);
}

.style-btn.is-active,
.lang-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-secondary);
  transition: border-color 150ms ease, color 150ms ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  border-color: var(--hairline-strong);
  color: var(--ink);
}

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

/* ==========================================================================
   Hero Section & Browser Capture Stage
   ========================================================================== */
.hero-section {
  padding: 64px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 44px;
  align-items: start;
}

.hero-copy {
  padding-top: 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--brand-ink);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.eyebrow-rule {
  width: 20px;
  height: 1.5px;
  background: var(--accent-secondary);
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 3.6vw, 3.05rem);
  font-weight: 660;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 550;
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
}

.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline-strong);
}

.btn-secondary:hover {
  background: var(--subtle);
  border-color: var(--ink-quiet);
}

.btn-compact {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

.hero-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* Hero Stage Shell */
.hero-stage {
  min-width: 0;
}

.stage-plate {
  font-size: 10.5px;
  color: var(--ink-quiet);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Minimal Browser Chrome & Screenshot Frames */
.browser-frame {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--frame-shadow);
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.browser-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
}

.browser-url {
  flex: 1;
  min-width: 0;
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zoom-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 500;
  flex-shrink: 0;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.zoom-icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-tint);
}

.shot-mat {
  background: var(--surface);
}

.shot-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.shot-img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-img-wide {
  aspect-ratio: auto;
  object-fit: contain;
}

.hero-shot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.hero-shot-caption {
  font-size: 12px;
  color: var(--ink-muted);
  flex: 1 1 180px;
  min-width: 0;
}

.hero-foot-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hero-rail-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-border);
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.hero-rail-btn:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #FFFFFF;
}

/* ==========================================================================
   Floating Live Converter Panel (#live-rail, #live-rail-tab & mobile sheet)
   Top-aligned with the hero browser capture frame and tucked 28px beside it
   (gliding outward to clear wider lower bands on scroll); collapses cleanly
   on medium/small viewports.
   ========================================================================== */
.live-rail-backdrop {
  display: none;
}

.live-rail-tab {
  position: fixed;
  left: min(var(--rail-anchor-left, calc(50% + 488px)), calc(100vw - 128px));
  bottom: clamp(24px, 5vh, 52px);
  z-index: 44;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.05);
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease, box-shadow 180ms ease;
}

.live-rail-tab:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12), 0 2px 5px rgba(15, 23, 42, 0.06);
}

.live-rail-tab.is-hidden-tab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
}

.rail-tab-icon {
  display: block;
  flex-shrink: 0;
  color: var(--brand);
}

.rail-tab-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.live-rail {
  position: fixed;
  left: min(var(--rail-anchor-left, calc(50% + 488px)), calc(100vw - 344px));
  top: max(76px, min(var(--rail-anchor-top, 488px), calc(100vh - 624px)));
  bottom: auto;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  z-index: 45;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--dock-shadow);
  transform: translate3d(var(--rail-dx, 0px), var(--rail-dy, 0px), 0);
  transition: left 220ms cubic-bezier(0.22, 1, 0.36, 1), top 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease, visibility 180ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.live-rail.is-collapsed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(var(--rail-dx, 0px), calc(var(--rail-dy, 0px) + 18px), 0) scale(0.98);
}

.live-rail.is-dragging {
  transition: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.08);
}

@keyframes railPulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.32), var(--dock-shadow);
    border-color: var(--brand);
  }
  65% {
    box-shadow: 0 0 0 7px rgba(15, 118, 110, 0), var(--dock-shadow);
    border-color: var(--brand);
  }
  100% {
    box-shadow: var(--dock-shadow);
  }
}

.live-rail.is-pulsing {
  animation: railPulseRing 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.live-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  cursor: grab;
  touch-action: none;
  flex-shrink: 0;
}

.live-rail.is-dragging .live-rail-head {
  cursor: grabbing;
}

.live-rail-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.drag-grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-quiet);
  flex-shrink: 0;
  opacity: 0.72;
  transition: color 140ms ease, opacity 140ms ease;
}

.live-rail-head:hover .drag-grip {
  color: var(--ink-secondary);
  opacity: 1;
}

.live-rail-heading {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.live-rail-title-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.live-rail-mark {
  display: block;
  flex-shrink: 0;
  color: var(--brand);
}

.live-rail-title {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-rail-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.rail-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.rail-icon-btn:hover {
  border-color: var(--hairline-strong);
  color: var(--ink);
  background: var(--subtle);
}

.live-rail-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}

.sim-bar {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 12px;
}

.sim-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.sim-bar-label {
  font-size: 11.5px;
  font-weight: 550;
  color: var(--ink-muted);
}

.sim-bar-hint {
  font-size: 10.5px;
  color: var(--ink-quiet);
}

.sim-price-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sim-price-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--surface);
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.sim-price-chip:hover {
  border-color: var(--hairline-strong);
}

.sim-price-chip.is-selected {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.sim-item-name {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-item-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.fx-micro-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 550;
  color: var(--brand-ink);
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  line-height: 1.35;
}

.sim-price-chip.is-selected .fx-micro-badge {
  background: var(--surface);
}

.rail-converter-panel {
  padding: 12px;
}

.fx-rate-line {
  font-size: 10.5px;
  color: var(--ink-muted);
  line-height: 1.25;
}

.converter-box {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
  position: relative;
}

.converter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
}

.converter-row-target {
  background: var(--canvas);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.currency-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

.currency-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 6px center;
  padding: 3px 22px 3px 7px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}

.currency-select:hover {
  border-color: var(--hairline-strong);
}

.currency-name {
  font-size: 10.5px;
  color: var(--ink-quiet);
  padding-left: 2px;
}

.amount-input-wrap,
.amount-output-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.amount-input {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: right;
  font-size: 19px;
  font-weight: 650;
  color: var(--ink);
  padding: 2px 0;
  letter-spacing: -0.02em;
}

.amount-input:focus {
  outline: none;
}

.amount-output {
  font-size: 19px;
  font-weight: 650;
  color: var(--brand);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.micro-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: border-color 140ms ease, color 140ms ease;
}

.micro-icon-btn:hover {
  border-color: var(--hairline-strong);
  color: var(--ink);
}

.micro-icon-btn .icon-check,
.btn .icon-check {
  display: none;
}

.micro-icon-btn.is-copied,
.btn.is-copied {
  color: var(--brand);
  border-color: var(--brand-border);
}

.micro-icon-btn.is-copied .icon-copy,
.btn.is-copied .icon-copy {
  display: none;
}

.micro-icon-btn.is-copied .icon-check,
.btn.is-copied .icon-check {
  display: block;
}

.converter-seam {
  position: relative;
  height: 1px;
  background: var(--hairline);
}

.seam-swap-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
  z-index: 2;
}

.seam-swap-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-tint);
}

.seam-swap-icon {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seam-swap-icon.is-flipped {
  transform: rotate(180deg);
}

.presets-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.strip-label {
  font-size: 11px;
  font-weight: 550;
  color: var(--ink-muted);
  white-space: nowrap;
}

.strip-meta {
  font-size: 10.5px;
  color: var(--ink-quiet);
}

.presets-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.preset-btn {
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink-secondary);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.preset-btn:hover {
  border-color: var(--brand-border);
  background: var(--brand-tint);
  color: var(--brand-ink);
}

.ref-section {
  margin-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.ref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.dedup-tag {
  font-size: 10px;
  color: var(--brand-ink);
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ref-cell {
  border: 0;
  background: var(--surface);
  padding: 7px 7px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background-color 140ms ease;
}

.ref-cell:hover {
  background: var(--canvas);
}

.ref-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.ref-code {
  font-size: 10.5px;
  font-weight: 650;
  color: var(--ink-muted);
}

.ref-fallback-dot {
  font-size: 9.5px;
  color: var(--brand);
}

.ref-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pins-section {
  margin-top: 10px;
}

.pins-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pin-row {
  border: 0;
  background: var(--surface);
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 68px 1fr 56px 58px;
  align-items: center;
  gap: 5px;
  text-align: left;
  transition: background-color 140ms ease;
}

.pin-row:hover {
  background: var(--canvas);
}

.pin-pair {
  font-size: 11px;
  font-weight: 650;
  color: var(--ink);
}

.pin-rate {
  font-size: 11px;
  color: var(--ink-secondary);
}

.pin-spark {
  display: block;
  width: 56px;
  height: 18px;
}

.pin-delta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 600;
}

.pin-delta.is-up {
  color: var(--trend-up);
}

.pin-delta.is-down {
  color: var(--trend-down);
}

/* ==========================================================================
   Content Bands & Real Product Gallery
   ========================================================================== */
.band-section {
  border-top: 1px solid var(--hairline);
  padding: 76px 0;
}

.band-alt {
  background: var(--band-alt-bg);
}

.section-head {
  margin-bottom: 34px;
  max-width: 660px;
}

.section-head-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-index {
  display: block;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--accent-secondary);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.3vw, 1.85rem);
  font-weight: 640;
  line-height: 1.24;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.section-sub {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 60ch;
}

/* Gallery Tabs & Browser Row */
.gallery-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  background: var(--subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

.gallery-tab {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 550;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.35;
  transition: background-color 140ms ease, color 140ms ease;
}

.gallery-tab:hover {
  color: var(--ink);
}

.gallery-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.07);
}

.gallery-browser-frame {
  margin-bottom: 24px;
}

.plate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.plate-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-secondary);
  white-space: nowrap;
}

.plate-caption {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

/* Dual Retina Popups Row */
.popup-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.popup-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--frame-shadow);
}

.popup-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.popup-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: var(--subtle);
}

.popup-shot-trigger {
  width: auto;
  max-width: 100%;
  display: inline-flex;
  justify-content: center;
  border-radius: var(--radius-md);
}

.popup-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  background: #FFFFFF;
}

.popup-caption {
  padding: 16px 18px;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.popup-caption-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 630;
  color: var(--ink);
  letter-spacing: -0.012em;
}

.popup-caption-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Architectural 1px Hairline Grid (Features & Install)
   ========================================================================== */
.hairline-grid {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.grid-cell {
  background: var(--surface);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}

.cell-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 14px;
}

.cell-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 620;
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.cell-desc {
  margin: 0;
  font-size: 13.75px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ==========================================================================
   Privacy Section
   ========================================================================== */
.guarantee-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
}

.guarantee-item svg {
  color: var(--brand);
}

.table-frame {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow-x: auto;
  box-shadow: var(--frame-shadow);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 580px;
}

.spec-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-quiet);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 18px;
  letter-spacing: 0.01em;
}

.spec-table td {
  font-size: 13.75px;
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 18px;
  vertical-align: top;
}

.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.cell-scope {
  font-size: 12.75px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* ==========================================================================
   Clone Bar
   ========================================================================== */
.clone-bar {
  margin-top: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--frame-shadow);
}

.clone-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.clone-label {
  font-size: 11.5px;
  color: var(--ink-muted);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.clone-cmd {
  font-size: 13px;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
}

/* ==========================================================================
   Sponsor Section
   ========================================================================== */
.sponsor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 56px;
  align-items: center;
}

.sponsor-star-row {
  margin-top: 20px;
}

.inline-action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--brand-ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--brand-border);
  transition: border-color 150ms ease, color 150ms ease;
}

.inline-action-link:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--frame-shadow);
}

.channel-row {
  width: 100%;
  border: 0;
  background: var(--surface);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  transition: background-color 140ms ease;
}

.channel-row:hover {
  background: var(--canvas);
}

.channel-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.channel-left svg {
  color: var(--brand);
  margin-top: 2px;
  flex-shrink: 0;
}

.channel-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.channel-desc {
  font-size: 12.75px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.channel-arrow {
  color: var(--ink-quiet);
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-sep {
  color: var(--hairline-strong);
}

.footer-sibling {
  font-size: 12px;
  color: var(--ink-quiet);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ==========================================================================
   Accessible Native Retina Lightbox Dialog
   ========================================================================== */
.lightbox-dialog {
  width: min(1160px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.lightbox-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
}

.lightbox-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 28px);
}

.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.lightbox-meta-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lightbox-caption {
  margin: 0;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink);
}

.lightbox-stage {
  padding: 20px;
  background: var(--subtle);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 148px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: #FFFFFF;
}

/* ==========================================================================
   Accessible Native Sponsor Dialog
   ========================================================================== */
.sponsor-dialog {
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

.sponsor-dialog::backdrop {
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(4px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--hairline);
}

.dialog-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.dialog-sub {
  margin: 3px 0 0;
  font-size: 12.75px;
  color: var(--ink-muted);
}

.dialog-close {
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink-muted);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dialog-close:hover {
  color: var(--ink);
  border-color: var(--hairline-strong);
}

.dialog-body {
  padding: 14px 20px 18px;
}

.qr-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  background: var(--subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.qr-tab {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 550;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background-color 140ms ease, color 140ms ease;
}

.qr-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.qr-stage {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  min-height: 168px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image {
  width: 256px;
  height: auto;
  aspect-ratio: 8 / 9;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.qr-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  max-width: 290px;
}

.qr-fallback-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.qr-fallback-desc {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.dialog-divider {
  height: 1px;
  background: var(--hairline);
  margin: 14px 0;
}

.supporter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-intro {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-secondary);
}

.field-input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 140ms ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.form-status {
  margin: 0;
  min-height: 16px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--brand-ink);
}

.form-status.is-error {
  color: var(--danger);
}

@keyframes thankyouReveal {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes thankyouCheckDraw {
  0% {
    stroke-dashoffset: 24;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.submit-thankyou {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border);
  background: var(--brand-tint);
  margin-bottom: 4px;
}

.submit-thankyou.is-animated {
  animation: thankyouReveal 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.thankyou-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.thankyou-check {
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}

.submit-thankyou.is-animated .thankyou-check {
  animation: thankyouCheckDraw 380ms cubic-bezier(0.22, 1, 0.36, 1) 110ms both;
}

.thankyou-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thankyou-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 620;
  line-height: 1.35;
  color: var(--brand-ink);
}

.thankyou-desc {
  margin: 0;
  font-size: 12.25px;
  line-height: 1.48;
  color: var(--ink-secondary);
}

.btn.is-confirmed {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
  .submit-thankyou.is-animated,
  .submit-thankyou.is-animated .thankyou-check {
    animation: none;
  }
}

/* ==========================================================================
   STYLE B: STUDIO (Mac Studio Gallery)
   Pure white alternating with soft alabaster #F5F6F8 bands, centered sculptural
   Hero, obsidian primary CTAs, soft 16px layered elevation, borderless features
   ========================================================================== */
html[data-style="studio"] {
  --canvas: #FFFFFF;
  --band-alt-bg: #F5F6F8;
  --surface: #FFFFFF;
  --subtle: #F5F6F8;

  --brand: #0F766E;
  --brand-hover: #115E59;
  --brand-tint: #F0FDFA;
  --brand-border: #99F6E4;
  --brand-ink: #0F766E;
  --accent-secondary: #0F766E;

  --cta-bg: #111827;
  --cta-hover: #1F2937;
  --cta-text: #FFFFFF;

  --ink: #111827;
  --ink-secondary: #374151;
  --ink-muted: #4B5563;
  --ink-quiet: #6B7280;

  --hairline: rgba(15, 23, 42, 0.08);
  --hairline-strong: rgba(15, 23, 42, 0.16);

  --topbar-bg: rgba(255, 255, 255, 0.86);
  --frame-shadow: 0 12px 36px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --dock-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

html[data-style="studio"] .hero-section {
  padding: 84px 0 92px;
}

html[data-style="studio"] .hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 48px;
}

html[data-style="studio"] .hero-copy {
  padding-top: 0;
  max-width: 780px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html[data-style="studio"] .eyebrow {
  background: #F5F6F8;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--ink-secondary);
}

html[data-style="studio"] .eyebrow-rule {
  display: none;
}

html[data-style="studio"] .hero-title {
  font-size: clamp(2.45rem, 4.8vw, 3.65rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.04em;
}

html[data-style="studio"] .hero-lead {
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
}

html[data-style="studio"] .hero-actions {
  justify-content: center;
}

html[data-style="studio"] .hero-actions .btn {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
}

html[data-style="studio"] .hero-stage {
  width: 100%;
  max-width: 920px;
}

html[data-style="studio"] .style-switch,
html[data-style="studio"] .lang-switch {
  border-radius: 999px;
  padding: 2px;
}

html[data-style="studio"] .style-btn,
html[data-style="studio"] .lang-btn {
  border-radius: 999px;
}

html[data-style="studio"] .hero-rail-btn {
  border-radius: 999px;
  padding: 0 12px;
}

html[data-style="studio"] .live-rail {
  border-radius: 14px;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.11), 0 1px 3px rgba(15, 23, 42, 0.05);
}

html[data-style="studio"] .live-rail-head {
  background: #FFFFFF;
}

html[data-style="studio"] .live-rail-tab {
  border-radius: 999px;
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.05);
}

html[data-style="studio"] .band-section {
  border-top: 0;
  padding: 88px 0;
}

html[data-style="studio"] .section-title {
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  letter-spacing: -0.035em;
  font-weight: 680;
}

html[data-style="studio"] .gallery-tabs {
  border-radius: 999px;
  padding: 4px;
}

html[data-style="studio"] .gallery-tab {
  border-radius: 999px;
  padding: 6px 14px;
}

html[data-style="studio"] .browser-chrome,
html[data-style="studio"] .popup-card-head {
  background: #FFFFFF;
}

html[data-style="studio"] .plate-footer,
html[data-style="studio"] .hero-shot-foot {
  background: #FFFFFF;
}

html[data-style="studio"] .popup-stage {
  background: #F5F6F8;
  padding: 28px 24px;
}

html[data-style="studio"] .popup-img {
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

/* Studio: Borderless feature grid with subtle vertical hairlines */
html[data-style="studio"] .feature-grid {
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 0;
}

html[data-style="studio"] .feature-grid .grid-cell {
  background: transparent;
  padding: 32px 30px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

html[data-style="studio"] .feature-grid .grid-cell:nth-child(3n) {
  border-right: 0;
}

html[data-style="studio"] .feature-grid .grid-cell:nth-child(n + 4) {
  border-bottom: 0;
}

html[data-style="studio"] .cell-icon {
  background: #F5F6F8;
  border-color: transparent;
  width: 38px;
  height: 38px;
}

html[data-style="studio"] .steps-rail {
  box-shadow: var(--frame-shadow);
}

/* ==========================================================================
   STYLE C: EDITORIAL (Archival Paper Publication)
   Warm #FAF8F4 paper, #FFFDF9 ivory, charcoal #1A1916 ink, forest-teal #0D5C55
   + rust-ochre #B45309 accents, double-rule 2px ink borders, serif display,
   crisp 0-2px architectural corners, museum-matte double-framed screenshots.
   ========================================================================== */
html[data-style="editorial"] {
  --canvas: #FAF8F4;
  --band-alt-bg: #F5F1E8;
  --surface: #FFFDF9;
  --subtle: #F2ECE0;

  --brand: #0D5C55;
  --brand-hover: #094540;
  --brand-tint: #EDF5F3;
  --brand-border: #B3D3CE;
  --brand-ink: #0D5C55;
  --accent-secondary: #B45309;

  --cta-bg: #1A1916;
  --cta-hover: #0D5C55;
  --cta-text: #FFFDF9;

  --ink: #1A1916;
  --ink-secondary: #3A3731;
  --ink-muted: #5C574D;
  --ink-quiet: #7A7366;

  --hairline: #DED7C8;
  --hairline-strong: #BDB4A2;

  --topbar-bg: rgba(250, 248, 244, 0.94);
  --frame-shadow: none;
  --dock-shadow: 0 6px 20px rgba(26, 25, 22, 0.12);

  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, "Times New Roman", serif;

  --radius-sm: 0px;
  --radius-md: 2px;
  --radius-lg: 2px;
}

html[data-style="editorial"] .topbar {
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 3px 0 var(--canvas), 0 4px 0 var(--hairline);
}

html[data-style="editorial"] .brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

html[data-style="editorial"] .hero-section {
  padding: 72px 0 80px;
}

html[data-style="editorial"] .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 44px;
}

html[data-style="editorial"] .hero-stage {
  padding-left: 36px;
  border-left: 1px solid var(--hairline);
}

html[data-style="editorial"] .eyebrow {
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

html[data-style="editorial"] .hero-title {
  font-size: clamp(2.25rem, 3.9vw, 3.25rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

html[data-style="editorial"] .hero-lead {
  font-size: 15.5px;
  line-height: 1.8;
}

html[data-style="editorial"] .band-section {
  border-top: 2px solid var(--ink);
  box-shadow: inset 0 3px 0 var(--canvas), inset 0 4px 0 var(--hairline);
  padding: 80px 0;
}

html[data-style="editorial"] .band-section.band-alt {
  box-shadow: inset 0 3px 0 var(--band-alt-bg), inset 0 4px 0 var(--hairline);
}

html[data-style="editorial"] .section-index {
  color: var(--accent-secondary);
  letter-spacing: 0.1em;
}

html[data-style="editorial"] .section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Museum-Matte Double-Framed Screenshots */
html[data-style="editorial"] .browser-frame,
html[data-style="editorial"] .popup-card {
  border: 1px solid var(--ink);
  outline: 1px solid var(--hairline);
  outline-offset: 4px;
}

html[data-style="editorial"] .shot-mat {
  background: var(--subtle);
  padding: 14px;
}

html[data-style="editorial"] .shot-mat .shot-img {
  border: 1px solid var(--hairline-strong);
  background: #FFFFFF;
}

html[data-style="editorial"] .popup-stage {
  background: var(--subtle);
  padding: 22px;
}

html[data-style="editorial"] .popup-img {
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--hairline-strong);
  border-radius: 0;
}

html[data-style="editorial"] .hairline-grid,
html[data-style="editorial"] .table-frame,
html[data-style="editorial"] .clone-bar,
html[data-style="editorial"] .channel-list {
  border-color: var(--ink);
}

html[data-style="editorial"] .style-switch,
html[data-style="editorial"] .lang-switch {
  border-color: var(--hairline-strong);
}

html[data-style="editorial"] .style-btn.is-active,
html[data-style="editorial"] .lang-btn.is-active {
  background: var(--ink);
  color: var(--cta-text);
  box-shadow: none;
}

html[data-style="editorial"] .live-rail {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-top: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(26, 25, 22, 0.14);
}

html[data-style="editorial"] .live-rail.is-dragging {
  box-shadow: 8px 8px 0 rgba(26, 25, 22, 0.18);
}

html[data-style="editorial"] .live-rail-head {
  background: var(--canvas);
  border-bottom-color: var(--hairline-strong);
}

html[data-style="editorial"] .live-rail-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

html[data-style="editorial"] .live-rail-tab {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-top: 2px solid var(--ink);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  box-shadow: -3px 3px 0 rgba(26, 25, 22, 0.14);
}

html[data-style="editorial"] .hero-rail-btn {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

html[data-style="editorial"] .hero-rail-btn:hover {
  background: var(--ink);
  color: var(--cta-text);
}

html[data-style="editorial"] .cell-icon {
  border-color: var(--ink);
  color: var(--brand);
}

html[data-style="editorial"] .plate-tag {
  color: var(--accent-secondary);
}

html[data-style="editorial"] .site-footer {
  border-top: 2px solid var(--ink);
  box-shadow: inset 0 3px 0 var(--canvas), inset 0 4px 0 var(--hairline);
}

/* ==========================================================================
   Responsive Breakpoints (Desktop 1280px -> Tablet 980px -> Mobile 390px)
   ========================================================================== */
@media (max-width: 1020px) {
  .hero-section {
    padding: 48px 0 60px;
  }

  .hero-grid,
  html[data-style="editorial"] .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  html[data-style="editorial"] .hero-stage {
    padding-left: 0;
    border-left: 0;
    padding-top: 28px;
    border-top: 1px solid var(--hairline);
  }

  .hero-copy {
    padding-top: 0;
  }

  .feature-grid,
  .steps-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-style="studio"] .feature-grid .grid-cell:nth-child(3n) {
    border-right: 1px solid var(--hairline);
  }

  html[data-style="studio"] .feature-grid .grid-cell:nth-child(2n) {
    border-right: 0;
  }

  html[data-style="studio"] .feature-grid .grid-cell:nth-child(n + 4) {
    border-bottom: 1px solid var(--hairline);
  }

  html[data-style="studio"] .feature-grid .grid-cell:nth-child(n + 5) {
    border-bottom: 0;
  }

  .popup-gallery-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .topnav {
    display: none;
  }

  .topbar-inner {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero-section,
  html[data-style="studio"] .hero-section,
  html[data-style="editorial"] .hero-section {
    padding: 36px 0 48px;
  }

  .band-section,
  html[data-style="studio"] .band-section,
  html[data-style="editorial"] .band-section {
    padding: 52px 0;
  }

  .feature-grid,
  .steps-rail {
    grid-template-columns: 1fr;
  }

  html[data-style="studio"] .feature-grid .grid-cell {
    border-right: 0 !important;
    border-bottom: 1px solid var(--hairline) !important;
    padding: 24px 4px;
  }

  html[data-style="studio"] .feature-grid .grid-cell:last-child {
    border-bottom: 0 !important;
  }

  .grid-cell {
    padding: 22px 20px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .zoom-btn-label,
  .stage-plate {
    display: none;
  }

  .browser-url {
    font-size: 11px;
    padding: 2px 8px;
  }

  .popup-stage {
    padding: 16px;
  }

  .popup-img {
    max-height: 440px;
  }

  .clone-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .live-rail-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 44;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .live-rail-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .live-rail {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 82vh;
    border-radius: 18px;
    transform: translate3d(0, 0, 0);
  }

  .live-rail.is-collapsed {
    transform: translate3d(0, 24px, 0);
  }

  .live-rail-head {
    cursor: default;
  }

  .drag-grip {
    display: none;
  }

  .live-rail-tab {
    left: auto;
    right: 16px;
    bottom: 18px;
    height: 38px;
    padding: 0 14px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 14px;
  }

  .brand-lockup .mono-tag {
    display: none;
  }

  .topbar-actions {
    gap: 5px;
  }

  .style-btn,
  .lang-btn {
    font-size: 11px;
    padding: 3px 6px;
  }

  .icon-link {
    width: 28px;
    height: 28px;
  }
}
