:root {
  --bg-cream: #faf6ee;
  --bg-parchment: #f2ece0;
  --bg-card: #fffdf9;
  --pine-950: #0c2319;
  --pine-900: #123326;
  --pine-700: #225e45;
  --pine-100: #e7f2eb;
  --frost-700: #264d6b;
  --midnight-700: #252f59;
  --hearth-700: #593622;
  --gold-500: #d99e32;
  --gold-300: #f3cd75;
  --berry-600: #c43832;
  --ink-900: #1b2820;
  --ink-600: #57675d;
  --border-warm: #e4ddd0;
  --glass-border: rgba(255, 245, 224, 0.14);
  --glass-dock: rgba(10, 28, 20, 0.88);
  --glass-surface: rgba(255, 253, 249, 0.12);
  --glass-gold: rgba(243, 205, 117, 0.32);
  --glass-highlight: rgba(255, 253, 249, 0.22);
  --pine-glow: rgba(243, 205, 117, 0.14);
  --shadow-lg: 0 20px 48px rgba(10, 26, 18, 0.22);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-cream);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine-700);
  color: var(--bg-card);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-hero {
  width: 100%;
  position: relative;
}

/* Header */
.site-header {
  background: var(--pine-950);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bg-card);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-icon { border-radius: 7px; }
.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: var(--bg-parchment);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover { color: var(--gold-300); }
.site-nav .nav-pill {
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  color: var(--bg-card);
  padding: 6px 14px;
  border-radius: 999px;
}
.site-nav .nav-pill:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
}

/* Spacious Giant Tree Hero */
.hero-tool {
  position: relative;
  overflow: hidden;
  padding: 10px 0 28px;
  min-height: calc(100vh - 52px);
  min-height: calc(100svh - 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 42%, var(--pine-700) 0%, var(--pine-900) 50%, var(--pine-950) 100%);
  color: var(--bg-card);
  transition: background 0.35s ease;
}
.hero-tool[data-style="frosty"] {
  background: radial-gradient(ellipse at 50% 42%, var(--frost-700) 0%, var(--pine-950) 90%);
}
.hero-tool[data-style="midnight"] {
  background: radial-gradient(ellipse at 50% 42%, var(--midnight-700) 0%, var(--pine-950) 90%);
}
.hero-tool[data-style="gold"] {
  background: radial-gradient(ellipse at 50% 42%, var(--hearth-700) 0%, var(--pine-950) 90%);
}
.hero-snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
  background-image:
    radial-gradient(2px 2px at 8% 22%, var(--bg-card) 50%, transparent 100%),
    radial-gradient(4px 4px at 17% 62%, var(--pine-glow) 40%, transparent 100%),
    radial-gradient(2.5px 2.5px at 21% 48%, var(--gold-300) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 36% 12%, var(--bg-card) 50%, transparent 100%),
    radial-gradient(2px 2px at 54% 18%, var(--bg-card) 50%, transparent 100%),
    radial-gradient(5px 5px at 74% 32%, var(--pine-glow) 35%, transparent 100%),
    radial-gradient(2.5px 2.5px at 78% 15%, var(--gold-300) 50%, transparent 100%),
    radial-gradient(2px 2px at 89% 38%, var(--bg-card) 50%, transparent 100%),
    radial-gradient(4px 4px at 92% 66%, var(--pine-glow) 40%, transparent 100%),
    radial-gradient(2px 2px at 94% 72%, var(--gold-300) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 14% 76%, var(--bg-card) 50%, transparent 100%),
    radial-gradient(2px 2px at 66% 80%, var(--gold-300) 50%, transparent 100%);
  animation: snowPulse 5.5s ease-in-out infinite alternate;
}
.hero-snowfall,
.hero-snowfall-fg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-snowfall {
  z-index: 2;
  opacity: 0.68;
}
.hero-snowfall-fg {
  z-index: 4;
  opacity: 0.4;
}
.hero-tool[data-style="frosty"] .hero-snowfall { opacity: 0.85; }
.hero-tool[data-style="frosty"] .hero-snowfall-fg { opacity: 0.56; }
.hero-snowfall::before {
  content: "";
  position: absolute;
  left: -360px;
  right: -360px;
  top: -720px;
  bottom: 0;
  background-size: 360px 360px;
  background-repeat: repeat;
  background-image:
    radial-gradient(2px 2px at 42px 68px, var(--bg-card) 55%, transparent 100%),
    radial-gradient(1.5px 1.5px at 118px 24px, var(--bg-parchment) 55%, transparent 100%),
    radial-gradient(2.5px 2.5px at 195px 128px, var(--bg-card) 45%, transparent 100%),
    radial-gradient(1.5px 1.5px at 268px 54px, var(--bg-card) 55%, transparent 100%),
    radial-gradient(2px 2px at 312px 186px, var(--bg-parchment) 50%, transparent 100%),
    radial-gradient(2px 2px at 78px 248px, var(--bg-card) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 164px 310px, var(--bg-parchment) 55%, transparent 100%),
    radial-gradient(2.5px 2.5px at 245px 274px, var(--bg-card) 45%, transparent 100%),
    radial-gradient(2px 2px at 336px 324px, var(--bg-card) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 22px 182px, var(--bg-parchment) 55%, transparent 100%);
  animation: snowFallFar 24s linear infinite;
  will-change: transform;
}
.hero-snowfall-fg::before {
  content: "";
  position: absolute;
  left: -460px;
  right: -460px;
  top: -920px;
  bottom: 0;
  background-size: 460px 460px;
  background-repeat: repeat;
  background-image:
    radial-gradient(3.5px 3.5px at 84px 96px, var(--bg-card) 30%, transparent 100%),
    radial-gradient(2.5px 2.5px at 242px 58px, var(--bg-parchment) 45%, transparent 100%),
    radial-gradient(4px 4px at 384px 206px, var(--bg-card) 25%, transparent 100%),
    radial-gradient(3px 3px at 156px 318px, var(--bg-parchment) 35%, transparent 100%),
    radial-gradient(3.5px 3.5px at 318px 394px, var(--bg-card) 30%, transparent 100%);
  animation: snowFallNear 22s linear infinite;
  will-change: transform;
}
@keyframes snowFallFar {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(360px, 720px, 0); }
}
@keyframes snowFallNear {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-460px, 920px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-snow, .hero-snowfall::before, .hero-snowfall-fg::before, .twinkle-glint, .ornament-halo, .ornament-sway {
    animation: none !important;
  }
}
.stage-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    radial-gradient(circle at 50% 42%, var(--gold-300) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 82%, var(--pine-glow) 0%, transparent 58%);
}
.hero-horizon {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 210px;
  pointer-events: none;
  z-index: 1;
}
.horizon-back {
  fill: var(--pine-900);
  opacity: 0.52;
}
.horizon-mid {
  fill: var(--pine-950);
  opacity: 0.72;
}
.hero-tool .wrap { position: relative; z-index: 3; }
.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 30px;
  display: block;
  z-index: 5;
}
.hero-wave path { fill: var(--bg-cream); }

.hero-corner {
  position: absolute;
  left: 24px;
  top: 24px;
  max-width: 240px;
  z-index: 6;
}
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--glass-gold);
  background: var(--glass-surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.hero-tool h1 {
  font-family: var(--font-head);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0 0 12px;
  color: var(--bg-card);
}
.hero-tool .hero-sub {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 28ch;
  color: var(--bg-parchment);
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}
.hero-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-300);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.2s ease;
}
.hero-scroll-hint:hover {
  opacity: 1;
  transform: translateY(2px);
}

.page-hero {
  padding: 36px 0 12px;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--ink-900);
}
.page-hero .hero-sub {
  margin: 0;
  font-size: 17px;
  color: var(--ink-600);
  max-width: 64ch;
}

/* Immersive Stage & Centered Giant Tree */
.tool-stage-wrap {
  width: 100%;
}
.tool-shell {
  background: var(--bg-card);
  color: var(--ink-900);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.tool-shell-compact {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px;
}
.immersive-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.tree-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0 0;
  position: relative;
}
.stage-corner-meta {
  position: absolute;
  right: 0;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 8;
}
.stage-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.tree-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 4px;
  margin-right: -4px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--bg-card);
  line-height: 1.2;
  cursor: default;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.tree-switcher-btn:not([disabled]) {
  cursor: pointer;
  padding: 3px 10px;
  margin-right: 0;
  border-color: var(--glass-border);
  background: var(--glass-surface);
}
.tree-switcher-btn:not([disabled]):hover,
.tree-switcher-btn[aria-expanded="true"] {
  border-color: var(--gold-300);
  color: var(--gold-300);
}
.tree-caret {
  font-size: 13px;
  color: var(--gold-300);
  line-height: 1;
}
.tree-countdown {
  background: var(--pine-glow);
  border: 1px solid var(--glass-gold);
  color: var(--gold-300);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.stage-foot {
  margin: 0;
  font-size: 13px;
  color: var(--bg-parchment);
  text-align: right;
  opacity: 0.9;
}
.my-trees-wrap {
  position: relative;
}
.trees-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 214px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-gold) transparent;
  background: var(--pine-950);
  border: 1px solid var(--glass-gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 20;
}
.trees-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--bg-parchment);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.trees-menu-item:hover,
.trees-menu-item.active {
  background: var(--glass-surface);
  color: var(--gold-300);
}
.trees-menu-new {
  border-top: 1px solid var(--glass-border);
  margin-top: 2px;
  padding-top: 9px;
  color: var(--gold-300);
}
.trees-menu-count {
  font-size: 12px;
  color: var(--gold-300);
  opacity: 0.85;
}

.stage-corner-meta:has(.trees-menu:not([hidden])) {
  z-index: 25;
}
/* Spacious, completely unobstructed Christmas tree fitting inside 1 viewport screen with the dock */
.tree-canvas-frame {
  position: relative;
  width: min(820px, calc(100vw - 120px), calc((100vh - 186px) * 0.7069));
  width: min(820px, calc(100vw - 120px), calc((100svh - 186px) * 0.7069));
  aspect-ratio: 550 / 778;
  margin: 0 auto;
  z-index: 2;
}
.tree-canvas-frame:has(.hang-bubble:not([hidden])),
.tree-canvas-frame:has(.peek-bubble:not([hidden])) {
  z-index: 18;
}
.tree-canvas-frame::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -6px;
  height: 18px;
  background: radial-gradient(ellipse at center, var(--pine-950) 0%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}
.tree-photo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 95.63%;
  object-fit: contain;
  pointer-events: none;
  transition: filter 0.25s ease;
}
.tree-stage[data-style="frosty"] .tree-photo {
  filter: saturate(0.75) hue-rotate(16deg) brightness(1.06);
}
.tree-stage[data-style="midnight"] .tree-photo {
  filter: saturate(0.9) contrast(1.05) brightness(0.96);
}
.tree-stage[data-style="gold"] .tree-photo {
  filter: sepia(0.14) saturate(1.12) brightness(1.02);
}

.tree-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.twinkle-glint {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 2.8s ease-in-out infinite;
}
.twinkle-glint:nth-child(2n) { animation-delay: 0.9s; }
.twinkle-glint:nth-child(3n) { animation-delay: 1.7s; }
.ornament-spot { cursor: pointer; }
.ornament-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: haloPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
.ornament-spot:nth-child(2n) .ornament-halo { animation-delay: 0.9s; }
.ornament-spot:nth-child(3n) .ornament-halo { animation-delay: 1.7s; }
.ornament-sway {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: gentleSway 4.2s ease-in-out infinite;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ornament-spot:nth-child(even) .ornament-sway { animation-delay: 1.4s; }
.ornament-spot:hover .ornament-sway,
.ornament-spot[data-orn-active="true"] .ornament-sway {
  animation-play-state: paused;
  transform: scale(1.18) rotate(-4deg);
}
.ornament-spot:hover .ornament-halo,
.ornament-spot[data-orn-active="true"] .ornament-halo {
  animation: none;
  opacity: 1;
  transform: scale(1.26);
}
.empty-spot { cursor: pointer; }
.empty-spot-ring {
  fill: var(--glass-dock);
  stroke: var(--gold-300);
  stroke-width: 1.6;
  stroke-dasharray: 3.5 3;
  opacity: 0.68;
  transition: transform 0.2s ease, opacity 0.2s ease, stroke-width 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.empty-spot-plus {
  stroke: var(--gold-300);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.78;
}
.empty-spot:hover .empty-spot-ring,
.empty-spot[data-spot-selected="true"] .empty-spot-ring {
  opacity: 1;
  stroke-width: 2.4;
  stroke-dasharray: none;
  transform: scale(1.22);
}
.empty-spot[data-spot-selected="true"] .empty-spot-ring {
  fill: var(--pine-700);
}
.empty-spot:hover .empty-spot-plus,
.empty-spot[data-spot-selected="true"] .empty-spot-plus {
  opacity: 1;
}
.burst-dot {
  animation: burstOut 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes burstOut {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--bx, 0px), var(--by, 0px)) scale(0.35); }
}
.tree-tap-hint {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translateX(-50%);
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--glass-dock);
  border: 1px solid var(--glass-gold);
  color: var(--gold-300);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  animation: hintFloat 2.4s ease-in-out infinite;
  z-index: 6;
}
@keyframes hintFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -4px); }
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.18); }
}
@keyframes gentleSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1.8deg); }
}
@keyframes snowPulse {
  0% { transform: translateY(-4px); opacity: 0.45; }
  100% { transform: translateY(6px); opacity: 0.8; }
}
@keyframes peekPop {
  0% { opacity: 0; transform: translateY(-50%) scale(0.88); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes peekPopAbove {
  0% { opacity: 0; transform: translateY(-100%) scale(0.9); }
  100% { opacity: 1; transform: translateY(-100%) scale(1); }
}
@keyframes peekPopBelow {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes hangPopMobile {
  0% { opacity: 0; transform: translateX(-50%) scale(0.92); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}
.stage-toast {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pine-950);
  border: 1px solid var(--glass-gold);
  color: var(--gold-300);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  z-index: 14;
}
/* Cute Stitched Keepsake Gift-Tag Note Card anchored near the Ornament */
.peek-bubble {
  position: absolute;
  top: var(--peek-y, 30%);
  width: 244px;
  background: var(--bg-card);
  color: var(--ink-900);
  border: 1.5px solid var(--gold-300);
  border-radius: 18px;
  padding: 4px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%);
  z-index: 16;
}
.peek-bubble[data-side="left"] {
  right: calc(100% - var(--peek-x, 50%) + 22px);
  left: auto;
}
.peek-bubble[data-side="right"] {
  left: calc(var(--peek-x, 50%) + 22px);
  right: auto;
}
.peek-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  transform: translateY(-50%) rotate(45deg);
  z-index: 0;
}
.peek-bubble[data-side="left"]::after {
  right: -7px;
  border-top: 1.5px solid var(--gold-300);
  border-right: 1.5px solid var(--gold-300);
}
.peek-bubble[data-side="right"]::after {
  left: -7px;
  border-bottom: 1.5px solid var(--gold-300);
  border-left: 1.5px solid var(--gold-300);
}
.peek-bubble.peek-open {
  animation: peekPop 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.peek-tag-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-warm);
  border-radius: 14px;
  padding: 11px 12px 12px;
}
.peek-bubble-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.peek-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-cream);
  border: 1px solid var(--gold-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.peek-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.peek-meta strong {
  font-family: var(--font-head);
  font-size: 15px;
  line-height: 1.15;
  color: var(--pine-900);
}
.peek-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pine-100);
  color: var(--pine-700);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.peek-body {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--bg-parchment);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-900);
}
.peek-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-parchment);
  border: none;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.peek-close:hover {
  background: var(--pine-700);
  color: var(--bg-card);
}

/* Anchored Floating Gift-Hanging Card beside clicked + branch */
.hang-bubble {
  position: absolute;
  top: var(--hang-y, 46%);
  width: min(306px, calc(100vw - 24px));
  background: var(--bg-card);
  color: var(--ink-900);
  border: 1.5px solid var(--gold-300);
  border-radius: 18px;
  padding: 4px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%);
  z-index: 17;
}
.hang-bubble[data-side="left"] {
  right: calc(100% - var(--peek-x, 50%) + 20px);
  left: auto;
}
.hang-bubble[data-side="right"] {
  left: calc(var(--peek-x, 50%) + 20px);
  right: auto;
}
.hang-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  transform: translateY(-50%) rotate(45deg);
  z-index: 0;
}
.hang-bubble[data-side="left"]::after {
  right: -7px;
  border-top: 1.5px solid var(--gold-300);
  border-right: 1.5px solid var(--gold-300);
}
.hang-bubble[data-side="right"]::after {
  left: -7px;
  border-bottom: 1.5px solid var(--gold-300);
  border-left: 1.5px solid var(--gold-300);
}
.hang-bubble.peek-open {
  animation: peekPop 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hang-tag-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-warm);
  border-radius: 14px;
  padding: 11px 12px;
  display: grid;
  gap: 8px;
}
.hang-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hang-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.hang-meta strong {
  font-family: var(--font-head);
  font-size: 14.5px;
  line-height: 1.15;
  color: var(--pine-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.spot-chip-light {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pine-100);
  color: var(--pine-700);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.hang-icons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.hang-icon-btn {
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--border-warm);
  background: var(--bg-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.hang-icon-btn:hover {
  border-color: var(--pine-700);
  transform: translateY(-1px);
}
.hang-icon-btn.active {
  background: var(--pine-100);
  border-color: var(--pine-700);
  box-shadow: 0 0 0 1px var(--pine-700);
}
.hang-input,
.hang-textarea {
  width: 100%;
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 7px 10px;
}
.hang-input:focus,
.hang-textarea:focus {
  outline: none;
  border-color: var(--pine-700);
  background: var(--bg-card);
}
.hang-note-box {
  display: grid;
  gap: 5px;
}
.hang-textarea {
  resize: none;
  line-height: 1.4;
}
.hang-note-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hang-inspire {
  background: var(--pine-100);
  color: var(--pine-700);
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.hang-inspire:hover {
  background: var(--pine-700);
  color: var(--bg-card);
}
.hang-count {
  font-size: 12px;
  color: var(--ink-600);
  font-weight: 600;
}
.hang-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hang-anon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-600);
  font-weight: 600;
  cursor: pointer;
}
.hang-submit {
  min-height: 36px;
  padding: 6px 14px;
  white-space: nowrap;
}
.hang-status {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-parchment);
  border: 1px solid var(--berry-600);
  color: var(--berry-600);
  font-size: 12px;
  font-weight: 600;
}

/* Sleek Single-Row Bottom Pill Dock locked inside viewport fold */
.floating-dock {
  position: relative;
  width: min(568px, 100%);
  background: var(--glass-dock);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--bg-card);
  border: 1px solid var(--glass-gold);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-lg);
  padding: 6px 7px 6px 10px;
  margin: 10px auto 0;
  z-index: 9;
  transition: width 0.2s ease, border-radius 0.2s ease;
}
.floating-dock[data-mode="owner"] {
  width: min(636px, 100%);
  padding: 6px 8px 6px 12px;
}
.floating-dock[data-mode="friend"] {
  width: min(636px, 100%);
  padding: 6px 8px 6px 16px;
}
.dock-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.dock-create-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.dock-input-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 150px;
}
.dock-input {
  width: 100%;
  height: 40px;
  padding: 8px 46px 8px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--bg-card);
  background: var(--glass-surface);
}
.dock-input::placeholder {
  color: var(--bg-parchment);
  opacity: 0.78;
}
.dock-input:focus {
  outline: none;
  border-color: var(--gold-300);
  box-shadow: 0 0 0 2px var(--glass-gold);
}
.dock-count {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--bg-parchment);
  opacity: 0.75;
  pointer-events: none;
}

.dock-look-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  color: var(--bg-card);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dock-look-btn:hover,
.dock-look-btn[aria-expanded="true"] {
  border-color: var(--gold-300);
  color: var(--gold-300);
}
.look-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: min(430px, calc(100vw - 32px));
  background: var(--pine-950);
  color: var(--bg-card);
  border: 1px solid var(--glass-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  z-index: 12;
}
.share-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 24px));
  background: var(--pine-950);
  color: var(--bg-card);
  border: 1px solid var(--glass-gold);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-lg);
  padding: 16px 18px;
  display: grid;
  gap: 11px;
  z-index: 15;
}
.share-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.share-card-head strong {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--gold-300);
  line-height: 1.2;
}
.share-card-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--bg-parchment);
}
.share-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.share-link-input {
  flex: 1 1 auto;
  height: 38px;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
}
.share-link-row .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.share-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  color: var(--bg-card);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.share-action-btn:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
  background: var(--pine-900);
}
.share-card-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--bg-parchment);
  opacity: 0.9;
}
.share-recovery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
}
.recovery-pin-badge {
  font-size: 12.5px;
  color: var(--bg-parchment);
}
.recovery-pin-badge strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--gold-300);
  margin-left: 4px;
}
.recovery-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-300);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.recovery-link-btn:hover {
  color: var(--bg-card);
}
.friend-head-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.spot-chip {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--pine-glow);
  border: 1px solid var(--glass-gold);
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 700;
}
.look-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.look-group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.look-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  color: var(--bg-parchment);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.look-chip:hover {
  border-color: var(--gold-300);
  color: var(--bg-card);
}
.look-chip.active {
  background: var(--gold-500);
  color: var(--pine-950);
  border-color: var(--gold-300);
}

.floating-dock[data-mode="friend"] .dock-input {
  border-radius: var(--radius-sm);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.icon-pill, .pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-warm);
  background: var(--bg-cream);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  transition: all 0.15s ease;
}
.icon-pill:hover, .pill-btn:hover {
  border-color: var(--pine-700);
  background: var(--pine-100);
}
.icon-pill.active, .pill-btn.active {
  background: var(--pine-700);
  color: var(--bg-card);
  border-color: var(--pine-700);
}
.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-card);
  flex-shrink: 0;
}
.swatch-pine { background: var(--pine-700); }
.swatch-frosty { background: var(--frost-700); }
.swatch-midnight { background: var(--midnight-700); }
.swatch-gold { background: var(--gold-500); }

.dock-cta {
  height: 40px;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 100%);
  color: var(--pine-950);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.btn-gold:hover {
  background: var(--gold-300);
  color: var(--pine-950);
  transform: translateY(-1px);
}
.dock-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--bg-parchment);
  padding: 0 2px;
}
.dock-link-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-300);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dock-hint { color: var(--bg-parchment); font-size: 12px; }

.dock-owner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
}
.owner-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}
.floating-dock .btn-sm {
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.dock-friend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dock-friend-copy {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bg-card);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notes-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 24px));
  background: var(--pine-950);
  color: var(--bg-card);
  border: 1px solid var(--glass-gold);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-lg);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  z-index: 15;
}
.notes-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notes-pop-head strong {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--gold-300);
}
.recover-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: min(390px, calc(100vw - 24px));
  background: var(--pine-950);
  color: var(--bg-card);
  border: 1px solid var(--glass-gold);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-lg);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  z-index: 16;
}
.recover-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--bg-parchment);
}
.recover-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.recover-pin-input {
  flex: 1 1 auto;
  height: 38px;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  letter-spacing: 2px;
  text-align: center;
}
.note-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.note-item-main {
  flex: 1 1 auto;
  min-width: 0;
}
.note-del-btn {
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--bg-parchment);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.note-del-btn:hover {
  border-color: var(--berry-600);
  color: var(--bg-card);
  background: var(--berry-600);
}
.code-pill {
  background: var(--glass-surface);
  border: 1.5px dashed var(--gold-300);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--bg-card);
  white-space: nowrap;
}
.code-pill strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0.8px;
  color: var(--gold-300);
}
.dock-friend-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--bg-card);
}
.friend-inputs-grid {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 8px;
  align-items: center;
}
.dock-note-wrap {
  position: relative;
}
.dock-note-wrap .dock-input {
  padding-right: 88px;
}
.dock-inspire {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--pine-700);
  color: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.floating-dock .icon-pill {
  background: var(--glass-surface);
  border-color: var(--glass-border);
  color: var(--bg-card);
  padding: 5px 10px;
  min-height: 32px;
  font-size: 12px;
}
.floating-dock .icon-pill:hover {
  border-color: var(--gold-300);
  background: var(--pine-700);
}
.floating-dock .icon-pill.active {
  background: var(--bg-card);
  color: var(--pine-950);
  border-color: var(--gold-300);
  box-shadow: 0 0 0 2px var(--glass-gold);
}
.floating-dock .btn-secondary {
  background: var(--glass-surface);
  color: var(--bg-card);
  border-color: var(--glass-border);
}
.floating-dock .btn-secondary:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
  background: var(--pine-900);
}
.floating-dock .btn-ghost {
  color: var(--gold-300);
}
.floating-dock .btn-ghost:hover {
  background: var(--glass-surface);
}
.floating-dock .status-msg {
  background: var(--pine-700);
  border-color: var(--gold-300);
  color: var(--bg-card);
}
.floating-dock .notes-drawer {
  border-top-color: var(--glass-border);
}
.floating-dock .note-item {
  background: var(--glass-surface);
  border-color: var(--glass-border);
  color: var(--bg-card);
}
.floating-dock .note-meta {
  color: var(--gold-300);
}
.floating-dock .check-row,
.floating-dock .char-count {
  color: var(--bg-parchment);
}

.input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-900);
  background: var(--bg-card);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 13px; }
.btn-primary {
  background: var(--pine-700);
  color: var(--bg-card);
}
.btn-primary:hover { background: var(--pine-900); }
.btn-secondary {
  background: var(--bg-cream);
  color: var(--ink-900);
  border: 1.5px solid var(--border-warm);
}
.btn-secondary:hover { background: var(--bg-parchment); }
.btn-accent {
  background: var(--berry-600);
  color: var(--bg-card);
}
.btn-accent:hover { background: var(--ink-900); }
.btn-ghost {
  background: transparent;
  color: var(--pine-700);
}
.btn-ghost:hover { background: var(--pine-100); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.status-msg {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--pine-100);
  border: 1px solid var(--pine-700);
  color: var(--pine-900);
  font-size: 13px;
  font-weight: 600;
}
.notes-drawer {
  border-top: 1px solid var(--border-warm);
  padding-top: 8px;
}
.note-list {
  display: grid;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
}
.note-item {
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  background: var(--bg-cream);
  font-size: 13px;
}
.note-meta {
  font-weight: 700;
  color: var(--pine-700);
  margin-bottom: 2px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-900);
  cursor: pointer;
}
.char-count { font-size: 12px; color: var(--ink-600); font-weight: 600; }
.field-label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 6px;
}
.panel-card { display: flex; flex-direction: column; gap: 14px; }

/* Below-the-Fold Editorial Sections */
.section-band { padding: 76px 0; }
.section-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine-700);
}
.section-intro { max-width: 62ch; margin-bottom: 40px; }
.section-intro h2, .showcase-copy h2, .editorial-card h2, .faq-aside h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 12px;
  color: var(--ink-900);
}
.section-intro h2 em {
  font-style: italic;
  color: var(--pine-700);
}
.section-intro p { margin: 0; color: var(--ink-600); font-size: 16.5px; line-height: 1.6; }

.steps-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}
.step-column {
  padding: 34px 28px;
  border-right: 1px solid var(--border-warm);
}
.step-column:first-child { padding-left: 0; }
.step-column:last-child { border-right: none; padding-right: 0; }
.step-num {
  display: block;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: var(--gold-500);
  margin-bottom: 16px;
}
.step-column h3 {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--ink-900);
}
.step-column p { margin: 0; color: var(--ink-600); font-size: 15px; line-height: 1.65; }

.showcase-band {
  background: var(--bg-parchment);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}
.showcase-copy > p { color: var(--ink-600); margin: 0 0 26px; font-size: 16px; }
.feature-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 26px;
  margin: 0 0 28px;
}
.feature-point {
  padding-top: 14px;
  border-top: 1px solid var(--border-warm);
}
.feature-point strong {
  display: block;
  font-size: 15px;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.feature-point p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-600);
}
.feature-point a { color: var(--pine-700); font-weight: 600; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.story-mockup { position: relative; max-width: 320px; margin: 0 auto; }
.story-card-mini {
  background: linear-gradient(180deg, var(--pine-900) 0%, var(--pine-950) 100%);
  color: var(--bg-card);
  border-radius: 24px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-gold);
}
.story-card-frame {
  border-radius: 17px;
  padding: 20px 18px 22px;
  text-align: center;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.story-mini-top { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-300); }
.story-mini-name { font-family: var(--font-head); font-size: 26px; margin: 4px 0 10px; }
.story-mini-tree img { width: 152px; height: auto; display: block; margin: 0 auto; }
.story-mini-code {
  margin-top: 12px;
  background: var(--glass-surface);
  border: 1px dashed var(--gold-300);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-300);
}
.story-mini-foot { font-size: 12px; color: var(--bg-parchment); margin-top: 9px; }
.note-preview-float {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  margin-top: -24px;
  margin-left: 26px;
  position: relative;
  z-index: 2;
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease;
}
.note-preview-float:hover { transform: rotate(0deg); }
.note-preview-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.note-preview-tag { color: var(--berry-600); }
.note-preview-from { color: var(--pine-700); }
.note-preview-float p { margin: 0; font-size: 14px; color: var(--ink-900); line-height: 1.5; }

.editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}
.editorial-card:first-child {
  padding: 8px 0;
  border-left: 3px solid var(--gold-500);
  padding-left: 28px;
}
.editorial-card:last-child {
  background: var(--bg-parchment);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.editorial-card p, .editorial-card li { color: var(--ink-600); line-height: 1.65; }
.editorial-card ul { padding-left: 18px; display: grid; gap: 10px; margin: 14px 0 0; }
.editorial-card a, .prose-wide a { color: var(--pine-700); font-weight: 600; text-underline-offset: 3px; }
.prose-wide { max-width: 74ch; }
.prose-wide h2 { font-family: var(--font-head); font-size: 26px; margin: 28px 0 10px; }
.prose-wide h2:first-child { margin-top: 0; }

.faq-band {
  border-top: 1px solid var(--border-warm);
}
.faq-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 52px;
  align-items: start;
}
.faq-aside p {
  margin: 0 0 14px;
  color: var(--ink-600);
  font-size: 15.5px;
}
.faq-aside-link {
  color: var(--pine-700);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-list {
  display: grid;
  border-top: 1px solid var(--border-warm);
}
.faq-list details {
  border-bottom: 1px solid var(--border-warm);
  padding: 20px 0;
}
.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink-900);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  color: var(--pine-700);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}
.faq-list details p {
  margin: 12px 0 0;
  color: var(--ink-600);
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
}

.cta-band {
  background: var(--bg-cream);
  padding: 12px 0 72px;
}
.cta-card {
  background: radial-gradient(circle at 88% 20%, var(--pine-700) 0%, var(--pine-950) 72%);
  color: var(--bg-card);
  border: 1px solid var(--glass-gold);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.cta-card h2 { font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 6px; color: var(--bg-card); }
.cta-card p { margin: 0; color: var(--bg-parchment); max-width: 50ch; }

.site-footer {
  background: var(--pine-950);
  color: var(--bg-parchment);
  padding: 44px 0 28px;
  border-top: 1px solid var(--glass-border);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-note { margin: 10px 0 0; font-size: 14px; color: var(--bg-parchment); max-width: 44ch; }
.footer-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-300); margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--bg-parchment); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--gold-300); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--bg-parchment);
}

@media (max-width: 980px) {
  .hero-tool {
    height: auto;
    min-height: calc(100svh - 48px);
    padding: 10px 0 28px;
    justify-content: center;
  }
  .hero-horizon { height: 150px; }
  .tree-stage { padding: 0; justify-content: flex-start; }
  .hero-corner { position: static; max-width: 100%; text-align: center; margin: 0 auto 4px; }
  .hero-eyebrow, .hero-scroll-hint { display: none; }
  .hero-tool h1 { font-size: clamp(22px, 5vw, 26px); margin: 0 0 2px; }
  .hero-tool .hero-sub { padding-top: 0; border-top: none; margin: 0 auto 4px; max-width: 46ch; }
  .stage-corner-meta {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 6px;
  }
  .trees-menu { left: 50%; right: auto; transform: translateX(-50%); }
  .stage-top { flex-direction: row; justify-content: center; align-items: center; }
  .tree-switcher-btn { font-size: 15px; }
  .stage-foot { text-align: center; font-size: 12px; }
  .steps-ledger, .showcase-grid, .editorial-grid, .faq-layout, .footer-grid, .feature-points {
    grid-template-columns: 1fr;
  }
  .step-column { border-right: none; border-bottom: 1px solid var(--border-warm); padding: 24px 0; }
  .step-column:last-child { border-bottom: none; }
  .editorial-card:first-child { padding-left: 18px; }
  .tree-canvas-frame {
    width: min(360px, calc(100vw - 24px), calc((100vh - 268px) * 0.7069));
    width: min(360px, calc(100vw - 24px), calc((100svh - 268px) * 0.7069));
  }
  .floating-dock,
  .floating-dock[data-mode="owner"],
  .floating-dock[data-mode="friend"] {
    width: min(540px, 100%);
    margin: 10px auto 0;
    border-radius: var(--radius-md);
    padding: 8px 10px;
  }
  .dock-owner-row,
  .dock-friend-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
  .note-preview-float { margin-left: 0; transform: none; }
  .cta-card { padding: 28px 24px; }
}
@media (max-width: 720px) {
  .peek-bubble[data-side] {
    width: min(244px, calc(100% - 16px));
    left: clamp(8px, calc(var(--peek-x, 50%) - 122px), calc(100% - 252px));
    right: auto;
  }
  .peek-bubble[data-vside="above"] {
    top: calc(var(--peek-y, 45%) - 24px);
    transform: translateY(-100%);
  }
  .peek-bubble[data-vside="below"] {
    top: calc(var(--peek-y, 20%) + 24px);
    transform: translateY(0);
  }
  .peek-bubble[data-vside="above"].peek-open {
    animation: peekPopAbove 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  .peek-bubble[data-vside="below"].peek-open {
    animation: peekPopBelow 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  .peek-bubble::after,
  .hang-bubble::after { display: none; }
  .hang-bubble[data-side] {
    width: min(320px, calc(100vw - 24px));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .hang-bubble[data-vside="above"] {
    top: 6px;
    bottom: auto;
  }
  .hang-bubble[data-vside="below"] {
    top: auto;
    bottom: 6px;
  }
  .hang-bubble[data-side].peek-open {
    animation: hangPopMobile 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .header-inner { height: 48px; }
  .hero-tool { padding: 8px 0 26px; }
  .brand { font-size: 16px; gap: 7px; white-space: nowrap; }
  .brand-icon { width: 22px; height: 22px; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: 13px; white-space: nowrap; }
  .site-nav .nav-pill { padding: 4px 10px; }
  .hero-tool .hero-sub,
  .stage-corner-meta[data-custom-title="false"][data-has-trees="false"] .my-trees-wrap,
  .stage-foot { display: none; }
  .tree-canvas-frame {
    width: min(360px, calc(100vw - 20px), calc((100vh - 268px) * 0.7069));
    width: min(360px, calc(100vw - 20px), calc((100svh - 268px) * 0.7069));
  }
  .dock-create-row { flex-wrap: wrap; gap: 8px; }
  .dock-input-wrap { flex: 1 1 100%; }
  .dock-look-btn { flex: 0 0 auto; }
  .dock-cta { flex: 1 1 auto; }
  .dock-owner-row { justify-content: center; gap: 6px; }
  .owner-actions { flex-wrap: wrap; justify-content: center; gap: 5px; }
  .floating-dock .owner-actions .btn-sm { padding: 5px 10px; min-height: 34px; font-size: 12.5px; }
  .look-popover,
  .share-card,
  .notes-popover,
  .recover-popover {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
  }
  .section-band { padding: 52px 0; }
}
