.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.story-kicker { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.landing-hero .story-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: currentColor;
}

.landing-hero {
  text-align: center;
  padding: clamp(34px, 7vw, 85px) 4px clamp(32px, 5vw, 63px);
}
.landing-hero .story-kicker { color: var(--blue); }
.landing-hero h1 { font-size: clamp(55px, 18vw, 139px); line-height: .9; letter-spacing: -.075em; margin: 13px auto 17px; }
.landing-hero h1 em { font-style: normal; color: var(--blue); }
.landing-intro { max-width: 40ch; margin-inline: auto; color: var(--muted); font-size: clamp(15px, 2vw, 18px); text-wrap: balance; }

.event-types {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.event-types h2 { margin-bottom: 11px; font-size: clamp(25px, 6.7vw, 46px); line-height: 1; }
.event-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.event-type {
  --event-tone: var(--coral);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 3px;
  isolation: isolate;
  min-height: 85px;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 11px;
  background: var(--event-tone);
  color: var(--color-ink);
  text-align: left;
  transition: transform .18s ease, filter .18s ease;
}
.event-type.cumple { --event-tone: var(--pink); }
.event-type.previa { --event-tone: var(--lilac); }
.event-type.escapada { --event-tone: var(--sage); }
.event-type:hover { transform: translateY(-3px); filter: brightness(1.08); }
.event-type:active { transform: translateY(0) scale(.975); }
.event-type:focus-visible { outline-color: var(--event-tone); outline-offset: 2px; }
.event-type-copy { z-index: 1; min-width: 0; }
.event-type-copy strong { display: block; font: 800 clamp(15px, 4.4vw, 25px)/1.08 var(--display); letter-spacing: -.045em; }
.event-type-copy small { display: block; margin-top: 4px; font-size: clamp(10px, 2.7vw, 13px); line-height: 1.2; color: #292737; }
.event-type-visual { display: grid; place-items: center; min-width: 0; }
.event-type-visual img { width: 120%; height: auto; aspect-ratio: 1; object-fit: contain; transform: rotate(-8deg); filter: drop-shadow(1px 3px #23202c25); }
.landing-create { display: flex; justify-content: center; margin: 14px 0 28px; }
.landing-create .button { width: 100%; min-height: 50px; }

.friends-banner { display: grid; min-height: 286px; position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; background: #22170f; }
.friends-banner > img, .friends-banner::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.friends-banner > img { object-fit: cover; object-position: 52% 62%; }
.friends-banner::after { content: ""; background: linear-gradient(180deg, #050505ee 0%, #050505ac 35%, #05050500 74%); }
.friends-copy { padding: 17px 15px; max-width: 46rem; }
.friends-copy .story-kicker { color: var(--blue); }
.friends-copy h2 { font-size: clamp(29px, 8.1vw, 66px); line-height: .99; letter-spacing: -.06em; margin-top: 7px; text-wrap: balance; }

.how-grid { display: grid; gap: 12px; margin-top: 12px; }
.how-card {
  --scene-color: #362951;
  --scene-glow: #8068a5;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-radius: 19px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.how-coral { --scene-color: #552b2b; --scene-glow: #a76853; }
.how-lime { --scene-color: #303e21; --scene-glow: #788c44; }
.how-copy { padding: 15px; }
.how-copy h3 { font: 800 clamp(21px, 5.6vw, 27px)/1.12 var(--display); letter-spacing: -.045em; margin: 0 0 6px; }
.how-copy p { color: var(--muted); font-size: 14px; max-width: 36ch; }
.how-demo { display: flex; margin: 12px auto 0; color: var(--blue); }
.how-demo:hover { text-decoration: underline; text-underline-offset: 4px; }

.phone-scene {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 19px 12px;
  overflow: hidden;
  background: radial-gradient(ellipse at 51% 38%, var(--scene-glow), var(--scene-color) 73%);
}
.phone-device {
  position: relative;
  container-type: inline-size;
  width: min(54%, 205px);
  min-width: 142px;
  aspect-ratio: 830 / 1720;
  filter: drop-shadow(3px 13px 13px #0008);
}
.phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.phone-screen {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 2.25% 5.2% 2.4%;
  padding: 2cqw 6cqw 7cqw;
  overflow: hidden;
  border-radius: 10cqw;
  background: #0e1014;
  color: var(--ink);
  font-size: 6.4cqw;
  line-height: 1.28;
}
.phone-status { display: flex; justify-content: space-between; font-size: 4.3cqw; font-weight: 800; margin: 3cqw 2cqw 6cqw; }
.phone-island { position: absolute; top: 3cqw; left: 40%; width: 20%; height: 5cqw; border-radius: 99px; background: #050505; }
.phone-brand { margin-bottom: 5cqw; padding-bottom: 3cqw; border-bottom: 1px solid #ffffff28; font: 800 6.6cqw/1 var(--display); letter-spacing: -.06em; }
.phone-brand span { color: var(--blue); }
.phone-home { position: absolute; bottom: 3cqw; left: 32%; width: 36%; height: 1.2cqw; background: #ffffffbd; border-radius: 99px; }
.phone-heading { margin-bottom: 5cqw; }
.phone-heading span { display: block; color: var(--muted); font-size: 5cqw; margin-bottom: 1cqw; }
.phone-heading strong { display: block; font: 800 11cqw/1.07 var(--display); letter-spacing: -.07em; }
.phone-poster { position: relative; overflow: hidden; padding: 6cqw 4cqw; margin-bottom: 4cqw; border-radius: 5cqw; background: #422528; }
.phone-poster > span { color: var(--coral); font-size: 5cqw; }
.phone-poster strong { display: block; position: relative; z-index: 1; font: 800 10.7cqw/1.05 var(--display); letter-spacing: -.055em; margin: 3cqw 0 4cqw; }
.phone-poster img { width: 30cqw; height: 30cqw; object-fit: contain; position: absolute; right: -1cqw; bottom: 1cqw; transform: rotate(-12deg); }
.phone-poster small { display: flex; align-items: center; gap: 1cqw; position: relative; z-index: 1; font-size: 5cqw; }
.phone-screen svg { width: 5.8cqw; height: 5.8cqw; flex: none; }
.phone-panel { padding: 4cqw; border-radius: 5cqw; background: #1b1f26; margin-bottom: 4cqw; }
.phone-panel > b { display: block; margin-bottom: 2cqw; }
.phone-panel > div { display: flex; align-items: center; gap: 2cqw; min-height: 12cqw; }
.phone-panel > div + div { border-top: 1px solid #ffffff20; }
.phone-panel i { display: grid; place-items: center; width: 9cqw; height: 9cqw; border-radius: 50%; font-style: normal; color: var(--color-ink); font-weight: 800; background: var(--pink); }
.phone-panel > div:nth-child(2) i { background: var(--blue); }
.phone-panel > div:nth-child(3) i { background: var(--sage); }
.phone-panel em, .phone-attendance small { margin-left: auto; border-radius: 99px; padding: 1.1cqw 2.8cqw; color: var(--color-ink); font-style: normal; font-weight: 800; font-size: 4.7cqw; background: var(--sage); }
.phone-attendance small { background: #303540; color: var(--ink); }
.phone-access { background: #352547; }
.phone-access em { background: var(--lilac); }
.phone-action { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; background: var(--blue); color: var(--color-ink); font-size: 5.7cqw; font-weight: 800; padding: 3cqw 4cqw; margin-top: auto; margin-bottom: 4cqw; border-radius: 99px; }
.phone-total { background: var(--lime); color: var(--color-ink); border-radius: 5cqw; padding: 4cqw; margin-bottom: 4cqw; }
.phone-total span { display: block; font-weight: 750; }
.phone-total strong { display: block; font: 800 15cqw/1.1 var(--display); letter-spacing: -.07em; }
.phone-expenses > div { justify-content: space-between; gap: 1cqw; min-height: 19cqw; }
.phone-expenses small { display: block; color: var(--muted); font-size: 5cqw; }

.wizard[open] {
  --wizard-gutter: 20px;
  --wizard-bg: #101114;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--wizard-bg);
}
.wizard-bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding-inline: var(--wizard-gutter);
  border-bottom: 1px solid var(--line);
}
.wizard-brand { text-align: center; font-size: 14px; font-weight: 800; }
.wizard-bar .icon-button { background: transparent; border-radius: 50%; }
.wizard-bar .icon-button:hover:enabled { background: var(--control); }
.wizard-bar .wizard-back:disabled { visibility: hidden; }
.wizard-back svg { transform: rotate(180deg); }
.wizard-form { min-height: 0; min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.wizard-progress-wrap { padding: 17px var(--wizard-gutter) 0; }
.wizard-position { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.wizard-position span:first-child { color: var(--ink); font-weight: 750; }
.wizard-progress { background: #2b2f38; border-radius: 99px; height: 3px; margin-top: 8px; overflow: hidden; }
.wizard-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(var(--step-progress, 0));
  transform-origin: left;
  transition: transform .27s cubic-bezier(.22, 1, .36, 1);
}
.wizard-content { overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 16px; padding: clamp(22px, 4vh, 38px) var(--wizard-gutter) 15px; }
.wizard-content[data-motion="forward"] .wizard-body,
.wizard-content[data-motion="back"] .wizard-body { animation: wizard-in .25s cubic-bezier(.22, 1, .36, 1) both; }
.wizard-content[data-motion="forward"] .wizard-body { --wizard-enter: 7px; }
.wizard-content[data-motion="back"] .wizard-body { --wizard-enter: -7px; }
@keyframes wizard-in { from { opacity: 0; transform: translateY(var(--wizard-enter, 5px)); } to { opacity: 1; transform: translateY(0); } }
.wizard-body h2 { font-size: clamp(34px, 9vw, 49px); line-height: 1.04; letter-spacing: -.05em; max-width: 15ch; text-wrap: balance; }
.wizard-body h2:focus { outline: none; }
.wizard-intro { margin: 9px 0 18px; color: var(--muted); font-size: 15px; max-width: 42ch; }
.wizard-fields { display: grid; gap: 13px; }
.wizard-fields label small { color: var(--muted); font-weight: 500; }
.wizard-fields label:has(> small):not(.wizard-channel) { grid-template-columns: 1fr auto; align-items: baseline; }
.wizard-fields label > input:not([type="checkbox"]):not([type="radio"]), .wizard-fields label > textarea { grid-column: 1/-1; }
.wizard-fields :where(input:not([type="checkbox"], [type="radio"]), textarea) { background: #181a20; border-color: #343842; border-radius: 12px; padding: 11px 13px; min-height: 50px; }
.typefield { position: relative; }
.wizard-fields .typefield input { min-height: 62px; font: 800 clamp(21px, 6vw, 30px)/1.2 var(--display); letter-spacing: -.033em; }
.type-hint { position: absolute; top: 50%; left: 14px; right: 13px; transform: translateY(-50%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 650 clamp(17px, 5vw, 23px)/1.2 var(--display); color: #a5aabb; pointer-events: none; }
.typefield:has(input:not(:placeholder-shown)) .type-hint { display: none; }

.wizard-list, .wizard-options { display: grid; gap: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid #30343d; border-radius: 12px; }
.wizard-list > button, .wizard-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 8px 13px;
  color: var(--ink);
  background: #181a20;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  text-align: left;
  transition: background-color .16s ease, color .16s ease;
}
.wizard-list > button { border: 0; }
.wizard-list > button + button, .wizard-choice + .wizard-choice { border-top: 1px solid #30343d; }
.wizard-list svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.wizard-list > button:hover, .wizard-choice:hover { background: #242833; }
.wizard-list > button:focus-visible, .wizard-choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
.wizard-list > button[aria-pressed="true"], .wizard-choice:has(input:checked) { color: var(--blue); background: #1a2639; }
.wizard-list > button[aria-pressed="true"] svg { color: inherit; }
.wizard-choice, .wizard-channel { cursor: pointer; }
.wizard-choice input, .wizard-channel input { width: 17px; height: 17px; min-height: 0; flex: none; padding: 0; margin: 0; accent-color: var(--blue); }
.wizard-channel { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 8px 13px; border: 1px solid #30343d; border-radius: 12px; background: #181a20; }
.wizard-channel:has(input:checked) { border-color: #a1c3f675; }
.wizard-channel small { display: block; }
#wizard-emails:not([hidden]) { animation: wizard-in .2s ease both; }

.wizard-skip { margin-top: 6px; padding-inline: 1px; color: var(--muted); font-weight: 700; }
.wizard-skip:hover { text-decoration: underline; text-underline-offset: 4px; }
.wizard-footer { padding: 11px var(--wizard-gutter) max(11px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--wizard-bg); }
.wizard-footer .primary { display: flex; width: 100%; min-height: 50px; }
.wizard-tasks { padding-inline: 11px; border: 1px solid #30343d; border-radius: 12px; background: #181a20; }
.wizard-tasks li { display: flex; justify-content: space-between; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.wizard-tasks li + li { border-top: 1px solid #30343d; }
.wizard-add { width: 100%; border: 1px solid #343842; background: transparent; }
.delivery-list li { background: var(--raised); border-radius: 10px; padding: 8px; }
.delivery-list { display: grid; gap: 5px; }
.delivery-list li { overflow-wrap: anywhere; }
.delivery-list small { display: block; }

.back-to-agenda { display: flex; width: fit-content; min-height: 44px; margin: 0 auto; color: var(--muted); }

.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px;
  min-width: 0;
  border-radius: 18px;
  background: var(--lime);
  color: var(--color-ink);
}
.ledger h2 { font: 800 13px/1.2 var(--body); margin-bottom: 4px; }
.ledger-total strong { display: block; font: 800 clamp(27px, 7.6vw, 51px)/1.08 var(--display); letter-spacing: -.068em; overflow-wrap: anywhere; }
.ledger-currency { display: flex; align-items: center; margin-top: 3px; font-size: 12px; font-weight: 750; }
.ledger-currency .quiet { min-height: 44px; padding-inline: 0; font: inherit; text-align: left; color: inherit; }
.ledger-currency .quiet:hover { text-decoration: underline; }
.ledger-currency svg { width: 15px; height: 15px; flex: none; }
.ledger-personal { display: grid; gap: 7px; margin: 0; padding-left: 12px; border-left: 1px solid #11131835; }
.ledger-personal dt { font-size: 12px; font-weight: 750; }
.ledger-personal dd { margin: 0; line-height: 1.16; overflow-wrap: anywhere; }
.ledger-paid { color: #394420; }
.ledger-paid dt { font-weight: 650; }
.ledger-paid dd { font-size: clamp(13px, 3.6vw, 15px); font-weight: 700; }
.ledger-balance dt { font-weight: 850; }
.ledger-balance dd { font-size: clamp(18px, 4.7vw, 23px); font-weight: 900; letter-spacing: -.035em; }
.ledger :focus-visible, .home-banner :focus-visible { outline-color: var(--color-ink); }
.access-panel { border: 1px solid #c8b6ff5c; background: #241c36; padding: 8px; margin-bottom: 6px; border-radius: 10px; font-size: 13px; }
.access-panel > strong { color: var(--lilac); }
.access-panel ul { max-height: 180px; overflow: auto; }
.access-panel li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px; align-items: center; margin-block: 5px; overflow-wrap: anywhere; }
.access-panel small { display: block; color: var(--muted); }
.access-panel .approve { background: var(--lilac); color: var(--color-ink); }
.invite-preview .hero-content > p { max-width: 32ch; }

@media (max-width: 539px) and (max-height: 560px) {
  .wizard-bar { min-height: 52px; }
  .wizard-progress-wrap { padding-top: 12px; }
  .wizard-content { padding-top: 14px; }
  .wizard-intro { margin-bottom: 12px; }
  .wizard-fields .typefield input { min-height: 54px; }
}

@media (min-width: 540px) {
  .event-types { padding: 19px; }
  .event-type { min-height: 98px; grid-template-columns: minmax(0, 1fr) 52px; padding: 12px; }
  .event-type-visual img { width: 118%; }
  .landing-create { margin: 18px 0 36px; }
  .landing-create .button { width: auto; padding-inline: 19px; }
  .friends-banner { min-height: 320px; }
  .friends-copy { padding: 24px 20px; }
  .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .phone-scene { min-height: 273px; padding: 15px 6px; }
  .phone-device { width: min(79%, 172px); min-width: 105px; }
  .how-copy { padding: 13px; }
  .wizard[open] {
    --wizard-gutter: 32px;
    width: min(580px, calc(100% - 36px));
    height: min(660px, calc(100dvh - 36px));
    border: 1px solid var(--line);
    border-radius: 22px;
  }
  .wizard-bar { min-height: 66px; }
  .wizard-progress-wrap { padding-top: 20px; }
  .wizard-content { padding-top: 26px; }
  .ledger { grid-template-columns: minmax(0, 1fr) auto; padding: 17px 20px; }
  .ledger-personal { grid-auto-flow: column; align-items: center; gap: 18px; padding-left: 16px; text-align: right; }
}
@media (min-width: 860px) {
  .event-types { padding: 23px; }
  .event-types h2 { margin-bottom: 16px; }
  .event-type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .event-type { min-height: 112px; grid-template-columns: minmax(0, 1fr) 57px; padding: 12px; }
  .landing-create { margin: 20px 0 50px; }
  .friends-banner { min-height: clamp(350px, 37vw, 453px); }
  .friends-banner > img { object-position: 50% 36%; }
  .friends-banner::after { background: linear-gradient(90deg, #050505e8, #05050583 41%, #05050500 78%); }
  .friends-copy { padding: 34px 31px; }
  .how-grid { gap: 14px; margin-top: 14px; }
  .phone-scene { min-height: 379px; padding: 21px 12px; }
  .phone-device { width: min(66%, 192px); }
  .how-copy { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) { .wizard-content[data-motion] .wizard-body, #wizard-emails:not([hidden]) { animation: none; }
  .wizard-progress span, .wizard-list > button, .wizard-choice, .event-type { transition: none; } }
