/* Bonfetti home page. Loaded only by homePage(), after site.css. */

/* Hero */
.home .landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-top: 48px;
}
.home .landing h1 {
  font-size: clamp(40px, 6.2vw, 68px);
}
.home .landing h1 > span {
  display: block;
}
.home .nowrap {
  white-space: nowrap;
}
.home .landing .lede {
  max-width: 30em;
  margin-top: 24px;
}
.home .cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 32px;
}
/* The status and the note share one cell, so copying never shifts the layout. */
.home .cta .copy-status,
.home .cta .cta-note {
  grid-row: 2;
  grid-column: 1;
}
.home .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.home .btn-primary:hover svg {
  transform: scale(1.06);
}
.home .cta-note {
  max-width: 34em;
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.home .cta .copy-status:not(:empty),
.home .finale .copy-status:not(:empty) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.home .cta .copy-status:not(:empty) {
  align-self: start;
  margin-top: 20px;
}
.home .cta .copy-status:not(:empty)::before,
.home .finale .copy-status:not(:empty)::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 11px;
  margin: 0 6px 3px 4px;
  border: solid var(--olive);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.home .cta .copy-status:not(:empty) + .cta-note {
  visibility: hidden;
}

/* Hero composition: the request, the invitation, the replies. */
.home .stage {
  container: stage / inline-size;
  padding: 40px 24px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(130% 80% at 50% 0%, rgba(255, 253, 248, 0.75), transparent 72%),
    repeating-linear-gradient(90deg, #f8e3b0 0 48px, #fcf1d8 48px 96px);
  box-shadow: inset 0 0 0 1px rgba(57, 35, 51, 0.06);
}
/* Two equal columns with a clean gutter; the edges of all three cards line up. */
.home .stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: 20px;
  max-width: 620px;
  margin-inline: auto;
}
.home .frag {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.home .stage .chat {
  grid-area: 1 / 1;
}
.home .stage .replies {
  grid-area: 2 / 1;
  align-self: end;
}
.home .stage .invite {
  container: invite / inline-size;
  display: flex;
  flex-direction: column;
  grid-area: 1 / 2 / 3 / 3;
}
/* The cover takes whatever height the left column leaves, so all edges align. */
.home .stage .invite-art {
  flex: 1 1 0;
  min-height: 160px;
  aspect-ratio: auto;
}
.home .stage .invite-body .choices {
  margin-top: 20px;
}

/* Narrow stage: the request as a sent message, a shorter cover, the newest reply. */
@container stage (max-width: 539.98px) {
  .home .stage-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 400px;
  }
  .home .stage .chat {
    z-index: 2;
    align-self: flex-end;
    max-width: 88%;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .home .stage .chat > :not(.bubble) {
    display: none;
  }
  .home .stage .chat .bubble {
    max-width: none;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--hair);
    border-radius: 18px 18px 4px 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
  }
  .home .stage .invite-art {
    flex: none;
    height: 168px;
    object-position: 50% 36%;
  }
  .home .stage .invite-body {
    padding: 16px 16px 64px 20px;
  }
  .home .stage .invite-title {
    font-size: 23px;
  }
  .home .stage .invite-host {
    margin: 4px 0 12px;
  }
  .home .stage .invite-body .choices {
    display: none;
  }
  .home .stage .replies {
    z-index: 2;
    align-self: center;
    width: calc(100% - 32px);
    margin-top: -44px;
    padding-bottom: 8px;
  }
  .home .stage .replies li:not(:first-child) {
    display: none;
  }
}

.home .chat {
  padding: 16px;
}
.home .frag-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}
.home .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6f8a3a;
  box-shadow: 0 0 0 3px rgba(111, 138, 58, 0.18);
}
.home .bubble {
  width: fit-content;
  max-width: 92%;
  margin: 0 0 12px auto;
  padding: 8px 12px;
  border-radius: 16px 16px 4px 16px;
  background: #f3e9dc;
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}
.home .agent-line {
  margin-bottom: 12px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}
.home .tool-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--paper);
}
.home .tool-chip img {
  display: block;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 1px var(--hair);
}
.home .tool-chip strong,
.home .tool-chip span span {
  display: block;
}
.home .tool-chip strong {
  font-size: 13px;
  line-height: 1.3;
}
.home .tool-chip span span {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.4;
}

.home .invite {
  overflow: hidden;
  background: var(--stationery);
}
.home .url-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-bottom: 1px solid var(--hair);
  background: var(--white);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}
.home .invite-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 40%;
}
.home .invite-body {
  padding: 20px 20px 20px 24px;
}
.home .invite-kicker {
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 13px;
}
.home .invite-title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.home .invite-host {
  margin: 8px 0 16px;
  color: var(--ink-3);
  font-size: 13px;
}
.home .invite-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
}
.home .invite-row svg {
  flex-shrink: 0;
  color: var(--tomato-deep);
}
.home .choices {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 8px;
}
.home .choices span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-xs);
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.home .choices .is-picked {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
/* A narrow invitation card keeps all three answers on one line. */
@container invite (max-width: 299.98px) {
  .home .invite-body {
    padding-inline: 20px 16px;
  }
  .home .invite-body .choices {
    gap: 4px;
  }
  .home .invite-body .choices span {
    padding-inline: 6px;
  }
}

.home .replies {
  padding: 16px 16px 4px;
}
.home .replies-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14px;
}
.home .replies-head span {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}
.home .tally-bar {
  display: flex;
  gap: 2px;
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
}
.home .tally-bar span {
  border-radius: 1px;
}
.home .t-yes {
  flex: 8;
  background: #6f8a3a;
}
.home .t-maybe {
  flex: 2;
  background: #e0ae3a;
}
.home .t-no {
  flex: 1;
  background: var(--tomato);
}
.home .t-wait {
  flex: 5;
  background: rgba(57, 35, 51, 0.1);
}
.home .tally-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 8px 0;
  color: var(--ink-3);
  font-size: 12px;
}
.home .tally-legend span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  vertical-align: middle;
}
.home .k-yes::before {
  background: #6f8a3a;
}
.home .k-maybe::before {
  background: #e0ae3a;
}
.home .k-no::before {
  background: var(--tomato);
}
.home .replies ul,
.home .app-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.home .replies li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-inline: -8px;
  padding: 8px;
  border-top: 1px solid var(--hair);
}
.home .replies li.is-new {
  border-color: transparent;
  border-radius: var(--r-sm);
  background: #fdf5e0;
}
.home .who {
  min-width: 0;
}
.home .who strong,
.home .who > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home .who strong {
  font-size: 13px;
  line-height: 1.35;
}
.home .who strong span {
  margin-left: 4px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 400;
}
.home .who > span {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}
.home .avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.home .av-butter {
  background: var(--butter);
}
.home .av-blush {
  background: var(--blush);
}
.home .av-sky {
  background: var(--sky);
}
/* Sections */
.home .section {
  padding-top: var(--section);
}
.home .running-head {
  margin-bottom: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--hair-2);
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
}
.home .section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.home .section-head p,
.home .split-head p {
  max-width: 36em;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}
.home .section-head p {
  text-wrap: balance;
}
.home .split-head p + p {
  margin-top: 16px;
}

/* The conversation */
.home .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.home .transcript {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}
.home .turn {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--hair);
}
/* The next section's rule closes the transcript; no second line. */
.home .turn:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.home .speaker {
  padding-top: 4px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
}
.home .said {
  text-indent: -0.36em;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 23px;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.home .agent p {
  max-width: 36em;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}
.home .agent p strong {
  color: var(--ink);
  font-weight: 600;
}
.home .receipts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--olive);
  font-size: 14px;
  font-weight: 500;
}
.home .receipts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home .turn-break {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-3);
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
}

/*
 * The range: four typeset invitations, one card system. Each example is a
 * subgrid over four shared rows (prompt, card, name, note), so cards and
 * captions line up across a row however the prompts wrap. --card is the card
 * width; display type scales with it, so a narrow card is a smaller print of
 * the same design rather than a cramped one.
 */
.home .looks-scroll {
  container-type: inline-size;
  border-radius: var(--r-sm);
}
.home .looks {
  --card: calc((min(100cqi, 760px) - 32px) / 2);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home .look {
  position: relative;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.home .look-ask {
  text-indent: -0.36em;
  margin-bottom: 16px;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.4;
  text-wrap: pretty;
}
.home .look h3 {
  margin-top: 20px;
  font-size: 17px;
}
.home .look-note {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}
.home .look-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  /* Percentages resolve against the card's own column, so padding scales too. */
  padding: clamp(20px, 11%, 32px) clamp(16px, 8.5%, 24px);
  overflow: hidden;
  border-radius: var(--r-xs);
  box-shadow:
    0 0 0 1px rgba(57, 35, 51, 0.06),
    0 1px 1px rgba(57, 35, 51, 0.06),
    0 4px 8px -2px rgba(57, 35, 51, 0.08),
    0 16px 32px -12px rgba(57, 35, 51, 0.18);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.home .look:hover .look-card {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(57, 35, 51, 0.06),
    0 2px 2px rgba(57, 35, 51, 0.05),
    0 8px 16px -4px rgba(57, 35, 51, 0.1),
    0 28px 48px -16px rgba(57, 35, 51, 0.24);
}
.home .look-card > span {
  position: relative;
}
.home .look-kicker {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.home .look-title {
  line-height: 1.05;
  text-wrap: balance;
}
.home .look-sub {
  max-width: 17em;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
}
.home .look-btn {
  margin-top: 20px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

/* Dinner: Caslon on ivory, centered in a double rule, outline button. */
.home .look-dinner {
  align-items: center;
  justify-content: center;
  background: #faf8f3;
  color: #30312d;
  text-align: center;
}
.home .look-dinner::before,
.home .look-dinner::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(69, 74, 62, 0.42);
  pointer-events: none;
}
.home .look-dinner::before {
  inset: 12px;
}
.home .look-dinner::after {
  inset: 16px;
  border-color: rgba(69, 74, 62, 0.2);
}
.home .look-dinner .look-kicker {
  color: #5a5e51;
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
}
.home .look-dinner .look-title {
  max-width: 7.5em;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, calc(var(--card) * 0.114), 38px);
  letter-spacing: -0.01em;
}
.home .look-dinner .look-sub {
  margin-top: 16px;
  padding-top: 16px;
  background: linear-gradient(rgba(69, 74, 62, 0.4), rgba(69, 74, 62, 0.4)) top center / 32px 1px
    no-repeat;
  color: #5a5e51;
}
.home .look-dinner .look-btn {
  border: 1px solid #454a3e;
  border-radius: 2px;
  color: #454a3e;
}

/* Birthday: big Caslon numerals on butter over bold sans, pill button. The
   numeral stays in flow above the copy, so the two can never collide. */
.home .look-birthday {
  background: var(--butter);
  color: var(--ink);
}
.home .look-card > .look-number {
  margin: 0 0 auto -0.04em;
  color: var(--tomato-deep);
  font-family: var(--font-display);
  font-size: calc(var(--card) * 0.75 - 48px);
  line-height: 0.78;
  letter-spacing: -0.04em;
}
.home .look-birthday .look-title {
  margin-top: 16px;
  font-size: clamp(19px, calc(var(--card) * 0.09), 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.home .look-birthday .look-sub {
  margin-top: 8px;
}
.home .look-birthday .look-btn {
  align-self: flex-start;
  border-radius: 999px;
  background: var(--ink);
  color: var(--butter);
}

/* Shower: italic serif on a blush gradient, centered, outline pill. */
.home .look-shower {
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fcefe9 0%, #f3d3ca 100%);
  color: var(--tomato-deeper);
  text-align: center;
}
.home .look-shower .look-kicker {
  font-weight: 600;
}
.home .look-shower .look-title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(34px, calc(var(--card) * 0.163), 54px);
  font-style: italic;
  letter-spacing: -0.02em;
}
.home .look-shower .look-sub {
  color: #6e3a31;
}
.home .look-shower .look-btn {
  border: 1px solid rgba(166, 48, 27, 0.55);
  border-radius: 999px;
}

/* Game night: tall scoreboard capitals on midnight with a fine gold grid. */
.home .look-games {
  justify-content: flex-end;
  background-color: #171b2b;
  background-image:
    linear-gradient(rgba(230, 189, 112, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 189, 112, 0.09) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 24px 24px;
  color: #faf5e9;
}
.home .look-games .look-kicker {
  color: #e6bd70;
  font-weight: 600;
}
.home .look-games .look-title {
  margin-top: 8px;
  font-family: 'Big Shoulders Display', var(--font-ui);
  font-size: clamp(34px, calc(var(--card) * 0.155), 52px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.home .look-games .look-sub {
  margin-top: 8px;
  color: rgba(250, 245, 233, 0.78);
}
.home .look-games .look-btn {
  align-self: flex-start;
  border-radius: 2px;
  background: #e6bd70;
  color: #171b2b;
}

/* The replies: the guest's phone and the host's chat, one composition. */
.home .relay {
  --relay-h: 456px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
.home .relay-visual {
  position: relative;
  display: flex;
  justify-content: center;
  height: var(--relay-h);
  padding: 32px 16px 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--hair);
}
/* The chat window rises from the panel's edge like the phone does, and its
   list fades out there instead of being sliced through a row. */
.home .relay-host .window {
  position: relative;
  height: auto;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}
.home .relay-host .window::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 104px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--white) 88%);
  pointer-events: none;
}
.home .relay-note {
  padding-top: 24px;
}
.home .relay-note h3 {
  font-size: 18px;
  line-height: 1.35;
}
.home .relay-note p {
  max-width: 34em;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}
.home .relay-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hair-3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.home .relay-note a:hover {
  text-decoration-color: currentColor;
}

.home .phone {
  flex-shrink: 0;
  width: 312px;
  height: 608px;
  padding: 9px;
  border-radius: 50px;
  background: #2a1d26;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(57, 35, 51, 0.16),
    var(--shadow-lg);
}
.home .phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 41px;
  background: #faf8f3;
}
.home .phone-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 44px;
  padding: 0 24px 0 32px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.home .phone-island {
  width: 88px;
  height: 26px;
  border-radius: 13px;
  background: #140d12;
}
.home .phone-battery {
  justify-self: end;
  position: relative;
  width: 24px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: 0.8;
}
.home .phone-battery::after {
  content: '';
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  border-radius: 1.5px;
  background: currentColor;
}
.home .phone-url {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px 6px;
  border-bottom: 1px solid var(--hair);
  background: var(--white);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.home .phone-url span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 10px;
  background: #f3eee6;
}
.home .phone-page {
  padding: 20px 16px;
  color: #30312d;
}
.home .pp-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.home .pp-meta {
  margin-top: 8px;
  color: #5d5f57;
  font-size: 13px;
}
.home .pp-ask {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.25;
}
.home .phone .choices {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.home .phone .choices span {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 10px;
}
.home .pp-label {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 500;
}
.home .pp-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-xs);
  background: var(--white);
  font-size: 14px;
  line-height: 1.45;
}
.home .pp-field svg {
  color: var(--ink-3);
}
.home .pp-send {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 12px;
  border-radius: var(--r-xs);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}

.home .window {
  flex-shrink: 0;
  width: 100%;
  max-width: 600px;
  height: max-content;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.home .window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--hair);
}
.home .window-head .frag-head {
  margin: 0;
}
.home .window-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}
.home .window-body {
  padding: 20px;
}
.home .window .agent-line {
  max-width: 36em;
  margin-bottom: 16px;
}
.home .app-card {
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--stationery);
}
.home .app-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 0;
}
.home .app-head img {
  display: block;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 1px var(--hair);
}
.home .app-head strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}
.home .app-head span span {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.4;
}
.home .app-tabs {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
}
.home .app-tabs span {
  padding: 8px 0 10px;
}
.home .app-tabs .is-on {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.home .app-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
}
.home .app-stats span {
  display: flex;
  flex-direction: column;
  padding: 8px 12px 10px;
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.3;
}
.home .app-stats strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}
.home .app-rows {
  padding: 0 16px;
}
.home .app-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px auto;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  border-top: 1px solid var(--hair);
}
.home .app-rows li.is-new {
  margin-inline: -16px;
  padding-inline: 16px;
  border-color: transparent;
  background: #fdf5e0;
}
.home .app-rows li.is-new + li {
  border-color: transparent;
}
.home .party {
  color: var(--ink-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Closing */
.home .finale {
  padding-top: var(--section);
}
.home .finale-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--plum);
  color: var(--paper);
}
.home .finale-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px 48px;
}
.home .finale h2 {
  color: var(--paper);
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
}
.home .finale-copy > p {
  max-width: 26em;
  margin: 20px 0 32px;
  color: rgba(255, 248, 236, 0.82);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}
/* Nothing is reserved for the copy confirmation, so the panel keeps even padding. */
.home .finale-actions {
  position: relative;
}
.home .finale .copy-status:not(:empty) {
  margin-top: 16px;
  color: var(--paper);
}
.home .finale .copy-status:not(:empty)::before {
  border-color: var(--butter);
}
.home .finale .cta-buttons {
  flex-direction: column;
  align-items: stretch;
}
.home .finale .btn-primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(20, 10, 18, 0.4),
    0 4px 12px -4px rgba(20, 10, 18, 0.5);
}
.home .finale .btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(20, 10, 18, 0.45),
    0 6px 16px -6px rgba(20, 10, 18, 0.6);
}
.home .finale a:focus-visible {
  outline-color: var(--butter);
}
.home .finale-art {
  position: relative;
  order: -1;
  aspect-ratio: 4 / 3;
}
.home .finale-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Phones */
@media (max-width: 599px) {
  .home .site-nav > .nav-sample,
  .home .nav-cta-more {
    display: none;
  }
  .home .landing {
    gap: 40px;
    padding-top: 40px;
  }
  .home .landing h1 {
    font-size: clamp(40px, 11vw, 48px);
    line-height: 1.02;
  }
  .home .landing .lede {
    margin-top: 20px;
  }
  .home .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .home .cta-note {
    font-size: 13px;
  }
  .home .stage {
    padding: 24px 16px;
    border-radius: var(--r-lg);
    background:
      radial-gradient(130% 80% at 50% 0%, rgba(255, 253, 248, 0.75), transparent 72%),
      repeating-linear-gradient(90deg, #f8e3b0 0 36px, #fcf1d8 36px 72px);
  }
  .home .running-head {
    margin-bottom: 32px;
  }
  .home .section-head {
    margin-bottom: 32px;
  }
  .home .section-head p,
  .home .split-head p {
    font-size: 17px;
  }
  .home .turn {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 20px;
  }
  .home .turn:last-child {
    padding-bottom: 0;
  }
  .home .speaker {
    padding: 0;
    font-size: 13px;
  }
  .home .said {
    font-size: 21px;
  }
  /* The range becomes a swipeable row with a peek of the next card. */
  .home .looks-scroll {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .home .looks-scroll::-webkit-scrollbar {
    display: none;
  }
  .home .looks {
    grid-template-columns: none;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    --card: min(264px, 72vw);
    grid-auto-columns: var(--card);
    column-gap: 16px;
    width: max-content;
    padding-bottom: 8px;
  }
  .home .look {
    scroll-snap-align: start;
  }
  .home .look-ask {
    font-size: 16px;
  }
  .home .looks-scroll:focus-visible {
    outline-offset: 4px;
  }
  .home .relay {
    gap: 40px;
  }
  .home .relay-visual {
    --relay-h: 472px;
    padding: 24px 12px 0;
  }
  .home .relay-guest .relay-visual {
    --relay-h: 568px;
  }
  .home .window-head {
    padding-inline: 16px 12px;
  }
  .home .window-body {
    padding: 16px;
  }
  .home .app-head {
    padding: 12px 12px 0;
  }
  .home .app-head strong {
    font-size: 17px;
  }
  .home .app-tabs {
    padding-inline: 12px;
  }
  /* On a phone the rows matter more than the totals. */
  .home .app-stats {
    display: none;
  }
  .home .app-rows {
    padding-inline: 12px;
  }
  .home .app-rows li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .home .app-rows li.is-new {
    margin-inline: -12px;
    padding-inline: 12px;
  }
  .home .app-rows .party {
    display: none;
  }
  .home .relay-note {
    padding-top: 20px;
  }
  .home .finale-panel {
    border-radius: var(--r-lg);
  }
  .home .finale-copy {
    padding: 40px 24px;
  }
  .home .finale-copy > p {
    margin-bottom: 28px;
  }
  .home .finale h2 {
    font-size: clamp(34px, 10vw, 40px);
  }
}

/* Tablet and up */
@media (min-width: 600px) {
  .home .stage {
    padding: 48px 40px;
  }
  .home .looks {
    column-gap: 32px;
  }
  .home .relay-visual {
    --relay-h: 520px;
    padding-top: 48px;
  }
  .home .finale-copy {
    padding: 64px 48px;
  }
  .home .finale .cta-buttons {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 600px) and (max-width: 1023.98px) {
  .home .looks {
    max-width: 760px;
  }
  .home .look:nth-child(-n + 2) {
    margin-bottom: 56px;
  }
}

/* Laptop */
@media (min-width: 1024px) {
  .home .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }
  .home .split-head {
    position: sticky;
    top: calc(var(--header) + 40px);
    align-self: start;
  }
  .home .turn {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 24px;
  }
  .home .looks {
    --card: calc((100cqi - 72px) / 4);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
  }
  /* One shared surface: devices rise from its bottom edge, captions sit below. */
  .home .relay {
    --relay-h: 600px;
    grid-template-columns: 344px minmax(0, 1fr);
    gap: 0 72px;
    padding-inline: 64px;
  }
  .home .relay::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: var(--relay-h);
    border-radius: var(--r-xl);
    background: var(--cream);
    box-shadow: inset 0 0 0 1px var(--hair);
  }
  .home .relay-visual,
  .home .relay-guest .relay-visual {
    --relay-h: 600px;
    justify-content: flex-start;
    padding: 40px 0 0;
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
    clip-path: inset(-64px -64px 0 -64px);
  }
  .home .relay-host .relay-visual {
    padding-top: 72px;
  }
  .home .window {
    max-width: none;
  }
  .home .relay-note {
    padding-top: 32px;
  }
  .home .finale-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .home .finale-copy {
    padding: 80px 64px;
  }
  .home .finale .copy-status:not(:empty) {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    right: 0;
    margin: 0;
  }
  .home .finale-art {
    order: 0;
    aspect-ratio: auto;
    min-height: 560px;
  }
  .home .finale-art img {
    object-position: 50% 40%;
  }
}

/* Laptop and up: copy and composition side by side, above the fold. Below
   1240px the stage is narrow, so it shows its stacked composition. */
@media (min-width: 1024px) {
  .home .landing {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding-top: 40px;
  }
  .home .landing h1 {
    font-size: clamp(48px, 4.3vw, 62px);
    line-height: 1.02;
  }
  .home .stage {
    padding: 32px 24px;
  }
}
@media (min-width: 1240px) {
  .home .landing {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }
  .home .stage {
    padding: 40px 24px;
  }
}
@media (min-width: 1240px) and (max-width: 1279.98px) {
  .home .landing .cta-buttons .btn-lg {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .look:hover .look-card {
    transform: none;
  }
}
