:root {
  --cream: #fbf6ec;
  --cream-dark: #f2e8d5;
  --ink: #191716;
  --pine: #11382b;
  --red: #d93829;
  --gold: #e9a825;
  --mint: #c7e5d4;
  --blush: #fadcd9;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, sans-serif;
  --font-mono: "Space Mono", monospace;

  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);
  --border: 2px solid var(--ink);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==================== TOPBAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: var(--cream);
  border-bottom: var(--border);
}

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

.top-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pill-btn.accent-pill {
  background: var(--pine);
  color: var(--cream);
}

.pill-btn.accent-pill.active-owner {
  background: var(--gold);
  color: var(--ink);
}

.brand-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--red);
  color: var(--white);
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  transform: rotate(-3deg);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.view-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.tab-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.tab-btn.active {
  background: var(--pine);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-anchor {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-anchor:hover {
  background: var(--cream-dark);
}

.pill-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  background: var(--cream-dark);
  border: var(--border);
  border-radius: 999px;
  cursor: pointer;
}

/* ==================== LAYOUT & VIEWS ==================== */
.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 72px;
}

.view {
  display: none;
  animation: fadeSlide 0.22s ease-out;
}

.view.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

/* ==================== TYPOGRAPHY & BUTTONS ==================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.eyebrow.light { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.muted {
  color: #55504a;
  font-size: 14px;
  margin: 0 0 14px;
}

.btn-primary,
.btn-dark,
.btn-outline,
.btn-revenge {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  padding: 11px 16px;
  border: var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-primary:hover,
.btn-dark:hover,
.btn-outline:hover,
.btn-revenge:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-primary { background: var(--red); color: var(--white); }
.btn-dark { background: var(--pine); color: var(--cream); }
.btn-outline { background: var(--white); color: var(--ink); }
.btn-revenge { background: var(--gold); color: var(--ink); }
.full-width { width: 100%; }

.reply-banner {
  background: #fdf0c4;
  border: var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.reply-banner-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.reply-banner-actions {
  display: flex;
  gap: 8px;
}

/* ==================== VIEW 1: APP-FIRST HERO (ADVENTWITHFRIENDS STYLE) ==================== */
.app-hero-stage {
  position: relative;
  overflow: hidden;
  background: var(--pine);
  color: var(--cream);
  border: var(--border);
  border-radius: 20px;
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.25s ease;
}

.app-hero-stage.theme-snowy,
.wall-stage.theme-snowy {
  background: #132247;
}

.app-hero-stage.theme-cranberry,
.wall-stage.theme-cranberry {
  background: #5b1428;
}

/* Hanging String-Light Garland */
.garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  pointer-events: none;
  border-top: 2px solid rgba(25, 23, 22, 0.45);
}

.bulb {
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 45% 45%;
  border: 1.5px solid var(--ink);
  margin-top: -1px;
  box-shadow: 0 2px 8px rgba(25, 23, 22, 0.35);
}

.bulb:nth-child(4n+1) { background: #ff5d5d; }
.bulb:nth-child(4n+2) { background: #ffd166; }
.bulb:nth-child(4n+3) { background: #5ef2b8; }
.bulb:nth-child(4n+4) { background: #74c0fc; }

.app-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1.5px dashed rgba(251, 246, 236, 0.25);
}

.app-hero-header h1 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--cream);
  margin: 0 0 4px;
}

.hero-tagline {
  margin: 0;
  font-size: 14px;
  color: #cde0d6;
}

.fill-meter-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.fill-meter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.fill-bulbs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.meter-bulb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(251, 246, 236, 0.42);
  border: 1.5px solid rgba(251, 246, 236, 0.78);
}

.meter-bulb.lit {
  background: var(--gold);
  border-color: var(--ink);
  box-shadow: 0 0 6px var(--gold);
}

.panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.toggle-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #3a3632;
  margin: 10px 0 12px;
  cursor: pointer;
}

.toggle-check input {
  margin-top: 2px;
  accent-color: var(--pine);
}

.invite-code-box {
  background: var(--white);
  border: 1.5px dashed var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.invite-code-box strong:not(.code-placeholder) {
  flex: 1;
  min-width: 0;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-lbl {
  font-size: 10px;
  opacity: 0.7;
}

.passcode-notice {
  background: #fdf0c4;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.saved-boards-row {
  margin-bottom: 10px;
}

.saved-boards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.saved-board-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 9px;
  cursor: pointer;
}

.saved-board-chip:hover {
  background: var(--gold);
}

.share-channel-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.share-kit-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.kit-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 4px;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  text-align: center;
  min-height: 42px;
}

.kit-btn.primary {
  background: var(--red);
  color: var(--white);
}

.kit-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.tiny-recovery-note {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #55504a;
}

.link-subtle {
  background: none;
  border: none;
  padding: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #55504a;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
}

.mini-door.empty-door {
  background: rgba(0, 0, 0, 0.22);
  color: rgba(251, 246, 236, 0.75);
  border: 1.5px dashed rgba(251, 246, 236, 0.45);
  box-shadow: none;
}

.mini-door.empty-door::before {
  display: none;
}

.mini-door.empty-door:hover {
  background: rgba(233, 168, 37, 0.22);
  border-color: var(--gold);
  color: var(--cream);
}

.mini-door.empty-door .mini-door-num {
  background: transparent;
  color: inherit;
  border: none;
  box-shadow: none;
  transform: none;
  padding: 0;
  font-size: 16px;
}

.mini-door-from {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: #fffdf6;
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-stat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.owner-stat {
  background: var(--white);
  border: var(--border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.owner-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.owner-stat-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.mini-door.owner-today {
  box-shadow: 0 0 0 3px var(--gold), 3px 3px 0 var(--ink);
}

.mini-door.owner-opened {
  opacity: 0.78;
}

.mini-door.owner-locked {
  background: rgba(0, 0, 0, 0.28);
  color: rgba(251, 246, 236, 0.72);
  border: 1.5px solid rgba(251, 246, 236, 0.22);
  box-shadow: none;
}

.mini-door.owner-locked::before {
  display: none;
}

.mini-door.owner-locked .mini-door-num {
  background: transparent;
  color: inherit;
  border: none;
  box-shadow: none;
  transform: none;
  padding: 0;
}

.share-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-right: 44px;
  margin-bottom: 14px;
}

.inline-share-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.receipt-modal-card {
  max-width: 430px;
}

.site-footer {
  max-width: 1152px;
  margin: 0 auto;
  padding: 20px 0 36px;
  border-top: 1.5px dashed rgba(25, 23, 22, 0.25);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #55504a;
}

.fill-helper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #666;
}

.media-attach-box {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--white);
  border: 1.5px dashed var(--ink);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-attach-top {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.upload-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 4px 9px;
  cursor: pointer;
}

.upload-chip:hover {
  background: var(--gold);
}

.media-url-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 12px;
  padding: 7px 10px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  color: var(--ink);
}

.attach-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
}

.attach-preview img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
}

.modal-media-slot {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.polaroid-frame {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 8px 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1deg);
  max-width: 240px;
}

.polaroid-frame img {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  display: block;
}

.media-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.media-link-card:hover {
  background: var(--gold);
}

.from-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  background: var(--cream-dark);
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}

.from-badge.mystery {
  background: var(--ink);
  color: var(--gold);
}

.guess-who-box {
  background: var(--white);
  border: 2px dashed var(--ink);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.guess-who-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}

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

.suspect-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 10px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}

.suspect-btn:hover:not(:disabled) {
  background: var(--gold);
  transform: translateY(-1px);
}

.suspect-btn.correct {
  background: var(--mint);
  border-color: var(--pine);
}

.suspect-btn.wrong {
  background: var(--blush);
  text-decoration: line-through;
  opacity: 0.7;
}

.guess-result {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
}

.guess-result.win { background: var(--mint); }
.guess-result.lose { background: var(--blush); }

.mini-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.mini-badge.red { background: var(--blush); }
.mini-badge.gold { background: #fdf0c4; }
.mini-badge.green { background: var(--mint); }

.app-split {
  display: grid;
  grid-template-columns: 1.25fr 380px;
  gap: 20px;
  align-items: stretch;
}

.live-board-wrap {
  background: rgba(0, 0, 0, 0.18);
  border: 1.5px solid rgba(251, 246, 236, 0.2);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.board-label-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 10px;
}

.board-sub-hint {
  color: #cde0d6;
  font-size: 10px;
}

.sample-pill {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.04em;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.live-board-wrap.sample-home-board {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(233, 168, 37, 0.55);
  box-shadow: inset 0 0 0 1px rgba(251, 246, 236, 0.1);
}

.live-board-wrap.sample-home-board .mini-door.empty-door {
  background: rgba(251, 246, 236, 0.14);
  border: 2px dashed rgba(251, 246, 236, 0.72);
  color: rgba(251, 246, 236, 0.96);
}

.live-board-wrap.sample-readonly .mini-door {
  cursor: pointer;
}

.live-board-wrap.sample-readonly .mini-door:active {
  transform: scale(0.98);
}

.builder-panel.create-panel-spotlight {
  position: relative;
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow:
    0 0 0 5px rgba(233, 168, 37, 0.28),
    6px 6px 0 var(--ink);
  animation: create-panel-glow 1.1s ease-in-out 4;
}

body.sheet-open .builder-panel.create-panel-spotlight {
  outline-offset: 0;
}

#createBoardBtn.create-btn-pulse {
  animation: create-btn-pulse 0.85s ease-in-out 5;
}

@keyframes create-panel-glow {
  0%,
  100% {
    outline-color: var(--gold);
  }
  50% {
    outline-color: #fff2c4;
  }
}

@keyframes create-btn-pulse {
  0%,
  100% {
    transform: translate(0, 0);
    box-shadow: 4px 4px 0 var(--ink);
  }
  50% {
    transform: translate(-1px, -1px);
    box-shadow:
      5px 5px 0 var(--ink),
      0 0 0 4px rgba(217, 56, 41, 0.28);
  }
}

.invite-share-section .invite-code-box {
  margin-top: 0;
}

.create-another-board-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1.5px dashed var(--ink);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.create-another-board-btn:hover {
  background: var(--white);
}

.builder-panel--returning .create-board-section:not(.is-expanded) {
  display: none;
}

.builder-panel--returning .create-board-section.is-expanded {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(25, 23, 22, 0.35);
}

.invite-builder-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#createBoardBtn.hidden,
#enterOwnerBtn.hidden {
  display: none;
}

.create-nudge {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 14px 16px 12px;
  background: #fff8e8;
  border: 3px solid var(--blush);
  border-radius: 14px;
  box-shadow:
    0 0 0 3px rgba(217, 56, 41, 0.2),
    5px 5px 0 var(--ink);
  animation: create-nudge-pop 0.35s ease-out;
}

.create-nudge--docked {
  margin: 0 0 14px;
}

.create-live-preview {
  margin: -4px 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #4a5c54;
}

body.board-booting #modeSwitchBtn,
body.board-booting #enterOwnerBtn {
  visibility: hidden;
}

body.board-booting #heroPreviewGrid:empty {
  min-height: 120px;
}

.create-nudge.hidden {
  display: none;
}

.create-nudge-kicker {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blush);
}

.create-nudge-text {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

.create-nudge-cta {
  width: 100%;
  font-size: 15px;
  padding: 14px 16px;
  animation: create-btn-pulse 0.9s ease-in-out 6;
}

.create-nudge-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.55;
}

.create-nudge-close:hover {
  opacity: 1;
}

@keyframes create-nudge-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.invite-code-box strong.code-placeholder {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: #7a8f84;
  font-family: var(--font-mono);
}

.hero-preview-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  flex: 1;
}

.hero-preview-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 5 Cycling Wrapping Paper Patterns + Tilted Paper Tag */
.mini-door {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  min-height: 74px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.14s ease;
  overflow: hidden;
}

/* Satin Ribbon Cross */
.mini-door::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 8px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.mini-door.wrap-0 {
  background-color: #f3c14b;
  background-image: radial-gradient(#fff8dc 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}
.mini-door.wrap-1 {
  background-color: #2f5aa8;
  color: var(--white);
  background-image: radial-gradient(rgba(255,255,255,0.45) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
}
.mini-door.wrap-2 {
  background-color: #216e4b;
  color: var(--white);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(255,255,255,0.14) 6px, rgba(255,255,255,0.14) 12px);
}
.mini-door.wrap-3 {
  background-color: #6a3e94;
  color: var(--white);
  background-image: repeating-linear-gradient(90deg, transparent, transparent 7px, rgba(255,255,255,0.16) 7px, rgba(255,255,255,0.16) 9px);
}
.mini-door.wrap-4 {
  background-color: #c9332b;
  color: var(--white);
  background-image: radial-gradient(rgba(255,240,200,0.4) 1.6px, transparent 1.6px);
  background-size: 11px 11px;
}

.mini-door:hover {
  transform: translateY(-3px) rotate(-1.5deg);
}

.mini-door-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  background: #fffdf6;
  color: #b52424;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 2px 5px;
  transform: rotate(-6deg);
  box-shadow: 1px 1px 0 rgba(0,0,0,0.25);
}

.mini-door-tag {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: rgba(25, 23, 22, 0.78);
  color: var(--cream);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Builder Panel */
.panel {
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.builder-panel {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-group { margin-bottom: 10px; }

.field-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

.field-group input,
.field-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  background: var(--white);
  border: var(--border);
  border-radius: 8px;
  color: var(--ink);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.seg-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border: var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: inline-block;
}

.swatch.pine { background: #11382b; }
.swatch.snowy { background: #132247; }
.swatch.berry { background: #5b1428; }

.seg-btn.active {
  background: var(--pine);
  color: var(--cream);
}

.divider-label {
  display: flex;
  align-items: center;
  margin: 8px 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
}

.divider-label::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--ink);
  margin-left: 8px;
  opacity: 0.2;
}

.builder-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.builder-secondary-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

/* Optional Deck Editor */
.deck-section {
  margin-top: 24px;
}

.step-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--ink);
  color: var(--cream);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.deck-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.creator-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
}

.mini-card {
  background: var(--cream);
  border: var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.mini-card.toast-type { background: #eff7f2; }
.mini-card.reveal-type { background: #fdf0c4; }

.mini-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--ink);
  color: var(--cream);
  padding: 2px 7px;
  border-radius: 4px;
}

.type-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.mini-card-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  background: transparent;
  border: 1px dashed transparent;
  border-radius: 6px;
  padding: 4px;
  resize: none;
  width: 100%;
  font-family: var(--font-body);
  color: var(--ink);
}

.mini-card-text:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
}

.mini-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reroll-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

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

/* ==================== BELOW THE FOLD: SEO & GEO SECTIONS ==================== */
.seo-section {
  margin-top: 48px;
}

.sec-head {
  margin-bottom: 20px;
}

.sec-head h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.how-steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.how-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-mini {
  background: var(--pine);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 10px;
  height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
}

.phone-mini-bar {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 99px;
  margin: 0 auto;
}

.phone-mini-screen {
  background: var(--cream);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px;
  font-weight: 700;
  text-align: center;
  border: 1.5px solid var(--ink);
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--gold);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.how-card h3 { font-size: 18px; }
.how-card p { font-size: 13.5px; color: #4a453f; margin: 0; }

.feat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feat-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.feat-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--cream-dark);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 2px 7px;
  margin-bottom: 10px;
}

.feat-card h3 { font-size: 18px; }
.feat-card p { font-size: 13.5px; color: #4a453f; margin: 0; }

.geo-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}

.prose-card h2,
.faq-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.prose-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #3a3632;
  margin: 0 0 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
}

.faq-list summary {
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.faq-list details p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: #4a453f;
}

/* ==================== VIEW 2: FESTIVE WALL ==================== */
.wall-stage {
  background: var(--pine);
  color: var(--cream);
  border: var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.wall-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1.5px dashed rgba(251, 246, 236, 0.25);
}

.wall-heading {
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--cream);
  margin: 0;
}

.wall-meta { display: flex; gap: 10px; flex-wrap: wrap; }

.meta-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  border: 1.5px solid rgba(251, 246, 236, 0.35);
  padding: 7px 12px;
  border-radius: 999px;
}

.meta-chip.clickable {
  cursor: pointer;
  background: var(--gold);
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 700;
}

.wall-hint { font-size: 13px; color: #cde0d6; margin: 14px 0 20px; }

.advent-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.advent-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.door {
  position: relative;
  aspect-ratio: 1 / 1.06;
  background: var(--cream);
  color: var(--ink);
  border: var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.door:hover { transform: translateY(-3px) rotate(-1deg); }
.door.opened { background: #e7dfd0; opacity: 0.92; }
.door.today { background: var(--gold); animation: pulseGlow 2.2s infinite; }
.door.locked { background: #174938; color: #9ec0b2; border-color: #0b241c; }
.door.grand { background: var(--red); color: var(--white); }
.door.jiggle { animation: jiggle 0.4s ease; }

@keyframes jiggle {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px) rotate(-2deg); }
  40% { transform: translateX(6px) rotate(2deg); }
  60% { transform: translateX(-4px) rotate(-1deg); }
  80% { transform: translateX(4px) rotate(1deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 4px 4px 0 var(--ink); }
  50% { box-shadow: 4px 4px 0 var(--ink), 0 0 0 4px rgba(233, 168, 37, 0.45); }
}

.door-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.door-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.today-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--red);
  color: var(--white);
  padding: 3px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transform: rotate(6deg);
}

/* ==================== VIEW 3: SHARE STUDIO & RECEIPT ==================== */
.share-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

.format-list { display: flex; flex-direction: column; gap: 8px; }

.format-btn {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 14px;
  background: var(--cream);
  border: var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.format-btn.active {
  background: var(--pine);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.share-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px;
  background: var(--cream-dark);
  border: var(--border);
  border-radius: var(--radius);
  min-height: 580px;
}

.story-card {
  width: 320px;
  aspect-ratio: 9 / 16;
  background: var(--pine);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.story-header {
  text-align: center;
  border-bottom: 1.5px dashed rgba(251, 246, 236, 0.3);
  padding-bottom: 14px;
}

.story-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.story-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-top: 4px;
}

.story-quote-box {
  background: var(--cream);
  color: var(--ink);
  border: var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 4px 4px 0 var(--red);
  transform: rotate(-1deg);
}

.story-quote { font-family: var(--font-display); font-size: 19px; line-height: 1.35; margin: 0; }

.story-clapback-tag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--gold);
  padding: 4px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.story-poll {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(251, 246, 236, 0.35);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.story-poll-q { font-size: 12px; font-weight: 700; margin-bottom: 8px; }

.story-poll-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.story-poll-opts span {
  background: var(--cream);
  color: var(--ink);
  padding: 6px;
  border-radius: 6px;
  font-weight: 700;
}

.story-watermark { text-align: center; font-family: var(--font-mono); font-size: 10px; opacity: 0.7; }

.group-card {
  width: 340px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.group-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 14px;
}

.group-quote { font-family: var(--font-display); font-size: 22px; line-height: 1.3; margin: 0 0 18px; }

.group-rating-box {
  background: var(--cream);
  border: 1.5px dashed var(--ink);
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.receipt-card {
  width: 360px;
  background: #fffdf8;
  border: 2px solid var(--ink);
  padding: 24px 22px;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-lg);
}

.receipt-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px dashed var(--ink);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  margin-bottom: 9px;
}

.receipt-row span:last-child { text-align: right; font-weight: 700; }
.receipt-divider { border-top: 1.5px dashed var(--ink); margin: 12px 0; }

.receipt-toast {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  background: var(--mint);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  margin-top: 14px;
}

/* ==================== VIEW 4: SPY DASHBOARD ==================== */
.spy-header-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.spy-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

.stat-box {
  background: var(--cream);
  border: var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}

.stat-box.accent { background: var(--blush); }
.stat-val { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.stat-lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; }

.spy-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.spy-feed { display: flex; flex-direction: column; gap: 12px; }

.feed-item {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.feed-time { font-family: var(--font-mono); font-size: 11px; color: #666; white-space: nowrap; }
.nowrap { white-space: nowrap; }

.nudge-quote {
  background: var(--cream);
  border: 1.5px dashed var(--ink);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 16px;
}

/* ==================== MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 23, 22, 0.72);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.open { display: flex; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 10px 10px 0 var(--ink);
  animation: popIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9) rotate(-2deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: var(--border);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.reveal-top-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }

.day-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  background: var(--ink);
  color: var(--cream);
  padding: 4px 10px;
  border-radius: 6px;
}

.type-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}

.type-badge.roast { background: var(--blush); }
.type-badge.edit-paper-wrap {
  background-color: #fffdf7;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 29px,
    rgba(25, 23, 22, 0.1) 29px,
    rgba(25, 23, 22, 0.1) 30px
  );
  border: var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.edit-door-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 30px;
  color: var(--ink);
  resize: none;
  outline: none;
}

.edit-modal-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
}

.toast { background: var(--mint); }
.type-badge.reveal { background: var(--gold); }

.reveal-body {
  background-color: #fffdf7;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 29px,
    rgba(25, 23, 22, 0.1) 29px,
    rgba(25, 23, 22, 0.1) 30px
  );
  border: var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  margin-bottom: 18px;
}

.reveal-quote { font-family: var(--font-display); font-size: 22px; line-height: 1.35; margin: 0; }

.pinned-clapback {
  margin-top: 14px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--gold);
  border: 1.5px solid var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
}

.clapback-section { margin-bottom: 18px; }
.clapback-label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; margin-bottom: 8px; }
.clapback-stickers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.sticker-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
}

.sticker-btn:hover { background: var(--gold); }
.clapback-input-row { display: flex; gap: 8px; }

.clapback-input-row input {
  flex: 1;
  padding: 9px 12px;
  border: var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
}

.reveal-footer { display: flex; flex-direction: column; gap: 10px; }

.edit-paper-wrap {
  background-color: #fffdf7;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 29px,
    rgba(25, 23, 22, 0.1) 29px,
    rgba(25, 23, 22, 0.1) 30px
  );
  border: var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.edit-door-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 30px;
  color: var(--ink);
  resize: none;
  outline: none;
}

.edit-modal-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  max-width: 90vw;
  text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .app-split,
  .how-steps-grid,
  .feat-grid,
  .geo-grid,
  .share-layout,
  .spy-grid,
  .spy-header-card {
    grid-template-columns: 1fr;
  }

  .hero-preview-grid { grid-template-columns: repeat(4, 1fr); }
  .advent-grid { grid-template-columns: repeat(3, 1fr); }
  .topbar { flex-wrap: wrap; }
}

/* ==================== EDITORIAL HOMEPAGE REDESIGN ==================== */
.editorial-strip {
  margin-top: 26px;
  padding: 12px 18px;
  background: var(--cream-dark);
  border: var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.strip-dot {
  color: var(--red);
}

.sec-head-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.sec-head-split h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0;
}

.sec-aside {
  margin: 0;
  font-size: 14.5px;
  color: #4a453f;
  line-height: 1.55;
}

/* How It Works — 2x2 Editorial Showcase */
.how-editorial-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.how-card-ed {
  background: var(--white);
  border: var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: center;
}

.mini-ui-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  justify-content: space-between;
}

.mini-ui-card.gold-tint { background: #fdf0c4; }
.mini-ui-card.pine-tint { background: var(--pine); color: var(--cream); }

.mini-ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.mini-ui-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--ink);
}

.mini-ui-pill.dark { background: var(--ink); color: var(--cream); }
.mini-ui-pill.gold { background: var(--gold); color: var(--ink); }
.mini-ui-pill.red { background: var(--red); color: var(--white); }

.mini-ui-mono {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  opacity: 0.75;
}

.mini-ui-mono.light { color: var(--gold); opacity: 1; }

.mini-ui-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.mini-ui-title.light { color: var(--cream); }

.mini-ui-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 5px 7px;
  word-break: break-all;
}

.mini-ui-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mini-ui-tags span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 2px 6px;
}

.mini-ui-tags.dark span {
  background: rgba(255, 255, 255, 0.14);
  color: var(--cream);
  border-color: rgba(251, 246, 236, 0.35);
}

.step-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--gold);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  padding: 2px 7px;
  margin-bottom: 8px;
  transform: rotate(-3deg);
}

.how-card-copy h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.how-card-copy p {
  font-size: 13.5px;
  color: #4a453f;
  margin: 0;
  line-height: 1.55;
}

/* Why People Love It — Asymmetric Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--white);
  border: var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.bento-wide {
  grid-column: span 2;
}

.bento-full {
  grid-column: 1 / -1;
}

.bento-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
}

.bento-kicker.light {
  color: var(--gold);
}

.bento-card h3 {
  font-size: 22px;
  margin: 0;
}

.bento-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #4a453f;
}

.bento-pine {
  background: var(--pine);
  color: var(--cream);
}

.bento-pine p {
  color: #e4f0e9;
}

.bento-gold {
  background: #fdf0c4;
}

.bento-cream-accent {
  background: var(--cream-dark);
}

/* Complete GEO Editorial Guide */
.geo-editorial {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
  align-items: start;
}

.geo-facts-card {
  position: sticky;
  top: 78px;
  background: var(--cream-dark);
}

.spec-list {
  margin: 14px 0 0;
  padding: 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(25, 23, 22, 0.25);
  font-size: 12.5px;
}

.spec-row dt {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #55504a;
}

.spec-row dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.geo-prose-card {
  padding: 28px 32px;
}

.geo-prose-card h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 20px;
}

.guide-block {
  padding: 18px 0;
  border-top: 1.5px dashed rgba(25, 23, 22, 0.2);
}

.guide-block h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.guide-block p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: #3a3632;
}

.guide-steps,
.guide-tips {
  margin: 8px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #3a3632;
}

.privacy-callout {
  margin-top: 12px;
  padding: 18px 20px;
  background: #eaf5ef;
  border: var(--border);
  border-radius: 12px;
}

/* 2-Column Expanded FAQ */
.faq-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 960px) {
  .sec-head-split,
  .how-editorial-grid,
  .how-card-ed,
  .bento-grid,
  .geo-editorial,
  .faq-two-col {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .geo-facts-card {
    position: static;
  }
}

/* ==================== MOBILE-FIRST ERGONOMICS (<= 720px) ==================== */
@media (max-width: 720px) {
  .topbar {
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .top-links,
  .brand-stamp {
    display: none;
  }

  .brand-name {
    font-size: 17px;
    white-space: nowrap;
  }

  .topbar-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .pill-btn {
    font-size: 11px;
    padding: 6px 10px;
    min-height: 34px;
    white-space: nowrap;
  }

  .app-shell {
    padding: 12px 12px 52px;
  }

  .reply-banner {
    padding: 12px 14px;
    gap: 10px;
  }

  .reply-banner-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .app-hero-stage {
    padding: 22px 14px 16px;
    border-radius: 16px;
  }

  .app-hero-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .app-hero-header h1 {
    font-size: 24px;
  }

  .hero-tagline {
    font-size: 13px;
  }

  .fill-meter-box {
    align-items: flex-start;
    width: 100%;
  }

  .app-split {
    gap: 14px;
    display: flex;
    flex-direction: column-reverse;
  }

  .live-board-wrap {
    padding: 10px;
  }

  .board-label-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .hero-preview-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }

  .mini-door {
    min-height: 66px;
    padding: 6px 5px;
    border-radius: 8px;
  }

  .mini-door-num {
    font-size: 13px;
    padding: 1px 4px;
  }

  .mini-door-tag {
    font-size: 8px;
    padding: 1px 4px;
  }

  .mini-door-from {
    font-size: 8.5px;
    padding: 1px 5px;
  }

  .panel {
    padding: 16px 14px;
    min-width: 0;
  }

  .builder-panel .two-col {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  /* Prevent iOS Safari auto-zoom on focus + ensure 44px touch targets */
  .field-group input,
  .field-group select,
  .media-url-input,
  .clapback-input-row input,
  .edit-door-textarea {
    font-size: 16px;
  }

  .btn-primary,
  .btn-dark,
  .btn-outline,
  .seg-btn,
  .sticker-btn,
  .suspect-btn {
    min-height: 44px;
  }

  .editorial-strip {
    justify-content: flex-start;
    gap: 6px 10px;
    padding: 10px 14px;
    font-size: 10px;
  }

  .how-card-ed {
    padding: 16px;
    gap: 14px;
  }

  .bento-card {
    padding: 18px 16px;
  }

  .geo-prose-card {
    padding: 20px 16px;
  }

  .site-footer {
    padding: 18px 14px 32px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Native Bottom-Sheet Modals on Mobile */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    max-width: 100%;
    max-height: 90dvh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);
    animation: sheetUp 0.22s ease-out;
  }

  @keyframes sheetUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  .reveal-quote {
    font-size: 19px;
  }

  .story-card,
  .group-card {
    width: 100% !important;
    max-width: 310px;
  }

  .reveal-body {
    padding: 14px 16px;
    margin-bottom: 12px;
  }

  .polaroid-frame img {
    max-height: 110px;
  }

  .toast {
    bottom: 78px;
  }
}

@media (max-width: 480px) {
  .hero-preview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* ==================== HOW IT WORKS — REALISTIC PHONE MOCKUPS ==================== */
.how-phones-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.how-phone-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-frame {
  background: #191716;
  border: 2.5px solid #191716;
  border-radius: 26px;
  padding: 10px 9px 12px;
  box-shadow: 6px 6px 0 rgba(25, 23, 22, 0.9);
  position: relative;
}

.phone-island {
  width: 58px;
  height: 10px;
  background: #191716;
  border-radius: 999px;
  margin: 0 auto 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.phone-screen {
  background: var(--cream);
  border-radius: 17px;
  padding: 10px 9px;
  min-height: 256px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}

.phone-screen.pine-bg { background: var(--pine); }
.phone-screen.gold-bg { background: #fdf0c4; }

.ps-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 2px;
}

.phone-screen.pine-bg .ps-bar {
  color: var(--cream);
}

.ps-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ps-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: #666;
}

.ps-input,
.ps-link,
.ps-code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 4px 7px;
}

.ps-code {
  background: #fdf0c4;
}

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

.ps-pills.two {
  grid-template-columns: 1fr 1fr;
}

.ps-pills span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 4px 2px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background: var(--cream);
}

.ps-pills span.on {
  background: var(--pine);
  color: var(--cream);
}

.ps-btn {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  padding: 6px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
}

.ps-btn.red { background: var(--red); color: var(--white); }
.ps-btn.dark { background: var(--pine); color: var(--cream); }

.ps-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.ps-two span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
  padding: 4px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--cream);
}

.ps-two span.win {
  background: var(--mint);
}

.ps-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.ps-mini-grid span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 6px 2px;
  border-radius: 5px;
  border: 1.5px solid var(--ink);
  background: var(--gold);
}

.ps-mini-grid span.empty {
  background: var(--cream-dark);
  border-style: dashed;
  opacity: 0.7;
}

.ps-note {
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.35;
  background: #fffdf7;
  border: 1px solid rgba(25, 23, 22, 0.2);
  border-radius: 6px;
  padding: 6px;
}

.ps-attach,
.ps-check {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  background: var(--cream);
  border: 1px dashed var(--ink);
  border-radius: 5px;
  padding: 4px 6px;
}

.ps-pill-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.ps-pill-row span {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--blush);
}

.ps-pill-row span.dark {
  background: var(--ink);
  color: var(--gold);
}

.ps-polaroid {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
  background: var(--pine);
  color: var(--cream);
  padding: 8px 6px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  transform: rotate(-1deg);
}

.how-step-meta h3 {
  font-size: 19px;
  margin: 0 0 5px;
}

.how-step-meta p {
  font-size: 13.5px;
  color: #4a453f;
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .how-phones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .how-phones-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .phone-frame {
    max-width: 270px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ==================== REALISTIC IPHONE 15 PRO MOCKUPS ==================== */
.iphone15 {
  position: relative;
  border-radius: 38px;
  padding: 5px;
  background: linear-gradient(145deg, #56534e 0%, #2b2927 38%, #1d1c1b 65%, #494642 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 0 3px #141312,
    0 18px 34px rgba(25, 23, 22, 0.22),
    0 4px 10px rgba(25, 23, 22, 0.14);
}

/* Side titanium buttons */
.iphone-btn-vol-up,
.iphone-btn-vol-dn,
.iphone-btn-pwr {
  position: absolute;
  width: 3px;
  background: linear-gradient(180deg, #64605a, #2d2b29);
  border-radius: 2px;
}

.iphone-btn-vol-up { left: -3px; top: 82px; height: 28px; }
.iphone-btn-vol-dn { left: -3px; top: 118px; height: 28px; }
.iphone-btn-pwr { right: -3px; top: 96px; height: 42px; }

.iphone-screen {
  background: var(--cream);
  border: 3px solid #09090a;
  border-radius: 33px;
  height: 398px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.iphone-screen.dimmed-bg {
  background: linear-gradient(180deg, #0d2b21 0%, #11382b 45%, #163d30 100%);
}

/* iOS Status Bar + Dynamic Island */
.ios-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px 4px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

.ios-statusbar.light {
  color: var(--cream);
}

.dynamic-island {
  width: 66px;
  height: 17px;
  background: #080809;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
}

.di-lens {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b4c7e 0%, #0d1626 70%);
  border: 1px solid #1e1e22;
}

.ios-icons {
  font-size: 8.5px;
  letter-spacing: -0.02em;
}

.ios-app-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 12px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 10px;
  background: var(--cream);
}

.ios-app-nav span {
  font-family: var(--font-mono);
  font-size: 8px;
  background: var(--pine);
  color: var(--cream);
  padding: 2px 6px;
  border-radius: 999px;
}

.ios-body {
  padding: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ios-pine-hero {
  background: var(--pine);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 9px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--cream);
}

.ios-field-lbl {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  opacity: 0.85;
}

.ios-field-box {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
}

.ios-field-box.mono {
  font-family: var(--font-mono);
  font-size: 9.5px;
}

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

.ios-pills.two {
  grid-template-columns: 1fr 1fr;
}

.ios-pills span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 4px 2px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

.ios-pills span.on {
  background: var(--gold);
}

.ios-cta {
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  padding: 7px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  box-shadow: 2px 2px 0 var(--ink);
}

.ios-cta.red { background: var(--red); color: var(--white); }
.ios-cta.dark { background: var(--pine); color: var(--cream); }

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

.ios-door-grid span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
  padding: 7px 2px;
  border-radius: 5px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.ios-door-grid span.w0 { background: #f3c14b; }
.ios-door-grid span.w1 { background: #2f5aa8; color: var(--white); }
.ios-door-grid span.w2 { background: #216e4b; color: var(--white); }
.ios-door-grid span.e {
  background: rgba(0, 0, 0, 0.25);
  border-style: dashed;
  border-color: rgba(251, 246, 236, 0.4);
  color: rgba(251, 246, 236, 0.75);
}

/* Native iOS Bottom Sheet inside Phones 02-04 */
.ios-sheet {
  margin-top: auto;
  background: var(--cream);
  border-top: 2px solid var(--ink);
  border-radius: 18px 18px 0 0;
  padding: 12px 11px 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ios-sheet-kicker {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}

.ios-sheet-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.ios-code-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: #fdf0c4;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 5px 8px;
}

.ios-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.ios-two span {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 5px 4px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}

.ios-badge-row {
  display: flex;
  gap: 5px;
}

.ios-badge-row span {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
}

.ios-badge-row span.dark { background: var(--ink); color: var(--cream); }
.ios-badge-row span.mint { background: var(--mint); }
.ios-badge-row span.blush { background: var(--blush); }

.ios-lined-note {
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.38;
  background: #fffdf7;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 15px,
    rgba(25, 23, 22, 0.08) 15px,
    rgba(25, 23, 22, 0.08) 16px
  );
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 8px;
}

.ios-attach {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  background: var(--white);
  border: 1.5px dashed var(--ink);
  border-radius: 6px;
  padding: 5px 7px;
}

.ios-check-line {
  font-size: 9px;
  font-weight: 700;
  color: #3a3632;
}

.ios-polaroid {
  background: var(--pine);
  color: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  padding: 12px 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
  transform: rotate(-1deg);
}

.ios-busted {
  background: var(--mint);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
}

.ios-home-bar {
  width: 78px;
  height: 4px;
  background: rgba(25, 23, 22, 0.85);
  border-radius: 999px;
  margin: 5px auto 6px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .iphone15 {
    max-width: 245px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Real 390x844 App Screenshots inside iPhone 15 Pro Frame */
.iphone-screen.shot-screen {
  height: auto;
  aspect-ratio: 390 / 844;
  background: var(--cream);
  display: block;
}

.real-phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  padding-top: 28px;
  background: inherit;
}

.ios-statusbar.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(251, 246, 236, 0.96) 72%, rgba(251, 246, 236, 0));
  padding-bottom: 8px;
}

.ios-statusbar.overlay.light {
  background: linear-gradient(to bottom, rgba(16, 18, 17, 0.85) 72%, rgba(16, 18, 17, 0));
}

.ios-home-bar.overlay {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
}

/* ==================== GAME STAGE REFRESH ==================== */
.app-shell {
  max-width: 1300px;
  padding-top: 32px;
}

.app-hero-stage {
  padding: 64px 44px 44px;
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
  /* !important so the theme-* `background` shorthands only swap the base color */
  background-image:
    radial-gradient(ellipse 60% 50% at 12% 0%, rgba(233, 168, 37, 0.18), transparent 70%),
    radial-gradient(ellipse 55% 60% at 100% 100%, rgba(217, 56, 41, 0.22), transparent 70%),
    radial-gradient(rgba(251, 246, 236, 0.09) 1px, transparent 1.4px) !important;
  background-size: auto, auto, 22px 22px !important;
}

.garland {
  height: 30px;
  padding: 0 4%;
}

.bulb {
  width: 12px;
  height: 17px;
  box-shadow: 0 4px 14px rgba(25, 23, 22, 0.32);
}

/* Header */
.app-hero-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(251, 246, 236, 0.14);
}

.app-hero-header h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}

.app-hero-header h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}

.hero-tagline {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(251, 246, 236, 0.72);
}

.fill-meter-box {
  align-items: stretch;
  gap: 14px;
  min-width: 300px;
  padding: 20px 22px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(251, 246, 236, 0.14);
  border-radius: 18px;
}

.fill-meter-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(251, 246, 236, 0.7);
}

.meter-count {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: rgba(251, 246, 236, 0.55);
  letter-spacing: -0.02em;
}

.meter-count strong {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}

.fill-bulbs {
  gap: 6px;
  max-width: 300px;
}

.meter-bulb {
  width: 8px;
  height: 8px;
  border: 1.5px solid rgba(251, 246, 236, 0.78);
  background: rgba(251, 246, 236, 0.42);
}

.meter-bulb.lit {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(233, 168, 37, 0.8);
}

/* Board + sidebar layout */
.app-split {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.live-board-wrap {
  padding: 24px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(251, 246, 236, 0.1);
  border-radius: 22px;
}

.board-label-bar {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 24px;
}

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

.board-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.board-title strong {
  font-weight: 800;
  color: var(--gold);
}

.board-sub-hint {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: rgba(251, 246, 236, 0.6);
}

.sample-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  margin: 0;
}

/* Doors */
.hero-preview-grid {
  gap: 12px;
  flex: 0 0 auto;
}

.mini-door {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease;
}

.mini-door:hover {
  transform: translate(-2px, -4px) rotate(-1.5deg);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.4);
}

.mini-door-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.mini-door-num {
  flex-shrink: 0;
  font-size: 17px;
  padding: 3px 6px;
}

.mini-door-tag {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 8.5px;
  padding: 2px 5px;
}

.mini-door-from {
  font-size: 10px;
  padding: 2px 8px;
}

/* Empty + locked doors: quiet, centered, inviting */
.mini-door.empty-door,
.mini-door.owner-locked {
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(251, 246, 236, 0.04);
  border: 1.5px dashed rgba(251, 246, 236, 0.26);
  color: rgba(251, 246, 236, 0.75);
  box-shadow: none;
}

.mini-door.owner-locked {
  border-style: solid;
  border-color: rgba(251, 246, 236, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(251, 246, 236, 0.45);
}

.mini-door.empty-door .mini-door-num,
.mini-door.owner-locked .mini-door-num {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.7;
}

.mini-door.empty-door .mini-door-tag,
.mini-door.owner-locked .mini-door-tag {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.empty-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 246, 236, 0.35);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.lock-glyph {
  position: relative;
  width: 14px;
  height: 11px;
  margin-top: 8px;
  border-radius: 3px;
  background: currentColor;
}

.lock-glyph::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 8px;
  height: 7px;
  transform: translateX(-50%);
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
}

.mini-door.empty-door:hover {
  background: rgba(233, 168, 37, 0.12);
  border-color: var(--gold);
  color: var(--cream);
  transform: translateY(-3px);
  box-shadow: none;
}

.mini-door.empty-door:hover .empty-plus {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: rotate(90deg);
}

.mini-door.owner-locked:hover {
  transform: none;
  box-shadow: none;
}

.mini-door.owner-today {
  box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(233, 168, 37, 0.55), 4px 4px 0 rgba(0, 0, 0, 0.4);
}

/* Sidebar panels */
.builder-panel {
  padding: 30px 28px;
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
  gap: 24px;
}

.builder-panel h2 {
  font-size: 26px !important;
  line-height: 1.15;
}

.builder-panel .muted {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.panel-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.panel-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

.builder-panel .field-group {
  margin-bottom: 18px;
}

.builder-panel .field-group label {
  font-size: 12px;
  font-weight: 700;
  color: #4a453f;
  margin-bottom: 8px;
}

.builder-panel .field-group input,
.builder-panel .field-group select {
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  transition: box-shadow 0.15s ease;
}

.builder-panel .field-group input:focus,
.builder-panel .field-group select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(233, 168, 37, 0.35);
}

.builder-panel .two-col {
  grid-template-columns: 1fr;
  gap: 0;
}

.builder-panel .seg-btn {
  padding: 9px 6px;
  border-radius: 10px;
}

.builder-panel .toggle-check {
  font-size: 13px;
  line-height: 1.45;
  margin: 4px 0 18px;
}

.invite-code-box,
.passcode-notice {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.builder-actions {
  gap: 12px;
  margin-top: 0;
}

.builder-actions .btn-primary,
.builder-actions .btn-dark,
.builder-actions .btn-outline {
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 12px;
}

.owner-stat-pair {
  gap: 12px;
  margin: 4px 0 18px;
}

.owner-stat {
  padding: 16px 12px;
  border-radius: 14px;
}

.owner-stat-val {
  font-size: 28px;
}

#sidebarOwnerMode .btn-outline,
#sidebarOwnerMode .btn-primary {
  margin-top: 12px !important;
}

.share-kit-row {
  gap: 8px;
}

.editorial-strip {
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 1100px) {
  .app-hero-stage {
    padding: 56px 32px 36px;
  }

  .app-split {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
  }

  .live-board-wrap {
    padding: 18px;
  }

  .hero-preview-grid {
    gap: 10px;
  }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .hero-preview-grid:not(.cols-4) .mini-door-top .mini-door-tag {
    display: none;
  }
}

@media (max-width: 960px) {
  .app-hero-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fill-meter-box {
    min-width: 0;
  }

  .fill-bulbs {
    max-width: none;
  }

  .app-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding-top: 16px;
  }

  .app-hero-stage {
    padding: 44px 16px 20px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .app-hero-header {
    padding-bottom: 22px;
    margin-bottom: 22px;
  }

  .app-hero-header h1 {
    font-size: 34px;
  }

  .hero-tagline {
    font-size: 14.5px;
  }

  .fill-meter-box {
    padding: 16px;
  }

  .meter-count strong {
    font-size: 32px;
  }

  .app-split {
    gap: 18px;
  }

  .live-board-wrap {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .board-label-bar {
    margin-bottom: 16px;
  }

  .board-title {
    font-size: 18px;
  }

  .hero-preview-grid {
    gap: 10px;
  }

  .mini-door {
    padding: 7px;
    border-radius: 11px;
  }

  .mini-door-num {
    font-size: 14px;
  }

  .mini-door.empty-door .mini-door-num,
  .mini-door.owner-locked .mini-door-num {
    top: 7px;
    left: 9px;
    font-size: 13px;
  }

  .empty-plus {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  .builder-panel {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

/* ==================== EDITORIAL SECTIONS REFRESH ==================== */
.app-shell {
  counter-reset: sec;
  padding-bottom: 120px;
}

.editorial-strip {
  margin-top: 56px;
  padding: 18px 24px;
  gap: 12px 28px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--ink);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

.seo-section {
  counter-increment: sec;
  margin-top: 140px;
}

/* Section heads: numbered, oversized, airy */
.sec-head-split {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 64px;
  margin-bottom: 64px;
  padding-bottom: 0;
  border-bottom: none;
}

.sec-head-split .eyebrow,
.geo-prose-card > .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.sec-head-split .eyebrow::before,
.geo-prose-card > .eyebrow::before {
  content: counter(sec, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  letter-spacing: 0;
}

.sec-head-split h2,
.geo-prose-card h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 15ch;
}

.sec-aside {
  max-width: 40ch;
  padding-left: 24px;
  border-left: 2px solid var(--red);
  font-size: 17px;
  line-height: 1.7;
  color: #55504a;
}

/* How it works */
.how-phones-grid {
  gap: 36px;
}

.how-phone-step {
  gap: 28px;
}

.how-step-meta {
  padding-top: 20px;
  border-top: 1.5px solid var(--ink);
}

.step-stamp {
  margin-bottom: 14px;
  padding: 0;
  background: none;
  border: none;
  transform: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
  color: var(--red);
}

.step-stamp::before {
  content: "Step ";
}

.how-step-meta h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.how-step-meta p {
  font-size: 15px;
  line-height: 1.7;
  color: #55504a;
}

/* Why people love it */
.bento-grid {
  gap: 24px;
}

.bento-card {
  justify-content: flex-start;
  gap: 14px;
  padding: 40px 36px;
  border-radius: 24px;
  box-shadow: 5px 5px 0 var(--ink);
}

.bento-kicker {
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.bento-card h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bento-card p {
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.72;
}

.bento-wide h3,
.bento-full h3 {
  font-size: clamp(28px, 2.8vw, 38px);
}

.bento-pine {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  justify-content: flex-end;
}

.bento-pine::after {
  content: "?";
  position: absolute;
  top: -40px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 260px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  color: rgba(233, 168, 37, 0.14);
  pointer-events: none;
}

.bento-full {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 56px;
  align-items: end;
}

.bento-full .bento-kicker {
  grid-column: 1 / -1;
}

/* Complete guide */
.geo-editorial {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 80px;
}

.geo-facts-card {
  top: 96px;
  padding: 32px 28px;
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--ink);
}

.geo-facts-card h3 {
  font-size: 24px;
}

.spec-row {
  padding: 13px 0;
  font-size: 13.5px;
}

.geo-prose-card.panel {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.geo-prose-card h2 {
  max-width: 18ch;
  margin-bottom: 56px;
}

.guide-block {
  max-width: 760px;
  padding: 48px 0;
  border-top: 1px solid rgba(25, 23, 22, 0.16);
}

.guide-block h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.guide-block p {
  font-size: 17px;
  line-height: 1.8;
  color: #3a3632;
}

.guide-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin-top: 8px;
  gap: 14px;
}

.guide-steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 26px 22px 84px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  font-size: 15.5px;
  line-height: 1.7;
}

.guide-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
}

.guide-steps strong,
.guide-tips strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

.guide-tips {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-tips li {
  padding: 24px;
  background: var(--cream-dark);
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.7;
}

.guide-tips li::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(233, 168, 37, 0.25);
}

.privacy-callout {
  margin-top: 16px;
  padding: 40px;
  background: var(--pine);
  border: none;
  border-radius: 24px;
  color: var(--cream);
}

.privacy-callout h3 {
  color: var(--gold);
}

.privacy-callout p {
  color: rgba(251, 246, 236, 0.82);
}

.privacy-callout code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(251, 246, 236, 0.12);
  color: var(--cream);
}

/* FAQ: sticky head + divided accordion */
#faq {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 80px;
  align-items: start;
}

#faq .sec-head-split {
  position: sticky;
  top: 96px;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 0;
}

.faq-two-col {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1.5px solid var(--ink);
}

.faq-list {
  gap: 0;
}

.faq-list details {
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(25, 23, 22, 0.18);
  border-radius: 0;
}

.faq-list summary {
  position: relative;
  list-style: none;
  padding: 28px 56px 28px 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-list summary:hover {
  color: var(--red);
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--ink);
  color: var(--cream);
}

.faq-list details p {
  max-width: 62ch;
  margin: -6px 0 0;
  padding: 0 56px 30px 0;
  font-size: 16px;
  line-height: 1.75;
  color: #55504a;
}

.site-footer {
  max-width: 1252px;
  padding: 40px 0 56px;
  border-top: 1.5px solid var(--ink);
  font-size: 12px;
}

@media (max-width: 960px) {
  .seo-section {
    margin-top: 96px;
  }

  .sec-head-split {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 44px;
  }

  .bento-full {
    grid-template-columns: 1fr;
  }

  .geo-editorial,
  #faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  #faq .sec-head-split {
    position: static;
  }

  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 720px) {
  .editorial-strip {
    border-radius: 18px;
    gap: 8px 14px;
    font-size: 10px;
  }

  .seo-section {
    margin-top: 80px;
  }

  .sec-aside {
    font-size: 15.5px;
    padding-left: 16px;
  }

  .how-phones-grid {
    gap: 48px;
  }

  .bento-grid {
    gap: 16px;
  }

  .bento-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .bento-pine {
    min-height: 0;
  }

  .bento-pine::after {
    font-size: 180px;
  }

  .geo-prose-card.panel {
    padding: 0;
  }

  .geo-prose-card h2 {
    margin-bottom: 32px;
  }

  .guide-block {
    padding: 36px 0;
  }

  .guide-block p {
    font-size: 16px;
  }

  .guide-steps li {
    padding: 20px 18px 20px 64px;
  }

  .guide-steps li::before {
    left: 18px;
    font-size: 24px;
  }

  .guide-tips {
    grid-template-columns: 1fr;
  }

  .privacy-callout {
    padding: 28px 22px;
  }

  .faq-list summary {
    font-size: 18px;
    padding: 22px 48px 22px 0;
  }

  .faq-list details p {
    padding-right: 0;
    font-size: 15px;
  }
}

/* ==================== ABOVE-THE-FOLD FIT ==================== */
@media (min-width: 961px) {
  .app-shell {
    padding-top: 16px;
  }

  .app-hero-stage {
    padding: 44px 32px 24px;
  }

  .app-hero-header {
    align-items: center;
    gap: 32px;
    padding-bottom: 18px;
    margin-bottom: 20px;
  }

  .app-hero-header h1 {
    font-size: clamp(30px, 3vw, 44px);
    margin-bottom: 6px;
    white-space: nowrap;
  }

  .hero-tagline {
    max-width: none;
    font-size: 15px;
    line-height: 1.5;
  }

  .fill-meter-box {
    min-width: 280px;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
  }

  .meter-count strong {
    font-size: 32px;
  }

  .meter-count {
    font-size: 18px;
  }

  .fill-bulbs {
    gap: 5px;
  }

  .meter-bulb {
    width: 7px;
    height: 7px;
  }

  /* Board + sidebar share a height derived from the viewport */
  .app-split {
    height: clamp(480px, calc(100svh - 268px), 640px);
  }

  .live-board-wrap {
    min-height: 0;
    padding: 20px;
  }

  .board-label-bar {
    gap: 2px;
    margin-bottom: 16px;
  }

  .board-title {
    font-size: 20px;
  }

  .board-sub-hint {
    font-size: 13px;
  }

  .hero-preview-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-auto-rows: minmax(0, 1fr);
    gap: 12px;
  }

  .hero-preview-grid .mini-door {
    aspect-ratio: auto;
    height: 100%;
  }

  /* Compact sidebar */
  .builder-panel {
    min-height: 0;
    overflow-y: auto;
    gap: 14px;
    padding: 22px 24px;
  }

  .panel-eyebrow {
    margin-bottom: 14px;
  }

  .builder-panel h2 {
    font-size: 23px !important;
  }

  .builder-panel .muted {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .builder-panel .field-group {
    margin-bottom: 12px;
  }

  .builder-panel .field-group label {
    margin-bottom: 6px;
  }

  .builder-panel .field-group input,
  .builder-panel .field-group select {
    padding: 9px 12px;
  }

  .builder-panel .two-col {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .builder-panel .seg-btn {
    padding: 8px 4px;
    font-size: 12px;
    gap: 4px;
  }

  .builder-panel .toggle-check {
    margin: 2px 0 12px;
  }

  .invite-code-box,
  .passcode-notice {
    padding: 9px 12px;
    margin-bottom: 10px;
  }

  .builder-actions {
    gap: 10px;
  }

  .builder-actions .btn-primary,
  .builder-actions .btn-dark,
  .builder-actions .btn-outline {
    padding: 12px 14px;
  }

  .owner-stat-pair {
    margin: 0 0 14px;
  }

  .owner-stat {
    padding: 12px;
  }

  .owner-stat-val {
    font-size: 24px;
  }

  #sidebarOwnerMode .btn-outline,
  #sidebarOwnerMode .btn-primary {
    margin-top: 10px !important;
  }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .app-hero-stage {
    padding-left: 24px;
    padding-right: 24px;
  }

  .app-hero-header h1 {
    font-size: 30px;
  }

  .fill-meter-box {
    min-width: 240px;
  }

  .app-split {
    height: clamp(440px, calc(100svh - 304px), 640px);
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  .app-shell {
    padding-top: 12px;
  }

  .app-hero-stage {
    padding-top: 38px;
    padding-bottom: 18px;
  }

  .app-hero-header {
    padding-bottom: 14px;
    margin-bottom: 14px;
  }

  .app-hero-header h1 {
    font-size: 32px;
  }

  .hero-tagline {
    font-size: 14px;
  }

  .fill-meter-box {
    padding: 10px 16px;
  }

  .meter-count strong {
    font-size: 26px;
  }

  .app-split {
    height: clamp(440px, calc(100svh - 228px), 640px);
  }

  .live-board-wrap {
    padding: 16px;
  }

  .board-label-bar {
    margin-bottom: 12px;
  }

  .hero-preview-grid {
    gap: 10px;
  }

  .builder-panel {
    gap: 10px;
    padding: 18px 20px;
  }

  .panel-eyebrow {
    margin-bottom: 10px;
  }

  .builder-panel .field-group {
    margin-bottom: 9px;
  }

  .builder-panel .field-group label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .builder-panel .field-group input,
  .builder-panel .field-group select {
    padding: 7px 12px;
    font-size: 13.5px;
  }

  .builder-panel .seg-btn {
    padding: 6px 4px;
  }

  .builder-panel .toggle-check {
    font-size: 12px;
    margin: 0 0 9px;
  }

  .invite-code-box,
  .passcode-notice {
    padding: 7px 12px;
    margin-bottom: 8px;
  }

  .builder-actions {
    gap: 8px;
  }

  .builder-actions .btn-primary,
  .builder-actions .btn-dark,
  .builder-actions .btn-outline {
    padding: 10px 14px;
    font-size: 14px;
  }
}

@media (min-width: 961px) and (max-width: 1100px) and (max-height: 820px) {
  .app-split {
    height: clamp(420px, calc(100svh - 266px), 640px);
  }
}

/* ==================== MOBILE: BOARD FIRST + ACTION BAR + BOTTOM SHEET ==================== */
.mobile-action-bar,
.sheet-backdrop,
.sheet-close {
  display: none;
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  /* Compact hero header */
  .app-hero-stage {
    padding: 40px 14px 14px;
  }

  .app-hero-header {
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .app-hero-header h1 {
    font-size: 30px;
    margin-bottom: 6px;
  }

  .hero-tagline {
    display: none;
  }

  .sample-pill {
    font-size: 9px;
    padding: 3px 7px;
  }

  .fill-meter-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .fill-meter-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 11.5px;
  }

  .meter-count strong {
    font-size: 26px;
  }

  .meter-count {
    font-size: 16px;
  }

  .fill-bulbs {
    justify-content: flex-end;
    max-width: 150px;
    gap: 4px;
  }

  .meter-bulb {
    width: 6px;
    height: 6px;
  }

  /* Board first, full width */
  .app-split {
    flex-direction: column;
    gap: 0;
  }

  .live-board-wrap {
    padding: 14px 10px 12px;
    border-radius: 16px;
  }

  .board-label-bar {
    padding: 0 4px;
    margin-bottom: 12px;
  }

  .board-title {
    font-size: 17px;
  }

  .board-sub-hint {
    font-size: 12.5px;
  }

  .hero-preview-grid,
  .hero-preview-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .mini-door {
    padding: 6px;
    border-radius: 10px;
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.4);
  }

  .mini-door::before {
    width: 6px;
  }

  .mini-door-top {
    justify-content: flex-start;
  }

  .mini-door-top .mini-door-tag,
  .mini-door.empty-door .mini-door-tag,
  .mini-door.owner-locked .mini-door-tag {
    display: none;
  }

  .mini-door-num {
    font-size: 13px;
    padding: 2px 4px;
  }

  .mini-door-from {
    max-width: 100%;
    font-size: 8.5px;
    padding: 1px 5px;
  }

  .from-prefix {
    display: none;
  }

  .mini-door.empty-door .mini-door-num,
  .mini-door.owner-locked .mini-door-num {
    top: 6px;
    left: 8px;
    font-size: 12px;
  }

  .empty-plus {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .mini-door:hover,
  .mini-door.empty-door:hover {
    transform: none;
  }

  .mini-door:active {
    transform: scale(0.95);
  }

  /* Sticky thumb-zone action bar */
  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(251, 246, 236, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid var(--ink);
  }

  .mobile-action-bar button {
    min-height: 52px;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-action-bar .btn-outline {
    min-width: 112px;
  }

  .mobile-action-bar {
    transition: transform 0.25s ease;
  }

  body.sheet-open .mobile-action-bar {
    transform: translateY(110%);
  }

  /* Sidebar panels become a bottom sheet */
  .app-split > .builder-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    max-height: 88dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 34px 18px calc(18px + env(safe-area-inset-bottom));
    border: 2px solid var(--ink);
    border-bottom: none;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.28);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.34s;
  }

  body.sheet-open .app-split > .builder-panel {
    transform: none;
    visibility: visible;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }

  .app-split > .builder-panel::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 44px;
    height: 5px;
    margin-left: -22px;
    border-radius: 999px;
    background: rgba(25, 23, 22, 0.22);
  }

  .create-nudge--docked:not(.hidden) {
    margin-top: 46px;
    padding-right: 40px;
  }

  .sheet-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }

  .builder-panel .panel-eyebrow {
    padding-right: 48px;
  }

  .builder-panel .field-group {
    margin-bottom: 14px;
  }

  .builder-panel .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .builder-panel .seg-btn {
    min-height: 46px;
    font-size: 14px;
  }

  .builder-panel .field-group input,
  .builder-panel .field-group select {
    min-height: 48px;
    font-size: 16px;
  }

  .builder-actions .btn-primary,
  .builder-actions .btn-dark,
  .builder-actions .btn-outline {
    min-height: 52px;
  }

  .share-kit-row .kit-btn {
    min-height: 48px;
  }

  .sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: block;
    background: rgba(25, 23, 22, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  body.sheet-open .sheet-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.sheet-open {
    overflow: hidden;
  }

  .toast {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* ==================== LEGAL / CONTACT PAGES ==================== */
.legal-topbar {
  max-width: 1252px;
  margin: 0 auto;
  padding: 14px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.legal-pills .pill-btn {
  text-decoration: none;
}

.legal-shell {
  max-width: 920px;
  padding-top: 24px;
  padding-bottom: 80px;
}

.legal-hero {
  margin-bottom: 28px;
  padding: 32px 36px;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.legal-lede {
  margin: 0;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.65;
  color: #55504a;
}

.legal-article {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-card {
  padding: 26px 28px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-card-wide {
  grid-column: 1 / -1;
}

.legal-card-kicker {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: #3a3632;
}

.legal-card ul,
.legal-card ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-cta-card {
  padding: 32px;
  background: var(--pine);
  color: var(--cream);
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.legal-cta-card h2 {
  color: var(--cream);
  margin-bottom: 8px;
}

.legal-cta-card p {
  color: rgba(251, 246, 236, 0.82);
  margin-bottom: 18px;
}

.legal-email-btn {
  display: inline-block;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}

.legal-email-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.legal-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-steps li {
  padding: 18px 20px 18px 52px;
  position: relative;
  background: var(--cream-dark);
  border: 1.5px solid rgba(25, 23, 22, 0.12);
  border-radius: 14px;
}

.legal-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.legal-steps {
  counter-reset: step;
}

.legal-footer a {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 720px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding: 22px 20px;
  }

  .legal-pills {
    width: 100%;
    margin-left: 0;
  }
}
