/* Self-hosted variable fonts. Sources and licences: assets/fonts/NOTICE.md */

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Mesana — landing page
   Design tokens, layout primitives and components.
   ========================================================================== */

:root {
  /* Surfaces */
  --cream: #FBF6E9;
  --paper: #FFFDF6;
  --sand: #F6EFDC;
  --forest: #1F4A3D;
  --mint: #D9EBDF;
  --lilac: #E7D6F5;
  --peach: #F6D9C8;

  /* Ink */
  --ink: #121212;
  --text: #3A3529;
  --text-2: #4A4437;
  --muted: #6B6455;

  /* Rules */
  --rule: #E6DEC8;
  --rule-lilac: #C9B6DC;
  --rule-forest: #3B6455;
  --line: 1.5px solid var(--ink);

  /* On forest */
  --on-forest: #FBF6E9;
  --on-forest-dim: #A8C0B4;
  --on-forest-text: #D9E6DF;
  --on-forest-line: #6E8F81;

  /* Type */
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: Geist, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --max: 1080px;
}

/* --------------------------------------------------------------- reset --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--forest); }

button { font: inherit; }

::selection { background: var(--lilac); }

:focus-visible {
  outline: 2.5px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ----------------------------------------------------------- primitives --- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.section {
  padding: clamp(48px, 6vw, 84px) 24px;
}

.section--rule-top { border-top: var(--line); }
.section--rule-both { border-top: var(--line); border-bottom: var(--line); }
.section--sand { background: var(--sand); }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--sm {
  font-size: 11px;
  letter-spacing: 0.14em;
}

.h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
}

.note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* --------------------------------------------------------------- button --- */

.btn {
  display: inline-block;
  font-size: 16px;
  text-align: center;
  padding: 15px 28px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: box-shadow 160ms var(--ease), transform 160ms var(--ease);
}

.btn:hover {
  color: var(--ink);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.btn:active {
  box-shadow: 0 0 0 var(--ink);
  transform: translate(3px, 3px);
}

.btn--primary { background: var(--lilac); }

.btn--sm {
  font-size: 14px;
  padding: 11px 20px;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--sm:hover { box-shadow: 0 0 0 var(--ink); }

.btn--plan {
  display: block;
  font-size: 15px;
  padding: 13px 20px;
}

/* --------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.site-header__bar {
  pointer-events: auto;
  width: 100%;
  max-width: var(--max);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 14px 10px 20px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}

.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { width: 104px; height: auto; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--text);
}

/* ----------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 24px clamp(56px, 7vw, 92px);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__blob--peach {
  top: -120px; left: -90px;
  width: 360px; height: 360px;
  background: var(--peach);
  opacity: 0.5;
}

.hero__blob--lilac {
  top: 60px; right: -70px;
  width: 260px; height: 260px;
  background: var(--lilac);
  opacity: 0.6;
}

.hero__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.hero__lede {
  margin: 0;
  max-width: 560px;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.5;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 4px;
}

/* --------------------------------------------------------------- ticker --- */

.ticker {
  overflow: hidden;
  border-top: var(--line);
  border-bottom: var(--line);
  background: var(--paper);
  padding: 16px 0;
}

.ticker__track {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}

.ticker__msg {
  flex: none;
  padding: 10px 18px;
  border: var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-size: 15px;
  white-space: nowrap;
  animation: mesana-in 320ms var(--ease) both;
}

.ticker__typing {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 18px;
  border: var(--line);
  border-radius: 999px;
  background: var(--lilac);
}

/* --------------------------------------------------------------- cards --- */

.card {
  padding: 26px;
  border: var(--line);
  border-radius: 20px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card--channel {
  border-radius: 18px;
  gap: 10px;
  /* `translate`, not `transform`: these cards are also .reveal items, and the
     reveal animation ends on `transform: none`, which would cancel the lift. */
  transition: translate 200ms var(--ease), box-shadow 200ms var(--ease);
}

.card--channel:hover {
  translate: 0 -4px;
  box-shadow: 0 8px 0 -2px var(--ink);
}

.card--lilac { background: var(--lilac); }
.card--peach { background: var(--peach); }

.card__title {
  font-size: 19px;
  font-weight: 500;
}

.card__display {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.card--lilac .eyebrow,
.card--peach .eyebrow,
.card--lilac .card__text,
.card--peach .card__text { color: var(--text); }

.step__num {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 0.9;
}

/* ---------------------------------------------------------------- chat --- */

.demo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: var(--line);
  border-radius: 999px;
  background: var(--cream);
}

.seg__btn {
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.seg__btn[aria-selected="true"] {
  background: var(--lilac);
  color: var(--ink);
}

.chat {
  border: var(--line);
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
}

.chat[hidden] { display: none; }

.chat__head {
  padding: 14px 20px;
  border-bottom: var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat__head--lilac { background: var(--lilac); }
.chat__head--peach { background: var(--peach); }

.chat__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.chat__head--lilac .chat__avatar { background: var(--cream); }

.chat__who { font-size: 14px; font-weight: 500; }

.chat__when {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}

.chat__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cream);
  height: 348px;
  overflow: hidden;
  scroll-behavior: smooth;
  user-select: none;
}

.chat__foot {
  padding: 12px 20px;
  border-top: var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.bubble {
  max-width: 80%;
  padding: 12px 15px;
  border: var(--line);
  font-size: 15px;
  line-height: 1.45;
}

.bubble--in {
  align-self: flex-start;
  border-radius: 16px 16px 16px 4px;
  background: var(--paper);
}

.bubble--out {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: var(--lilac);
}

.bubble--audio {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
}

.bubble--audio-out {
  align-self: flex-end;
  border-radius: 999px;
  background: var(--forest);
  gap: 8px;
}

.typing {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.typing__label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
}

.dots { display: flex; gap: 4px; }

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: mesana-dot 1.2s infinite;
}

.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.wave span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--ink);
  animation: mesana-wave 1s ease-in-out infinite;
}

.wave span:nth-child(2) { animation-delay: 0.12s; }
.wave span:nth-child(3) { animation-delay: 0.24s; }
.wave span:nth-child(4) { animation-delay: 0.36s; }
.wave span:nth-child(5) { animation-delay: 0.48s; }

.wave--light { height: 16px; }
.wave--light span { background: var(--cream); animation-duration: 1.1s; }

.audio__label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
}

.audio__label--light { color: var(--cream); }

.stamp {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: var(--line);
  border-radius: 999px;
  background: var(--mint);
  font-size: 13.5px;
  animation: mesana-stamp 320ms var(--ease) both;
}

.stamp__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
  flex: none;
}

/* Chat steps are revealed by scripts/site.js. */
.chat__body [data-step] { display: none; }
.chat__body [data-step].is-shown { display: flex; }
.chat__body .bubble[data-step].is-shown { display: block; }
.chat__body .bubble--audio[data-step].is-shown { display: flex; }
.chat__body [data-typing-at] { display: none; }
.chat__body [data-typing-at].is-shown { display: flex; }

.skills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.skills > li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.skills > li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  margin-top: 7px;
  flex: none;
}

.list-reset { list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------- compare --- */

.compare {
  padding: clamp(52px, 6vw, 88px) 24px;
  border-top: var(--line);
  border-bottom: var(--line);
  background: var(--forest);
}

.compare__title {
  color: var(--on-forest);
  text-align: center;
  max-width: 820px;
  align-self: center;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.02;
}

.compare__col {
  padding: 28px;
  border: 1.5px solid var(--on-forest-line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.compare__col--good {
  border-color: var(--ink);
  background: var(--cream);
}

.compare__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-forest-dim);
}

.compare__col--good .compare__label { color: var(--text-2); }

.compare__label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--on-forest-line);
  flex: none;
}

.compare__col--good .compare__label::before { background: var(--forest); }

.compare__thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare__col .bubble { max-width: 88%; }

.compare__col:not(.compare__col--good) .bubble {
  border-color: var(--on-forest-line);
  background: none;
  color: var(--on-forest-text);
}

.compare__silence {
  align-self: flex-start;
  max-width: 88%;
  padding: 12px 15px;
  border: 1.5px dashed var(--on-forest-line);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--on-forest-dim);
}

.compare__time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--on-forest-dim);
}

.compare__col--good .compare__time { color: var(--muted); }

.compare__facts {
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-forest);
  font-size: 14.5px;
  color: var(--on-forest-text);
}

.compare__col--good .compare__facts {
  border-top-color: var(--rule);
  color: var(--ink);
}

.compare__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.compare__facts dt { font-weight: 400; }
.compare__facts dd { margin: 0; color: var(--on-forest-dim); text-align: right; }
.compare__col--good .compare__facts dd { color: var(--text-2); }
.compare__col--good .compare__facts dd.is-good { color: var(--forest); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tags li {
  padding: 9px 16px;
  border: 1.5px solid var(--on-forest);
  border-radius: 999px;
  font-size: 14px;
  color: var(--on-forest);
}

/* ---------------------------------------------------------------- uses --- */

.use {
  border: var(--line);
  border-radius: 20px;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.use__media {
  display: block;
  height: 150px;
  border-bottom: var(--line);
  background: var(--sand); /* holds the slot while the photo decodes */
  overflow: hidden;
}

.use__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.use__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* -------------------------------------------------------------- pricing --- */

.pricing__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.pricing__title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}

.pricing__lede {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

.plans { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }

/* Billing-cycle toggle above the plans. */
.cycle {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.cycle__btn {
  font-family: var(--sans);
  font-size: 14.5px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 160ms var(--ease);
}

.cycle__btn.is-on { background: var(--lilac); }

.plan {
  position: relative;
  padding: 28px;
  border: var(--line);
  border-radius: 22px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan--featured { background: var(--lilac); }
.plan--featured .eyebrow,
.plan--featured .plan__pitch { color: var(--text); }

.plan__badge {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 6px 14px;
  border: var(--line);
  border-radius: 999px;
  background: var(--peach);
  font-size: 12.5px;
  transform: rotate(-3deg);
}

.plan__price {
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 50px);
  line-height: 1;
}

.plan__unit {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-2);
}

.plan--featured .plan__unit { color: var(--text); }

.plan__note {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}

.plan--featured .plan__note { color: var(--text); }

.plan__price--quote { font-size: clamp(34px, 4vw, 44px); line-height: 1.05; }

.plan__pitch { font-size: 14.5px; color: var(--text-2); }

.plan-custom {
  padding: 26px 28px;
  border: var(--line);
  border-radius: 22px;
  background: var(--lilac);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px 36px;
  align-items: start;
}

.plan-custom__lead {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.plan-custom__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 38px);
  line-height: 1.05;
}

.plan-custom__text {
  margin: 0;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.5;
}

.plan-custom__cta {
  align-self: flex-start;
  margin-top: 6px;
  padding: 13px 24px;
}

.plan-custom__features {
  display: flex;
  flex-direction: column;
  font-size: 14.5px;
  line-height: 1.45;
}

.plan-custom__features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-lilac);
}

.plan-custom__features li:last-child { border-bottom: 0; }

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text);
  padding-top: 4px;
  border-top: 1px solid var(--rule);
}

.plan--featured .plan__features { border-top-color: var(--rule-lilac); }

.terms { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.term {
  padding: 22px 26px;
  border: var(--line);
  border-radius: 18px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.term__title { font-size: 16px; font-weight: 500; }

.term__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ faq --- */

.faq {
  padding: 24px;
  border: var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.faq__q {
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  flex: none;
  transition: transform 200ms var(--ease);
}

.faq[open] .faq__q::after { transform: rotate(45deg); }

.faq__a {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ cta --- */

.cta {
  padding: 0 24px clamp(48px, 6vw, 72px);
}

.cta__box {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(30px, 4vw, 48px);
  border: var(--line);
  border-radius: 24px;
  background: var(--peach);
}

.cta__title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.02;
}

.cta__text { font-size: 16px; line-height: 1.5; color: var(--text); }

.cta__mail {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  text-align: center;
}

/* --------------------------------------------------------------- footer --- */

.site-footer {
  padding: clamp(32px, 4vw, 48px) 24px;
  border-top: var(--line);
  background: var(--cream);
}

.site-footer__top {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.site-footer__brand img { width: 120px; height: auto; }

.site-footer__blurb {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* ------------------------------------------------- legal and not found --- */

.notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  padding: clamp(48px, 7vw, 96px) 24px;
}

.notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 560px;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 6px;
}

.legal {
  padding: clamp(48px, 6vw, 84px) 24px clamp(56px, 7vw, 96px);
}

.legal__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.legal__placeholder {
  padding: 26px;
  border: 1.5px dashed var(--ink);
  border-radius: 20px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal__placeholder-title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

/* Typography for the policy text once it lands in .legal__body. */
.legal__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}

.legal__body h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  color: var(--ink);
}

.legal__body h3 {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.legal__body p { margin: 0; }

.legal__body ul,
.legal__body ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal__body a { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------ animation --- */

@keyframes mesana-wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

@keyframes mesana-dot {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}

@keyframes mesana-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes mesana-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes mesana-stamp {
  0% { opacity: 0; transform: translateY(8px) rotate(-4deg); }
  60% { transform: translateY(-2px) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}

/* Scroll reveal — only armed once JS is running, so no-JS keeps content
   visible. Deliberately an animation and not a transition: a `transition`
   here outranks the shorter selector on any component that has its own
   :hover transition, and silently kills it. */
.js .reveal { opacity: 0; }

.js .reveal.is-visible {
  animation: mesana-reveal 320ms var(--ease) var(--reveal-delay, 0ms) both;
}

/* ----------------------------------------------------------- responsive --- */

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header__bar { justify-content: space-between; }
  .site-header__logo { margin-right: auto; }
  .demo__head { align-items: flex-start; }
  .compare__facts > div { flex-direction: column; gap: 2px; }
  .compare__facts dd { text-align: left; }
}

@media (max-width: 420px) {
  .site-header__bar { padding: 10px 12px 10px 16px; gap: 10px; }
  .btn--sm { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; animation: none; }
}

/* ------------------------------------------------------------ utilities --- */

.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-18 { gap: 18px; }
.gap-26 { gap: 26px; }
.gap-28 { gap: 28px; }
.gap-30 { gap: 30px; }
.gap-34 { gap: 34px; }
.gap-36 { gap: 36px; }

.measure-560 { max-width: 560px; }
.measure-620 { max-width: 620px; }
.measure-660 { max-width: 660px; }
.measure-880 { max-width: 880px; }

/* ----------------------------------------------------- layout one-offs --- */

.section--channels {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.grid--steps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.grid--demo {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.grid--compare {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card--note { padding: 22px 26px; gap: 6px; }

.h2--faq { font-size: clamp(32px, 4.4vw, 50px); }

.cta__copy { min-width: 260px; max-width: 520px; }
