:root {
  --bg-canvas: #fbf7ed;
  --bg-surface: #f1e9dc;
  --bg-surface-hover: #e7ddcc;
  --bg-popover: #fffdf8;
  --ink: #151412;
  --ink-soft: #464039;
  --ink-muted: #5d554c;
  --line: rgba(21, 20, 18, 0.11);
  --line-strong: rgba(21, 20, 18, 0.18);
  --accent: #f39c2b;
  --accent-text: #a65205;
  --focus-green: #4c7d60;
  --focus-green-soft: #9ac6ab;
  --break-blue: #2d709e;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --ease-key: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-popover: 0 18px 44px rgba(21, 20, 18, 0.1), 0 2px 8px rgba(21, 20, 18, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
  overflow-x: clip;
}

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

button,
input,
select {
  font-family: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-en {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

.nav-links a {
  padding: 4px 2px;
  transition: color 0.16s ease, opacity 0.16s ease, transform 0.1s ease;
}

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

.nav-links .nav-pro-link {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fbf7ed;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links .nav-pro-link:hover {
  color: #ffffff;
  opacity: 0.9;
}

.nav-links .nav-pro-link:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Main Container
   ========================================================================== */
.page-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   Hero — Centered Open Desk Canvas
   ========================================================================== */
.hero-canvas {
  min-height: calc(100svh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 44px;
  position: relative;
}

.hero-head {
  text-align: center;
  max-width: 560px;
  margin-bottom: 22px;
}

.hero-title {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ink);
}

.hero-sub {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 500;
}

/* 3D Companion Stage with subtle warm desk-surface contact shadow */
.stage-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0 18px;
  position: relative;
}

.stage-shell::after {
  content: "";
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 62%);
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(21, 20, 18, 0.085) 0%,
    rgba(21, 20, 18, 0.03) 48%,
    rgba(21, 20, 18, 0) 76%
  );
  pointer-events: none;
  z-index: 0;
}

.svg-stage-wrap {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 845 / 655;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  position: relative;
  z-index: 1;
}

.spider-web-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.liquid-cat-svg,
.cat-3d-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.pet-hit-area {
  cursor: grab;
}

.svg-stage-wrap.petting .pet-hit-area {
  cursor: grabbing;
}

/* Stage Floating Effects (used by PetRenderer) */
.cat-zzz {
  position: absolute;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.08em;
  pointer-events: none;
  transform: translate(-15%, -80%);
}

.cat-zzz span {
  display: inline-block;
  animation: zzzFloat 2.1s ease-in-out infinite;
}

.cat-zzz span:nth-child(2) {
  font-size: 0.78em;
  animation-delay: 0.35s;
}

.cat-zzz span:nth-child(3) {
  font-size: 0.58em;
  animation-delay: 0.7s;
}

@keyframes zzzFloat {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-7px); opacity: 1; }
}

.cat-heart-float {
  position: absolute;
  font-size: 20px;
  color: #e25b52;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.frog-croak-note {
  position: absolute;
  font-size: 18px;
  font-weight: 900;
  color: #4d8f36;
  text-shadow: 0 1px 0 #ffffff;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.frog-slap-burst {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Tame harsh neon-green glow on landing canvas so LED clock harmonizes with sage headphones & cream paper */
.pomo-led-clock {
  position: absolute;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -106%);
  line-height: 0;
  z-index: 15;
  transition: transform 0.12s ease;
}

.pomo-led-clock:hover {
  transform: translate(-50%, -110%) scale(1.04);
}

.pomo-led-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: saturate(0.42) contrast(1.08) brightness(0.86);
}

.pomo-led-svg [filter] {
  filter: none !important;
}

.key-chip-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.floating-key-chip {
  position: absolute;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 7px;
  background: #fffdf8;
  border: 1.8px solid var(--ink);
  box-shadow: 0 0 0 1.2px rgba(255, 253, 248, 0.72), 0 3px 10px rgba(21, 20, 18, 0.16);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -100%);
  will-change: transform, opacity;
}

/* ==========================================================================
   Bottom Minimal 3-Trigger Dock & Mutually Exclusive Popovers
   ========================================================================== */
.dock-region {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 4px;
  z-index: 25;
}

.dock-bar {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  box-shadow: inset 0 0 0 1px rgba(21, 20, 18, 0.06);
}

.dock-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease-key), color 0.16s ease, transform 0.1s var(--ease-key);
}

.dock-trigger:hover {
  color: var(--ink);
  background: rgba(21, 20, 18, 0.055);
}

.dock-trigger:active {
  transform: translateY(1px);
}

.dock-trigger.active,
.dock-trigger.active:hover {
  background: var(--ink);
  color: #ffffff;
}

.dock-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #151412;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8), 0 0 0 1px rgba(21, 20, 18, 0.2);
  flex-shrink: 0;
}

.dock-trigger.active .dock-swatch {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.dock-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  display: none;
  flex-shrink: 0;
}

.dock-trigger.is-focus .dock-status-dot {
  display: inline-block;
  background: var(--focus-green);
}

.dock-trigger.is-break .dock-status-dot {
  display: inline-block;
  background: var(--break-blue);
}

.dock-trigger.active.is-focus .dock-status-dot {
  background: var(--focus-green-soft);
}

.dock-trigger.active.is-break .dock-status-dot {
  background: #8ccbf2;
}

.dock-label-mono {
  font-variant-numeric: tabular-nums;
}

/* Floating Popover Sheet
   - Desktop (>= 1100px): anchored directly beside the Dock on the same baseline (short pointer path, zero stage overlap)
   - Medium / Mobile (< 1100px): floats directly below the Dock bar without pushing below-the-fold content */
.dock-popover {
  order: 2;
  position: absolute;
  bottom: 0;
  left: calc(50% + 186px);
  width: 332px;
  max-height: min(72vh, 500px);
  overflow-y: auto;
  padding: 15px 17px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-popover);
  box-shadow: var(--shadow-popover);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 40;
  animation: popRevealSide 0.18s var(--ease-key);
}

@keyframes popRevealSide {
  from {
    opacity: 0;
    transform: translateX(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 1099px) {
  .dock-popover {
    top: calc(100% + 10px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(376px, calc(100vw - 24px));
    max-height: min(368px, 46svh);
    animation: popRevealBelow 0.18s var(--ease-key);
  }

  body.popover-open .editorial-band,
  body.popover-open .site-footer {
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes popRevealBelow {
  from {
    opacity: 0;
    transform: translate(-50%, -6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.pop-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pop-group + .pop-group {
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pop-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* Companion Popover: Unified Rounded-Rect Control Grammar (Single-Row 3-Col Skins) */
.series-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.series-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, transform 0.1s ease;
}

.series-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--ink);
}

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

.series-btn.active,
.series-btn.active:hover {
  background: var(--ink);
  color: #ffffff;
}

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

.skin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.skin-btn:hover {
  background: var(--bg-surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.skin-btn.active,
.skin-btn.active:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.skin-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1.8px var(--swatch-ring, #ffffff), 0 0 0 1px rgba(21, 20, 18, 0.2);
}

.skin-btn.active .skin-swatch {
  box-shadow: inset 0 0 0 1.8px var(--swatch-ring, #ffffff), 0 0 0 1.2px rgba(255, 255, 255, 0.85);
}

/* Focus Popover: Pomodoro & Rest/Sleep */
.pomo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pomo-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.pomo-badge {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.pomo-badge.focus {
  background: var(--focus-green);
  color: #ffffff;
}

.pomo-badge.break {
  background: var(--break-blue);
  color: #ffffff;
}

.pomo-clock {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.1;
}

.pomo-today {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.pomo-actions,
.pomo-presets,
.quick-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.mini-btn-dark {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.14s ease, transform 0.1s ease;
}

.mini-btn-dark:hover {
  opacity: 0.9;
}

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

.mini-pill,
.pill-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.1s ease;
}

.mini-pill:hover:not(:disabled),
.pill-btn:hover:not(:disabled) {
  background: var(--bg-surface);
  border-color: var(--ink);
}

.mini-pill:active:not(:disabled),
.pill-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.mini-pill.active,
.mini-pill.active:hover,
.pill-btn.active,
.pill-btn.active:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.mini-pill:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* Sub-disclosure inside Focus Popover */
.sub-disc {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.sub-disc-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.sub-disc-summary::-webkit-details-marker {
  display: none;
}

.sub-disc-summary:hover {
  color: var(--ink);
}

.disc-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.disc-meta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.disc-chevron {
  width: 14px;
  height: 14px;
  color: var(--ink-muted);
  transition: transform 0.16s ease;
}

.sub-disc[open] > .sub-disc-summary .disc-chevron {
  transform: rotate(180deg);
}

.sub-disc-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pomo-custom,
.pomo-check,
.pomo-water-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.pomo-custom input {
  width: 50px;
  height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

/* ==========================================================================
   Bespoke Warm-Paper Custom Select Component (Trigger + Portaled Menu)
   ========================================================================== */
.native-select-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

.cselect {
  position: relative;
  width: 100%;
  min-width: 0;
}

.cselect.cselect-compact {
  width: auto;
  min-width: 88px;
}

.cselect-trigger {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(21, 20, 18, 0.13);
  background: #f7f1e6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(21, 20, 18, 0.03);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.cselect-compact .cselect-trigger {
  height: 30px;
  padding: 0 8px 0 10px;
  border-radius: 8px;
  font-size: 12.5px;
}

.cselect-trigger:hover {
  background: #ffffff;
  border-color: rgba(21, 20, 18, 0.28);
}

.cselect-trigger:active {
  transform: translateY(0.5px);
}

.cselect-trigger[aria-expanded="true"] {
  background: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 0 0 2.5px rgba(21, 20, 18, 0.08);
}

.cselect-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.cselect-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cselect-chevron {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--ink-muted);
  transition: transform 0.18s var(--ease-key), color 0.15s ease;
}

.cselect-trigger[aria-expanded="true"] .cselect-chevron {
  transform: rotate(180deg);
  color: var(--ink);
}

.cselect-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(21, 20, 18, 0.22);
}

.cselect-swatch.is-rainbow {
  background: conic-gradient(#f39c2b, #e89bb0, #6d8fb3, #6fa382, #f39c2b);
}

.cselect-palette {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.cselect-palette i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 0.8px rgba(21, 20, 18, 0.24);
}

/* Portaled Floating Menu (rendered on body so it never clips inside popover scroll containers) */
.cselect-menu {
  position: fixed;
  z-index: 90;
  padding: 5px;
  border-radius: 13px;
  border: 1px solid rgba(21, 20, 18, 0.13);
  background: var(--bg-popover);
  box-shadow: 0 16px 36px rgba(21, 20, 18, 0.14), 0 2px 6px rgba(21, 20, 18, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  animation: cselectPop 0.15s var(--ease-key);
}

@keyframes cselectPop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cselect-menu.is-flipped {
  animation-name: cselectPopUp;
}

@keyframes cselectPopUp {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cselect-option {
  width: 100%;
  min-height: 33px;
  padding: 5px 9px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.cselect-option:hover,
.cselect-option.is-active {
  background: var(--bg-surface);
  color: var(--ink);
}

.cselect-option.is-selected {
  background: rgba(21, 20, 18, 0.065);
  color: var(--ink);
  font-weight: 700;
}

.cselect-option-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.cselect-option-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cselect-check {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--ink);
  opacity: 0;
}

.cselect-option.is-selected .cselect-check {
  opacity: 1;
}

/* Fallback styles for native selects before enhancement */
.ctrl-select,
.pomo-water-select select {
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  padding: 0 30px 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(21, 20, 18, 0.13);
  background-color: #f7f1e6;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.select-with-dot .color-dot-preview.is-enhanced {
  display: none;
}

/* Custom Popover: Calibrated Scale Slider + 2x2 Compact Dress-up Grid */
.scale-bar-inline {
  display: flex;
  align-items: center;
  width: 100%;
}

.tick-slider-track {
  position: relative;
  flex: 1;
  padding-bottom: 22px;
}

.tick-slider-input {
  width: 100%;
  margin: 0;
  display: block;
  accent-color: var(--ink);
  cursor: pointer;
}

.tick-marks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  pointer-events: none;
}

.tick-mark {
  position: absolute;
  top: 0;
  left: calc(10px + (100% - 20px) * var(--pos, 0.3333));
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  font-variant-numeric: tabular-nums;
}

.tick-mark::before {
  content: "";
  width: 1.5px;
  height: 4px;
  border-radius: 1px;
  background: rgba(21, 20, 18, 0.28);
}

.tick-mark:hover,
.tick-mark.active {
  color: var(--ink);
  font-weight: 800;
}

.tick-mark.active::before {
  height: 6px;
  background: var(--ink);
}

.scale-value {
  min-width: 42px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ctrl-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ctrl-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Integrated color swatch inside custom warm-sand select */
.select-with-dot {
  position: relative;
  display: flex;
  align-items: center;
}

.color-dot-preview {
  position: absolute;
  left: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.4px solid rgba(21, 20, 18, 0.22);
  pointer-events: none;
  background: #6fa382;
}

.select-with-dot .ctrl-select {
  padding-left: 29px;
}

.custom-color-drawer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.desk-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.hp-color-input {
  width: 24px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

/* ==========================================================================
   Below-the-Fold — Elevated Editorial Typography (Pure Display, Zero Extra Buttons)
   ========================================================================== */
.editorial-band {
  padding: 88px 0;
}

.editorial-band + .editorial-band {
  padding-top: 72px;
}

.band-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.band-heading {
  margin: 0 0 44px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

/* Species Trio — Tonal Surface Band without Mechanical Full-Width Lines */
.species-band {
  background: rgba(241, 233, 220, 0.52);
  border-radius: 26px;
  padding: 56px 52px;
  margin-top: 28px;
}

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

.species-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.species-swatches {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.species-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(21, 20, 18, 0.16);
}

.species-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.species-name {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.species-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.species-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Pro & Desktop Purchase Guidance — Minimal Two-Column Editorial Comparison */
.pro-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.pro-head .band-heading {
  margin-bottom: 0;
}

.pro-lead {
  margin: 0;
  max-width: 360px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
  border-radius: 22px;
  gap: 22px;
}

.plan-free {
  background: var(--bg-popover);
  border: 1px solid var(--line);
}

.plan-pro {
  background: var(--ink);
  color: #fbf7ed;
  box-shadow: 0 20px 48px rgba(21, 20, 18, 0.14);
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plan-name {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.plan-star {
  color: var(--accent);
}

.plan-sub {
  margin: 5px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.plan-pro .plan-sub {
  color: #c7bfb2;
}

.plan-tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-tag-pro {
  background: rgba(243, 156, 43, 0.16);
  color: #f6ba63;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.plan-pro .plan-list {
  border-top-color: rgba(251, 247, 237, 0.14);
}

.plan-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.plan-pro .plan-list li {
  color: #ebe4d8;
}

.plan-pro .plan-list li::before {
  background: var(--accent);
}

.plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.1s var(--ease-key);
}

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

.plan-btn-outline {
  border: 1.4px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.plan-btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--ink);
}

.plan-btn-accent {
  border: 1.4px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.plan-btn-accent:hover {
  opacity: 0.92;
}

.activation-guide {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.act-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.act-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.act-sep {
  color: rgba(21, 20, 18, 0.3);
}

.pro-link-notice {
  margin: 14px auto 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
}

/* Privacy Commitments — Asymmetric Two-Column Editorial Spread */
.privacy-spread {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) 1.22fr;
  gap: 56px;
  align-items: start;
}

.privacy-spread .band-heading {
  margin-bottom: 0;
  max-width: 280px;
}

.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.privacy-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
}

.privacy-row:first-child {
  padding-top: 6px;
}

.privacy-row + .privacy-row {
  border-top: 1px solid var(--line);
}

.privacy-num {
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.privacy-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.inline-kbd {
  display: inline-block;
  padding: 1px 7px;
  margin: 0 2px;
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Subtle Scroll Settle for Below-the-Fold Only (never traps content at opacity 0) */
.reveal-band {
  opacity: 1;
}

.reveal-band.did-settle {
  animation: bandSettle 0.42s var(--ease-key) both;
}

@keyframes bandSettle {
  from {
    transform: translateY(12px);
  }
  to {
    transform: translateY(0);
  }
}

/* Footer */
.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 52px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Responsive — Tablet & Mobile (390x844 verified)
   ========================================================================== */
@media (max-width: 860px) {
  .species-band {
    padding: 40px 28px;
  }

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

  .pro-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
  }

  .pro-lead {
    max-width: none;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .privacy-spread {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .privacy-spread .band-heading {
    max-width: none;
  }

  .editorial-band {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 20px 0;
    height: 52px;
  }

  .page-main {
    padding: 0 20px;
  }

  .hero-canvas {
    min-height: auto;
    padding: 12px 0 56px;
    justify-content: flex-start;
  }

  .hero-head {
    margin-top: 6px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: 34px;
  }

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

  .stage-shell {
    padding: 2px 0 12px;
  }

  .stage-shell::after {
    bottom: 14px;
    width: 68%;
    height: 20px;
  }

  .svg-stage-wrap {
    max-width: 340px;
  }

  .dock-bar {
    width: auto;
    max-width: 100%;
  }

  .dock-trigger {
    height: 40px;
    padding: 0 15px;
    font-size: 14px;
  }

  /* Compact overlay popover below Dock: fits 100% inside 844px viewport without pushing content */
  .dock-popover {
    width: min(358px, calc(100vw - 24px));
    max-height: min(372px, 47svh);
    padding: 12px 13px;
    gap: 10px;
  }

  .pop-group {
    gap: 6px;
  }

  .pop-group + .pop-group {
    padding-top: 9px;
  }

  /* Prevent iOS Safari auto-zoom on focused form inputs & comfortable mobile touch rows */
  .ctrl-select,
  .pomo-custom input,
  .pomo-water-select select {
    font-size: 16px;
    height: 36px;
  }

  .cselect-trigger {
    height: 38px;
    font-size: 13.5px;
  }

  .cselect-option {
    min-height: 38px;
    font-size: 13.5px;
  }

  .species-band {
    padding: 32px 22px;
    border-radius: 20px;
    margin-top: 8px;
  }

  .plan-card {
    padding: 24px 20px 22px;
    border-radius: 18px;
    gap: 18px;
  }

  .activation-guide {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .act-sep {
    display: none;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links .nav-pro-link {
    padding: 5px 12px;
    font-size: 12.5px;
  }

  .band-heading {
    margin-bottom: 28px;
  }

  .privacy-row {
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 16px 0;
  }

  .site-footer {
    padding: 24px 20px 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-band,
  .reveal-band.did-settle {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .dock-popover {
    animation: none;
  }
}
