/* Mou Official Website — Plan A (Warm Craft & Editorial Workbench)
 * Color tokens directly aligned with crates/mou-desktop/src/mou-theme.json
 */

:root,
[data-theme="light"] {
  --bg: #FAF9F6;
  --surface: #F5F3EE;
  --sidebar: #EEEDE7;
  --sidebar-active: #8B6A51;
  --sidebar-active-fg: #FFFFFF;
  --titlebar: #FAF9F6;
  --card: #FFFFFF;
  --fg: #1F241F;
  --muted: #5C6258;
  --border: #E2DFD7;
  --border-soft: #ECEAE3;
  --primary: #8F5A38;
  --primary-fg: #FFFFFF;
  --primary-hover: #7B4C2E;
  --accent: #8F5A38;
  --accent-soft: #F3E9DF;
  --accent-link: #734427;
  --success: #2E6B4E;
  --success-soft: #E8F3EC;
  --warning: #8C5A16;
  --warning-soft: #FBF1DF;
  --danger: #A3423A;
  --danger-soft: #FCECE9;
  --shadow-window: 0 24px 60px -20px rgba(31, 36, 31, 0.14), 0 4px 16px -4px rgba(31, 36, 31, 0.06);
  --shadow-card: 0 1px 2px rgba(31, 36, 31, 0.04);
  --shadow-phone: 0 22px 52px -18px rgba(31, 36, 31, 0.22);
}

[data-theme="dark"] {
  --bg: #1B1D1A;
  --surface: #252621;
  --sidebar: #191A17;
  --sidebar-active: #705740;
  --sidebar-active-fg: #FAF6EF;
  --titlebar: #1B1D1A;
  --card: #232622;
  --fg: #ECEEE7;
  --muted: #A9B0A2;
  --border: #363A33;
  --border-soft: #2C3029;
  --primary: #CBA17E;
  --primary-fg: #211C17;
  --primary-hover: #DBB899;
  --accent: #D69F7A;
  --accent-soft: #3C3027;
  --accent-link: #EAC0A2;
  --success: #8CC89E;
  --success-soft: #223528;
  --warning: #E2B86B;
  --warning-soft: #3A301F;
  --danger: #E5988E;
  --danger-soft: #3D2724;
  --shadow-window: 0 28px 72px -18px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-phone: 0 26px 64px -16px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background 0.18s ease, color 0.18s ease;
}

.serif {
  font-family: "New York", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  letter-spacing: -0.02em;
}

.mono {
  font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--primary);
  color: var(--primary-fg);
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.brand-name {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-ver {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  font-weight: 550;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--sidebar);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.btn-ghost {
  padding: 7px 11px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--fg);
  background: var(--surface);
}

.btn-lg {
  padding: 11px 20px;
  font-size: 14px;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 500;
  line-height: 1.5;
}

.pill-ok {
  background: var(--success-soft);
  color: var(--success);
}

.pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.pill-neutral {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border-soft);
}

/* Hero */
.hero {
  padding: 68px 0 72px;
}

.hero-copy {
  max-width: 740px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.18;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--fg);
}

.hero p.lead {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 610px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* Interactive Workbench Window */
.workbench {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.wb-titlebar {
  min-height: 42px;
  background: var(--titlebar);
  border-bottom: 1px solid var(--border);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  flex-wrap: wrap;
}

.wb-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.wb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.wb-project {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg);
  font-weight: 550;
  margin-left: 10px;
}

.wb-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.12s;
}

.wb-pill:hover {
  opacity: 0.85;
}

.wb-pill-warn {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 35%, transparent);
}

.wb-pill-warn.resolved {
  background: var(--success-soft);
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
}

.wb-pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.wb-body {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 492px;
}

.wb-body.has-right {
  grid-template-columns: 236px 1fr 296px;
}

.wb-sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.wb-sb-top {
  padding: 10px 10px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wb-search {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.wb-search-icon {
  font-size: 13px;
  opacity: 0.7;
}

.wb-kbd {
  margin-left: auto;
  font-size: 10.5px;
  opacity: 0.7;
}

.wb-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.wb-icon-btn:hover {
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  color: var(--fg);
}

.wb-sb-scroll {
  flex: 1;
  padding: 4px 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wb-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 4px;
}

.wb-sec-title {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.wb-sec-plus {
  font-size: 12px;
  color: var(--muted);
}

.wb-proj-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.wb-proj-row.muted {
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

.wb-chevron {
  font-size: 10px;
  color: var(--muted);
  width: 10px;
}

.wb-conv-row,
.wb-active-task-row {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 8px 0 22px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.wb-active-task-row[hidden] {
  display: none;
}

.wb-active-task-row {
  padding-left: 36px;
  font-size: 12px;
}

.wb-conv-row:hover,
.wb-active-task-row:hover {
  background: color-mix(in srgb, var(--fg) 5%, transparent);
}

.wb-conv-row.active,
.wb-active-task-row.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-fg);
  font-weight: 500;
}

.wb-conv-row.active .wb-conv-icon,
.wb-active-task-row.active .wb-conv-icon {
  opacity: 0.9;
}

.wb-conv-row.active .dot-status,
.wb-active-task-row.active .dot-status {
  background: var(--sidebar-active-fg);
}

.wb-conv-icon {
  font-size: 11px;
  opacity: 0.7;
}

.wb-conv-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-sb-footer {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 4px;
}

.wb-pane-btn {
  flex: 1;
  height: 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.wb-pane-btn:hover {
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  color: var(--fg);
}

.wb-pane-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.dot-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.st-ok { background: var(--success); }
.st-warn { background: var(--warning); }
.st-accent { background: var(--accent); }

.wb-main {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wb-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 492px;
}

.wb-view[hidden] {
  display: none;
}

.wb-perm-banner {
  margin: 14px 24px 0;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent);
  background: var(--warning-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.wb-perm-banner[hidden] {
  display: none;
}

.wb-perm-who {
  font-weight: 500;
  white-space: nowrap;
}

.wb-perm-verb {
  color: var(--muted);
  white-space: nowrap;
}

.wb-perm-cmd {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-perm-go {
  padding: 3px 10px;
  font-size: 11.5px;
  border-radius: 6px;
}

.wb-transcript {
  flex: 1;
  padding: 18px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-bubble {
  align-self: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  max-width: 82%;
}

.sys-line {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sys-line::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.task-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  box-shadow: var(--shadow-card);
}

.task-card:hover {
  border-color: var(--accent);
}

.tc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  gap: 8px;
}

.tc-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.tc-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.tc-title {
  font-size: 13.5px;
  font-weight: 600;
}

.tc-arrow {
  color: var(--muted);
  font-size: 14px;
}

.tc-trail {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 9px;
}

.tc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wb-composer {
  margin: 0 24px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 11px 12px 9px;
  box-shadow: var(--shadow-card);
}

.wb-composer-placeholder {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  padding-left: 2px;
}

.wb-composer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wb-composer-left,
.wb-composer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wb-tool-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
}

.wb-mention-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 6px;
}

.wb-picker-btn {
  font-size: 11.5px;
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 6px;
}

.wb-send-round {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

/* Task Page inside Main Area */
.tp-head {
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-back {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.tp-back:hover {
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}

.tp-title {
  font-size: 14.5px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.tp-tabs {
  display: flex;
  gap: 4px;
  padding-bottom: 8px;
}

.tp-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.tp-tab:hover {
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  color: var(--fg);
}

.tp-tab.active {
  background: var(--surface);
  color: var(--fg);
  font-weight: 600;
}

.tp-body {
  flex: 1;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wb-right {
  border-left: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.wb-right[hidden] {
  display: none;
}

.wb-right-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.wb-right-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
}

.pdf-sheet {
  background: #FFFFFF;
  color: #1F241F;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  font-size: 11px;
  line-height: 1.5;
}

.pdf-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.pdf-cell {
  border: 1px solid #D8D5CD;
  height: 28px;
  border-radius: 2px;
}

.wb-detail {
  border-left: 1px solid var(--border);
  background: var(--surface);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-title {
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 2px;
}

.detail-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 12.5px;
}

.detail-box-title {
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--fg);
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 11.5px;
}

.ledger-row:first-of-type {
  border-top: none;
}

.ctx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Sections */
section.block {
  padding: 80px 0;
  border-top: 1px solid var(--border-soft);
}

.sec-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.sec-kicker {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.sec-head h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 12px;
}

.sec-head p {
  color: var(--muted);
  font-size: 15.5px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  padding: 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

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

.pillar h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pillar p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.surface-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.surface-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.surface-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
}

/* Mobile Showcase Split */
.mobile-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}

.check-list li {
  font-size: 14.5px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-bezel {
  width: 280px;
  border-radius: 34px;
  padding: 10px;
  background: #222521;
  box-shadow: var(--shadow-phone);
  border: 1px solid var(--border);
}

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: #FAF9F6;
  aspect-ratio: 9 / 19.2;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Download Page Specific */
.dl-hero {
  padding: 64px 0 48px;
}

.dl-hero-inner {
  max-width: 900px;
}

.dl-desktop-card > *,
.mobile-dl-grid > *,
.grid-2 > *,
.grid-3 > *,
.wb-body > * {
  min-width: 0;
}

.dl-hero h1 {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 14px;
}

.dl-hero p {
  font-size: 16px;
  color: var(--muted);
}

.platform-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-top: 24px;
  flex-wrap: wrap;
}

.platform-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
}

.platform-tab:hover,
.platform-tab.active {
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow-card);
}

/* Desktop Download Feature Card */
.dl-desktop-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.dl-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dl-title-row h2 {
  font-size: 24px;
  font-weight: 600;
}

.dl-meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  margin: 14px 0 22px;
}

.cmd-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.cmd-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.cmd-box code {
  display: block;
  font-size: 12.5px;
  color: var(--accent-link);
  word-break: break-all;
}

.copy-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--accent);
}

/* Mobile Download Cards (Android & iOS) */
.mobile-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mobile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

.mobile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 650;
}

.platform-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--fg);
}

.qr-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}

.qr-box {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 6px;
}

.qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.qr-note strong {
  display: block;
  color: var(--fg);
  font-size: 13px;
  margin-bottom: 2px;
}

.mobile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-footnote {
  font-size: 12px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

/* Pairing Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

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

.step-card h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

details.faq-item summary {
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 56px;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

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

/* Responsive */
@media (max-width: 960px) {
  .wb-body,
  .wb-body.has-right {
    grid-template-columns: 1fr;
  }
  .wb-sidebar,
  .wb-right,
  .wb-detail {
    border: none;
    border-top: 1px solid var(--border);
  }
  .grid-3,
  .grid-2,
  .mobile-showcase,
  .dl-desktop-card,
  .mobile-dl-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 48px 0 52px;
  }
  .dl-desktop-card,
  .mobile-card,
  .surface-card {
    padding: 20px;
  }
  .brand-ver {
    display: none;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .btn-lg {
    padding: 9px 14px;
    font-size: 13px;
  }
  .dl-meta-row {
    gap: 8px 12px;
  }
}
