@font-face {
  font-family: Chillax;
  src: url("/landing/assets/chillax.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/landing/assets/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f6;
  --surface: #fffefa;
  --ink: #19191b;
  --muted: #62616b;
  --line: #dedbe5;
  --lavender: #b5a1f3;
  --lavender-soft: #f3effa;
  --accent: #6350a9;
  --accent-dark: #503c90;
  --green: #35644b;
  --red: #923b35;
  --yellow-soft: #fff3ce;
  --heading: Chillax, "DM Sans", sans-serif;
  --body: "DM Sans", sans-serif;
  --side: clamp(16px, 3vw, 32px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px / 1.55 var(--body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: clamp(20px, 3vw, 32px); }

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

.shell {
  width: min(1136px, calc(100% - var(--side) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 14px;
  left: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.site-header {
  width: min(1200px, calc(100% - var(--side) * 2));
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  min-height: 89px;
  width: min(100%, 1136px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 29px);
}

.brand { display: inline-flex; flex: 0 0 auto; width: fit-content; min-height: 44px; align-items: center; }
.brand img { width: 107px; height: auto; }
.site-header .brand { margin-right: auto; }

.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.1vw, 28px);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}

.desktop-nav a, .sign-in, .footer-main nav a, .footer-legal a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  transition: color 150ms ease;
}
.desktop-nav a:hover, .sign-in:hover { color: var(--accent-dark); }
.header-actions .sign-in[hidden] { display: none; }
.mobile-menu { display: none; }

.button {
  display: inline-flex;
  max-width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 580;
  line-height: 1.4;
  text-align: center;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.arrow {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  transform: rotate(-45deg);
}

.arrow::before, .arrow::after { position: absolute; content: ""; }
.arrow::before {
  top: 6px;
  left: 1px;
  width: 11px;
  border-top: 1.5px solid currentColor;
}
.arrow::after {
  top: 3.75px;
  right: 1px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.arrow--down { transform: rotate(90deg); }

.button--primary { background: var(--ink); color: var(--paper); }
.button--primary:hover { background: #36313f; }
.button--plain { border-color: #bdb8c6; }
.button--plain:hover { border-color: var(--accent); background: var(--lavender-soft); }
.header-scan { min-height: 44px; padding: 9px 16px; gap: 12px; font-size: 14px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(28px, 4.3vw, 62px);
  padding-block: clamp(48px, 5.7vw, 78px) clamp(32px, 4.5vw, 62px);
}

.hero-copy h1 {
  font: 625 clamp(43px, 4.95vw, 71px) / 1.025 var(--heading);
  letter-spacing: -0.043em;
}

.hero-copy h1 > span { display: block; text-wrap: pretty; }
.hero-copy h1 .hero-accent { margin-top: 6px; color: var(--accent-dark); }
.hero-phrase { white-space: nowrap; }

.hero-copy > p {
  max-width: 45ch;
  margin-top: 23px;
  color: #4e4957;
  font-size: clamp(18px, 1.48vw, 20px);
  line-height: 1.52;
  text-wrap: pretty;
}

.hero-copy > p strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 680;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 29px;
}

.hero-actions .button--primary { min-height: 54px; padding-inline: 22px; font-size: 16px; font-weight: 670; }

.hero-actions .button--plain {
  gap: 10px;
  padding-inline: 4px;
  border-color: transparent;
  color: var(--accent-dark);
}

.hero-actions .button--plain:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-example {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1d9ed;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 52px -38px #40326370, 0 1px 1px #2920340d;
}

.hero-example figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 650;
}

.report-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 6px;
  background: var(--ink) url("/landing/assets/knwn-icon.svg") center / cover no-repeat;
}

.hero-example figcaption {
  min-height: 53px;
  padding: 12px 17px;
  font-size: 14px;
}

.example-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 1.75;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: var(--lavender);
}

.example-prompt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: min(76%, 320px);
  padding: 9px 12px;
  border: 1px solid #fffdfb;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 8px 22px #3928612e;
}

.prompt-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 7px;
  background: var(--lavender-soft);
}

.example-caption {
  display: block;
  margin-bottom: 3px;
  color: #55515e;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.03em;
}

.example-prompt p { font-size: 14px; font-weight: 670; line-height: 1.3; }

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 52%;
}

.example-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  gap: 1px;
  border-top: 1px solid #e1d9ed;
  background: #e1d9ed;
}

.example-results p {
  display: flex;
  min-width: 0;
  min-height: 60px;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  background: #f3f7f2;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.3;
}

.example-results p + p {
  color: #702d29;
  background: var(--yellow-soft);
}

.result-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 700 11px / 1 Arial, sans-serif;
}

.result-icon--success { color: var(--green); }
.result-icon--warning { color: var(--red); }

.brand-proof {
  padding-block: 22px 25px;
  border-block: 1px solid var(--line);
  text-align: center;
}

.brand-proof p { color: var(--muted); font-size: 15px; font-weight: 550; text-wrap: balance; }
.brand-proof strong { color: var(--ink); font-weight: 730; }

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.075em;
}

.brand-logos {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: center;
  gap: 16px clamp(10px, 1.8vw, 24px);
  padding: 0;
  margin: 17px auto 0;
  list-style: none;
}

.brand-logos img {
  width: 100%;
  height: 36px;
  object-fit: contain;
  /* One tone for every logo: grayscale alone leaves black marks black and pale marks faint. */
  filter: grayscale(1) brightness(0);
  opacity: 0.55;
}

.offers { padding-block: clamp(64px, 8vw, 112px) clamp(65px, 8vw, 106px); }

.section-heading h2,
.research h2 {
  font: 550 clamp(35px, 4vw, 51px) / 1.08 var(--heading);
  letter-spacing: -0.035em;
}

/* One chapter per offer, stacked: Visibility, then Journey Mapping under Usability. */
.offer-layout {
  display: grid;
  gap: clamp(52px, 6.5vw, 92px);
  margin-top: 37px;
}

.offer-group { display: grid; min-width: 0; gap: clamp(16px, 2vw, 24px); }

.group-heading {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 3px 12px;
  flex-wrap: wrap;
  padding-top: 17px;
}

/* The rule is a pseudo-element so it can draw in when the group scrolls into view. */
.group-heading::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--ink);
  content: "";
  transform-origin: left center;
}

.group-heading:dir(rtl)::before { transform-origin: right center; }
.group-heading h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 680; }
.group-heading p { color: var(--muted); font-size: 15px; }
.category-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--accent);
}

.category-dot--visibility { background: var(--accent); }

.offer {
  --offer-tint: var(--lavender-soft);
  --offer-edge: #e5deef;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-areas: "content preview";
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-width: 0;
  min-height: clamp(380px, 34vw, 440px);
  padding: clamp(28px, 4.6vw, 64px);
  border: 1px solid var(--offer-edge);
  border-radius: 24px;
  background: var(--offer-tint);
}

.offer + .offer { margin-top: clamp(4px, 1vw, 12px); }

.offer--journey { --offer-tint: #f9f0d8; --offer-edge: #e8dcbc; }

.offer-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.offer-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 14px;
}

.offer-label strong { font-weight: 700; }
.offer-label > span { color: var(--muted); }

.offer-label > .offer-index {
  min-width: 34px;
  padding: 1px 8px;
  border: 1px solid color-mix(in srgb, var(--accent-dark) 30%, transparent);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.offer h4 {
  max-width: 15ch;
  margin-bottom: 16px;
  font: 560 clamp(30px, 3.7vw, 48px) / 1.06 var(--heading);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.offer-content p {
  max-width: 40ch;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}

.offer-link {
  display: inline-flex;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 690;
}

.offer-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.offer-preview {
  grid-area: preview;
  display: grid;
  place-items: center;
}

.mock-window {
  width: min(100%, 250px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 8px 22px -15px #29252d5c;
  padding: 0 10px 5px;
}

.offer .mock-window { zoom: 1.55; box-shadow: 0 14px 34px -22px #29252d66; }

.mock-title {
  display: flex;
  min-height: 33px;
  align-items: center;
  gap: 7px;
  margin-inline: -10px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}

.mock-prompt {
  padding: 4px 6px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--lavender-soft);
  color: #3b2f63;
  font-size: 10px;
  font-weight: 600;
}

.mock-detail {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: #55515e;
  font-size: 10px;
}

.mock-detail + .mock-detail { border-top: 1px solid #eeeaf0; }
.mock-detail strong { color: var(--ink); font-weight: 700; }

.mock-value {
  position: relative;
  display: grid;
  justify-items: end;
}

.mock-caption {
  display: grid;
  align-items: center;
  margin: 3px -10px -5px;
  padding: 6px 10px;
  border-top: 1px solid var(--line);
  background: #f8f6f3;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 680;
  line-height: 1.4;
}

.mock-caption > span { grid-area: 1 / 1; }
.offer-preview--journey .mock-caption > span { color: #702d29; }

.mock-pill {
  border-radius: 999px;
  padding: 1px 7px;
  background: #e9f2ec;
  color: var(--green);
  font-size: 9px;
  font-weight: 720;
}

.mini-browser, .mini-document {
  display: block;
  width: 13px;
  height: 11px;
  border: 1px solid var(--accent-dark);
  border-radius: 2px;
}

.mini-browser::after {
  display: block;
  margin-top: 2px;
  border-bottom: 1px solid var(--accent-dark);
  content: "";
}

.mini-document { width: 10px; height: 13px; }
.mini-document::after {
  display: block;
  height: 4px;
  margin: 2px 1px;
  border-block: 1px solid var(--accent-dark);
  content: "";
}

.mini-dot { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 690; }
.mini-dot::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.mini-dot--done { color: var(--green); }
.mini-dot--blocked { color: var(--red); }

.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow .category-dot { width: 7px; height: 7px; flex-basis: 7px; color: currentColor; }
.site-footer a:focus-visible { outline-color: var(--lavender); }

.research {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(56px, 7.6vw, 110px);
}

/* Research follows the offers directly, divided like the brand row above them. */
.offers + .research { border-top: 1px solid var(--line); padding-top: clamp(44px, 5.5vw, 76px); }
.research .eyebrow { margin-bottom: 12px; color: var(--accent-dark); }
.research h2 { font-size: clamp(31px, 3.7vw, 46px); }
.research-copy > p:not(.eyebrow) { max-width: 540px; margin-top: 14px; color: var(--muted); font-size: 16px; }
.research > .button { flex-shrink: 0; }

.site-footer {
  margin-bottom: 30px;
  padding: 25px clamp(18px, 3.5vw, 40px) 20px;
  border-radius: 24px;
  color: var(--paper);
  background: var(--ink);
}

.site-footer .brand img { filter: invert(1); }
.footer-main, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
}

.footer-main { padding-bottom: 14px; }
.footer-main nav, .footer-legal div { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-main nav { font-size: 14px; font-weight: 550; }
.footer-legal { padding-top: 10px; border-top: 1px solid #514b59; color: #c8c3d0; font-size: 13px; }
.footer-main nav a:hover, .footer-legal a:hover { color: var(--lavender); }
/* Opens the analytics choice (public/landing/analytics.js); styled as one of the links beside it. */
.footer-preferences { display: inline-flex; min-height: 44px; align-items: center; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: color 150ms ease; }
.footer-preferences[hidden] { display: none; }
.footer-preferences:hover { color: var(--lavender); }

/* Opens the chat (public/landing/chat.js), which loads only then. It sits under the analytics
   choice, which uses the same corner. */
.site-chat { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: inline-flex; min-height: 48px; align-items: center; gap: 8px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 15px / 1 var(--body); box-shadow: 0 8px 24px #19191b33; cursor: pointer; transition: background 150ms ease; }
.site-chat:hover { background: #36313f; }
.site-chat[hidden] { display: none; }
.site-chat[aria-busy="true"] { cursor: progress; opacity: .8; }

/* Language menu (server/locale.js) in the homepage and resource page footers. */
.language-menu { position: relative; display: inline-flex; align-items: center; }
.language-menu .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* The browser's own arrow sits against the edge, so the menu draws its own chevron in the
   text color, with room on both sides (on the left in right-to-left text). */
.language-menu::after { content: ''; position: absolute; inset-inline-end: 13px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: 0.8; pointer-events: none; }
.language-menu select { appearance: none; -webkit-appearance: none; min-height: 36px; max-width: 100%; padding-block: 5px; padding-inline: 12px 34px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 8px; color: inherit; background: transparent; font: inherit; line-height: 1.3; cursor: pointer; }
.language-menu select:hover { border-color: currentColor; }
.language-menu option { color: var(--ink); background: var(--surface); }
.site-footer .language-menu select:focus-visible { outline-color: var(--lavender); }
/* The choice applies only with the button beside the menu. */
.language-choice { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.language-apply { min-height: 36px; padding: 5px 13px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 8px; color: inherit; background: transparent; font: inherit; line-height: 1.3; cursor: pointer; }
.language-apply:hover { border-color: currentColor; }
.site-footer .language-apply:focus-visible { outline-color: var(--lavender); }

@media (max-width: 850px) {
  .header-inner { min-height: 76px; gap: 12px; }
  .desktop-nav, .sign-in { display: none; }
  .mobile-menu { display: block; }

  .mobile-menu summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    padding-inline: 7px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon { width: 13px; height: 8px; border-block: 1.5px solid currentColor; }

  .mobile-menu nav {
    position: absolute;
    z-index: 4;
    top: calc(100% + 6px);
    right: 0;
    width: min(270px, 100%);
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 10px 26px #19191b1a;
  }

  .mobile-menu nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 580;
  }

  .mobile-menu nav a:is(:hover, :focus-visible) { background: var(--lavender-soft); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 4.2vw, 34px); }
  .hero-copy h1 { font-size: clamp(48px, calc(5.25vw + 15px), 60px); }
  .hero-example { max-width: 630px; }
  .brand-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 440px; row-gap: 22px; }
  .offer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "content" "preview";
    min-height: 0;
    gap: 28px;
  }

  .offer h4 { max-width: 18ch; font-size: clamp(30px, 5.4vw, 40px); }
}

@media (min-width: 851px) and (max-width: 1000px) {
  .hero-actions { column-gap: 10px; }
  .hero-actions .button--primary { gap: 13px; padding-inline: 16px; }
  .hero-actions .button--plain { gap: 7px; padding-inline: 2px; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 65px; gap: clamp(4px, 1.35vw, 8px); }
  .brand img { width: clamp(73px, 22vw, 84px); }
  .header-scan .arrow { display: none; }
  .mobile-menu summary { gap: 5px; padding-inline: 5px; font-size: 13px; }
  .hero { gap: 26px; padding-block: 36px 13px; }
  .hero-copy h1 { font-size: clamp(33px, calc(7.8vw + 8px), 48px); }
  .hero-copy > p { margin-top: 18px; font-size: 17px; }
  .hero-actions { margin-top: 20px; gap: 5px 9px; }
  .button { gap: 10px; min-height: 44px; padding: 9px 14px; font-size: 14px; }
  .header-scan { padding: 7px 9px; font-size: 12px; }
  .hero-actions .button--primary { min-height: 46px; padding-inline: 14px; font-size: 14px; }
  .hero-actions .button--plain { gap: 6px; padding-inline: 2px; }
  .hero-example { border-radius: 17px; }
  .hero-example figcaption { min-height: 46px; padding: 8px 12px; }
  .example-stage { padding: 10px; }
  .example-prompt { gap: 7px; max-width: min(100%, 270px); padding: 7px 8px; }
  .prompt-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .example-prompt p { font-size: 13px; }
  .example-caption { font-size: 10px; }
  .example-results p { min-height: 51px; gap: 5px; padding: 7px; font-size: 12px; }
  .example-results .result-icon { width: 15px; height: 15px; flex-basis: 15px; font-size: 9px; }
  .brand-proof { margin-top: 14px; }
  .brand-logos img { height: 31px; }
  .offer-layout { margin-top: 25px; }
  .offer { gap: 22px; padding: 26px 20px 20px; border-radius: 20px; }
  .offer h4 { max-width: 22ch; font-size: clamp(27px, 7.6vw, 34px); }
  .offer-content p { max-width: 43ch; margin-bottom: 8px; }
  .offer .mock-window { zoom: 1.2; }
  .research { align-items: flex-start; flex-direction: column; gap: 17px; }
  .site-footer { margin-bottom: 16px; border-radius: 20px; }
  .footer-main nav { column-gap: 15px; }
  .footer-legal { row-gap: 2px; }
}

@media (max-width: 420px) {
  .hero-photo { object-position: 96% 50%; }
  .offer .mock-window { zoom: 1.1; }
  .example-prompt { max-width: min(100%, 230px); }
}

@keyframes settle-in {
  from { transform: translateY(var(--entry-distance, 8px)); }
  to { transform: none; }
}

@keyframes settle-photo {
  from { transform: scale(1.045); }
  to { transform: none; }
}

@keyframes settle-preview {
  from { opacity: 0.86; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes reveal-table-value {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

@keyframes show-table-action {
  0%, 100% { opacity: 0; }
  12%, 88% { opacity: 1; }
}

@keyframes highlight-table-row {
  32%, 68% { background-color: var(--lavender-soft); }
}

@keyframes highlight-blocked-step {
  30% { box-shadow: 0 0 0 3px #923b3530; }
  100% { box-shadow: 0 0 0 5px transparent; }
}

@keyframes drift-preview {
  from { translate: 0 22px; }
  to { translate: 0 -22px; }
}

@keyframes settle-menu {
  from { opacity: 0.75; transform: translateY(-4px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy h1 { animation: settle-in 640ms var(--ease-out) backwards; }
  .hero-copy > p { animation: settle-in 660ms var(--ease-out) 45ms backwards; }
  .hero-actions { animation: settle-in 680ms var(--ease-out) 90ms backwards; }
  .hero-example { --entry-distance: 12px; animation: settle-in 750ms var(--ease-out) backwards; }
  .hero-photo { animation: settle-photo 960ms var(--ease-out) backwards; }
  .example-prompt { --entry-distance: 5px; animation: settle-in 700ms var(--ease-out) 115ms backwards; }
  .example-results .result-icon { --entry-distance: 3px; animation: settle-in 520ms var(--ease-out) 190ms backwards; }
  .example-results p + p .result-icon { animation-delay: 260ms; }

  /* Unfold. site.js marks each group heading and chapter .is-folded until it scrolls
     into view (and never without motion or the script). The group rule draws in, the
     chapter opens downward from its top edge, its copy rises line by line and the
     preview table lifts in. The table's story then plays. */
  .group-heading::before { transition: transform 900ms var(--ease-out); }
  .group-heading > * { transition: opacity 500ms ease 180ms, transform 700ms var(--ease-out) 180ms; }
  .group-heading.is-folded::before { transform: scaleX(0); }
  .group-heading.is-folded > * { opacity: 0; transform: translateY(10px); }

  .offer { clip-path: inset(0 0 0 0 round 24px); transition: clip-path 1150ms var(--ease-out); }
  .offer.is-folded { clip-path: inset(0 0 100% 0 round 24px); }

  .offer-content > * { transition: opacity 600ms ease, transform 900ms var(--ease-out); }
  .offer-content > :nth-child(1) { transition-delay: 220ms; }
  .offer-content > :nth-child(2) { transition-delay: 290ms; }
  .offer-content > :nth-child(3) { transition-delay: 360ms; }
  .offer-content > :nth-child(4) { transition-delay: 430ms; }
  .offer.is-folded .offer-content > * { opacity: 0; transform: translateY(26px); }

  .offer .mock-window { transition: opacity 500ms ease 420ms, transform 1000ms var(--ease-out) 420ms; }
  .offer.is-folded .mock-window { opacity: 0; transform: translateY(34px) scale(0.92); }

  .offer-preview { --chapter-start: 950ms; --chapter-duration: 1500ms; }
  .offer-preview--visibility { --chapter-duration: 1080ms; }

  .mock-detail {
    --step-start: calc(var(--chapter-start) + 140ms + var(--step-offset, 0ms));
    --step-complete: calc(var(--step-start) + 320ms);
  }

  .mock-detail + .mock-detail { --step-offset: 420ms; }
  .mock-detail + .mock-detail + .mock-detail { --step-offset: 840ms; }

  .mock-value::after,
  .mock-caption::before {
    content: attr(data-action);
    opacity: 0;
    color: var(--muted);
    font-weight: 600;
  }

  .mock-value::after { position: absolute; inset-inline-end: 0; align-self: center; white-space: nowrap; }
  .mock-caption::before { grid-area: 1 / 1; }

  .offer-preview.is-awaiting-story :is(.mock-value, .mock-caption) > * { opacity: 0; }

  .offer-preview.has-entered-view .mock-detail {
    animation: highlight-table-row 500ms ease-out var(--step-start);
  }

  .offer-preview.has-entered-view .mock-value::after {
    animation: show-table-action 320ms linear var(--step-start);
  }

  .offer-preview.has-entered-view .mock-value > * {
    animation: reveal-table-value 240ms var(--ease-out) var(--step-complete) backwards;
  }

  .offer-preview.has-entered-view .mock-caption::before {
    animation: show-table-action var(--chapter-duration) linear var(--chapter-start);
  }

  .offer-preview.has-entered-view .mock-caption > span {
    animation: reveal-table-value 250ms var(--ease-out) calc(var(--chapter-start) + var(--chapter-duration)) backwards;
  }

  .offer-preview.has-entered-view .mini-dot--blocked::before {
    animation: highlight-blocked-step 500ms ease-out calc(var(--step-complete) + 140ms);
  }

  /* Once open, the tables drift against the scroll for a little depth. */
  @supports (animation-timeline: view()) {
    @media (min-width: 851px) {
      .offer .mock-window { animation: drift-preview linear both; animation-timeline: view(); animation-range: cover; }
    }
  }

  .mobile-menu[open] nav {
    transform-origin: top right;
    animation: settle-menu 230ms var(--ease-out) backwards;
  }

  .button {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, scale 220ms var(--ease-out);
  }

  .button:active { scale: 0.985; }

  @media (hover: hover) and (pointer: fine) {
    .button .arrow, .offer-link .arrow { transition: translate 220ms var(--ease-out); }
    .button:hover .arrow, .offer-link:hover .arrow { translate: 2px -2px; }
    .button:hover .arrow--down { translate: 0 2px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .button, .desktop-nav a, .sign-in, .footer-main nav a, .footer-legal a { transition: none; }
}

/* Headings break into balanced lines; short texts avoid one-word last lines. */
:is(h1, h2, h3, h4) { text-wrap: balance; }
:is(p, li, figcaption) { text-wrap: pretty; }

/* What the trial button starts, and the services it doesn't include (UX-091). */
.hero-copy > p.hero-note { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.hero-copy > p.hero-note + p.hero-note { margin-top: 6px; }
.hero-note a { color: var(--accent-dark); text-underline-offset: 3px; }
.example-source { display: block; margin-top: 3px; color: inherit; font-size: 12px; font-weight: 560; text-underline-offset: 3px; }
