:root {
  --plum: #68147B;
  --deep: #35103F;
  --gold: #EDC346;
  --green: #286951;
  --ink: #282330;
  --muted: #686272;
  --line: #E7E1EC;
  --soft: #F3EDF7;
  --gold-soft: #FBF6E4;
  --green-soft: #E7F3EE;
  --sky-soft: #EEF4FF;
  --canvas: #F7F4FB;
  --paper: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(53, 16, 63, 0.04), 0 4px 12px rgba(53, 16, 63, 0.05);
  --shadow-md: 0 2px 4px rgba(53, 16, 63, 0.04), 0 12px 28px rgba(53, 16, 63, 0.07);
  --shadow-lg: 0 4px 8px rgba(53, 16, 63, 0.05), 0 20px 44px rgba(53, 16, 63, 0.09);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --font: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-display: Georgia, "Iowan Old Style", Palatino, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  background: var(--canvas);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(880px 400px at 0% -4%, rgba(104, 20, 123, 0.07), transparent 58%),
    radial-gradient(760px 360px at 100% 0%, rgba(237, 195, 70, 0.14), transparent 52%),
    radial-gradient(640px 320px at 48% 100%, rgba(40, 105, 81, 0.05), transparent 58%),
    var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  padding-bottom: 124px;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* ── Header ─────────────────────────────────────────── */
header {
  background: linear-gradient(128deg, #42144f 0%, var(--deep) 52%, #4a1a5c 100%);
  color: #fff;
  padding: 18px 22px 16px;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%);
  pointer-events: none;
}
header::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 195, 70, 0.32), transparent 68%);
  pointer-events: none;
}

.lockup {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  font-weight: 650;
  font-size: clamp(15px, 2vw, 18px);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.times {
  color: var(--gold);
  font-style: normal;
  font-size: 1.28em;
  line-height: 1;
  opacity: 0.95;
}

/* ── Type scale ─────────────────────────────────────── */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-6);
}
h1, h2, h3, p { margin: 0; }
h1 {
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  color: var(--deep);
  text-align: center;
  letter-spacing: -0.022em;
}
h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--plum), var(--green));
  border-radius: 999px;
  transform-origin: center;
}
h2 {
  font-size: 19px;
  line-height: 1.3;
  color: var(--deep);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 15px;
  line-height: 1.35;
  color: var(--deep);
  font-weight: 700;
}

.editorial {
  margin: 14px auto 0;
  max-width: 36rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.45;
  color: var(--plum);
  letter-spacing: 0;
}
.kicker {
  text-align: center;
  color: var(--plum);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 700;
}

/* ── Grids & cards ──────────────────────────────────── */
.pair, .work, .ladder, .levels {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}
.card.plum { background: linear-gradient(168deg, #fff 38%, var(--soft)); }
.card.gold { background: linear-gradient(168deg, #fff 38%, var(--gold-soft)); }
.card.green { background: linear-gradient(168deg, #fff 38%, var(--green-soft)); }
.card h2 {
  color: var(--plum);
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

/* Soft pastel icon wells — plum / gold / green */
.icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 6px 14px rgba(53, 16, 63, 0.08);
}
.icon svg {
  width: 26px;
  height: 26px;
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.plum {
  background: linear-gradient(145deg, #f7e6fc 0%, #efd0f6 45%, #e4b8f0 100%);
  color: var(--plum);
  border: 1.5px solid #dbade8;
}
.icon.gold {
  background: linear-gradient(145deg, #fff9e0 0%, #fff0b8 45%, #f5e08a 100%);
  color: #8a6a12;
  border: 1.5px solid #edd978;
}
.icon.green {
  background: linear-gradient(145deg, #e8f8f0 0%, #d0f0e2 45%, #b5e0cc 100%);
  color: var(--green);
  border: 1.5px solid #9ad0b8;
}
.icon.sm {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}
.icon.sm svg { width: 20px; height: 20px; }

.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.quiet {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.label {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.amount {
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.06;
  font-weight: 750;
  letter-spacing: -0.028em;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}
.amount.receive { color: var(--plum); }
.plus-line {
  margin-top: 6px;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

/* ── Earn hero ──────────────────────────────────────── */
.earn-hero {
  margin-top: var(--space-4);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(400px 150px at 92% 0%, rgba(237, 195, 70, 0.22), transparent 58%),
    radial-gradient(340px 170px at 8% 100%, rgba(104, 20, 123, 0.08), transparent 52%),
    var(--paper);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.earn-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--plum), var(--gold), var(--green));
  opacity: 0.85;
}
.earn-hero .score-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--soft);
  color: var(--plum);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.earn-hero .label:first-of-type { margin-top: 4px; }
.earn-split {
  display: grid;
  gap: var(--space-2);
  margin-top: 22px;
}
.earn-pill {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid transparent;
}
.earn-pill b {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.earn-pill strong {
  display: block;
  margin-top: 3px;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.earn-pill.base {
  background: var(--soft);
  border-color: #e4d8ee;
}
.earn-pill.share {
  background: var(--green-soft);
  border-color: #c8e4d8;
}
.earn-pill.total {
  background: var(--gold-soft);
  border-color: #f0e2a8;
}

/* ── Fill % chips ───────────────────────────────────── */
.levels.fill-levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: 18px;
}
.level.fill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 10px;
  gap: 4px;
  grid-template-columns: none;
  min-height: 84px;
  border-radius: var(--radius-md);
}
.level.fill strong {
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.level.fill em {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  color: var(--plum);
  letter-spacing: 0.02em;
}
.fill-bar-wrap { margin-top: 20px; }
.fill-bar-wrap .cap { margin-top: 10px; }

/* ── Gamified levels ────────────────────────────────── */
.level {
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 16px;
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.level .lvl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-transform: uppercase;
}
.level strong {
  display: block;
  font-size: 17px;
  color: var(--deep);
  letter-spacing: -0.01em;
}
.level em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.level .xp {
  font-size: 12px;
  font-weight: 800;
  color: var(--plum);
  background: var(--soft);
  padding: 6px 11px;
  border-radius: 999px;
}
.level[aria-pressed="true"] {
  border-color: var(--plum);
  background: linear-gradient(145deg, #fff, var(--soft));
  box-shadow: 0 0 0 3px rgba(104, 20, 123, 0.1), var(--shadow-md);
}
.level[aria-pressed="true"] .xp {
  background: linear-gradient(145deg, #8b2aa3, var(--plum));
  color: #fff;
}
.level.fill[aria-pressed="true"] {
  border-width: 2px;
}

/* ── Fill meter ─────────────────────────────────────── */
.fill-meter {
  margin-top: 10px;
  background: var(--soft);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.fill-meter > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--plum), #9a3fb0, var(--gold));
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.fill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  margin-bottom: 2px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
}
.fill-row b { color: var(--plum); }

.board {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 7px;
  margin-top: 16px;
  max-width: 520px;
}
.seat {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e8e2ef;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7);
}
.seat.on {
  background: radial-gradient(circle at 32% 28%, #c87ad8, var(--plum));
  box-shadow:
    0 0 0 2px rgba(104, 20, 123, 0.16),
    0 3px 8px rgba(104, 20, 123, 0.22);
}
.cap {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ── Split earn ─────────────────────────────────────── */
.split-earn {
  display: grid;
  gap: var(--space-3);
  margin-top: 18px;
}
.split-earn .side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.split-earn .side::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}
.split-earn .side.you::before {
  background: linear-gradient(180deg, var(--plum), var(--gold));
}
.split-earn .side.has::before {
  background: linear-gradient(180deg, #1a6fc4, #68a8e8);
}
.split-earn .side h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--deep);
  letter-spacing: -0.01em;
}
.split-earn .side p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.split-earn .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.split-earn .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--soft);
  color: var(--deep);
  border: 1px solid var(--line);
  letter-spacing: 0.01em;
}
.split-earn .side.has .chip {
  background: #eaf4ff;
  border-color: #c5def5;
  color: #1a5a96;
}
.split-earn .chip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.split-earn .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 8px;
}
.split-earn .side.has .tag { color: #1a6fc4; }

@media (min-width: 700px) {
  .split-earn { grid-template-columns: 1fr 1fr; }
}

/* ── Sections ───────────────────────────────────────── */
.section {
  margin-top: var(--space-6);
  padding-top: 4px;
}
.section > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.section > h2 .badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #8a6a12;
  border: 1px solid #f0e2a8;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.actions button {
  min-height: 50px;
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--deep);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}
.primary {
  background: linear-gradient(145deg, #8b2aa3, var(--plum)) !important;
  color: #fff !important;
  border-color: var(--plum) !important;
  box-shadow: 0 8px 22px rgba(104, 20, 123, 0.26) !important;
}
.panel {
  margin-top: 16px;
  background: var(--soft);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid #e4d8ee;
}
textarea {
  width: 100%;
  min-height: 80px;
  margin-top: 10px;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-sm);
  line-height: 1.5;
  resize: vertical;
}
.terms {
  display: grid;
  gap: var(--space-2);
  margin-top: 16px;
}
.term {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  box-shadow: var(--shadow-sm);
}
.term b {
  display: block;
  color: var(--deep);
  font-size: 15px;
  letter-spacing: -0.01em;
}
.term span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.ladder .card strong.big {
  display: block;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--deep);
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.year-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.year-row div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.year-row b {
  display: block;
  color: var(--deep);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.year-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.year-row .sum {
  background: linear-gradient(145deg, var(--soft), var(--gold-soft));
  border-color: #e8d9a8;
}

/* ── Floor plan ─────────────────────────────────────── */
.floor-wrap {
  margin-top: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.floor-meta, .titleblock {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}
.floor-meta strong, .titleblock strong { color: var(--deep); }
.floor-svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 720px;
  margin: 0 auto;
}
.floor-svg .grid line { stroke: #efeaf3; stroke-width: 0.15; }
.floor-svg .wall { fill: none; stroke: #282330; stroke-width: 0.55; }
.floor-svg .room { fill: #fff; stroke: #282330; stroke-width: 0.35; cursor: pointer; }
.floor-svg .room:hover { fill: #faf6fc; }
.floor-svg .room[aria-pressed="true"] { fill: #F3EDF7; stroke: var(--plum); stroke-width: 0.55; }
.floor-svg .room.shared { fill: #FBF6E4; }
.floor-svg .room.meet { fill: #E7F3EE; }
.floor-svg .room.amenity { fill: #FFF8E8; }
.floor-svg .mark { pointer-events: none; opacity: 0.97; }
.floor-svg .mark-bg { fill: #fff; stroke-width: 0.16; }
.floor-svg .mark.plum .mark-bg { fill: url(#gradPlum); stroke: #c99ad6; }
.floor-svg .mark.gold .mark-bg { fill: url(#gradGold); stroke: #e0c456; }
.floor-svg .mark.green .mark-bg { fill: url(#gradGreen); stroke: #7bb89a; }
.floor-svg .mark.soft .mark-bg { fill: #fff; stroke: #d9cfe2; }
.floor-svg .mark path,
.floor-svg .mark circle:not(.mark-bg),
.floor-svg .mark rect {
  fill: none;
  stroke-width: 0.32;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.floor-svg .mark.plum path,
.floor-svg .mark.plum circle:not(.mark-bg),
.floor-svg .mark.plum rect { stroke: var(--plum); }
.floor-svg .mark.gold path,
.floor-svg .mark.gold circle:not(.mark-bg),
.floor-svg .mark.gold rect { stroke: #8a6a12; }
.floor-svg .mark.green path,
.floor-svg .mark.green circle:not(.mark-bg),
.floor-svg .mark.green rect { stroke: var(--green); }
.floor-svg .mark.soft path,
.floor-svg .mark.soft circle:not(.mark-bg),
.floor-svg .mark.soft rect { stroke: var(--plum); }
.floor-svg .dim {
  fill: #686272;
  font-size: 1.8px;
  font-family: var(--font);
}
.floor-svg .lab {
  fill: #282330;
  font-size: 1.85px;
  font-weight: 700;
  font-family: var(--font);
  pointer-events: none;
}
.floor-svg .sub {
  fill: #686272;
  font-size: 1.45px;
  font-family: var(--font);
  pointer-events: none;
}
.floor-svg .titleb {
  fill: #282330;
  font-size: 2px;
  font-weight: 700;
  font-family: var(--font);
}
.floor-note {
  margin-top: 14px;
  min-height: 1.4em;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  background: var(--soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid #e4d8ee;
}
.floor-note .chip {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 3px 8px rgba(53, 16, 63, 0.07);
}
.floor-note .chip svg { width: 18px; height: 18px; }
.floor-note .chip.plum {
  background: linear-gradient(145deg, #f7e6fc, #e4b8f0);
  color: var(--plum);
  border-color: #dbade8;
}
.floor-note .chip.gold {
  background: linear-gradient(145deg, #fff9e0, #f5e08a);
  color: #8a6a12;
  border-color: #edd978;
}
.floor-note .chip.green {
  background: linear-gradient(145deg, #e8f8f0, #b5e0cc);
  color: var(--green);
  border-color: #9ad0b8;
}

/* ── Dock ───────────────────────────────────────────── */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 20px);
}
.dock a, .dock button {
  appearance: none;
  text-decoration: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  min-width: 62px;
  min-height: 58px;
  padding: 6px 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}
.dock .dock-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #faf6fc, var(--soft));
  color: var(--plum);
  border: 1px solid #e8dff0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}
.dock .dock-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}
.dock a.active .dock-ico {
  background: linear-gradient(145deg, #f7e6fc, #e4b8f0);
  color: var(--plum);
  border: 1.5px solid #dbade8;
  box-shadow: 0 3px 10px rgba(104, 20, 123, 0.14);
}
.dock a.active { color: var(--plum); }
.dock .cta {
  background: linear-gradient(145deg, #8b2aa3, var(--plum)) !important;
  color: #fff !important;
  padding: 0 18px;
  min-width: auto;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(104, 20, 123, 0.28);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* ── Brand marks ────────────────────────────────────── */
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  margin-right: 2px;
  vertical-align: -6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid transparent;
}
.brand-mark.arr {
  background: linear-gradient(145deg, #f7e6fc, #e4b8f0);
  color: var(--deep);
  border-color: #dbade8;
}
.brand-mark.has {
  background: linear-gradient(145deg, #fff9e0, #f5e08a);
  color: var(--deep);
  border-color: #edd978;
}
.brand-mark svg { width: 15px; height: 15px; }
.brand-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}
.brand-logo.mark {
  height: 32px;
  width: 48px;
  padding: 4px;
  object-fit: contain;
}
.card .partner-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ── Responsive ─────────────────────────────────────── */
@media (min-width: 900px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .work, .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .levels.fill-levels { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .legend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .earn-split { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .year-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .section { margin-top: 48px; }
  main { padding: 40px 28px 56px; }
}


/* ── Superistic mobile (phone-first) ─────────────────── */
@media (max-width: 699px) {
  html { -webkit-text-size-adjust: 100%; }
  body {
    /* edge dock ~68px + breathing room so last cards stay clear */
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
  header {
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }
  header .lockup {
    gap: 4px 6px;
    font-size: 11px;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
  }
  header .lockup > span {
    white-space: nowrap;
  }
  header .brand-logo.mark { width: 30px; height: 20px; flex: 0 0 auto; }
  header .brand-mark {
    width: 22px;
    height: 22px;
    margin-right: 0;
    flex: 0 0 auto;
  }
  header .brand-mark svg { width: 12px; height: 12px; }
  header .times { font-size: 1.05em; flex: 0 0 auto; }
  main {
    padding: 14px 14px 28px;
    max-width: 100%;
  }
  .kicker {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }
  h1 {
    font-size: clamp(24px, 7.2vw, 32px);
    line-height: 1.14;
    margin: 0 0 6px;
  }
  h1::after {
    width: 56px;
    margin-top: 10px;
  }
  .editorial {
    font-size: 15px;
    line-height: 1.42;
    margin-top: 10px;
    margin-bottom: 4px;
  }

  .section { margin-top: 22px; }
  .section.why-pay { margin-top: 22px; }
  .section > h2 { font-size: 17px; }
  .quiet { font-size: 13px; line-height: 1.4; }
  /* one quiet line max under fill — hide stacked duplicates on phone */
  .section > .quiet + .quiet { display: none; }

  /* calm earn hero — one breathing number, less chrome */
  .earn-hero {
    padding: 16px 14px 14px;
    border-radius: 18px;
    margin-top: 10px;
    box-shadow: var(--shadow-sm);
  }
  .earn-hero .score-tag {
    font-size: 11px;
    padding: 5px 11px;
    margin-bottom: 4px;
  }
  .earn-hero .label {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .earn-hero .amount {
    font-size: clamp(30px, 9.5vw, 38px);
    letter-spacing: -0.03em;
    line-height: 1.05;
  }
  .earn-hero .amount.receive {
    font-size: clamp(34px, 10.5vw, 42px);
  }
  .psf-base, .psf-line { font-size: 12px; }
  .plus-line { font-size: 13px; font-weight: 700; }
  .earn-split {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }
  .earn-pill {
    padding: 10px 12px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
  }
  .earn-pill strong { font-size: 19px; }

  /* snap-scroll fill chips — 5 levels, peek next */
  .levels.fill-levels {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-top: 10px;
    padding: 2px 14px 12px 2px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .levels.fill-levels::-webkit-scrollbar { display: none; }
  .level.fill {
    flex: 0 0 clamp(84px, 26vw, 96px);
    min-width: clamp(84px, 26vw, 96px);
    min-height: 92px;
    padding: 14px 8px;
    scroll-snap-align: start;
    border-radius: 16px;
  }
  .level.fill strong { font-size: 19px; }
  .level.fill em { font-size: 11px; }
  .level.fill .psf { font-size: 10px; }
  .level.fill .lvl { display: none; }

  .fill-bar-wrap { margin-top: 10px; }
  .fill-meter { height: 10px; }

  .split-earn { gap: 10px; margin-top: 12px; }
  .split-earn .side { padding: 14px; border-radius: 16px; }
  .split-earn .chips { gap: 6px; }
  .split-earn .chip { font-size: 11px; padding: 6px 9px; }

  .pair, .work, .ladder, .why-grid {
    gap: 10px;
    margin-top: 12px;
  }
  .card {
    padding: 15px;
    border-radius: 18px;
  }
  .card h2 { font-size: 16px; }
  .ladder .card strong.big { font-size: 26px; }
  .icon { width: 40px; height: 40px; }
  .icon.sm { width: 28px; height: 28px; }

  .year-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .year-row .sum { grid-column: 1 / -1; }

  .terms { gap: 8px; }
  .term { padding: 12px; border-radius: 14px; }
  .actions { gap: 8px; }
  .actions button {
    flex: 1 1 auto;
    min-height: 52px;
    border-radius: 16px;
    font-size: 15px;
  }

  /* clean edge dock — single safe-area (no double inset) */
  .dock {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 2px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 -10px 32px rgba(53, 16, 63, 0.1);
  }
  .dock a, .dock button {
    min-width: 0;
    flex: 1;
    min-height: 52px;
    padding: 6px 4px;
    font-size: 10px;
    border-radius: 14px;
  }
  .dock .dock-ico {
    width: 22px;
    height: 22px;
    border-radius: 8px;
  }
  .dock .cta {
    flex: 1.2;
    font-weight: 800;
    font-size: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 14px;
  }

  .floor-wrap {
    padding: 12px;
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .floor-meta {
    font-size: 12px;
    gap: 6px 10px;
    margin-bottom: 10px;
  }
  .floor-svg {
    min-width: 0;
    max-width: 100%;
  }
  .floor-note {
    font-size: 13px;
    padding: 10px 12px;
  }
  .floor-stage { border-radius: 16px; }
  .legend-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .partner-logo { max-width: 140px; height: auto; }
}

@media (max-width: 380px) {
  .level.fill {
    flex-basis: clamp(78px, 28vw, 88px);
    min-width: clamp(78px, 28vw, 88px);
  }
  .earn-hero .amount.receive { font-size: 32px; }
}

/* ── Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rise, .card {
    animation: rise 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .pair .card:nth-child(2),
  .work .card:nth-child(2),
  .ladder .card:nth-child(2),
  .levels .level:nth-child(2) { animation-delay: 60ms; }
  .work .card:nth-child(3),
  .ladder .card:nth-child(3),
  .levels .level:nth-child(3) { animation-delay: 120ms; }
  h1::after {
    animation: draw 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .times {
    animation: pop 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .icon, .brand-mark, .dock .dock-ico, .floor-note .chip {
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .card:hover .icon {
    transform: translateY(-2px) scale(1.04);
  }
  .seat {
    transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  }
  .seat.on {
    transform: scale(1.12);
    animation: seatPop 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .floor-svg .room {
    transition: fill 160ms ease, stroke 160ms ease;
  }
  .floor-svg .mark {
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
    transform-box: fill-box;
    transform-origin: center;
  }
  .receive.tick, .plus-line.tick {
    animation: tick 340ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .dock a, .dock button, .level, .actions button {
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  }
  .dock a:active, .dock button:active, .level:active, .actions button:active {
    transform: scale(0.97);
  }
  .dock a.active .dock-ico { transform: scale(1.06); }
  .level[aria-pressed="true"] .icon { transform: scale(1.06); }

  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes draw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
  @keyframes tick {
    from { opacity: 0.4; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes pop {
    from { transform: scale(0.75); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  @keyframes seatPop {
    from { transform: scale(0.65); }
    to { transform: scale(1.12); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fill-meter > i { transition: none; }
  .seat.on { transform: none; }
}

.level.fill .psf { display: block; margin-top: 2px; font-size: 11px; font-weight: 650; color: var(--muted); }
.psf-line { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--deep); }
.psf-line span { color: var(--plum); }
.psf-base { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }


.why-grid { display: grid; gap: 12px; margin-top: 14px; }
.why-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; border-left: 4px solid var(--plum);
}
.why-card b { display: block; color: var(--deep); font-size: 15px; margin-bottom: 4px; }
.why-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (min-width: 900px) {
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Lean earn hero — no congestion */
.earn-hero .label { margin-top: 14px; }
.earn-hero .label:first-child { margin-top: 0; }
.earn-hero .psf-base { margin: 4px 0 0; }
.earn-hero .plus-line { margin-top: 6px; }
.earn-hero .plus-line span { color: var(--plum); }
.earn-hero .quiet { margin-top: 10px; font-size: 13px; }
