:root {
  --viewport-height: 100vh;
  --ink: #f2f1eb;
  --muted: #9b9daa;
  --faint: #6e7180;
  --night: #070910;
  --panel: rgba(17, 19, 30, 0.88);
  --panel-strong: #131621;
  --line: rgba(255, 255, 255, 0.11);
  --line-bright: rgba(255, 255, 255, 0.22);
  --signal: #ff5a36;
  --signal-light: #ff866d;
  --cool: #7f8cff;
  --success: #8adea3;
  --radius: 6px;
  --sans: inter, ui-sans-serif, -apple-system, blinkmacsystemfont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", consolas, "Liberation Mono", monospace;
}

@supports (height: 100dvh) {
  :root { --viewport-height: 100dvh; }
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: var(--viewport-height);
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 12%, rgba(80, 64, 146, 0.16), transparent 30rem),
    radial-gradient(circle at 14% 38%, rgba(165, 46, 22, 0.09), transparent 34rem),
    linear-gradient(180deg, #090b12 0%, #070910 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body > main { min-width: 0; min-height: 0; }
body > main > .hero,
body > main > .private-page:not(.is-revealed),
body > main > .unavailable { height: 100%; min-height: 0; }

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

a { color: inherit; }
button, textarea, input { font: inherit; }
button, input, textarea { color: inherit; }

::selection { color: white; background: rgba(255, 90, 54, 0.5); }

:focus-visible {
  outline: 2px solid var(--signal-light);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page-shell,
.site-header,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
}

.brand-mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 36.77px;
  height: 36.77px;
  max-width: none;
  transform: translate(-50%, -50%);
}

.header-note {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::after {
  position: absolute;
  inset: 28%;
  border: inherit;
  border-radius: inherit;
  content: "";
}

.ambient--one { top: -23rem; right: -12rem; animation: drift 18s ease-in-out infinite alternate; }
.ambient--two { bottom: -29rem; left: -18rem; animation: drift 22s ease-in-out 2s infinite alternate-reverse; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.84fr);
  gap: clamp(50px, 8vw, 116px);
  align-items: center;
  min-height: calc(var(--viewport-height) - 88px);
  padding-block: 74px;
}

h1, h2, h3, p { text-wrap: pretty; }

h1, h2 {
  margin: 0;
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

h1 { font-size: clamp(3.25rem, 6.4vw, 6.15rem); }
h2 { font-size: clamp(2.45rem, 4.5vw, 4.6rem); }

h1 em, h2 em {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.no-wrap { white-space: nowrap; }

.hero-lede,
.state-heading > p:last-child,
.unavailable > p {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.trust-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 0;
  margin: 44px 0 0;
  list-style: none;
  color: #c7c7ce;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-row span {
  margin-right: 6px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.exchange-card,
.revealed-card,
.invitation-panel,
.own-list-panel {
  position: relative;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(24, 26, 39, 0.95), rgba(12, 14, 23, 0.96));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
}

.private-page,
.private-grid,
.state-heading,
.action-area,
.invitation-panel,
.invitation-panel > div,
.revealed-lists,
.revealed-card {
  min-width: 0;
}

.exchange-card::before,
.revealed-card::before {
  position: absolute;
  top: -1px;
  left: 24px;
  width: 72px;
  height: 1px;
  background: var(--signal);
  box-shadow: 0 0 18px var(--signal);
  content: "";
}

.exchange-card--create { transform: rotate(0.35deg); }

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.secure-dot::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(255, 90, 54, 0.9);
  content: "";
}

.secure-dot--revealed { color: var(--success); }
.secure-dot--revealed::before { background: var(--success); box-shadow: 0 0 10px rgba(138, 222, 163, 0.8); }

.exchange-form { padding: 22px; }

.textarea-wrap { position: relative; }

.textarea-wrap textarea {
  display: block;
  width: 100%;
  min-height: 255px;
  padding: 22px 20px 22px 52px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #dedee4;
  background: rgba(3, 5, 10, 0.58);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
}

.textarea-wrap textarea::placeholder { color: #595d6a; }
.textarea-wrap textarea:focus {
  border-color: var(--signal-light);
  box-shadow: 0 0 0 1px var(--signal-light);
}

.textarea-wrap textarea:focus-visible { outline: none; }

.line-number {
  position: absolute;
  top: 23px;
  left: 18px;
  z-index: 1;
  color: #525663;
  font-family: var(--mono);
  font-size: 0.67rem;
}

.form-assurance {
  display: flex;
  justify-content: space-between;
  padding: 13px 2px 16px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lock-icon {
  display: inline-block;
  width: 7px;
  height: 6px;
  margin-right: 6px;
  border: 1px solid currentcolor;
}

.button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease;
}

.button:hover { transform: translateY(-2px); }
.button--primary { width: 100%; color: #131621; background: var(--signal); }
.button--primary:hover { background: #ff6a49; }
.button-arrow { margin-left: auto; font-size: 1rem; }
.button--secondary { min-height: 42px; border-color: var(--line-bright); background: rgba(255, 255, 255, 0.05); }

.irreversible-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 0.71rem;
  text-align: center;
}

.textarea-wrap textarea[aria-invalid="true"] { border-color: rgba(255, 90, 54, 0.72); }

.field-error {
  margin: 8px 2px 0;
  color: #ffad9c;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
}

.private-page { min-height: calc(var(--viewport-height) - 88px); padding-block: clamp(68px, 9vw, 122px); }

.private-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(410px, 0.72fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
}

.state-heading h1 { font-size: clamp(3rem, 5.3vw, 5.45rem); }
.state-heading--center { max-width: 870px; margin-inline: auto; text-align: center; }
.state-heading--center > p:last-child { margin-inline: auto; }

.state-symbol {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 38px;
  transform: rotate(45deg);
}

.state-heading--center .state-symbol,
.unavailable .state-symbol { margin-inline: auto; }

.state-symbol i {
  position: absolute;
  inset: 0 51% 0 0;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.03);
}

.state-symbol i:nth-child(2) { inset: 0 0 0 51%; }
.state-symbol--sealed i:first-child { background: rgba(255, 90, 54, 0.22); }
.state-symbol--waiting i { animation: waiting-panels 2.4s ease-in-out infinite alternate; }
.state-symbol--waiting i:nth-child(2) { animation-delay: -1.2s; }
.state-symbol--waiting span {
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 16px var(--signal);
  transform: translate(-50%, -50%);
}

.state-symbol--revealed i:first-child { transform: translate(-8px, 8px); border-color: rgba(138, 222, 163, 0.5); }
.state-symbol--revealed i:nth-child(2) { transform: translate(8px, -8px); border-color: rgba(138, 222, 163, 0.5); }
.state-symbol--revealed span { position: absolute; top: 50%; left: 50%; color: var(--success); font-weight: 800; transform: translate(-50%, -50%) rotate(-45deg); }
.state-symbol--unavailable { opacity: 0.5; }
.state-symbol--unavailable i:first-child { transform: translate(-5px, 5px); }
.state-symbol--unavailable i:nth-child(2) { transform: translate(5px, -5px); }

.promise-list { margin-top: 36px; color: #c4c5cc; font-size: 0.84rem; }
.promise-list p { margin: 10px 0; }
.promise-list span { margin-right: 10px; color: var(--signal-light); }
.private-countdown { margin: 46px 0 0; color: var(--faint); font-family: var(--mono); font-size: 0.68rem; text-align: center; text-transform: uppercase; }

.invitation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  max-width: 850px;
  padding: 20px;
  margin: 52px auto 18px;
}

.invitation-panel label { display: block; margin-bottom: 9px; color: var(--faint); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; }
.invitation-panel input { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 3px; color: #c5c6cf; background: rgba(2, 4, 9, 0.55); font-family: var(--mono); font-size: 0.72rem; }
.invitation-panel .button { width: auto; white-space: nowrap; }

.status-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  max-width: 850px;
  min-height: 70px;
  padding: 10px 20px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.6); animation: pulse 2s infinite; }
.status-strip strong, .status-strip small { display: block; }
.status-strip strong { font-size: 0.78rem; }
.status-strip small { margin-top: 2px; color: var(--faint); font-size: 0.68rem; }
.countdown { color: var(--faint); font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase; }
.status-strip--revealed > span:first-child { color: var(--success); }

.own-list-panel { max-width: 850px; margin: 0 auto; box-shadow: none; }
.own-list-panel summary { padding: 17px 20px; cursor: pointer; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; list-style: none; text-transform: uppercase; }
.own-list-panel summary span { float: right; }
.own-list-panel pre { padding: 22px; margin: 0; border-top: 1px solid var(--line); color: #a9abb6; font-family: var(--mono); font-size: 0.76rem; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }

.reveal-heading { animation: reveal-in 700ms cubic-bezier(.2,.8,.2,1) both; }

.revealed-card { max-width: 850px; margin: 54px auto 18px; animation: reveal-in 700ms 130ms cubic-bezier(.2,.8,.2,1) both; }
.revealed-card-summary { position: relative; cursor: default; list-style: none; }
.revealed-card-summary::-webkit-details-marker { display: none; }
.revealed-card h2 { padding: 18px 32px; margin: 0; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.revealed-card-toggle { display: none; }
.revealed-card pre { min-height: 270px; padding: 32px; margin: 0; color: #dedee5; background: rgba(2, 4, 9, 0.45); font-family: var(--mono); font-size: 0.8rem; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.revealed-card-footer { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--faint); font-family: var(--mono); font-size: 0.63rem; text-transform: uppercase; }

.unavailable { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(var(--viewport-height) - 88px); padding-block: 80px; text-align: center; }
.unavailable h1 { font-size: clamp(3.2rem, 6vw, 5.8rem); }
.unavailable > p { max-width: 590px; margin-bottom: 35px; }
.unavailable .button { width: auto; }

.site-footer {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.03em;
}

.site-footer span:first-child { flex: 1 1 auto; }
.site-footer span:last-child { flex: 0 1 auto; text-align: right; }

@keyframes drift { to { transform: translate3d(24px, -16px, 0) rotate(8deg); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 90, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); } }
@keyframes waiting-panels { from { opacity: 0.35; } to { opacity: 1; border-color: rgba(255, 90, 54, 0.4); } }
@keyframes reveal-in { from { opacity: 0.62; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero, .private-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-copy { max-width: 700px; }
  .exchange-card--create { width: min(100%, 620px); justify-self: center; }
  .private-grid { gap: 60px; }
  .state-heading { max-width: 700px; }
}

@media (max-width: 620px) {
  .page-shell, .site-header, .site-footer { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 70px; }
  .header-note { display: none; }
  .hero { padding-block: 58px 80px; }
  h1 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .trust-row { gap: 13px 20px; margin-top: 34px; font-size: 0.67rem; }
  .exchange-card--create { transform: none; }
  .exchange-form { padding: 14px; }
  .card-topline { padding-inline: 15px; }
  .textarea-wrap textarea { min-height: 235px; padding-left: 42px; }
  .line-number { left: 14px; }
  .form-assurance span:last-child { display: none; }
  .private-page { padding-block: 58px 78px; }
  .private-grid { grid-template-columns: minmax(0, 1fr); }
  .private-grid .exchange-card { min-width: 0; }
  .state-heading h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .invitation-panel { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .invitation-panel .button { width: 100%; }
  .status-strip { grid-template-columns: auto 1fr; }
  .countdown { grid-column: 2; }
  .revealed-card pre { padding: 22px 18px; }
  .revealed-card-footer { align-items: stretch; flex-direction: column; gap: 12px; padding-block: 14px; }
  .site-footer { gap: 12px; }
}

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

/* Action-first layouts */

.site-header { min-height: 64px; }

.hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.72fr);
  gap: clamp(36px, 5vw, 76px);
  min-height: calc(var(--viewport-height) - 117px);
  padding-block: 32px;
}

.hero h1 { font-size: clamp(3.25rem, 5.7vw, 5.4rem); }

.hero-lede { margin-top: 22px; }

.essentials {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 0.82rem;
}

.action-area { width: 100%; }

.exchange-form--standalone { padding: 0; }

.exchange-form--standalone .textarea-wrap textarea {
  min-height: 310px;
  padding: 20px;
  border-color: var(--line-bright);
  background: rgba(8, 10, 17, 0.72);
}

.exchange-form--standalone .button--primary { margin-top: 12px; }

.private-page {
  min-height: calc(var(--viewport-height) - 72px);
  padding-block: clamp(48px, 7vw, 88px);
}

.private-page:not(.is-revealed) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(var(--viewport-height) - 64px);
  padding-block: 32px;
}

.is-waiting > .invitation-panel,
.is-waiting > .own-list-panel {
  width: min(100%, 850px);
}

.state-heading--compact h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  line-height: 1.02;
}

.state-heading--compact > p:last-child { margin-top: 18px; }

.private-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(390px, 0.75fr);
  gap: clamp(48px, 9vw, 130px);
}

.invitation-panel { margin-top: 32px; }

.private-countdown {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  max-width: 850px;
  margin: 12px auto 18px;
}

.private-countdown .pulse-dot { flex: 0 0 auto; }
.own-list-panel { margin-top: 0; }

.reveal-layout { max-width: 1180px; margin-inline: auto; }

.revealed-card-footer .countdown {
  color: var(--faint);
  font-family: var(--mono);
}

.unavailable {
  min-height: calc(var(--viewport-height) - 64px);
  padding-block: 32px;
}

.unavailable h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
.unavailable > p { margin-top: 20px; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding-block: 40px 56px;
  }

  .hero-copy { max-width: 640px; }
  .action-area { width: min(100%, 620px); justify-self: center; }

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

@media (max-width: 620px) {
  .site-header { min-height: 48px; }

  .hero {
    align-content: center;
    gap: 16px;
    min-height: calc(var(--viewport-height) - 99px);
    padding-block: 16px 20px;
  }

  .hero h1 { font-size: clamp(2.35rem, 11.5vw, 3.1rem); }

  .hero-lede {
    margin-top: 12px;
    font-size: 0.94rem;
    line-height: 1.4;
  }

  .essentials {
    margin-top: 8px;
    font-size: 0.72rem;
  }

  .exchange-form--standalone .textarea-wrap textarea {
    height: clamp(120px, 30vh, 260px);
    min-height: 0;
    padding: 14px;
  }

  .exchange-form--standalone .button--primary {
    min-height: 46px;
    margin-top: 8px;
  }

  .site-footer {
    padding-block: 11px;
    font-size: 0.56rem;
    letter-spacing: 0.05em;
  }

  .private-page { padding-block: 28px 44px; }

  .private-page:not(.is-revealed) {
    justify-content: flex-start;
    min-height: 0;
    padding-block: 16px;
  }

  .state-heading--compact h1 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
    line-height: 1.03;
  }

  .state-heading--compact > p:last-child {
    margin-top: 12px;
    font-size: 0.94rem;
  }

  .private-page:not(.is-revealed) .state-heading--compact h1 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
  }

  .private-page:not(.is-revealed) .state-heading--compact > p:last-child {
    margin-top: 8px;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .is-recipient .private-grid { gap: 16px; }

  .invitation-panel {
    gap: 10px;
    padding: 12px;
    margin-top: 24px;
  }

  .is-waiting .invitation-panel {
    gap: 8px;
    padding: 10px;
    margin-top: 12px;
  }

  .is-waiting .invitation-panel label { margin-bottom: 6px; }
  .is-waiting .invitation-panel input { min-height: 44px; }
  .is-waiting .invitation-panel .button { min-height: 44px; }

  .private-page:not(.is-revealed) .private-countdown { margin-block: 6px 8px; }
  .private-page:not(.is-revealed) .own-list-panel summary { padding: 11px 14px; }

  .private-countdown { margin-block: 10px 14px; }
  .own-list-panel summary { padding: 14px 16px; }
  .revealed-card pre { min-height: 250px; }

  .unavailable {
    min-height: 0;
    padding-block: 20px;
  }

  .unavailable h1 { font-size: clamp(2.2rem, 11vw, 2.8rem); }
  .unavailable > p { margin-block: 12px 20px; }
}

@media (max-width: 479px), (max-width: 620px) and (orientation: portrait) {
  .site-footer {
    flex-direction: column;
    gap: 2px;
    align-items: center;
    padding-block: 6px;
    line-height: 1.3;
    text-align: center;
  }

  .site-footer span:first-child {
    flex: none;
    max-width: 39ch;
  }

  .site-footer span:last-child {
    flex: none;
    text-align: center;
    white-space: nowrap;
  }
}

@media (max-width: 479px) and (max-height: 520px) {
  .exchange-form--standalone .textarea-wrap textarea {
    height: clamp(96px, 25vh, 120px);
  }
}

@media (max-height: 600px) and (min-width: 480px) {
  .site-header { min-height: 44px; }

  .hero {
    grid-template-columns: minmax(0, 0.82fr) minmax(220px, 1fr);
    gap: clamp(16px, 4vw, 32px);
    min-height: calc(var(--viewport-height) - 77px);
    padding-block: 12px;
  }

  .hero h1 { font-size: clamp(2rem, 5vw, 3rem); }

  .hero-lede {
    margin-top: 8px;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .action-area {
    width: 100%;
    justify-self: stretch;
  }

  .exchange-form--standalone .textarea-wrap textarea {
    height: clamp(84px, 30vh, 140px);
    min-height: 0;
    padding: 12px;
    font-size: 0.72rem;
  }

  .exchange-form--standalone .button--primary {
    min-height: 40px;
    margin-top: 6px;
    font-size: 0.68rem;
  }

  .essentials {
    margin-top: 5px;
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .site-footer {
    gap: 8px;
    padding-block: 9px;
    font-size: 0.54rem;
    letter-spacing: 0;
  }

  .site-footer span { white-space: nowrap; }

  .private-page:not(.is-revealed) {
    min-height: calc(var(--viewport-height) - 44px);
    padding-block: 12px;
  }

  .private-page:not(.is-revealed) .state-heading--compact h1 {
    font-size: clamp(1.75rem, 4.6vw, 2.6rem);
  }

  .private-page:not(.is-revealed) .state-heading--compact > p:last-child {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .is-recipient .private-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(220px, 1fr);
    gap: clamp(16px, 4vw, 32px);
  }

  .private-page:not(.is-revealed) .private-countdown { margin-block: 6px 0; }

  .is-waiting {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1.25fr);
    grid-template-areas:
      "heading invitation"
      "countdown details";
    gap: 8px 16px;
    align-content: center;
  }

  .is-waiting > .state-heading {
    grid-area: heading;
    margin: 0;
    text-align: left;
  }

  .is-waiting > .state-heading > p:last-child { margin-inline: 0; }

  .is-waiting > .invitation-panel {
    grid-area: invitation;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
    padding: 8px;
    margin: 0;
  }

  .is-waiting .invitation-panel label { margin-bottom: 4px; }
  .is-waiting .invitation-panel input { min-height: 40px; }
  .is-waiting .invitation-panel .button { width: auto; min-height: 40px; }

  .is-waiting > .private-countdown {
    grid-area: countdown;
    justify-content: flex-start;
    margin: 0;
  }

  .is-waiting > .own-list-panel {
    grid-area: details;
    width: 100%;
  }

  .is-waiting .own-list-panel summary { padding: 9px 12px; }

  .unavailable {
    min-height: calc(var(--viewport-height) - 44px);
    padding-block: 12px;
  }

  .unavailable h1 { font-size: clamp(2rem, 6vw, 3rem); }
  .unavailable > p { margin-block: 8px 14px; }
  .unavailable .button { min-height: 40px; }
}

.revealed-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.revealed-lists .revealed-card {
  max-width: none;
  margin: 0;
}

.revealed-lists .revealed-card-footer { justify-content: flex-end; }

.reveal-next {
  padding-top: 24px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.reveal-next p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.reveal-next a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .revealed-lists { grid-template-columns: 1fr; }
  .revealed-card-summary { cursor: pointer; }
  .revealed-card-summary h2 { padding-right: 58px; }
  .revealed-card-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--muted);
    font-size: 1rem;
    transform: translateY(-50%);
    transition: transform 170ms ease;
  }
  .revealed-card[open] .revealed-card-toggle { transform: translateY(-50%) rotate(180deg); }

  .reveal-next {
    padding-top: 20px;
    margin-top: 36px;
  }
}
