@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfc;
  --fill: #ececf0;
  --fill-2: #e3e3e8;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --hair: rgba(0, 0, 0, 0.075);
  --hair-2: rgba(0, 0, 0, 0.12);

  --pine: #2e6a52;
  --pine-ink: #24553f;
  --pine-wash: rgba(46, 106, 82, 0.12);
  --pine-line: rgba(46, 106, 82, 0.28);
  --berry: #a5303e;
  --berry-wash: rgba(165, 48, 62, 0.08);
  --champagne: #f3e9da;
  --champagne-ink: #7a5a30;
  --focus: rgba(46, 106, 82, 0.35);

  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --pill: 999px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.035);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, 0.04), 0 24px 60px -12px rgba(30, 24, 16, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --font: 'Inter', ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;
  --serif:"CH Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --page: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.glow {
  position: fixed;
  inset: 0 0 auto 0;
  height: 620px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(640px 360px at 12% -8%, rgba(236, 210, 176, 0.42), transparent 70%),
    radial-gradient(520px 300px at 92% -10%, rgba(196, 120, 128, 0.12), transparent 70%);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

svg {
  flex: none;
}

/* ------------------------------------------------------------- top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(20px, calc((100vw - var(--page)) / 2));
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 26px;
  height: 26px;
}
.brand-mark rect {
  fill: var(--ink);
}
.brand-mark path {
  fill: none;
  stroke: var(--champagne);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.nav-quiet {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: var(--pill);
  transition: background 0.2s;
}
.nav-quiet:hover {
  background: rgba(0, 0, 0, 0.05);
}

body[data-page='landing'] .topnav .btn-primary {
  display: none;
}

/* ------------------------------------------------------------- layout */

main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: calc(var(--page) + 40px);
  margin: 0 auto;
  padding: 0 20px;
  outline: none;
}

.page {
  padding: 40px 0 72px;
  animation: rise 0.5s var(--ease) both;
}

.narrow {
  max-width: 640px;
  margin: 0 auto;
}

.center-page {
  min-height: 52vh;
  display: grid;
  place-items: center;
}

.boot,
.owner-loading {
  min-height: 50vh;
  display: grid;
  place-items: center;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--fill-2);
  border-top-color: var(--ink-2);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ------------------------------------------------------------- type */

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 68px);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -0.045em;
}
.display .soft {
  color: #86868b;
}

.h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.08;
  font-weight: 720;
  letter-spacing: -0.035em;
}
.h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.lead {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}
.lead.small {
  font-size: 17px;
  margin-top: 10px;
}
.lead em,
.footer-line em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12em;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
  margin: 0;
}
.small {
  font-size: 13.5px;
  line-height: 1.45;
}

/* ------------------------------------------------------------- buttons */

.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background 0.2s,
    box-shadow 0.2s,
    color 0.2s,
    opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 4px 14px -4px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover {
  background: #333336;
}
.btn-primary:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-quiet {
  background: rgba(0, 0, 0, 0.055);
  color: var(--ink);
}
.btn-quiet:hover {
  background: rgba(0, 0, 0, 0.085);
}

.btn-danger {
  background: var(--berry);
  color: #fff;
}
.btn-danger-text {
  color: var(--berry);
}

.btn-small {
  min-height: 32px;
  padding: 0 13px;
  font-size: 13.5px;
}
.btn-large {
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

.btn.is-busy {
  pointer-events: none;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--pine);
  cursor: pointer;
}
.link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
}
.icon-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.actions.center {
  justify-content: center;
}
.actions.end {
  justify-content: flex-end;
}
.actions.tight {
  margin-top: 10px;
  gap: 8px;
}

/* ------------------------------------------------------------- landing */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 56px;
  animation: rise 0.6s var(--ease) both;
}

.assurance {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3aa676;
  box-shadow: 0 0 0 4px rgba(58, 166, 118, 0.14);
  flex: none;
}

.hero-visual {
  position: relative;
}

.device {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.device-head {
  padding: 26px 26px 18px;
  background: linear-gradient(180deg, rgba(243, 233, 218, 0.45), rgba(255, 255, 255, 0));
}
.device-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.device .rows {
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid var(--hair);
  background: transparent;
}
.device .row {
  padding: 13px 26px;
}
.device-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 26px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s;
}
.device-foot:hover {
  background: rgba(0, 0, 0, 0.02);
}
.device-foot svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.float-chip {
  position: absolute;
  right: 22px;
  top: -20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2);
  font-size: 13.5px;
  color: var(--ink-2);
  animation: floaty 6s ease-in-out infinite, rise 0.8s 0.3s var(--ease) both;
}
.float-chip svg {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  background: var(--pine-wash);
  fill: none;
  stroke: var(--pine);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes floaty {
  50% {
    transform: translateY(-5px);
  }
}

.band {
  padding: 56px 0;
  border-top: 1px solid var(--hair);
}
.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.steps-list h3 {
  margin: 14px 0 6px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.steps-list p {
  margin: 0;
  color: var(--muted);
  max-width: 26em;
}
.step-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--champagne-ink);
  letter-spacing: 0;
}

.surprise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.surprise-copy .muted {
  margin-top: 16px;
  max-width: 32em;
}
.surprise-copy .h2 {
  margin-top: 4px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mini {
  padding: 18px 18px 8px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.mini-guest {
  transform: translateY(18px);
  box-shadow: var(--shadow-2);
}
.mini-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.mini-label svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mini-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mini-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid var(--hair);
  font-size: 14px;
  font-weight: 520;
}
.mini-rows li span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-quiet {
  color: var(--faint);
}
.mini-open,
.mini-taken {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--pill);
}
.mini-open {
  box-shadow: inset 0 0 0 1px var(--hair-2);
}
.mini-taken {
  background: var(--pine-wash);
  color: var(--pine-ink);
}

.owned {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}
.owned a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}
.owned a:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
.owned-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--champagne-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.owned-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.owned-kind {
  font-size: 12.5px;
  color: var(--muted);
}
.owned-go {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 560;
  color: var(--pine);
}
.owned-go svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

/* ------------------------------------------------------------- rows */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  transition: background 0.35s var(--ease);
}
.row + .row {
  border-top: 1px solid var(--hair);
}
.row[data-state='mine'] {
  background: rgba(46, 106, 82, 0.045);
}

.row-main {
  flex: 1;
  min-width: 0;
}
.row-title {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.3;
  transition: color 0.3s;
}
.row[data-state='taken'] .row-title {
  color: var(--muted);
}
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}
.row-meta .dot {
  color: var(--faint);
}
.meta-price {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  font-weight: 520;
}
.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--pine);
  text-decoration: none;
  font-weight: 520;
}
.meta-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.meta-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.row-note {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-2);
}
.row-status {
  font-size: 13px;
  font-weight: 560;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.3s, margin 0.35s var(--ease);
}
.row[data-state='mine'] .row-status,
.row[data-state='taken'] .row-status {
  max-height: 24px;
  opacity: 1;
  margin-top: 6px;
}
.row[data-state='mine'] .row-status {
  color: var(--pine);
}
.row[data-state='taken'] .row-status {
  color: var(--muted);
}

.row-action {
  flex: none;
  position: relative;
  display: grid;
  justify-items: end;
}

/* ------------------------------------------------------------- dibs button */

.dibs {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 92px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 15px;
  font-weight: 620;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition:
    box-shadow 0.35s var(--ease),
    color 0.3s,
    transform 0.25s var(--spring),
    gap 0.35s var(--ease),
    background 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.dibs:hover {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.07);
}
.dibs:active {
  transform: scale(0.94);
}

.dibs-fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(120% 140% at 30% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    rgba(46, 106, 82, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: scale(0.2);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.35s;
}

.dibs-check {
  display: inline-grid;
  width: 0;
  overflow: hidden;
  transition: width 0.35s var(--ease);
}
.dibs-check svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--pine);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dibs-check path {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  transition: stroke-dashoffset 0.4s 0.12s var(--ease);
}

.dibs-label {
  position: relative;
  display: inline-grid;
}
.dibs-label > span {
  grid-area: 1 / 1;
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.l-mine,
.l-undo {
  opacity: 0;
  transform: translateY(6px);
}

.row[data-state='mine'] .dibs {
  gap: 6px;
  color: var(--pine-ink);
  box-shadow: inset 0 0 0 1px var(--pine-line), 0 4px 14px -6px rgba(46, 106, 82, 0.45);
}
.row[data-state='mine'] .dibs-fill {
  transform: scale(1);
  opacity: 1;
}
.row[data-state='mine'] .dibs-check {
  width: 18px;
}
.row[data-state='mine'] .dibs-check path {
  stroke-dashoffset: 0;
}
.row[data-state='mine'] .l-open {
  opacity: 0;
  transform: translateY(-6px);
}
.row[data-state='mine'] .l-mine {
  opacity: 1;
  transform: none;
}
@media (hover: hover) {
  .row[data-state='mine'] .dibs:hover .l-mine {
    opacity: 0;
    transform: translateY(-6px);
  }
  .row[data-state='mine'] .dibs:hover .l-undo {
    opacity: 1;
    transform: none;
  }
}

.row.is-busy .dibs {
  pointer-events: none;
}

.taken-pill {
  display: none;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: var(--pill);
  background: var(--fill);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 580;
  animation: rise 0.35s var(--ease);
}
.taken-pill svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.row[data-state='taken'] .dibs {
  display: none;
}
.row[data-state='taken'] .taken-pill {
  display: inline-flex;
}

/* ------------------------------------------------------------- progress */

.progress {
  margin-top: 4px;
}
.progress-text {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.progress-text strong {
  color: var(--ink);
  font-weight: 650;
}
.progress-track {
  height: 6px;
  border-radius: var(--pill);
  background: var(--fill);
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  width: var(--p);
  border-radius: inherit;
  background: linear-gradient(90deg, #5d9a7f, var(--pine));
  transition: width 0.6s var(--ease);
}

/* ------------------------------------------------------------- guest */

.guest-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}
.guest-side {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.guest-side .eyebrow {
  margin: 0 0 -8px;
}
.list-title {
  overflow-wrap: anywhere;
}
.list-note {
  margin: -4px 0 0;
  font-size: 16px;
  color: var(--ink-2);
}

.who {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  font-size: 14px;
  color: var(--ink-2);
}
.who > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.who-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--champagne-ink);
  font-weight: 650;
  font-size: 14px;
  flex: none;
}
.who-avatar.is-empty {
  background: var(--fill);
  color: var(--muted);
}

.side-hint {
  display: flex;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.side-hint svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-pill {
  align-self: flex-start;
  margin: 0;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: var(--champagne);
  color: var(--champagne-ink);
  font-size: 12.5px;
  font-weight: 560;
}
.guest-side > .btn {
  align-self: flex-start;
}

.seg {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px;
  border-radius: var(--pill);
  background: rgba(0, 0, 0, 0.055);
}
.seg button {
  border: 0;
  background: transparent;
  padding: 6px 16px;
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.25s var(--ease), box-shadow 0.25s, color 0.2s;
}
.seg button[aria-selected='true'],
.seg button[aria-checked='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
}
.seg-wide {
  display: flex;
  margin-bottom: 6px;
}
.seg-wide button {
  flex: 1;
}

.shield,
.empty-card {
  padding: 48px 32px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}
.shield .muted,
.empty-card .muted {
  max-width: 28em;
  margin: 10px auto 0;
}
.shield-icon,
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, #fbf5ec, var(--champagne));
  box-shadow: inset 0 0 0 1px rgba(122, 90, 48, 0.12);
}
.shield-icon svg,
.empty-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--champagne-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.empty-card .actions,
.shield .actions {
  margin-top: 24px;
}

.row-done .row-title {
  color: var(--pine);
}

/* ------------------------------------------------------------- skeletons */

.sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #ececf0 0%, #f6f6f8 50%, #ececf0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  animation-delay: var(--d, 0ms);
}
.sk-title {
  width: 58%;
  height: 15px;
}
.sk-meta {
  width: 30%;
  height: 11px;
  margin-top: 9px;
}
.sk-btn {
  width: 92px;
  height: 40px;
  border-radius: var(--pill);
}
.sk-eyebrow {
  width: 40%;
  height: 11px;
}
.sk-h1 {
  width: 90%;
  height: 34px;
}
.sk-line {
  width: 70%;
  height: 14px;
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

/* ------------------------------------------------------------- forms */

.panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 20px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.panel-title svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--champagne-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-panel {
  margin-top: 28px;
  padding: 28px;
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 22px;
}
.form-panel .actions {
  margin-top: 4px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.opt {
  font-weight: 450;
  color: var(--faint);
  margin-left: 4px;
}

input:not([type='checkbox']) {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  font-size: 16px;
  transition: box-shadow 0.2s, background 0.2s;
}
input:not([type='checkbox'])::placeholder {
  color: var(--faint);
}
input:not([type='checkbox']):hover {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
input:not([type='checkbox']):focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--pine), 0 0 0 4px var(--pine-wash);
}

.mode-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mode-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.25s, background 0.25s, transform 0.2s var(--ease);
}
.mode-opt:active {
  transform: scale(0.985);
}
.mode-opt strong {
  display: block;
  font-size: 15px;
  font-weight: 620;
}
.mode-opt small {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--muted);
}
.mode-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--fill);
  flex: none;
  transition: background 0.25s;
}
.mode-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.mode-opt[aria-checked='true'] {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow-1);
}
.mode-opt[aria-checked='true'] .mode-icon {
  background: var(--champagne);
}
.mode-opt[aria-checked='true'] .mode-icon svg {
  stroke: var(--champagne-ink);
}

.quick-add {
  display: flex;
  gap: 8px;
}
.quick-add .btn {
  height: 46px;
  border-radius: var(--r-sm);
}

.chips {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips:empty {
  display: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 13px;
  border-radius: var(--pill);
  background: var(--fill);
  font-size: 14px;
  font-weight: 520;
  animation: rise 0.3s var(--ease);
}
.chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
  cursor: pointer;
}
.chip svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}
.toggle-row strong {
  font-size: 15px;
  font-weight: 600;
}
.toggle-row .muted {
  margin-top: 2px;
}

.switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.switch > span:not(.sr) {
  position: absolute;
  inset: 0;
  border-radius: var(--pill);
  background: var(--fill-2);
  transition: background 0.3s var(--ease);
}
.switch > span:not(.sr)::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--spring);
}
.switch input:checked + span {
  background: var(--pine);
}
.switch input:checked + span::after {
  transform: translateX(20px);
}
.switch input:focus-visible + span {
  box-shadow: 0 0 0 4px var(--focus);
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--berry-wash);
  color: var(--berry);
  font-size: 14px;
  font-weight: 520;
}

/* ------------------------------------------------------------- owner */

.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px 14px 14px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, #fbf6ee, #f3ebde);
  box-shadow: inset 0 0 0 1px rgba(122, 90, 48, 0.12);
  font-size: 14.5px;
  color: #4d3a20;
  animation: rise 0.5s var(--ease);
}
.banner > div:nth-child(2) {
  flex: 1;
}
.banner-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-1);
  flex: none;
}
.banner-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--pine);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.owner-head {
  margin-bottom: 32px;
}
.title-input,
.note-input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  border: 0;
  outline: none;
  resize: none;
  overflow: hidden;
  font-family: inherit;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 10px !important;
  margin-left: -10px;
  width: calc(100% + 20px) !important;
  border-radius: 12px !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.title-input::placeholder,
.note-input::placeholder {
  color: var(--faint);
}
.title-input {
  padding-top: 2px !important;
  padding-bottom: 4px !important;
  font-size: clamp(30px, 4vw, 40px) !important;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.note-input {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  margin-top: 4px;
  line-height: 1.45;
  font-size: 17px !important;
  color: var(--ink-2);
}
.title-input:hover,
.note-input:hover {
  background: rgba(0, 0, 0, 0.035) !important;
}
.title-input:focus,
.note-input:focus {
  background: #fff !important;
  box-shadow: inset 0 0 0 1px var(--pine), 0 0 0 4px var(--pine-wash) !important;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.save-state::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3aa676;
  transition: background 0.2s;
}
.save-state[data-state='saving']::before {
  background: #c9a227;
  animation: pulse 1s ease-in-out infinite;
}
.save-state[data-state='error'] {
  color: var(--berry);
}
.save-state[data-state='error']::before {
  background: var(--berry);
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.owner-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-areas: 'main side';
  gap: 40px;
  align-items: start;
}
.owner-main {
  grid-area: main;
  min-width: 0;
}
.owner-side {
  grid-area: side;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 88px;
}
.owner-side > .btn-danger-text {
  justify-self: start;
  background: transparent;
}
.owner-side > .btn-danger-text:hover {
  background: var(--berry-wash);
}

.linkfield {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.linkfield input {
  height: 38px !important;
  font-size: 13.5px !important;
  color: var(--ink-2);
  text-overflow: ellipsis;
}
.linkfield .btn {
  height: 38px;
}
.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
}

.settings-note {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.settings-note svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.owner-side .toggle-row {
  margin-top: 14px;
  padding-top: 14px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 14px;
  color: var(--ink-2);
}
.notice svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: var(--champagne-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.owner-row {
  align-items: flex-start;
}
.row-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.claim-chip,
.open-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px 0 9px;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 580;
  white-space: nowrap;
}
.claim-chip {
  background: var(--pine-wash);
  color: var(--pine-ink);
}
.claim-chip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.open-chip {
  padding: 0 11px;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}

.rows-add {
  margin-top: 14px;
  box-shadow: var(--shadow-1);
  background: rgba(255, 255, 255, 0.75);
}
.is-editing {
  display: block;
  background: var(--surface-2);
}
.item-form {
  display: grid;
  grid-template-columns: 1fr 140px;
  grid-template-areas:
    'name price'
    'url url'
    'note note'
    'actions actions';
  gap: 12px;
  width: 100%;
}
.f-name {
  grid-area: name;
}
.f-price {
  grid-area: price;
}
.f-url {
  grid-area: url;
}
.f-note {
  grid-area: note;
}
.item-form-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-form-actions .spacer {
  flex: 1;
}
.item-form input {
  height: 42px;
  font-size: 15px;
}
.row-empty .row-title {
  color: var(--ink-2);
}
.row-empty .row-note {
  color: var(--muted);
}

/* ------------------------------------------------------------- sheets */

.sheet {
  width: min(440px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.sheet[open] {
  animation: sheet-in 0.42s var(--ease);
}
.sheet::backdrop {
  background: rgba(30, 30, 34, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.3s ease;
}
.sheet-body {
  display: grid;
  gap: 14px;
  padding: 26px;
}
.sheet h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.sheet-grabber {
  display: none;
}
.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* ------------------------------------------------------------- toast */

.toast-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 11px 12px 11px 18px;
  border-radius: var(--pill);
  background: rgba(29, 29, 31, 0.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 520;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.toast:not(:has(button)) {
  padding-right: 18px;
}
.toast.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.toast > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toast-action {
  flex: none;
  border: 0;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13.5px;
  font-weight: 620;
  cursor: pointer;
}
.toast-action:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ------------------------------------------------------------- footer */

.footer {
  position: relative;
  z-index: 1;
  padding: 36px 20px 44px;
  text-align: center;
  border-top: 1px solid var(--hair);
}
.footer-line {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.footer-line em {
  color: var(--ink-2);
}
.footer-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 36px;
  }
  .hero-visual {
    max-width: 520px;
  }
  .surprise {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .guest-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .guest-side {
    position: static;
  }
  .owner-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'side' 'main';
    gap: 28px;
  }
  .owner-side {
    position: static;
  }
}

@media (max-width: 640px) {
  main {
    padding: 0 16px;
  }
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .page {
    padding: 24px 0 56px;
  }
  .hero {
    padding: 24px 0 40px;
  }
  .display {
    font-size: 42px;
  }
  .hero .actions .btn {
    flex: 1;
  }
  .assurance {
    align-items: flex-start;
    font-size: 13px;
  }
  .assurance .live-dot {
    margin-top: 6px;
  }
  .float-chip {
    right: 12px;
    top: -18px;
    font-size: 12.5px;
  }
  .device-head {
    padding: 22px 20px 16px;
  }
  .device .row,
  .device-foot {
    padding-left: 20px;
    padding-right: 20px;
  }
  .steps-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .band {
    padding: 44px 0;
  }
  .compare {
    grid-template-columns: 1fr;
  }
  .mini-guest {
    transform: none;
  }
  .row {
    padding: 16px 16px 16px 18px;
    gap: 12px;
  }
  .dibs {
    min-width: 84px;
    height: 40px;
    padding: 0 15px;
  }
  .form-panel {
    padding: 20px;
  }
  .mode-pick {
    grid-template-columns: 1fr;
  }
  .item-form {
    grid-template-columns: 1fr;
    grid-template-areas: 'name' 'price' 'url' 'note' 'actions';
  }
  .owner-row:not(.is-editing) {
    flex-wrap: wrap;
  }
  .owner-row .row-tools {
    width: 100%;
    justify-content: flex-end;
  }
  .banner {
    align-items: flex-start;
  }
  .sheet {
    margin: auto auto 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: 26px 26px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sheet-grabber {
    display: block;
    justify-self: center;
    width: 36px;
    height: 5px;
    margin: -12px 0 2px;
    border-radius: 3px;
    background: var(--fill-2);
  }
  .sheet-actions .btn {
    flex: 1;
    min-height: 48px;
  }
  .toast-wrap {
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
