/* The marketing page only. Loaded after base.css, which carries the tokens, the
   face, the nav and the closing band this page shares with the documents. */
/* ------------------------------------------------------------------ hero -- */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
}

.hero-sub {
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  color: var(--ink-soft);
  max-width: 27em;
  margin-top: 22px;
}
.hero-cta { margin-top: 32px; }

/* The phone sits on a teal panel that bleeds toward the page edge. This is where
   the accent earns its keep: the brand colour holds real surface, not a button. */
.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 8% -50vw 10% 14%;
  background: var(--hero-panel);
  border-radius: var(--radius-panel) 0 0 var(--radius-panel);
  z-index: var(--z-base);
}
.phone {
  position: relative;
  width: min(310px, 78vw);
  border-radius: var(--radius-screen);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.phone img {
  border-radius: inherit;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------- the live chat -- */
/* A rebuild of the app's own chat screen, not an impression of one: the colours
   below were sampled out of the shipping screenshot and turned out to be the
   same tokens this page already uses, because the app and the site share them. */
.phone--live {
  aspect-ratio: 640 / 1120;
  overflow: hidden;
  background: var(--ground);
}
.chat {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
  border-radius: inherit;
  overflow: hidden;
}

.chat-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 10px;
  background: var(--surface);
  font-weight: 600;
  font-size: 13px;
}
.chat-back, .chat-more {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--ground);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1;
}
.chat-name { flex: 1; text-align: center; }

.chat-who {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.chat-av {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted-on-2);
  font-size: 8px; font-weight: 600; letter-spacing: .02em;
}
.chat-who b {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 24;
  font-size: 12.5px;
  line-height: 1.2;
}
.chat-who i { font-style: normal; font-size: 9px; color: var(--muted); }

.chat-log {
  flex: 1;
  overflow: hidden;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
}
.chat-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  margin-top: auto;
  /* The log is nudged with a transform rather than scrollTop so the catch-up
     stays on the compositor and cannot fight the reader's own page scroll. */
  transition: transform .5s var(--ease-out);
  will-change: transform;
}

.msg { display: flex; align-items: flex-start; gap: 6px; }
.msg p {
  margin: 0;
  padding: 7px 10px;
  border-radius: 12px;
  max-width: 84%;
}
.msg--in p { background: var(--surface-2); color: var(--ink); }
.msg--out { justify-content: flex-end; align-items: center; }
.msg--out p { background: var(--accent-soft); color: var(--ink); }
.msg-av {
  width: 17px; height: 17px; flex: none; margin-top: 3px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted-on-2);
  font-size: 7px; font-weight: 600;
}
.msg-you { font-size: 8px; color: var(--muted-on-2); flex: none; }

/* Three dots, looping only while the reply is being composed. The loop is the
   meaning here: it stops the moment the answer lands. */
.msg--typing p { display: flex; gap: 3px; padding: 9px 10px; }
.msg--typing i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted-on-2);
  animation: blink 1.25s var(--ease-out) infinite;
}
.msg--typing i:nth-child(2) { animation-delay: .18s; }
.msg--typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .28; } 30% { opacity: 1; } }

.chat-input {
  flex: none;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px 10px;
  background: var(--ground);
}
.chat-input > span:first-child {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}
.chat-send {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* Messages are in the markup and visible; the script only hides the ones it is
   about to play, and only after confirming it may animate at all. */
html[data-chat] .msg[data-pending] { display: none; }
html[data-chat] .msg[data-enter] { opacity: 0; transform: translateY(10px); }
html[data-chat] .msg {
  transition: opacity .42s var(--ease-out), transform .42s var(--ease-out);
}
html[data-chat] .replay[data-enter] { opacity: 0; }

.replay[hidden] { display: none; }
.replay {
  display: block;
  position: relative;
  z-index: var(--z-lift);
  margin: 16px auto 0;
  padding: 7px 15px;
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out),
              opacity .4s var(--ease-out), transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .replay:hover { color: var(--accent); border-color: var(--accent); }
}
.replay:active { transform: scale(.97); }

/* ------------------------------------------------------------------ lede -- */
/* One idea, full width, no image. Deliberately the opposite shape to the hero. */
.lede {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 5.5vw, 76px);
}
.lede p {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 72;
  font-weight: 400;
  font-size: clamp(1.375rem, 2.8vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 24em;
  letter-spacing: -.015em;
}
.lede em { color: var(--accent); font-style: normal; }

/* --------------------------------------------------------------- screens -- */
.screens-grid {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  margin-top: clamp(32px, 5vw, 56px);
  align-items: start;
}
/* Three screens, staggered rather than lined up: equal tiles in a row is the card
   grid this page avoids everywhere else. The middle one leads because it is the
   one worth reading. */
@media (min-width: 900px) {
  .screens-grid {
    grid-template-columns: 260px 320px 260px;
    justify-content: center;
    gap: clamp(28px, 3.4vw, 52px);
  }
  .screens-grid figure:nth-child(1) { margin-top: clamp(40px, 5vw, 72px); }
  .screens-grid figure:nth-child(3) { margin-top: clamp(20px, 2.6vw, 40px); }
}
@media (min-width: 620px) and (max-width: 899px) {
  .screens-grid { grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; }
  .screens-grid figure:nth-child(2) { margin-top: clamp(24px, 4vw, 48px); }
}
.screens-grid figure { margin: 0; }

.shot {
  border-radius: var(--radius-screen);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
/* Cropped here rather than in the files so the sources stay whole: the describe
   screen carries a keyboard below this band, and the conversation carries several
   more paragraphs. Both are worth keeping and neither belongs in the picture. */
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 880;
  object-fit: cover;
  object-position: top;
}
@media (hover: hover) and (pointer: fine) {
  .shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
}
figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: .9375rem;
  max-width: 30em;
}

/* ------------------------------------------------------------------ make -- */
.steps {
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(24px, 3vw, 32px);
  counter-reset: none;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
}
.step { display: grid; gap: 8px; align-content: start; }
/* A rule above each step, not a box around it. Four boxes would be four cards. */
.step { border-top: 2px solid var(--accent); padding-top: 16px; }
.step h3 { color: var(--ink); }
.step p { font-size: .9375rem; color: var(--ink-soft); }

/* ----------------------------------------------------------------- price -- */
.price-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(32px, 5vw, 52px);
  align-items: start;
}
/* The credits column is narrower than the free one: with the price swapped out
   of the resting state, an equal column left the pack rows with a long empty
   right-hand side. Narrowing it closes that gap without shrinking the type. */
@media (min-width: 820px) { .price-grid { grid-template-columns: 1.18fr 0.82fr; } }
.price-col h3 { margin-bottom: 10px; }
.price-col p { max-width: 28em; }
.price-note { margin-top: 14px; color: var(--muted); font-size: .9375rem; }

.packs {
  margin: 22px 0 0;
  max-width: 360px;
  padding: 2px 20px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
/* Divider between rows only, never above the first or below the last. */
.packs li + li { border-top: 1px solid var(--line); }

.pack {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 12px;
  margin-inline: -12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out);
}
.pack-qty, .pack-amt {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 72;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.pack-qty { color: var(--accent); }
.pack-amt { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Unenhanced, the row is simply both facts side by side. The swap below only
   applies once the script is there to drive the tap, because a touch reader with
   no script has no hover and no toggle, and would be left with no price at all. */
html[data-packs] .pack {
  display: grid;
  grid-template-columns: 1fr;
  align-items: baseline;
}
/* Stacked in one cell so the two faces occupy the same place and the row is as
   wide as the longer of them: the swap cannot shift anything around it. */
html[data-packs] .pack > span { grid-area: 1 / 1; }
html[data-packs] .pack-qty,
html[data-packs] .pack-amt {
  /* Transitions rather than keyframes: sweeping a cursor down the three rows
     retargets mid-flight instead of restarting each one from the top. */
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
html[data-packs] .pack-amt { opacity: 0; transform: translateY(7px); }

html[data-packs] .pack[data-price-shown] { background: var(--accent-soft); }
html[data-packs] .pack[data-price-shown] .pack-qty { opacity: 0; transform: translateY(-7px); }
html[data-packs] .pack[data-price-shown] .pack-amt { opacity: 1; transform: none; }

/* Hover is the desktop half of the same idea; the tap toggle is the other half.
   Focus is included so the keyboard reaches the price without clicking. */
@media (hover: hover) and (pointer: fine) {
  html[data-packs] .pack:hover,
  html[data-packs] .pack:focus-visible { background: var(--accent-soft); }
  html[data-packs] .pack:hover .pack-qty,
  html[data-packs] .pack:focus-visible .pack-qty { opacity: 0; transform: translateY(-7px); }
  html[data-packs] .pack:hover .pack-amt,
  html[data-packs] .pack:focus-visible .pack-amt { opacity: 1; transform: none; }
}
.pack:active { transform: scale(.99); }

@media (prefers-reduced-motion: reduce) {
  .pack, html[data-packs] .pack-qty, html[data-packs] .pack-amt { transition: none; }
  html[data-packs] .pack-amt { transform: none; }
  html[data-packs] .pack[data-price-shown] .pack-qty { transform: none; }
  .pack:active { transform: none; }
}

/* -------------------------------------------------------------- reviewed -- */
.reviewed-band {
  background: var(--accent-soft);
  border-radius: var(--radius-panel);
  padding: clamp(32px, 5vw, 64px);
}
.reviewed-band h2 { max-width: 16em; }
.reviewed-band p { margin-top: 16px; max-width: 34em; }

/* ---------------------------------------------------------------- motion -- */
/* The hero cascade sets reading order on arrival. The scroll reveal lives in
   base.css; nothing here loops or parallaxes. */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise .68s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
}
@keyframes rise {
  /* Never from scale(0) or opacity alone: a short lift reads as arriving,
     not as materialising. */
  from { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  .shot { transition: none; }
}

/* ------------------------------------------------------------- responsive -- */
@media (max-width: 899px) {
  .hero-art::before { inset: 14% -8% 4% -8%; }
}
@media (max-width: 719px) {
  .packs { padding-inline: 16px; }
}
