/*
 * lordaia.com, W3.2: Airbnb's host page as the model, with a touch of
 * Stripe. A white canvas, big tight centred headlines, soft tiles and
 * hairlines (Airbnb); a green gradient ribbon behind layered product cards
 * (Stripe). Colours, type, radii and spacing come from brand/tokens.css
 * (Lordaia's DESIGN.md); the gradient stops are the brand's own greens,
 * mint and aqua.
 */

@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-latin-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --attention-surface: #eff8f1;
  --attention-line: #d1e8d9;
  --daia-surface: #e5f2e7;
  --card-line: #e6eeec;
  --hairline: #e4ecea;
  --tile: #f4f8f8;
  --card-shadow: 0 1px 2px #1b302c0a, 0 8px 24px -8px #1b302c14;
  --lift-shadow: 0 2px 4px #1b302c0a, 0 24px 48px -16px #1b302c29;
  --warm-surface: #f6eee6;
  --gutter: clamp(16px, 4vw, 48px);
  --section-space: clamp(72px, 9vw, 128px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--typography-body-font-family);
  font-size: 16px;
  line-height: var(--typography-body-line-height);
  color: var(--colors-ink);
  background: var(--colors-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

img {
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: #c7e9d9;
  color: #173c30;
}

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap.narrow {
  max-width: 820px;
}

/* Type: Airbnb's heavy, tight headlines, in Manrope. */

.display {
  font-size: clamp(38px, 4.3vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.headline {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.display span {
  display: block;
}

.center {
  text-align: center;
}

.quiet {
  color: var(--colors-muted-ink);
}

/* Buttons: the app's primary and secondary, at the site's touch size. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--rounded-control);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button.primary {
  background: var(--colors-primary);
  color: var(--colors-paper);
  box-shadow:
    0 1px 2px #0d543d33,
    inset 0 1px 0 #ffffff1f;
}

.button.primary:hover {
  background: var(--colors-primary-deep);
}

.button.primary:active {
  transform: translateY(1px);
}

.button.secondary {
  background: var(--colors-paper);
  border-color: var(--colors-line);
  color: var(--colors-ink);
}

.button.secondary:hover {
  background: #f1f7f4;
}

.button.large {
  min-height: 54px;
  padding: 14px 28px;
  font-size: 16px;
}

/* Top bar: white, one hairline, the one action on the right. */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffffeb;
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: saturate(1.4) blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--colors-ink);
  text-decoration: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--rounded-control);
  font-weight: 650;
  color: var(--colors-ink);
  text-decoration: none;
}

.text-link:hover {
  background: var(--tile);
}

/* Hero: the offer on the left, the demo on the right (Airbnb's split). */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 96px);
  overflow: clip;
}

/* Stripe's touch: a ribbon of the brand's greens sweeping in from the top
   right, behind the demo. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -48%;
  right: -26%;
  width: 92%;
  height: 120%;
  background: linear-gradient(
    104deg,
    #ffffff00 0%,
    #d9f1f5 18%,
    #9fdcc5 34%,
    #3fae86 50%,
    #176b50 62%,
    #5cbf8f 74%,
    #cdebd6 88%,
    #ffffff00 100%
  );
  border-radius: 50% 50% 46% 54% / 40% 44% 56% 60%;
  filter: blur(16px);
  opacity: 0.7;
  transform: rotate(-28deg) skewX(-16deg);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy .display {
  font-size: clamp(38px, 4vw, 56px);
}

.lead {
  max-width: 460px;
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--colors-muted-ink);
}

.hero-copy .button {
  margin-top: 32px;
}

/* The demo: the brand's greens as a Stripe ribbon, product cards on top. */

.demo {
  position: relative;
  isolation: isolate;
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid #ffffffb3;
  border-radius: 28px;
  background: #ffffff8c;
  box-shadow:
    0 1px 0 #ffffff inset,
    0 30px 60px -30px #0d543d40;
  backdrop-filter: blur(18px) saturate(1.2);
}

.demo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.demo-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid #ffffff;
  border-radius: var(--rounded-pill);
  background: #ffffffcc;
  color: var(--colors-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px #1b302c0d;
  backdrop-filter: blur(8px);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.chip:hover {
  background: var(--colors-paper);
  border-color: var(--colors-line);
}

.chip[aria-pressed="true"] {
  background: var(--colors-ink);
  border-color: var(--colors-ink);
  color: var(--colors-paper);
}

.chip:active {
  transform: scale(0.97);
}

/* Without JavaScript the chips would do nothing: only the result shows. */
html:not(.js) .chips,
html:not(.js) .demo-label {
  display: none;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.1fr);
  grid-template-areas:
    "facts chat"
    "owner chat";
  grid-template-rows: auto 1fr;
  gap: 14px;
  margin-top: 18px;
  align-items: start;
}

.facts {
  grid-area: facts;
  padding: 16px;
}

.chat {
  grid-area: chat;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--lift-shadow);
}

.owner-card {
  grid-area: owner;
  padding: 12px 14px;
}

.card {
  border: 1px solid var(--card-line);
  border-radius: var(--rounded-card);
  background: var(--colors-paper);
  box-shadow: var(--card-shadow);
}

.facts-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facts-head small {
  display: block;
  color: var(--colors-muted-ink);
  font-size: 13px;
  font-weight: 600;
}

.facts-title {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.facts-list {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.fact {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 8px 10px 8px 12px;
  border-radius: 10px;
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.fact::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: transparent;
  transition: background-color 220ms ease;
}

.fact dt {
  color: var(--colors-muted-ink);
  font-size: 13px;
  font-weight: 600;
}

.fact dd {
  font-size: 15px;
  font-weight: 650;
}

.unknown-tag {
  display: inline-block;
  padding: 1px 9px;
  border-radius: var(--rounded-pill);
  background: var(--warm-surface);
  color: var(--colors-urgency);
  font-size: 13px;
  font-weight: 700;
}

/* Daia reads the data: rows light in turn, then the one she used stays. */
.fact.is-scanning {
  background: #f2f8f6;
}

.fact.is-used {
  background: var(--daia-surface);
}

.fact.is-used::before {
  background: var(--colors-primary);
}

.fact.is-blank.is-used {
  background: var(--warm-surface);
}

.fact.is-blank.is-used::before {
  background: var(--colors-urgency);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}

.chat-name {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid #e2eeea;
  border-radius: var(--rounded-pill);
  background: #f5faf8;
  color: #365a4b;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27a36e;
  box-shadow: 0 0 0 3px #27a36e24;
}

.chat .thread {
  flex: 1;
  margin: 0;
  padding: 16px;
  align-content: start;
  background: var(--colors-canvas);
}

/* With JavaScript one question plays at a time; the thread keeps the
   height of the longest so nothing below it jumps. */
.js .chat .thread {
  min-height: 296px;
}

.js [data-q],
.js [data-typing] {
  display: none;
}

.js [data-q].is-shown {
  display: block;
}

/* Only a visitor's choice animates; the first state is simply there. */
.is-live [data-q].is-shown {
  animation: rise 320ms var(--ease-out) both;
}

.js [data-typing].is-shown {
  display: flex;
}

html:not(.js) [data-typing] {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.typing {
  justify-self: end;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border-bottom-right-radius: 6px;
  background: var(--daia-surface);
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6a9b85;
  animation: blink 900ms ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 150ms;
}

.typing span:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--colors-primary);
  font-size: 13px;
  font-weight: 700;
}

.source::before {
  content: "";
  width: 12px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-2px) rotate(-45deg);
}

/* The owner's side: nothing, until a blank fact needs an answer. */

.owner-idle,
.owner-ask {
  display: flex;
  align-items: center;
  gap: 10px;
}

.owner-idle {
  color: var(--colors-muted-ink);
  font-size: 15px;
  font-weight: 600;
}

.owner-ask {
  margin: -4px -6px;
  padding: 4px 6px;
  border-radius: 12px;
  text-decoration: none;
}

.owner-ask:hover {
  background: var(--tile);
}

.owner-ask strong {
  display: block;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.owner-ask small {
  display: block;
  color: var(--colors-muted-ink);
  font-size: 13px;
}

.owner-card.is-asking {
  border-color: #ead8c6;
  box-shadow:
    0 0 0 4px #7051321a,
    var(--card-shadow);
}

html:not(.js) .owner-idle,
.js .owner-card:not(.is-asking) .owner-ask,
.js .owner-card.is-asking .owner-idle {
  display: none;
}

.is-live .owner-card.is-asking .owner-ask {
  animation: rise 320ms var(--ease-out) both;
}

.demo-caption {
  position: relative;
  margin-top: 16px;
  color: var(--colors-muted-ink);
  font-size: 14px;
  font-weight: 500;
}

/* Shared pieces from the app: tags, threads, icon tiles. */

.sample-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--colors-line);
  border-radius: var(--rounded-pill);
  background: var(--colors-paper);
  color: var(--colors-muted-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.thread-card {
  padding: clamp(16px, 2vw, 22px);
}

.thread {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.msg {
  max-width: 86%;
  padding: 9px 13px;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: var(--colors-paper);
}

.msg small {
  display: block;
  margin-bottom: 1px;
  color: var(--colors-muted-ink);
  font-size: 13px;
  font-weight: 650;
}

.msg p {
  line-height: 1.45;
}

.msg.renter {
  justify-self: start;
  border-bottom-left-radius: 6px;
}

.msg.daia,
.msg.owner {
  justify-self: end;
  border-bottom-right-radius: 6px;
}

.msg.daia {
  border-color: #d3e7d8;
  background: var(--daia-surface);
}

.msg.owner {
  border-color: #c9e6eb;
  background: var(--colors-soft-blue);
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #e5f4ea;
  color: #1b7957;
}

.icon-tile.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.icon-tile.large {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--tile);
  color: var(--colors-ink);
}

.icon-tile.warm {
  background: var(--warm-surface);
  color: var(--colors-urgency);
}

/* Sections: whitespace, not borders, as Airbnb does. */

.band {
  padding: var(--section-space) 0 0;
}

.band.tight {
  padding-top: clamp(56px, 7vw, 96px);
}

/* Before and after: two soft tiles, the caption below each. */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.tile {
  display: flex;
  flex-direction: column;
}

.tile-panel {
  display: grid;
  flex: 1;
  place-items: center;
  padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 48px);
  border-radius: 24px;
  background: var(--tile);
}

.tile-panel.mint {
  background: linear-gradient(160deg, #eef7f2 0%, #e2f2f3 100%);
}

.tile-panel .card {
  width: 100%;
  max-width: 420px;
}

.tile figcaption {
  padding: 20px 4px 0;
  text-align: center;
}

.tile-title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tile figcaption p {
  max-width: 400px;
  margin: 8px auto 0;
  color: var(--colors-muted-ink);
}

/* Three columns, each under a soft icon tile. */

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  max-width: 1000px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.columns li {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.columns p {
  max-width: 280px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* What she never does: hairline rows, a quiet mark on the right. */

.never {
  max-width: 620px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  padding: 0;
  list-style: none;
}

.never li {
  position: relative;
  padding: 22px 48px 22px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 18px;
  font-weight: 500;
}

.never li::before,
.never li::after {
  content: "";
  position: absolute;
  top: 50%;
}

.never li::before {
  right: 4px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 2px solid var(--colors-muted-ink);
  border-radius: 50%;
}

.never li::after {
  right: 13px;
  width: 2px;
  height: 20px;
  margin-top: -10px;
  background: var(--colors-muted-ink);
  transform: rotate(45deg);
}

/* The decision: Stripe's panel, the question card lifted over the thread. */

.section-head {
  max-width: 720px;
  margin: 0 auto;
}

.section-head p {
  margin-top: 16px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--colors-muted-ink);
}

.showcase {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 5vw, 72px);
  border-radius: 28px;
  background: linear-gradient(200deg, #f4fafb 0%, #eef7f2 100%);
  overflow: hidden;
}

.showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -40%;
  left: -20%;
  width: 90%;
  height: 80%;
  border-radius: 50%;
  background: linear-gradient(
    80deg,
    #176b50 0%,
    #3fae86 30%,
    #9fdcc5 60%,
    #d9f1f5 100%
  );
  filter: blur(48px);
  opacity: 0.38;
  transform: rotate(12deg);
  pointer-events: none;
}

.reply-thread {
  align-self: center;
}

.decision-card {
  padding: var(--components-card-padding);
  box-shadow: var(--lift-shadow);
}

.decision-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.decision-head h3 {
  font-size: 19px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.decision-head small {
  display: block;
  color: var(--colors-muted-ink);
  font-size: 14px;
}

.decision-card blockquote {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--rounded-control);
  background: var(--colors-canvas);
  font-size: 17px;
  line-height: 1.45;
}

.held {
  margin-top: 10px;
  color: var(--colors-muted-ink);
  font-size: 15px;
}

.suggestions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.suggestions .button {
  position: relative;
  justify-content: flex-start;
  padding-right: 44px;
  text-align: left;
  font-weight: 500;
}

.suggestions .button[aria-pressed="true"] {
  border-color: var(--colors-primary);
  box-shadow: inset 0 0 0 1px var(--colors-primary);
  background: var(--daia-surface);
}

/* The chosen suggestion carries a tick, so it never reads as mere focus. */
.suggestions .button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 6px;
  height: 11px;
  margin-top: -7px;
  border: solid var(--colors-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.answer {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 650;
}

.answer textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid #dbe7e4;
  border-radius: 12px;
  background: var(--colors-paper);
  color: var(--colors-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  resize: vertical;
}

.answer textarea:focus-visible {
  outline: none;
  border-color: var(--colors-primary);
  box-shadow: 0 0 0 1px var(--colors-primary);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
}

.sent {
  color: var(--colors-primary);
  font-weight: 650;
}

.helper {
  display: block;
  margin-top: 16px;
  color: var(--colors-ink);
  font-size: 15px;
  line-height: 1.5;
}

/* What you do: a heading beside a ticked hairline list. */

.yours {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 8px clamp(32px, 6vw, 96px);
  max-width: 1000px;
  margin: clamp(48px, 6vw, 80px) auto 0;
}

.yours h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.ticks {
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 16px 0 16px 36px;
  border-bottom: 1px solid var(--hairline);
  font-size: 17px;
}

.ticks li:first-child {
  padding-top: 4px;
}

.ticks li::before,
.ticks li::after {
  content: "";
  position: absolute;
}

.ticks li::before {
  top: 18px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #d9efe1;
}

.ticks li::after {
  top: 22px;
  left: 8px;
  width: 6px;
  height: 11px;
  border: solid var(--colors-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ticks li:first-child::before {
  top: 6px;
}

.ticks li:first-child::after {
  top: 10px;
}

.aside {
  grid-column: 2;
  margin-top: 12px;
  color: var(--colors-muted-ink);
}

/* Questions: Airbnb's accordion, native details. */

.faq {
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  position: relative;
  display: block;
  padding: 24px 48px 24px 0;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 650;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border: solid var(--colors-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.faq details[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.faq summary:hover {
  color: var(--colors-primary-deep);
}

.faq details p {
  max-width: 640px;
  padding: 0 0 24px;
  color: var(--colors-muted-ink);
  font-size: 17px;
  line-height: 1.6;
}

/* Close: a soft panel with the ribbon again, centred. */

.closing {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 80px);
  border-radius: 28px;
  background: linear-gradient(160deg, #f4fafb 0%, #eef7f2 100%);
  text-align: center;
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -50%;
  left: 10%;
  width: 80%;
  height: 90%;
  border-radius: 50%;
  background: linear-gradient(
    100deg,
    #d9f1f5 0%,
    #9fdcc5 30%,
    #3fae86 55%,
    #9fd6a8 80%,
    #e5f1dc 100%
  );
  filter: blur(56px);
  opacity: 0.45;
  pointer-events: none;
}

.closing .display {
  font-size: clamp(36px, 4.6vw, 64px);
}

.closing p {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--colors-muted-ink);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.mail,
.footer-inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-weight: 650;
  color: var(--colors-ink);
  text-underline-offset: 4px;
}

.footer {
  margin-top: clamp(48px, 6vw, 80px);
  padding: 24px 0 40px;
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  color: var(--colors-muted-ink);
  font-size: 14px;
}

.footer-inner p {
  margin-left: auto;
}

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--colors-ink);
}

/* With JavaScript: the sample answer waits for the visitor, and each piece
   below the first screen rises in once as it arrives, a beat after the one
   before it (site.js sets --reveal-delay). The transition lives only on
   .is-arriving, so it never touches a piece's own hover or open states. */

.js .is-unsent [data-after-send] {
  display: none;
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(24px);
}

/* Messages settle in like they were just sent; the closing panel grows
   into place. */
.msg[data-reveal].is-pending {
  transform: translateY(10px) scale(0.97);
}

.closing[data-reveal].is-pending {
  transform: translateY(16px) scale(0.98);
}

[data-reveal].is-arriving {
  transition:
    opacity 600ms ease var(--reveal-delay, 0ms),
    transform 800ms var(--ease-out) var(--reveal-delay, 0ms);
}

/* A printout shows every piece, scrolled to or not. */
@media print {
  [data-reveal].is-pending {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .button,
  .chip,
  .fact,
  .fact::before,
  .faq summary::after {
    transition: none;
  }
  .is-live [data-q].is-shown,
  .is-live .owner-card.is-asking .owner-ask {
    animation: none;
  }
  .typing span {
    animation: none;
  }
}

/* Tablet */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    max-width: 720px;
  }
  .lead {
    max-width: 600px;
  }
  /* On one column the ribbon runs behind the demo, not the words. */
  .hero::before {
    top: auto;
    bottom: -4%;
    right: -40%;
    width: 140%;
    height: 62%;
    opacity: 0.55;
  }
}

@media (max-width: 860px) {
  .pair,
  .showcase,
  .yours {
    grid-template-columns: minmax(0, 1fr);
  }
  .columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .aside {
    grid-column: 1;
  }
  /* On one column the card comes straight after the claim, and Lucía's
     thread (where the sent answer lands) straight after the card. */
  .decision-card {
    order: 1;
  }
  .reply-thread {
    order: 2;
  }
}

/* Phone */

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 64px;
  }
  .brand {
    gap: 8px;
    font-size: 19px;
  }
  .brand img {
    width: 24px;
    height: 24px;
  }
  .topbar-actions {
    gap: 4px;
  }
  .topbar-actions .button {
    padding: 8px 12px;
    font-size: 14px;
  }
  .hero {
    padding-bottom: 8px;
  }
  .hero-copy .button,
  .closing-actions .button {
    width: 100%;
  }
  .demo {
    margin: 0 calc(var(--gutter) * -0.5);
    padding: 16px 14px;
    border-radius: 22px;
  }
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "facts"
      "chat"
      "owner";
    grid-template-rows: auto;
  }
  .js .chat .thread {
    min-height: 236px;
  }
  .facts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .msg {
    max-width: 92%;
  }
  .chip {
    font-size: 14px;
    padding: 7px 13px;
  }
  .tile-panel {
    padding: 20px 14px;
  }
  .showcase {
    margin-left: calc(var(--gutter) * -0.5);
    margin-right: calc(var(--gutter) * -0.5);
    padding: 16px 12px;
    border-radius: 22px;
  }
  .decision-card {
    padding: 20px 18px;
  }
  .decision-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .decision-head .sample-tag {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
  }
  .never li,
  .ticks li {
    font-size: 16px;
  }
  .closing {
    padding: 40px 20px;
  }
  .footer-inner p {
    margin-left: 0;
  }
}
