/* OmniDown v5 — Quiet Architectural Studio (Warm Alabaster, Hairline Grid & Deep Forest Sage) */
@font-face {
  font-family: "Inter";
  src: url("/static/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/static/playfair-italic.woff2") format("woff2");
  font-weight: 700 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FBFBF9;
  --stone: #F4F3EE;
  --surface: #FFFFFF;
  --ink: #161615;
  --ink-2: rgba(22, 22, 21, 0.56);
  --ink-3: rgba(22, 22, 21, 0.38);
  --line: rgba(22, 22, 21, 0.075);
  --line-strong: rgba(22, 22, 21, 0.14);
  --subtle-fill: rgba(22, 22, 21, 0.032);
  --accent: #1E6B58;
  --accent-fg: #FFFFFF;
  --accent-hover: #175646;
  --accent-soft: rgba(30, 107, 88, 0.085);
  --accent-line: rgba(30, 107, 88, 0.26);
  --pill-inner: rgba(255, 255, 255, 0.16);
  --amber: #9A4A17;
  --amber-soft: rgba(154, 74, 23, 0.08);
  --amber-line: rgba(154, 74, 23, 0.24);
  --danger: #B91C1C;
  --danger-soft: rgba(185, 28, 28, 0.07);
  --sans: "Inter", "HarmonyOS Sans SC", "PingFang SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111316;
  --stone: #16191D;
  --surface: #1B1F24;
  --ink: #ECEEEF;
  --ink-2: rgba(236, 238, 239, 0.62);
  --ink-3: rgba(236, 238, 239, 0.40);
  --line: rgba(236, 238, 239, 0.085);
  --line-strong: rgba(236, 238, 239, 0.17);
  --subtle-fill: rgba(236, 238, 239, 0.05);
  --accent: #52B79A;
  --accent-fg: #081C16;
  --accent-hover: #6AC5AA;
  --accent-soft: rgba(82, 183, 154, 0.14);
  --accent-line: rgba(82, 183, 154, 0.32);
  --pill-inner: rgba(17, 19, 22, 0.15);
  --amber: #F0A76E;
  --amber-soft: rgba(240, 167, 110, 0.12);
  --amber-line: rgba(240, 167, 110, 0.28);
  --danger: #F87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --paper: #111316;
    --stone: #16191D;
    --surface: #1B1F24;
    --ink: #ECEEEF;
    --ink-2: rgba(236, 238, 239, 0.62);
    --ink-3: rgba(236, 238, 239, 0.40);
    --line: rgba(236, 238, 239, 0.085);
    --line-strong: rgba(236, 238, 239, 0.17);
    --subtle-fill: rgba(236, 238, 239, 0.05);
    --accent: #52B79A;
    --accent-fg: #081C16;
    --accent-hover: #6AC5AA;
    --accent-soft: rgba(82, 183, 154, 0.14);
    --accent-line: rgba(82, 183, 154, 0.32);
    --pill-inner: rgba(17, 19, 22, 0.15);
    --amber: #F0A76E;
    --amber-soft: rgba(240, 167, 110, 0.12);
    --amber-line: rgba(240, 167, 110, 0.28);
    --danger: #F87171;
    --danger-soft: rgba(248, 113, 113, 0.12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.7 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap {
  width: min(1080px, 90vw);
  margin: 0 auto;
}

/* ==========================================================================
   1. CALM, RESTRAINED TOP NAVIGATION (34px Uniform Control Lock)
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.brand-icon {
  width: 22px;
  height: 22px;
  color: var(--ink);
  flex-shrink: 0;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
}
.nav-links a {
  height: 34px;
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-right { justify-self: end; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* Day / Night Theme Toggle (34px Circle) */
.theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.theme-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--subtle-fill);
}
.theme-toggle svg {
  width: 15.5px;
  height: 15.5px;
}
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
}

/* 2-Way Language Pill (中文 / EN Only) */
.lang-switch {
  height: 34px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.lang-switch a {
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-switch a.is-active {
  background: var(--ink);
  color: var(--paper);
}
.lang-switch a:hover:not(.is-active) { color: var(--ink); }

/* Understated Single Account / Quota Pill */
.quota-wrap { position: relative; }
.plan-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.plan-pill:hover { border-color: var(--ink); }
.plan-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.plan-pill.is-slow .plan-dot { background: var(--amber); }

.quota-tip {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
  white-space: normal;
  z-index: 80;
}
.quota-tip strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 13px; }
.quota-tip p { margin: 0; }
.quota-wrap:hover .quota-tip { display: block; }

/* ==========================================================================
   2. HERO + ICONIC SINGLE-BAR SCULPTURAL OMNIBOX
   ========================================================================== */
.hero-sec {
  padding: 76px 0 84px;
}
@media (max-width: 640px) {
  .hero-sec { padding: 44px 0 56px; }
}

.hero-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero-head h1 {
  margin: 0;
  font-size: clamp(2.45rem, 5.4vw, 4.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.032em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-head h1 em {
  font-style: normal;
  color: var(--accent);
}
html[lang="en"] .hero-head h1 em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 22px auto 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 45em;
  text-wrap: balance;
}
@media (max-width: 600px) {
  .hero-sub { font-size: 15px; margin-top: 16px; }
}

/* Sculptural Single-Bar Omnibox */
.omnibox {
  margin: 38px auto 0;
  max-width: 750px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.045);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), border-radius 0.2s ease;
}
.omnibox:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 22px 60px rgba(0, 0, 0, 0.06);
}
.omnibox.is-multiline {
  border-radius: 24px;
  align-items: flex-end;
  padding: 10px 10px 10px 22px;
}

.omnibox-input {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  padding: 12px 0;
  height: 48px;
  max-height: 160px;
  line-height: 1.5;
  font-size: 15.5px;
}
.omnibox-input::placeholder { color: var(--ink-3); }

.omnibox-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.batch-pill {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.omni-tool {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  border-radius: 999px;
  height: 36px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
.omni-tool:hover {
  background: var(--subtle-fill);
  color: var(--ink);
}
.omni-clear {
  width: 36px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.omni-submit {
  height: 48px;
  padding: 0 30px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.16s ease;
}
.omni-submit:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-fg);
}
.omni-submit:active:not(:disabled) { transform: translateY(1px); }
.omni-submit:disabled { opacity: 0.48; cursor: wait; }

@media (max-width: 600px) {
  .omnibox {
    border-radius: 22px;
    flex-wrap: wrap;
    padding: 10px 12px 12px 16px;
    margin-top: 28px;
  }
  .omnibox-input { width: 100%; flex: 1 1 65%; padding: 8px 0; }
  .omni-submit { width: 100%; height: 44px; margin-top: 4px; }
}

/* Quiet Typographic Support Line (Replaces Noisy Bordered Tag Cloud) */
.hero-supports {
  margin: 18px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 52em;
  line-height: 1.8;
}
.hero-supports a,
.text-link-btn {
  color: var(--ink-2);
  border: 0;
  background: none;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}
.hero-supports a:hover,
.text-link-btn:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* ==========================================================================
   3. OUTPUT STAGE & RESULT STUDIO CARD (Directly Below Input — Zero Clutter)
   ========================================================================== */
.output-stage {
  max-width: 960px;
  margin: 0 auto;
}

.inline-notice {
  max-width: 750px;
  margin: 20px auto 0;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.035);
  font-size: 13.5px;
}
.inline-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.inline-notice-sub { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; }

.evidence-line {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 3px 0;
}
.slow-lane-bar {
  margin-top: 12px;
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
}

.inline-error {
  max-width: 750px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--danger-soft);
  border: 1px solid rgba(185, 28, 28, 0.22);
  color: var(--danger);
  font-size: 14px;
}

/* Buttons */
.btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover:not(:disabled) { border-color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-dark, .btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-dark:hover:not(:disabled), .btn-primary:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.btn-sm { height: 32px; padding: 0 14px; font-size: 12.5px; }

/* Studio Result Card */
.result-bezel {
  margin-top: 34px;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.result-main {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}
@media (max-width: 720px) {
  .result-main { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
}
.preview-frame {
  background: #0E0F11;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.preview-frame.is-album {
  background: var(--subtle-fill);
  border: 1px solid var(--line);
}
.preview-frame video, .preview-frame > img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  padding: 10px;
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
}
.image-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
}
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-thumb a {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(22, 22, 21, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
}

.result-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}
.evidence-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--subtle-fill);
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.ev-badge.verified,
.ev-badge.best-spec {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}

.result-title {
  margin: 10px 0 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-author { font-size: 13.5px; color: var(--ink-2); }
.guard-callout {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  color: var(--amber);
  font-size: 13px;
}

/* Primary Highest-Quality CTA */
.primary-action-wrap { display: flex; flex-direction: column; gap: 8px; }
.btn-best-download {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-best-download:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-best-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-best-left svg { flex-shrink: 0; }
.btn-best-pill {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pill-inner);
  color: currentColor;
  white-space: nowrap;
  flex-shrink: 0;
}
.primary-subhint { font-size: 12.5px; color: var(--ink-3); padding-left: 4px; }

/* Live Download Queue */
.queue-tray {
  margin: 0 28px 22px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--stone);
  border: 1px solid var(--line);
}
@media (max-width: 720px) { .queue-tray { margin: 0 20px 18px; } }
.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.queue-head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.queue-count-pill {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.queue-list { display: flex; flex-direction: column; gap: 8px; }
.queue-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.queue-row.is-running { border-color: var(--accent); }
.queue-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.queue-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.queue-spec-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.queue-item-name {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-item-actions { display: flex; align-items: center; gap: 8px; }
.queue-status-text { font-size: 12.5px; color: var(--ink-2); }
.queue-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.queue-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

/* Prominent 3-Card Feature Dock */
.feature-dock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 16px 28px;
  background: var(--stone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .feature-dock { grid-template-columns: 1fr; padding: 14px 20px; } }
.feature-tab-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.feature-tab-card:hover { border-color: var(--ink); }
.feature-tab-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.feature-tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--subtle-fill);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-tab-card.active .feature-tab-icon {
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-tab-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.feature-tab-title { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.feature-tab-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.feature-tab-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--subtle-fill);
  color: var(--ink-2);
  white-space: nowrap;
}
.feature-tab-card.active .feature-tab-badge {
  background: var(--accent-soft);
  color: var(--accent);
}

.drawer-panel { padding: 24px 28px; background: var(--surface); }
@media (max-width: 720px) { .drawer-panel { padding: 18px 20px; } }
.panel-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.format-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.format-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.format-item.is-best-tier {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.format-title-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.format-tier-name { font-weight: 700; font-size: 14px; }
.best-ribbon {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
}
.format-meta-line {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 2px;
}

.copy-box {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 14px;
  margin-bottom: 12px;
}
.inline-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-form-row input[type="text"] {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  width: 118px;
  font-family: var(--mono);
  font-size: 13px;
}

/* ==========================================================================
   4. BELOW THE FOLD: WARM STONE WASH + SEAMLESS 1PX HAIRLINE STUDIO GRID
   ========================================================================== */
.sec {
  padding: 88px 0;
}
.sec-stone {
  background: var(--stone);
}
@media (max-width: 760px) {
  .sec { padding: 60px 0; }
}

.sec-intro {
  max-width: 640px;
  margin-bottom: 40px;
}
.sec-intro h2,
.subpage-links-block h2,
.split-left h2,
.split-right h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.sec-intro p {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* Seamless 1px Architectural Hairline Grid */
.hairline-grid {
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.hairline-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hairline-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 880px) {
  .hairline-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .hairline-grid.cols-3,
  .hairline-grid.cols-2 { grid-template-columns: 1fr; }
}

.hl-cell {
  background: var(--surface);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s ease;
}
dl.hairline-grid .hl-cell {
  justify-content: flex-start;
}
a.hl-cell:hover {
  background: var(--paper);
}
.hl-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.hl-top h3,
.hl-cell dt {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hl-top span {
  font-size: 15px;
  color: var(--ink-3);
  transition: transform 0.2s var(--ease), color 0.2s ease;
}
a.hl-cell:hover .hl-top span {
  transform: translate(2px, -2px);
  color: var(--accent);
}
.hl-cell p,
.hl-cell dd {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.hl-spec {
  display: block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* Collapsible Full Index */
.all-index-fold {
  margin-top: 20px;
  padding: 16px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.all-index-fold summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.all-index-fold summary::-webkit-details-marker { display: none; }
.fold-plus { font-family: var(--mono); font-size: 17px; transition: transform 0.2s ease; }
.all-index-fold[open] .fold-plus { transform: rotate(45deg); }

.index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.subpage-links-block .index-links {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}
.index-links a {
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 3px 0;
  transition: color 0.16s ease;
}
.index-links a:hover,
.index-links a.is-current {
  color: var(--accent);
  font-weight: 600;
}

/* Editorial Split: Clean Steps + Borderless Hairline FAQ */
.editorial-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .editorial-split { grid-template-columns: 1fr; gap: 44px; }
}

.clean-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.clean-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.clean-steps li:first-child { padding-top: 4px; border-top: 0; }
.step-idx {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 3px;
}
.clean-steps h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.clean-steps p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.65; }

.clean-faq {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.clean-faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.clean-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.clean-faq summary::-webkit-details-marker { display: none; }
.clean-faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-3);
  flex-shrink: 0;
}
.clean-faq details[open] summary::after { content: "−"; }
.clean-faq p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 56ch;
}

/* ==========================================================================
   5. FOOTER & MODALS
   ========================================================================== */
.site-foot {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-inner p { margin: 0; }
.foot-inner strong { color: var(--ink-2); font-weight: 600; }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: var(--ink); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(22, 22, 21, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-card {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}
.modal-card.wide { max-width: 640px; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.modal-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.modal-desc { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-2); }
.close-x {
  border: 0;
  background: var(--subtle-fill);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 19px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chip-btn {
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.chip-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.field-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  margin-bottom: 10px;
  font-size: 14px;
}
.vip-user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 15px;
  background: var(--stone);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}
.redeem-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 14px;
  background: var(--paper);
}
.oauth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.plan-box {
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.plan-box.selected {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.plan-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.plan-price { font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.live-chip {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(22, 22, 21, 0.72);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
