/* Pomni landing page
 * Sections: Custom properties, Base, reset and typography, Shared components,
 * Header, Hero, Facts, Need, Workflow heading, Chapters shared, Offers,
 * Tasks, Money, Chat, Docs, Extras and bento, Platforms, Pricing, Demo and FAQ,
 * Closing, Footer, Lightbox, Motion, reduced motion and no JavaScript.
 * Responsive variants follow the base rules in each section.
 */

/* Custom properties */

:root {
  --fs-h1: clamp(2.2rem, 4vw + 1rem, 3.75rem);
  --fs-h2: clamp(1.75rem, 2.5vw + 1rem, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.2vw + 0.9rem, 1.625rem);
  --fs-lead: clamp(1.0625rem, 0.8vw + 0.85rem, 1.375rem);
  --fs-body: clamp(1rem, 0.3vw + 0.9rem, 1.125rem);
  --fs-cta: clamp(1rem, 0.1vw + 0.975rem, 1.0625rem);
  --fs-ui: clamp(0.8125rem, 0.1vw + 0.75rem, 0.875rem);
  --lh-h1: 1.12;
  --lh-h2: 1.20;
  --lh-h3: 1.30;
  --lh-lead: 1.55;
  --lh-body: 1.65;
  --lh-cta: 1.20;
  --lh-ui: 1.40;
  --ls-h1: -0.025em;
  --ls-h2: -0.02em;
  --ls-h3: -0.01em;
  --ls-lead: 0em;
  --ls-body: 0em;
  --ls-cta: 0.01em;
  --ls-ui: 0.02em;
  color-scheme: light;
  --page: #f7f7fb;
  --ink: #141b3d;
  --indigo: #0d1270;
  --night: #070a3a;
  --mint: #3ff2c4;
  --cyan: #35d6f5;
  --violet: #8a6cff;
  --muted: #555d77;
  --line: #dcdeeb;
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (min-width: 1101px) {
  :root {
    --space: 112px;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  :root {
    --space: 85px;
  }
}

@media (max-width: 700px) {
  :root {
    --space: 72px;
  }
}

/* Base, reset and typography */

body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable], [contenteditable] *,
.feedback-mail strong, .pricing-contact-link { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }


/* inter italic cyrillic-ext */

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-italic-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* inter italic cyrillic */

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* inter italic latin-ext */

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* inter italic latin */

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-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;
}

/* inter normal cyrillic-ext */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* inter normal cyrillic */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* inter normal latin-ext */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* inter normal latin */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-normal-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;
}

/* unbounded normal cyrillic-ext */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/unbounded-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* unbounded normal cyrillic */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/unbounded-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* unbounded normal latin-ext */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/unbounded-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* unbounded normal latin */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/unbounded-normal-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;
}

/* Local fallback metrics measured in Chrome with Latin and Bulgarian text. */
@font-face {
  font-family: "Inter fallback";
  font-style: normal;
  font-weight: 100 500;
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 103.753%;
  ascent-override: 93.371%;
  descent-override: 23.249%;
  line-gap-override: 0%;
  unicode-range: U+0400-052F;
}

@font-face {
  font-family: "Inter fallback";
  font-style: italic;
  font-weight: 100 500;
  src: local("Arial Italic"), local("Liberation Sans Italic");
  size-adjust: 103.753%;
  ascent-override: 93.371%;
  descent-override: 23.249%;
  line-gap-override: 0%;
  unicode-range: U+0400-052F;
}

@font-face {
  font-family: "Inter fallback";
  font-style: normal;
  font-weight: 600 900;
  src: local("Arial Bold"), local("Liberation Sans Bold");
  size-adjust: 100.809%;
  ascent-override: 96.097%;
  descent-override: 23.927%;
  line-gap-override: 0%;
  unicode-range: U+0400-052F;
}

@font-face {
  font-family: "Inter fallback";
  font-style: italic;
  font-weight: 600 900;
  src: local("Arial Bold Italic"), local("Liberation Sans Bold Italic");
  size-adjust: 100.809%;
  ascent-override: 96.097%;
  descent-override: 23.927%;
  line-gap-override: 0%;
  unicode-range: U+0400-052F;
}

@font-face {
  font-family: "Unbounded fallback";
  font-style: normal;
  font-weight: 600 900;
  src: local("Arial Bold"), local("Liberation Sans Bold");
  size-adjust: 131.062%;
  ascent-override: 75.919%;
  descent-override: 18.693%;
  line-gap-override: 0%;
  unicode-range: U+0400-052F;
}

@font-face {
  font-family: "Unbounded fallback";
  font-style: normal;
  font-weight: 100 500;
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 137.716%;
  ascent-override: 72.251%;
  descent-override: 17.790%;
  line-gap-override: 0%;
  unicode-range: U+0400-052F;
}

@font-face {
  font-family: "Inter fallback";
  font-style: normal;
  font-weight: 100 500;
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 105.206%;
  ascent-override: 92.081%;
  descent-override: 22.928%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
  font-family: "Inter fallback";
  font-style: italic;
  font-weight: 100 500;
  src: local("Arial Italic"), local("Liberation Sans Italic");
  size-adjust: 105.206%;
  ascent-override: 92.081%;
  descent-override: 22.928%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
  font-family: "Inter fallback";
  font-style: normal;
  font-weight: 600 900;
  src: local("Arial Bold"), local("Liberation Sans Bold");
  size-adjust: 101.317%;
  ascent-override: 95.616%;
  descent-override: 23.808%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
  font-family: "Inter fallback";
  font-style: italic;
  font-weight: 600 900;
  src: local("Arial Bold Italic"), local("Liberation Sans Bold Italic");
  size-adjust: 101.317%;
  ascent-override: 95.616%;
  descent-override: 23.808%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
  font-family: "Unbounded fallback";
  font-style: normal;
  font-weight: 600 900;
  src: local("Arial Bold"), local("Liberation Sans Bold");
  size-adjust: 128.105%;
  ascent-override: 77.671%;
  descent-override: 19.125%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
  font-family: "Unbounded fallback";
  font-style: normal;
  font-weight: 100 500;
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 135.668%;
  ascent-override: 73.341%;
  descent-override: 18.059%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+2000-206F;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  color-scheme: light;
}

body {
  margin: 0px;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--fs-body) / var(--lh-body) "Inter", "Inter fallback", sans-serif;
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  border: 0px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

h1 {
  font-family: "Unbounded", "Unbounded fallback", sans-serif;
  font-size: min(var(--fs-h1), 6.1cqi);
  font-weight: 650;
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  text-wrap-style: balance;
}

h2 {
  font-family: "Unbounded", "Unbounded fallback", sans-serif;
  font-size: min(var(--fs-h2), 4.49cqi);
  font-weight: 600;
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  margin: 0px;
  text-wrap-style: balance;
}

h3 {
  font-family: "Unbounded", "Unbounded fallback", sans-serif;
  font-size: min(var(--fs-h3), 7cqi);
  font-weight: 500;
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  margin: 0px;
}

p {
  margin: 0px;
}

.symbol {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  flex-shrink: 0;
}

.window-dots {
  flex: none;
  width: 32px;
  height: 12px;
  vertical-align: middle;
}

a:focus-visible {
  outline: rgb(128, 96, 241) solid 3px;
  outline-offset: 5px;
}

button:focus-visible {
  outline: rgb(128, 96, 241) solid 3px;
  outline-offset: 5px;
}

::selection {
  background: rgb(176, 250, 229);
  color: var(--night);
}

h2[data-sentences] > span {
  display: block;
}

h2[data-sentences] > span + span {
  color: rgb(101, 101, 142);
  margin-top: 5px;
}

@media (min-width: 701px) {
  h1 {
    margin: 0px 0px 24px;
  }
}

@media (min-width: 701px) {
  h1, h2, h3 {
    white-space: nowrap;
  }
}

@media (min-width: 1280px) {
  .center h2, .faq h2 {
    font-size: var(--fs-h2);
  }
}

/* Measure fit against the actual text column. */
.hero-copy, .center, .workflow-heading, .chapter-intro > div, .tile, .steps li, .faq, .closing-inner {
  container-type: inline-size;
}

h1 > span {
  display: block;
  text-wrap-style: balance;
}

.hero h1 > span ~ span { margin-top: .22em; }

h1 > br {
  display: none;
}

@media (max-width: 700px) {
  h1 {
    margin: 0px 0px 22px;
    font-size: 35.2px;
  }

  h2 {
    font-size: 26px;
    text-wrap-mode: wrap;
  }

  h3 {
    font-size: 20px;
    text-wrap-mode: wrap;
  }
}

@media (max-width: 359px) {
  h1 {
    font-size: 34px;
  }
}

/* Shared components */

figure {
  margin: 0px;
}

.wrap {
  margin-inline: auto;
}

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

.eyebrow {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
  font-weight: 700;
  color: var(--indigo);
}

.body-copy {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--muted);
  max-width: 650px;
}

.muted {
  color: rgb(101, 101, 142);
}

.center {
  text-align: center;
  max-width: 850px;
  margin-inline: auto;
}

.marker {
  background: linear-gradient(transparent 75%, rgb(185, 246, 229) 75%, rgb(185, 246, 229) 95%, transparent 95%);
  box-decoration-break: clone;
}

.button {
  font-size: var(--fs-cta);
  line-height: var(--lh-cta);
  letter-spacing: var(--ls-cta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--mint);
  color: var(--night);
  padding: 14px 26px;
  min-height: 56px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: rgba(16, 32, 106, 0.125) 0px 10px 24px;
}

.cta-arrow { transition: transform 200ms ease; transform-origin: center; }
:is(.button, .chapter-demo):is(:hover, :focus-visible) .cta-arrow { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
  .cta-arrow { transition: none; }
  :is(.button, .chapter-demo):is(:hover, :focus-visible) .cta-arrow { transform: none; }
}

.button > span[aria-hidden] {
  font-size: 22px;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: white;
  color: var(--indigo);
  padding: 12px;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.window-bar {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
  background: rgb(21, 27, 83);
  color: rgb(184, 191, 224);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.handnote {
  font: italic 18px / 1.4 Georgia, serif;
  letter-spacing: -0.3px;
}

.shot {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(194, 203, 213);
  background: rgb(243, 250, 247);
  box-shadow: rgba(34, 41, 74, 0.08) 0px 18px 35px;
  transition: transform .25s var(--ease),box-shadow .25s;
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: rgba(34, 41, 74, 0.145) 0px 22px 36px;
}

.shot:focus-visible {
  transform: translateY(-4px);
  box-shadow: rgba(34, 41, 74, 0.145) 0px 22px 36px;
}

.zoom {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--indigo);
  color: rgb(255, 255, 255);
  padding: 6px 12px;
  border-radius: 5px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}

.shot:hover .zoom {
  opacity: 1;
  transform: none;
}

.shot:focus-visible .zoom {
  opacity: 1;
  transform: none;
}

figure > figcaption {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
  color: rgb(75, 82, 112);
  margin-top: 13px;
}

.stage {
  border: 1px solid rgb(223, 223, 242);
  background: linear-gradient(rgb(218, 221, 250), rgb(238, 240, 255));
}

.stage-label {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
  color: rgb(85, 85, 122);
  font-weight: 700;
}

.callout {
  position: absolute;
  color: rgb(48, 54, 90);
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
}

.callout b {
  display: grid;
  place-items: center;
  background: var(--indigo);
  color: white;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 11px;
}

.crop-bar {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
  height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 12px;
  color: rgb(220, 224, 247);
  background: rgb(34, 40, 79);
}

@media (min-width: 1101px) {
  .wrap {
    width: min(1200px, 100% - 96px);
  }
}

@media (min-width: 701px) {
  .eyebrow {
    letter-spacing: var(--ls-ui);
    margin-bottom: 22px;
  }

  .center .body-copy {
    margin: 24px auto 0px;
  }

  .button.small {
    min-height: 44px;
    padding: 9px 18px;
    font-size: var(--fs-cta);
  }

  .window-bar {
    height: 29px;
    letter-spacing: var(--ls-ui);
    padding: 0px 14px;
  }

  .shot {
    border-radius: 12px;
  }

  .stage {
    border-radius: 28px;
  }

  .stage-label {
    letter-spacing: var(--ls-ui);
    font-size: var(--fs-ui);
  }

  .callout {
    left: 0px;
    line-height: 1.5;
  }

  .phone-frame .shot {
    border: 7px solid var(--ink);
    border-radius: 28px;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .section {
    scroll-margin-top: 25px;
  }

  .eyebrow {
    letter-spacing: var(--ls-ui);
    margin-bottom: 17px;
  }

  .center .body-copy {
    margin: 20px auto 0px;
  }

  .window-bar {
    height: 24px;
    padding: 0px 8px;
    letter-spacing: var(--ls-ui);
  }

  .shot {
    border-radius: 8px;
  }

  .stage {
    border-radius: 18px;
  }
}

/* Header */

.header {
  position: fixed;
  inset: 0px 0px auto;
  z-index: 20;
  background: #070b4f;
  color: rgb(255, 255, 255);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}


.nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.wordmark {
  width: 3.95em;
  flex-shrink: 0;
  font-family: "Unbounded", "Unbounded fallback", sans-serif;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.wordmark span {
  color: rgb(18, 151, 134);
}

.header .wordmark span {
  color: var(--mint);
}


nav {
  font-size: 14px;
  font-weight: 600;
}

nav a {
  padding: 14px 0px;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 7px;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.languages {
  display: flex;
  align-items: center;
  gap: 0px;
}

.languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  font-weight: 700;
  opacity: 0.65;
}

.languages a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 7px;
}

.menu {
  background: transparent;
  color: inherit;
  font-size: 23px;
  width: 44px;
  height: 44px;
}

.progress {
  height: 2px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg,var(--mint),var(--cyan),var(--violet));
}

@media (min-width: 1101px) {
  .nav {
    gap: 24px;
  }

  nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
  }

  .nav-actions {
    gap: 22px;
  }
}

@media (min-width: 701px) {
  .header {
    height: 80px;
  }

  .wordmark {
    font-size: 40px;
  }

  .phone-label {
    display: none;
  }

  .languages {
    font-size: var(--fs-ui);
  }

  .menu {
    display: none;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .wordmark {
    font-size: 32px;
  }

  .nav {
    gap: 18px;
  }

  nav {
    display: flex;
    margin-left: auto;
    gap: 20px;
  }

  .nav-actions {
    gap: 10px;
  }
}

/* Tablets: keep every menu item on one line; the short "Demo" button leaves room for the full menu. */
@media (min-width: 701px) and (max-width: 1100px) {
  nav {
    gap: 16px;
  }

  nav a {
    white-space: nowrap;
  }

  .nav .small {
    white-space: nowrap;
  }
}

@media (min-width: 701px) and (max-width: 820px) {
  .wordmark {
    font-size: 28px;
  }

  .nav,
  nav {
    gap: 12px;
  }

  .nav-actions {
    gap: 4px;
  }

  .nav .small > span[aria-hidden] {
    display: none;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .phone-label {
    display: inline;
  }

  .desktop-label {
    display: none;
  }
}

@media (max-width: 700px) {
  .header {
    height: 68px;
  }

  .nav {
    gap: 8px;
  }

  .wordmark {
    font-size: 24px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .phone-label {
    display: inline;
  }

  nav {
    gap: 20px;
  }

  .nav-actions {
    margin-left: auto;
    gap: 4px;
  }

  .languages {
    font-size: var(--fs-ui);
  }

  .menu {
    display: block;
  }

  .nav .small {
    padding: 8px 10px;
    min-height: 44px;
    font-size: var(--fs-cta);
    gap: 0px;
  }

  .nav .small > span[aria-hidden] {
    display: none;
  }

  .desktop-label {
    display: none;
  }

  .header nav {
    position: absolute;
    top: 68px;
    left: 0px;
    right: 0px;
    display: none;
    margin: 0px;
    background: #070b4f;
    color: white;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
  }

  .header nav.open {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }
}

/* Hero */

.hero {
  position: relative;
  background: linear-gradient(175deg, var(--night) 35%, var(--indigo) 85%, rgb(8, 12, 68));
  color: rgb(244, 245, 255);
  overflow: hidden;
  isolation: isolate;
}

/* Canvas stays below the ribbon and all interactive content. */
.hero-particles {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero .product-stage {
  z-index: 1;
}

.hero-fx .product-stage {
  perspective: 1400px;
}

.hero-fx .desktop-frame,
.hero-fx .hero-phone,
.hero-fx .hero-chip {
  animation: none;
  transform: translate3d(var(--fx-x, 0px), var(--fx-y, 0px), 0) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg)) rotate(var(--fx-roll, 0deg));
}

.hero-fx .chip-one {
  --fx-roll: -3deg;
}

.hero-fx .chip-two {
  --fx-roll: 2deg;
}

.hero-copy {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero .eyebrow {
  color: rgb(197, 203, 234);
}

.hero .eyebrow::before {
  content: "";
  display: inline-block;
  background: var(--mint);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0px 10px 2px 0px;
}

.gradient-text {
  background: linear-gradient(100deg, rgb(112, 246, 196), var(--cyan)) text;
  color: transparent;
}

.hero .body-copy {
  letter-spacing: var(--ls-lead);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: rgb(198, 204, 233);
}

.hero .primary {
  box-shadow: rgba(63, 242, 196, 0.16) 0px 0px 34px;
}

.hero-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: rgb(208, 213, 237);
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
}

.hero-perks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-perks svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--mint);
}

.product-stage {
  position: relative;
  max-width: 1100px;
}

.desktop-frame {
  border: 1px solid rgb(122, 235, 217);
  overflow: hidden;
  box-shadow: rgba(63, 242, 196, 0.3) 0px -1px 18px, rgba(133, 101, 255, 0.15) 0px -20px 85px, rgba(3, 5, 32, 0.533) 0px 30px 70px;
  z-index: 2;
  animation: rise .8s var(--ease) both;
}

.hero-phone {
  z-index: 4;
  position: absolute !important;
  border: 5px solid rgb(11, 16, 59) !important;
  box-shadow: rgba(3, 5, 27, 0.5) 0px 22px 50px !important;
}

.ribbon {
  position: absolute;
  z-index: 0;
  width: max(2400px, 210vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}

.ribbon path {
  stroke: url("#ribbon-color");
  filter: drop-shadow(rgba(81, 234, 208, 0.396) 0px 0px 10px);
  animation: shimmer 4.5s var(--ease) both;
}

.hero-chip {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
  position: absolute;
  z-index: 5;
  background: rgb(255, 255, 255);
  color: var(--indigo);
  font-weight: 700;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.133) 0px 10px 25px;
  animation: 4s ease-in-out 0s 1 normal none running drift;
}

.chip-one {
  transform: rotate(-3deg);
}

.chip-two {
  transform: rotate(2deg);
}

.note-arrow {
  position: absolute;
  height: 55px;
  fill: none;
  stroke: rgb(197, 203, 234);
  stroke-width: 1.5;
  z-index: 3;
  pointer-events: none;
}

.product-stage > .handnote {
  position: absolute;
  left: 0px;
  color: rgb(208, 215, 245);
}

.desktop-frame .shot {
  border: 0px;
  border-radius: 0px;
}

.hero .shot {
  box-shadow: none;
}

@media (min-width: 1101px) {
  .hero-phone {
    width: 22%;
    top: 24%;
    right: -10%;
    border-radius: 25px !important;
  }

  .chip-one {
    left: 28%;
    top: -18px;
  }

  .note-arrow {
    left: 24%;
    bottom: 24px;
    width: 100px;
  }
}

@media (min-width: 701px) {
  .hero {
    padding-top: 130px;
  }

  .hero .body-copy {
    margin: 0px auto 25px;
    max-width: 620px;
  }


  .product-stage {
    margin-top: 58px;
    padding-bottom: 70px;
  }

  .desktop-frame {
    position: relative;
    border-radius: 13px;
  }

  .ribbon {
    height: 600px;
  }

  .ribbon path {
    stroke-width: 34;
  }

  .hero-chip {
    font-size: var(--fs-ui);
    padding: 10px 16px;
  }

  .chip-two {
    right: 1%;
    bottom: 6%;
  }

  .product-stage > .handnote {
    bottom: 20px;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .hero-phone {
    width: 22%;
    right: 1%;
    top: 24%;
    border-radius: 25px !important;
  }

  .chip-one {
    top: -18px;
    left: 23%;
  }

  .note-arrow {
    left: 24%;
    bottom: 24px;
    width: 100px;
    display: none;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 105px;
  }

  .hero .eyebrow {
    font-size: var(--fs-ui);
    letter-spacing: var(--ls-ui);
    margin-bottom: 22px;
  }

  .hero .body-copy {
    margin: 0px auto 23px;
    max-width: 320px;
  }


  .product-stage {
    margin-top: 38px;
    width: calc(100% - 32px);
    height: 580px;
    padding-bottom: 55px;
  }

  .desktop-frame {
    position: absolute;
    top: 75px;
    left: 0px;
    width: 100%;
    border-radius: 7px;
    opacity: 0.8;
  }

  .hero-phone {
    width: 240px;
    right: 4px;
    top: 0px;
    border-radius: 24px !important;
  }

  /* Phones: the hero's middle falls on the text, so the line runs through the middle of the screenshots instead. */
  .ribbon {
    top: 62%;
    height: 300px;
  }

  .ribbon path {
    stroke-width: 29px;
  }

  .hero-chip {
    font-size: var(--fs-ui);
    padding: 8px 11px;
  }

  .chip-one {
    left: 0px;
    top: -34px;
    max-width: 180px;
  }

  .chip-two {
    inset: 515px 5px auto auto;
    max-width: 190px;
  }

  .note-arrow {
    left: auto;
    right: 12px;
    bottom: 8px;
    width: 85px;
    display: none;
  }

  .product-stage > .handnote {
    font-size: 12px;
    bottom: 15px;
    max-width: 180px;
  }

  .hero h1 {
    margin-bottom: 22px;
    font-size: clamp(26px, 7.4vw, 35.2px);
  }

  .hero .button {
    min-height: 54px;
  }
}

/* Facts */

.facts {
  display: flex;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.facts > span {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
  background: var(--indigo);
  padding: 12px 18px;
  border: 1px solid rgb(216, 223, 237);
  border-radius: 24px;
  color: white;
  font-weight: 600;
}

.facts > span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  vertical-align: 3px;
  color: var(--mint);
  margin-right: 8px;
}

@media (min-width: 701px) {
  .facts {
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 27px;
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  .facts {
    font-size: 11px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding-block: 23px;
  }

  .facts > span:last-child {
    flex-basis: 100%;
  }
}

@media (min-width: 701px) {
  .facts > span {
    white-space: nowrap;
  }
}

/* Product story: a static stack enhanced into a native-scroll slideshow. */
.product-story { --step-progress: 0; --story-direction: 1; padding-bottom: 48px; }
.story-heading { text-align: center; }
.story-heading .eyebrow { margin-bottom: 8px; }
.story-heading h2 { font-size: clamp(22px,2.4vw,34px); margin-bottom: 0; }
.step-ribbon { width: 100%; position: relative; display: flex; justify-content: space-between; gap: 10px; max-width: 780px; margin: 22px auto; isolation: isolate; }
.step-ribbon::before,.step-ribbon::after { content: ''; position: absolute; top: 22px; height: 3px; left: 24px; right: 24px; background: #dcdfea; z-index: -1; }
.step-ribbon::after { background: linear-gradient(90deg,#3ff2c4,#35d6f5,#8a6cff); transform: scaleX(var(--step-progress, 0)); transform-origin: left; box-shadow: 0 0 12px #35d6f555; }
.step-ribbon button { border: 0; padding: 0 10px; background: #f7f7fb; color: var(--indigo); display: flex; align-items: center; gap: 10px; min-height: 44px; font: inherit; font-size: var(--fs-ui); cursor: pointer; }
.step-dot { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 1px solid #b8bfd6; background: #f7f7fb; font-weight: 700; }
.step-ribbon :is([aria-current], [aria-selected=true]) .step-dot { background: linear-gradient(135deg,#0d7879,#3434a5,#7150ce); color: white; border-color: transparent; box-shadow: 0 4px 12px #30357925; }
.step-ribbon button:focus-visible { outline: 3px solid #5548b8; outline-offset: 3px; border-radius: 24px; }
@media (max-width: 1099px) {
  .step-ribbon { margin: 14px auto 34px; max-width: 360px; }
  .step-ribbon button { padding: 0; }
  .step-label { display: none; }
  .step-ribbon :is([aria-current], [aria-selected=true]) .step-label { display: block; position: absolute; top: 49px; left: 0; width: 100%; text-align: center; }
}
.story-timeline { position: relative; }
.story-chapter { position: relative; display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); gap: 36px; align-items: center; padding: 32px; margin-bottom: 24px; border: 1px solid #e2e2ed; border-radius: 30px; background: #f6f1eb; }
.story-chapter-2 { background: #eeeffb; }
.story-chapter-3 { background: #eaf8f3; }
.story-chapter-4 { background: #f1edfb; }
.story-icon { width: 36px; height: 36px; color: var(--indigo); margin-bottom: 16px; }
.story-copy,.story-visual { min-width: 0; }
.story-body-compact { display: none; }
.story-copy .eyebrow { font-size: var(--fs-ui); letter-spacing: .06em; margin-bottom: 10px; }
.story-copy h3 { font-size: clamp(18px,1.55vw,24px); line-height: 1.4; margin-bottom: 16px; color: var(--indigo); }
.story-copy .body-copy { font-size: 16px; line-height: 1.65; }
.story-mess { position: relative; height: 340px; overflow: clip; border-radius: 24px; background: radial-gradient(ellipse at 40% 45%,#dce6fa,transparent 70%); }
.story-mess .artifact { position: absolute; border: 1px solid #dedfea; box-shadow: 0 12px 35px #141b3d14; background: white; }
.story-mess .chat-art { width: 290px; max-width: 85%; top: 14px; left: 5%; padding: 12px; border: 5px solid #252c54; border-radius: 22px; transform: rotate(-5deg); }
.story-mess .chat-art .eyebrow { color: #555c78; font-size: var(--fs-ui); margin-bottom: 8px; }
.story-mess .chat-art > p:not(.eyebrow) { margin: 5px 0; padding: 7px 9px; background: #efeff9; border-radius: 8px; font-size: 12px; }
.story-mess .receipt { top: 115px; right: 12px; padding: 16px 16px 22px; background: #fffef5; width: 139px; transform: rotate(11deg); font-size: 11px; clip-path: polygon(0 0,100% 0,100% 96%,90% 100%,80% 96%,70% 100%,60% 96%,50% 100%,40% 96%,30% 100%,20% 96%,10% 100%,0 96%); }
.story-mess .receipt hr { border: 0; border-top: 1px dashed #aca99b; margin: 8px 0; }
.story-mess .receipt p:nth-of-type(2) { font-size: 23px; font-weight: 600; }
.story-mess .receipt p:last-child { color: #8d3644; }
.story-mess .file-art { left: 3%; bottom: 75px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; transform: rotate(3deg); font-size: 12px; }
.story-mess .file-art b { color: #9d354d; background: #fff0f3; padding: 10px 5px; border-radius: 4px; font-size: 11px; }
.story-mess .file-art span span { color: #5b6179; font-size: 11px; }
.story-mess .sticky { bottom: 8px; right: 12%; width: 190px; padding: 16px; background: #ffedb6; transform: rotate(-7deg); font: italic 17px/1.4 Georgia,serif; }
.story-nameplates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-nameplates p { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; background: #ffffffb8; border-radius: 18px; color: var(--indigo); font-size: 14px; font-weight: 600; line-height: 1.5; }
.story-monogram { display: grid; place-items: center; position: relative; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,#0d7879,#3434a5,#7150ce); color: white; }
.story-monogram::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #3ff2c4; right: -2px; bottom: -2px; border: 2px solid white; }
.story-stats { display: flex; gap: 32px; margin-top: 22px; }
.story-stats p { margin: 0; display: grid; gap: 5px; color: var(--indigo); font-size: var(--fs-ui); }
.story-stats strong { font-family: Unbounded,sans-serif; font-size: clamp(28px,3vw,42px); line-height: 1.3; }
.story-flow { margin-top: 18px; color: var(--indigo); font-size: var(--fs-ui); font-weight: 600; line-height: 1.6; }
.story-proof { position: relative; padding-bottom: 60px; }
.story-screen { margin: 0; min-width: 0; }
.story-screen:nth-child(2) { position: absolute; width: 48%; right: -8px; bottom: 0; transform: rotate(3deg); }
.story-screen .shot { display: block; background: #fff; border: 1px solid #dfe1ed; border-radius: 12px; padding: 6px; box-shadow: 0 16px 35px #141b3d19; }
.story-screen img { display: block; width: 100%; height: auto; border-radius: 7px; }
.story-screen .zoom { font-size: var(--fs-ui); padding: 8px; }
.story-screen figcaption { color: #454d6c; font-size: var(--fs-ui); line-height: 1.5; margin-top: 6px; }
.story-callout { margin: 18px 52% 0 0; padding-left: 14px; border-left: 2px solid #15706a; font-size: var(--fs-ui); color: #195951; }
.story-releases { padding: 12px; }
.story-releases > .eyebrow { font-size: var(--fs-ui); margin-bottom: 16px; color: #555078; }
.story-release { display: flex; align-items: center; gap: 12px; padding: 10px; margin-top: 8px; background: #fff; border: 1px solid #e1dff2; border-radius: 12px; box-shadow: 0 6px 14px #30357906; }
.story-release > span { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: #d3fbef; color: #0d4260; }
.story-release p { margin: 0; font-size: var(--fs-ui); color: var(--indigo); }
.story-release small { margin-left: auto; flex-shrink: 0; padding: 3px 5px; background: #d3fbef; color: #0d4260; border-radius: 5px; font-size: 11px; }
.story-tick { height: 3px; width: 120px; margin: 18px auto 0; background: #d3cdea; }
.story-tick span { display: block; height: 9px; width: 9px; border-radius: 50%; background: #5351b3; transform: translate(111px,-3px); }
.story-end { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--indigo); font: 600 clamp(16px,1.5vw,22px)/1.5 Unbounded,sans-serif; margin: 0; }
.story-end img { width: 44px; height: 44px; border-radius: 12px; }
@media (max-width: 1099px) { .story-copy h3 { white-space: normal; } }
@media (max-width: 899px) {
  .story-chapter { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .story-icon { display: none; }
  .story-proof { max-width: 580px; margin: auto; }
}
@media (max-width: 700px) {
  .story-chapter { padding: 18px; border-radius: 22px; }
  .story-copy h3 { font-size: 18px; margin-bottom: 8px; }
  .story-copy .body-copy { font-size: 14px; line-height: 1.5; }
  .story-copy .eyebrow { margin-bottom: 6px; }
  .story-mess { height: 280px; }
  .story-mess .chat-art { width: 250px; left: 3%; }
  .story-mess .receipt { top: 98px; width: 112px; padding: 10px; }
  .story-mess .receipt p:nth-of-type(2) { font-size: 20px; }
  .story-mess .file-art { bottom: 66px; max-width: 95%; padding: 8px; font-size: 10px; }
  .story-mess .file-art span span { font-size: 10px; }
  .story-mess .sticky { width: 165px; right: 12px; padding: 12px; font-size: 15px; }
  .story-nameplates { gap: 8px; }
  .story-nameplates p { padding: 10px; font-size: 12px; gap: 8px; }
  .story-monogram { width: 32px; height: 32px; border-radius: 9px; }
  .story-stats { margin-top: 12px; }
  .story-proof { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0; }
  .story-screen:nth-child(2) { position: relative; width: 100%; right: auto; bottom: auto; transform: none; }
  .story-callout { margin: 0; }
  .story-flow { margin-top: 8px; }
  .story-releases { padding: 0; }
  .story-release { padding: 9px; gap: 8px; }
  .story-end { gap: 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) and (min-height: 561px) and (min-width: 900px) {
  html.has-js .story-pinned { padding-top: 0; padding-bottom: 0; height: 400svh; }
  .story-pinned .story-pin { position: sticky; top: 72px; height: calc(100dvh - 72px); overflow: clip; display: flex; flex-direction: column; padding: 18px 0; }
  .story-pinned .story-timeline { display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); flex: 1; min-height: 0; }
  .story-pinned .story-chapter { grid-area: 1/1; margin: 0; min-height: 0; opacity: 0; pointer-events: none; transform: translateY(calc(-24px * var(--story-direction))); transition: opacity .55s ease,transform .55s ease; }
  .story-pinned .story-chapter.is-active { opacity: 1; pointer-events: auto; transform: none; z-index: 1; }
  .story-pinned .story-copy,.story-pinned .story-visual { transition: transform .55s ease .08s,opacity .55s ease .08s; }
  .story-pinned .story-chapter:not(.is-active) .story-visual { transform: translateY(calc(32px * var(--story-direction))); opacity: 0; }
  .story-pinned .artifact { transition: transform 1s ease; }
  .story-pinned .story-chapter:not(.is-active) .chat-art { transform: translate(-12px,-12px) rotate(-12deg); }
  .story-pinned .story-chapter:not(.is-active) .receipt { transform: translate(18px,15px) rotate(20deg); }
  .story-pinned .story-chapter:not(.is-active) .sticky { transform: translate(15px,25px) rotate(7deg); }
  .story-pinned .story-release { transition: opacity .5s ease,transform .5s ease; transition-delay: calc(var(--release-order) * .07s); }
  .story-release:nth-of-type(1) { --release-order: 1; }.story-release:nth-of-type(2) { --release-order: 2; }.story-release:nth-of-type(3) { --release-order: 3; }.story-release:nth-of-type(4) { --release-order: 4; }.story-release:nth-of-type(5) { --release-order: 5; }
  .story-pinned .story-chapter:not(.is-active) .story-release { opacity: 0; transform: translateX(22px); }
  .story-pinned .is-active .story-monogram::after { animation: story-live 1s ease 3; }
  .story-pinned .is-active .story-tick span { animation: story-tick 2s ease both; }
  .story-pinned .story-screen:first-child img { max-height: calc(100dvh - 410px); object-fit: contain; }
  .story-pinned .story-chapter-4 { grid-template-rows: minmax(0,1fr) auto; gap: 16px 36px; }
  @media (max-height: 700px) {
    .story-pinned .story-heading h2 { font-size: 19px; }
    .story-pinned .step-ribbon { margin-top: 8px; margin-bottom: 30px; }
    .story-pinned .story-copy .body-copy { font-size: 13px; line-height: 1.45; }
    .story-pinned .story-copy .eyebrow { font-size: 11px; }
    .story-pinned .story-copy h3 { margin-bottom: 6px; }
    .story-pinned .story-mess { height: 180px; }
    .story-pinned .story-mess .chat-art { top: 5px; padding: 7px; }
    .story-pinned .story-mess .chat-art > p:not(.eyebrow) { padding: 4px; margin: 3px 0; }
    .story-pinned .story-mess .receipt { top: 50px; }
    .story-pinned .story-mess .file-art { bottom: 50px; }
    .story-pinned .story-mess .sticky { bottom: 4px; padding: 8px; font-size: 13px; }
    .story-pinned .story-nameplates p { padding: 6px; gap: 4px; font-size: 11px; }
    .story-pinned .story-monogram { width: 24px; height: 24px; border-radius: 7px; }
    .story-pinned .story-stats { margin-top: 8px; gap: 16px; }
    .story-pinned .story-stats p { font-size: 11px; }
    .story-pinned .story-stats strong { font-size: 25px; }
    .story-pinned .story-release { margin-top: 4px; padding: 5px 8px; gap: 6px; }
    .story-pinned .story-release p { font-size: 11px; }
    .story-pinned .story-release > span { width: 20px; height: 20px; }
    .story-pinned .story-release small { display: none; }
    .story-pinned .story-tick { display: none; }
    .story-pinned .story-tick { margin-top: 10px; }
    .story-pinned .story-screen:nth-child(2) { margin-top: -110px; }
    .story-pinned .story-screen:first-child img { max-height: 26dvh; }
    .story-pinned .story-flow,
    .story-pinned .story-screen:nth-child(2) figcaption { display: none; }
    .story-pinned .story-body-full { display: none; }
    .story-pinned .story-body-compact { display: inline; }
    .story-pinned .story-end { font-size: 12px; }
    .story-pinned .story-end img { width: 32px; height: 32px; }
  }
}
@keyframes story-live { 50% { box-shadow: 0 0 0 5px #3ff2c433; } }
@keyframes story-tick { from { transform: translate(0,-3px); } to { transform: translate(111px,-3px); } }

/* Workflow heading */

.workflow-heading {
  max-width: 1000px;
  text-align: center;
}

.workflow-heading h2 > [data-i="workflowStart"] {
  display: block;
  margin-bottom: 5px;
}

.workflow-heading [data-i="workflowMiddle"] {
  display: inline;
}

@media (min-width: 701px) {
  .workflow-heading {
    padding-top: 120px;
  }
}

@media (max-width: 700px) {
  .workflow-heading {
    padding-top: 85px;
  }
}

@media (max-width: 700px) {
  .workflow-heading [data-i="workflowMiddle"] {
    display: block;
  }
}

html.has-js {
  overscroll-behavior-x: none;
}

/* Existing page overflow fixes apply only below 360px. */

@media (max-width: 359px) {
  .header {
    max-width: 100vw;
  }

  .header .nav {
    width: calc(100% - 16px);
  }

  .header .nav,.header .nav-actions {
    gap: 0;
  }

  .header .wordmark {
    font-size: 24px;
  }

  .header .button.small {
    padding-inline: 8px;
    gap: 4px;
  }

  .extras h2 {
    overflow-wrap: normal;
  }
}



/* Chapters shared */

.screen figcaption {
  color: rgb(75, 82, 112);
  margin-top: 13px;
}

.chapter-intro {
  grid-template-columns: 1fr;
  align-items: end;
}

.chapter-intro h2 {
  color: var(--indigo);
}

.replace {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
  color: rgb(98, 100, 130);
  border: 1px solid rgb(218, 220, 233);
  border-radius: 20px;
  width: fit-content;
  padding: 5px 13px;
}

.screen {
  position: relative;
  min-width: 0px;
}

.screen-2 {
  animation-delay: 0.12s;
}

.annotated {
  position: relative;
  width: 100%;
}

.annotated-image {
  position: relative;
  --target-y: 35%;
}

.aim-0 {
  --target-y: 71%;
}

.aim-1 {
  --target-y: 8%;
}

.aim-2 {
  --target-y: 60%;
}

.aim-3 {
  --target-y: 20%;
}

.aim-4 {
  --target-y: 35%;
}

.aim-5 {
  --target-y: 85%;
}

.aim-6 {
  --target-y: 45%;
}

.aim-7 {
  --target-y: 35%;
}

.aim-8 {
  --target-y: 24%;
}

.aim-9 {
  --target-y: 35%;
}

.leader {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}

.leader path {
  stroke: rgb(99, 89, 151);
  stroke-width: 1.2;
  fill: none;
  vector-effect: non-scaling-stroke;
}

.target-dot {
  position: absolute;
  left: -4px;
  top: var(--target-y);
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(57, 51, 115);
  background: var(--mint);
  border-radius: 50%;
  pointer-events: none;
}

.supporting {
  align-items: start;
}

.supporting figure {
  position: relative;
  min-width: 0px;
  justify-self: center;
}

.supporting .shot {
  box-shadow: rgba(34, 41, 74, 0.05) 0px 10px 20px;
}

.chapter .stage-main {
  max-width: none;
  margin: 0px;
  align-items: start;
}

.chapter .screen {
  max-width: none;
  width: 100%;
  margin: 0px;
  order: 0;
  transform: none;
  justify-self: stretch;
  padding: 48px 0px 0px;
}

.chapter .screen-1 {
  z-index: 1;
}

.chapter .screen-1 .shot {
  background: rgb(242, 250, 248);
}

.chapter .screen-2 {
  z-index: 3;
}

.chapter .screen-2 .shot {
  box-shadow: rgba(36, 35, 75, 0.19) 0px 28px 48px;
}

.chapter .callout {
  top: 3px;
}

.chapter figcaption {
  font-size: 13px;
  line-height: 1.5;
}

.chapter .screen-2::before {
  display: none;
}

.chapter .leader {
  left: -12px;
  width: 12px;
  top: -20px;
  height: calc(var(--target-y) + 20px);
}

.chapter .supporting {
  grid-area: 2 / 1;
  gap: 24px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.chapter .supporting figure {
  width: 100%;
  max-width: none;
  margin: 0px;
}

.chapter .supporting .annotated {
  padding-top: 48px;
}

.chapter .shot:has(.crop-bar) {
  border-color: rgb(159, 167, 194);
}

.chapter .shot .zoom {
  top: 0px;
  bottom: auto;
  right: 0px;
  border-radius: 0px 0px 0px 5px;
  padding: 4px 10px;
}

@media (min-width: 1101px) {
  .chapter-intro {
    display: grid;
    gap: 24px;
    margin-bottom: 35px;
  }

  .chapter .stage-main {
    display: grid;
    grid-template-columns: minmax(0px, 1fr) 365px;
    gap: 24px;
    padding: 25px 0px 0px;
  }

  .chapter .callout {
    font-size: 15px;
  }

  .chapter .supporting {
    display: grid;
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    margin: 0px;
    max-width: none;
  }
}

@media (min-width: 701px) {
  .replace {
    margin-top: 18px;
  }

  .annotated {
    padding: 80px 0px 0px 12px;
  }

  .mobile-callout {
    display: none;
  }

  .chapter .stage {
    padding: 26px 30px 30px;
  }

  .chapter .screen-1 {
    grid-area: 1 / 1 / auto / -1;
  }

  .chapter .screen-1 .shot {
    padding-bottom: 70px;
  }

  .chapter .screen-2 {
    grid-area: 2 / 2;
    margin-top: -140px;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .chapter-intro {
    display: grid;
    margin-bottom: 35px;
    gap: 24px;
  }

  .chapter .stage-main {
    display: grid;
    gap: 24px;
    padding: 25px 0px 0px;
    grid-template-columns: minmax(0px, 1fr) 320px;
  }

  .chapter .callout {
    font-size: 14px;
  }

  .chapter .supporting {
    display: grid;
    margin: 0px;
    grid-template-columns: 1fr;
    max-width: 375px;
  }
}

@media (max-width: 700px) {
  .chapter-intro {
    gap: 35px;
    display: block;
    margin-bottom: 27px;
  }

  .replace {
    margin-top: 15px;
  }

  .annotated {
    padding: 75px 0px 0px 12px;
  }

  .chapter-intro .body-copy {
    margin-top: 20px;
  }

  .mobile-callout {
    display: block;
  }

  .chapter .stage {
    margin-inline: -16px;
    padding: 18px 1px 24px;
  }

  .chapter .stage-main {
    padding: 18px 0px 0px;
    grid-template-columns: minmax(0px, 1fr) 320px;
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  .chapter .screen {
    grid-area: auto;
  }

  .chapter .screen-1 {
    width: 100%;
    max-width: none;
    margin: 0px;
    grid-area: auto;
    transform: none;
    padding-top: 48px;
  }

  .chapter .screen-1 .shot {
    padding-bottom: 0px;
  }

  .chapter .screen-2 {
    width: 100%;
    max-width: none;
    margin: 16px 0px 0px;
    grid-area: auto;
    transform: none;
    padding-top: 48px;
    align-self: flex-end;
  }

  .chapter .callout {
    font-size: 14px;
    line-height: 1.4;
    left: 8px;
  }

  .chapter figcaption {
    padding-inline: 8px;
  }

  .chapter .leader {
    display: none;
  }

  .chapter .supporting {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    margin: 24px 0px 0px;
    max-width: none;
  }

  .chapter .stage-label {
    padding-inline: 10px;
    font-size: 12px;
    letter-spacing: 0.2px;
  }

  .chapter .target-dot {
    display: none;
  }

  .desktop-callout {
    display: none;
  }
}

/* Picture placeholders match the selected source before lazy assignment. */

@media (min-width: 701px) {
  .offer-items-picture img {
    aspect-ratio: 1270 / 1330;
  }
}

@media (max-width: 700px) {
  .offer-items-picture img {
    aspect-ratio: 750 / 935;
  }
}

@media (max-width: 700px) {
  .supplier-picture img {
    aspect-ratio: 750 / 245;
  }
}

@media (min-width: 701px) {
  .tasks-stage-picture img {
    aspect-ratio: 2000 / 606;
  }
}

@media (max-width: 700px) {
  .tasks-stage-picture img {
    aspect-ratio: 750 / 638;
  }
}

@media (min-width: 701px) {
  .expenses-stage-picture img {
    aspect-ratio: 2000 / 1078;
  }
}

@media (max-width: 700px) {
  .expenses-stage-picture img {
    aspect-ratio: 750 / 485;
  }
}

@media (max-width: 700px) {
  .settlement-picture img {
    aspect-ratio: 750 / 445;
  }
}

@media (min-width: 701px) {
  .chat-stage-picture img {
    aspect-ratio: 1240 / 940;
  }
}

@media (max-width: 700px) {
  .chat-stage-picture img {
    aspect-ratio: 780 / 1020;
  }
}

@media (min-width: 701px) {
  .chat-phone-picture img {
    aspect-ratio: 780 / 1020;
  }
}

@media (max-width: 700px) {
  .chat-phone-picture img {
    aspect-ratio: 744 / 363;
  }
}

@media (max-width: 700px) {
  .chat-seen-picture img {
    aspect-ratio: 744 / 363;
  }
}

@media (min-width: 701px) {
  .documents-stage-picture img {
    aspect-ratio: 2000 / 410;
  }
}

@media (max-width: 700px) {
  .documents-stage-picture img {
    aspect-ratio: 750 / 340;
  }
}

@media (min-width: 701px) {
  .notifications-picture img {
    aspect-ratio: 1500 / 414;
  }
}

@media (max-width: 700px) {
  .notifications-picture img {
    aspect-ratio: 730 / 280;
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .chapter .stage-main {
    grid-template-columns: 1fr;
  }

  .chapter .screen-2 {
    grid-area: auto;
    margin-top: 0px;
    max-width: 375px;
    justify-self: center;
  }
}

/* Offers */

.offers .supporting {
  grid-area: 2 / 1 / auto / -1;
}

.offers .stage {
  background: linear-gradient(#c5d5e6, #e4ecf4);
}

.offers .screen-2::before {
  content: "↳";
  position: absolute;
  left: -65px;
  top: 40%;
  font-size: 65px;
  color: rgb(118, 96, 162);
}

.offers .screen-2 .shot {
  border-radius: 2px;
}

@media (min-width: 1101px) {
  .offers .supporting {
    max-width: 800px;
  }

  .offers .stage-main {
    grid-template-columns: minmax(0px, 740px) minmax(0px, 1fr);
  }

  .offers .screen-2 {
    grid-row: 1;
    margin-top: 200px;
    width: calc(100% + 64px);
    margin-left: -64px;
    transform: rotate(2deg);
  }
}

@media (min-width: 701px) {
  .offers .screen-1 {
    grid-area: 1 / 1;
  }

  .offers .screen-1 .shot {
    padding-bottom: 0px;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .offers .supporting {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .offers .stage-main {
    grid-template-columns: minmax(0px, 1fr) 280px;
  }

  .offers .screen-2 {
    grid-row: 1;
    margin-top: 200px;
    margin-left: -64px;
    transform: rotate(2deg);
    width: calc(100% + 64px);
  }
}

@media (max-width: 700px) {
  .offers .supporting {
    grid-template-columns: 1fr 1fr;
  }

  .offers .stage-main {
    grid-template-columns: minmax(0px, 1fr) 280px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding-top: 18px;
  }

  .offers .screen-2 {
    width: 94%;
    margin-top: 15px;
  }

  .offers .screen-2::before {
    display: none;
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .offers .stage-main {
    grid-template-columns: 1fr;
  }

  .offers .screen-2 {
    grid-area: auto;
    width: min(100%, 375px);
    margin: 20px 0px 0px;
  }
}

/* Tasks */

.tasks .chapter-intro {
  grid-template-columns: 1fr;
}

@media (min-width: 701px) and (max-width: 1100px) {
  .tasks .supporting {
    grid-area: 3 / 1 / auto / -1;
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

@media (max-width: 700px) {
  .tasks .stage-main {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding-top: 18px;
  }

  .tasks .supporting {
    grid-area: 3 / 1 / auto / -1;
    grid-template-columns: 1fr 1fr;
  }

  .tasks .chapter-intro {
    display: block;
  }
}

/* Money */

.money .stage {
  background: linear-gradient(rgb(215, 243, 233), rgb(238, 248, 244));
}

@media (min-width: 701px) {
  .money .screen-2 {
    display: flex;
    flex-direction: column;
    padding-top: 0px;
    margin-top: -100px;
  }

  .money .screen-2 .callout {
    position: static;
    order: 2;
    margin-top: 18px;
    align-self: flex-start;
  }

  .money .screen-2 .leader {
    display: none;
  }

  .money .screen-2 figcaption {
    order: 1;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .money .supporting {
    grid-area: 3 / 1 / auto / -1;
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

@media (max-width: 700px) {
  .money .stage-main {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding-top: 18px;
  }

  .money .supporting {
    grid-area: 3 / 1 / auto / -1;
    grid-template-columns: 1fr 1fr;
    display: flex;
    flex-direction: column;
    margin: 24px 0px 0px;
    gap: 24px;
    max-width: none;
    width: 100%;
  }

  .money .supporting figure:last-child {
    max-width: none;
    margin: 0px;
  }
}

/* Chat */

.chat .stage {
  background: linear-gradient(rgb(214, 242, 251), rgb(240, 248, 252));
}

.chat .screen-2 .mobile-callout {
  display: none;
}

@media (min-width: 1101px) {
  .chat .supporting {
    grid-template-columns: 1fr;
    max-width: 375px;
  }
}

@media (min-width: 1101px) and (max-width: 1299px) {
  .chat .stage-main {
    grid-template-columns: minmax(0px, 1fr) 340px;
  }
}

@media (min-width: 1300px) {
  .chat .stage-main {
    grid-template-columns: minmax(0px, 1fr) 300px;
  }

  .chat .screen-1 {
    max-width: none;
  }

  .chat {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
  }

  .chat .chapter-intro {
    display: grid;
    margin: 0px;
  }
}

@media (min-width: 701px) {
  .chat .screen-2 {
    padding-top: 0px;
  }
}

@media (min-width: 701px) and (max-width: 1299px) {
  .chat .screen-1 {
    max-width: 800px;
  }
}

@media (max-width: 700px) {
  .chat .stage-main {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding-top: 18px;
  }

  .chat .supporting {
    flex-direction: column;
    margin: 24px 0px 0px;
    gap: 24px;
    max-width: none;
    width: 100%;
    display: none;
  }

  .chat .screen-2 .mobile-callout.callout {
    display: flex;
  }

  .chat .screen-2 .shot {
    border: 1px solid rgb(194, 203, 213);
    border-radius: 10px;
  }
}

@media (max-width: 700px) {
  .chat h2 {
    font-size: clamp(1.25rem, 6.6vw, 1.625rem);
  }
}

/* Docs */

.docs .stage {
  background: linear-gradient(rgb(233, 234, 241), rgb(242, 243, 247));
}

.docs .supporting {
  max-width: none;
}

.docs .chapter-intro {
  grid-template-columns: 1fr;
}

@media (min-width: 1101px) {
  .docs .supporting {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) {
  .docs .screen-2 {
    display: flex;
    flex-direction: column;
    padding-top: 0px;
    margin-top: -100px;
  }

  .docs .screen-1 .shot {
    padding-bottom: 70px;
  }

  .docs .screen-2 .callout {
    position: static;
    order: 2;
    margin-top: 18px;
    align-self: flex-start;
  }

  .docs .screen-2 .leader {
    display: none;
  }

  .docs .screen-2 figcaption {
    order: 1;
  }
}

@media (max-width: 700px) {
  .docs .stage-main {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding-top: 18px;
  }

  .docs .supporting {
    display: flex;
    flex-direction: column;
    margin: 24px 0px 0px;
    gap: 24px;
    width: 100%;
  }

  .docs .chapter-intro {
    display: block;
  }
}

/* Workflow slideshow: existing chapter layouts above remain the stacked fallback. */
.workflow-body-compact, .more-screens { display: none; }
.chapter-journey .stage, .chapter-journey .screen { opacity: 1; visibility: visible; }
.workflow-pin > .step-ribbon { margin: 16px auto 34px; }
@media (prefers-reduced-motion: no-preference) and (min-height: 561px) and (min-width: 900px) {
  html.has-js .workflow-pinned { height: 500svh; padding: 0; overflow-anchor: none; }
  .workflow-pinned .workflow-pin {
    position: sticky; top: 72px; height: calc(100dvh - 72px);
    display: flex; flex-direction: column; padding: 12px 0; overflow: clip;
  }
  .workflow-pinned .workflow-heading { padding: 0; }
  .workflow-pinned .workflow-heading > .eyebrow { display: none; }
  .workflow-pinned .workflow-heading h2 { font-size: 22px; margin: 0; line-height: 1.4; }
  .workflow-pinned .workflow-heading h2 > [data-i] { display: inline; margin: 0; }
  .workflow-pinned .chapter-pages { display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); flex: 1; min-height: 0; }
  .workflow-pinned .chapter {
    grid-area: 1/1; display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0;
    padding: 18px 26px; border: 1px solid #dfe0ed; border-radius: 26px;
    background: linear-gradient(#daddfa,#eef0ff); opacity: 0; pointer-events: none;
    transform: translateY(calc(-24px * var(--story-direction)));
    transition: opacity .55s ease, transform .55s ease;
  }
  .workflow-pinned .chapter.is-active { opacity: 1; pointer-events: auto; transform: none; z-index: 1; }
  .workflow-pinned .offers { background: linear-gradient(#c5d5e6,#e4ecf4); }
  .workflow-pinned .tasks { background: #eaf8f3; }
  .workflow-pinned .money { background: #fff4de; }
  .workflow-pinned .chat { background: #f1edfb; }
  .workflow-pinned .docs { background: #eaf2fc; }
  .workflow-pinned .chapter-intro { display: block; padding: 0; margin: 0 0 12px; }
  .workflow-pinned .chapter-intro h2 { font-size: clamp(18px,2vw,27px); line-height: 1.4; white-space: nowrap; margin: 4px 0; }
  .workflow-pinned .chapter-intro h2 span { display: inline; }
  .workflow-pinned .chapter-intro .eyebrow { font-size: 11px; margin: 0; }
  .workflow-pinned .chapter-intro .body-copy { font-size: 14px; line-height: 1.5; margin: 4px 0 8px; max-width: 100%; }
  .workflow-pinned .replace { font-size: 11px; padding: 3px 10px; }
  .workflow-pinned .chapter .stage { background: none; border: 0; padding: 0; margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .workflow-pinned .stage-label { display: none; }
  .workflow-pinned .chapter .stage-main { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); grid-template-rows: minmax(0,1fr); gap: 24px; padding: 0; flex: 1; min-height: 0; width: 100%; }
  .workflow-pinned .chapter .screen { position: relative; inset: auto; grid-area: auto; width: 100%; height: 100%; min-height: 0; padding: 30px 0 22px; margin: 0; display: flex; flex-direction: column; transform: none; }
  .workflow-pinned .chapter .annotated-image { flex: 1; min-height: 0; display: flex; justify-content: center; }
  .workflow-pinned .chapter .shot { display: flex; flex-direction: column; width: fit-content; max-width: 100%; height: 100%; padding: 4px; border-radius: 12px; overflow: hidden; }
  .workflow-pinned .chapter picture { display: contents; }
  .workflow-pinned .chapter .shot img { display: block; width: auto; max-width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 8px; }
  .workflow-pinned .chapter :is(.supporting,.crop-bar,.leader,.target-dot) { display: none; }
  .workflow-pinned .chapter .callout { top: 0; font-size: 12px; }
  .workflow-pinned .chapter .callout b { width: 22px; height: 22px; }
  .workflow-pinned .chapter figcaption { margin: 4px 0 0; font-size: 11px; text-align: center; }
}

/* Phones and narrow tablets: both step sections are horizontal swipe carousels of natural height.
   Pure CSS, so the slides stay swipeable without JavaScript; app.js only syncs the step bar. */
.swipe-hint { display: none; }
@media (max-width: 899px) {
  :is(.story-timeline, .chapter-pages) {
    position: relative; display: flex; align-items: stretch; gap: 12px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; touch-action: pan-x pan-y; scrollbar-width: none;
  }
  :is(.story-timeline, .chapter-pages)::-webkit-scrollbar { display: none; }
  :is(.story-timeline, .chapter-pages):focus-visible { outline: 3px solid #5548b8; outline-offset: 4px; border-radius: 22px; }
  :is(.story-timeline > .story-chapter, .chapter-pages > .chapter) {
    flex: 0 0 100%; width: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always;
  }

  /* Story */
  .product-story .story-chapter { align-content: start; align-items: start; grid-template-columns: minmax(0,1fr); }
  .product-story .story-visual { align-self: center; }
  .product-story .story-mess { height: 300px; }
  .product-story .story-proof { width: min(100%,520px); }
  .product-story .story-screen:first-child img { max-height: 32svh; width: auto; max-width: 100%; margin: auto; }

  /* Как работи: one key screenshot per step, the rest behind "Още екрани". */
  .chapter-journey .workflow-heading > .eyebrow { display: none; }
  .chapter-journey .workflow-heading h2 { font-size: clamp(13px,3.6vw,22px); white-space: nowrap; margin: 0; line-height: 1.4; }
  .chapter-journey .workflow-heading h2 > [data-i] { display: inline; margin: 0; }
  .chapter-journey .chapter-pages { width: calc(100% - 64px); margin-inline: auto; }
  .chapter-journey .chapter-pages > .chapter {
    display: flex; flex-direction: column; gap: 0; padding: 12px 14px;
    border: 1px solid #dfe0ed; border-radius: 22px; background: linear-gradient(#daddfa,#eef0ff);
  }
  .chapter-journey .chapter-pages > .offers { background: linear-gradient(#c5d5e6,#e4ecf4); }
  .chapter-journey .chapter-pages > .tasks { background: #eaf8f3; }
  .chapter-journey .chapter-pages > .money { background: #fff4de; }
  .chapter-journey .chapter-pages > .chat { background: #f1edfb; }
  .chapter-journey .chapter-pages > .docs { background: #eaf2fc; }
  .chapter-journey .chapter-intro { display: block; padding: 0; margin: 0 0 6px; }
  .chapter-journey .chapter-intro h2 { font-size: clamp(14px,3.9vw,24px); line-height: 1.4; margin: 4px 0; }
  .chapter-journey .chapter-intro h2 span { display: inline; }
  .chapter-journey .chapter-intro .eyebrow { font-size: 11px; margin: 0; }
  .chapter-journey .chapter-intro .body-copy { font-size: 12px; line-height: 1.45; margin: 4px 0; max-width: 100%; }
  .chapter-journey .chapter :is(.workflow-body-full,.replace,.stage-label,.screen-2,.callout,figcaption,.supporting,.crop-bar,.leader,.target-dot) { display: none; }
  .chapter-journey .chapter .workflow-body-compact { display: block; }
  .chapter-journey .chapter .stage { flex: 1; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 0; border: 0; background: none; }
  .chapter-journey .chapter .stage-main { display: flex; justify-content: center; width: 100%; padding: 0; }
  .chapter-journey .chapter .screen-1 { position: relative; inset: auto; width: 100%; margin: 0; padding: 0; transform: none; display: flex; flex-direction: column; align-items: center; }
  .chapter-journey .chapter .annotated-image { width: 100%; display: flex; justify-content: center; align-items: flex-start; }
  .chapter-journey .chapter .shot { display: flex; flex-direction: column; width: fit-content; min-width: 44px; max-width: 100%; padding: 4px; border-radius: 12px; overflow: hidden; }
  .chapter-journey .chapter picture { display: contents; }
  .chapter-journey .chapter .shot img { display: block; width: 100%; height: auto; max-height: 42svh; object-fit: contain; object-position: top center; border-radius: 8px; }
  .chapter-journey .more-screens { display: block; flex: 0 0 44px; min-height: 44px; margin: 10px auto 0; padding: 0 16px; border: 1px solid #0d12704d; border-radius: 24px; background: #ffffffc9; color: var(--indigo); font-size: 13px; }

  /* Mint swipe cue: three gentle leftward strokes, then rest; hidden after the first swipe. */
  html.has-js .swipe-hint {
    display: flex; width: fit-content; min-height: 44px; margin: 14px auto 0; padding: 0 18px;
    align-items: center; gap: 8px; border-radius: 28px; background: #3ff2c4; color: #0d1270;
    box-shadow: 0 4px 16px #0d127022; font-size: 13px; font-weight: 700; pointer-events: none;
    transition: opacity .3s ease, visibility .3s;
  }
  .swipe-hint.is-done { opacity: 0; visibility: hidden; }
  .swipe-hint svg { width: 28px; height: 28px; overflow: visible; }
  .swipe-hand { animation: swipe-left 1.6s ease-in-out .6s 3; }
  .swipe-trail { animation: swipe-trail 1.6s ease-in-out .6s 3; }
}
@media (max-width: 700px) {
  .product-story .story-heading .eyebrow { display: none; }
  .product-story .story-heading h2 { font-size: 20px; }
  .product-story .story-chapter { padding: 14px; gap: 12px; }
  .product-story .story-mess { height: 280px; }
  .product-story .story-proof { gap: 6px; }
  .product-story .story-screen:first-child img { max-height: 27svh; }
  .product-story .story-screen:nth-child(2) { width: 64%; margin-left: auto; margin-top: -70px; transform: rotate(3deg); }
  .product-story .story-screen:nth-child(2) figcaption { text-align: right; }
  .product-story .story-screen:first-child figcaption { display: none; }
  .product-story .story-screen .zoom { padding: 4px; }
  .product-story :is(.story-callout, .story-releases > .eyebrow, .story-body-full) { display: none; }
  .product-story .story-chapter-4 { gap: 8px; }
  .product-story .story-body-compact { display: inline; }
  .chapter-journey .chapter-pages { width: calc(100% - 32px); }
}
@keyframes swipe-left { 0%,100% { transform: translateX(3px); } 60% { transform: translateX(-4px); } }
@keyframes swipe-trail { 0%,100% { opacity: .3; } 60% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .swipe-hint svg * { animation: none; }
}

/* Extras and bento */

.dark-section {
  background: radial-gradient(ellipse at 100% 0, #21237966, transparent 65%), linear-gradient(155deg, #070b4f, #0d1270);
  color: white;
}

.dark-section h2, .dark-section h3 {
  color: white;
}

.dark-section .body-copy {
  color: #d8dcf5;
}

.dark-section .eyebrow {
  color: var(--mint);
}

.extras {
  padding-bottom: var(--space);
}


.bento {
  display: grid;
  align-items: start;
}

.tile {
  min-width: 0px;
  background: #191e78;
  border: 1px solid #424897;
  border-radius: 18px;
  transition: transform 0.2s;
}

.tile:hover {
  transform: translateY(-4px);
}

.tile h3 {
  font-size: min(var(--fs-h3), clamp(18px, calc(2.333vw - 5.5px), 26px));
  color: white;
}

.tile-6 {
  background: #e7f7f2;
}

.tile-6 h3 {
  color: var(--indigo);
}

.tile-6 .body-copy {
  color: #34395e;
}

.tile .shot {
  align-items: center;
  box-shadow: rgba(34, 41, 74, 0.07) 0px 12px 25px;
  aspect-ratio: auto;
  display: block;
}

.tile img {
  width: 100%;
  max-height: none;
}

@media (min-width: 1101px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
    gap: 18px;
  }

  .tile {
    padding: 20px;
  }

  .tile h3 {
    margin: 24px 0px 9px;
  }
}

@media (min-width: 701px) {
  .tile {
    grid-column: span 1;
  }

  .tile-0 {
    grid-column: span 1;
  }

  .tile-6 {
    grid-column: span 1;
  }

  .tile img {
    height: auto;
    object-fit: cover;
  }

  .tile-5 {
    grid-column: span 1;
  }

  .tile-7 {
    grid-column: span 1;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    gap: 14px;
  }

  .tile {
    padding: 16px;
  }

  .tile h3 {
    margin: 24px 0px 9px;
  }
}

@media (max-width: 700px) {
  .bento {
    grid-template-columns: 1fr;
    gap: 16px;
    grid-auto-flow: dense;
  }

  .tile {
    grid-column: auto;
    padding: 12px;
  }

  .tile h3 {
    font-size: 20px;
    margin: 14px 0px 8px;
  }

  .tile-0 {
    grid-column: auto;
  }

  .tile-1 {
    grid-column: auto;
    padding: 12px;
  }

  .tile-6 {
    grid-column: auto;
  }

  .tile .shot {
    height: auto;
    max-height: none;
  }

  .tile .shot img {
    height: auto;
    object-fit: contain;
  }

  .tile-5 {
    grid-column: auto;
  }

  .tile-7 {
    grid-column: auto;
  }

  .tile-2 {
    grid-column: auto;
  }

  .tile-4 {
    grid-column: auto;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .tile h3 {
    font-size: min(var(--fs-h3), clamp(18px, calc(3.5vw - 5px), 26px));
  }
}

/* Platforms */

.platforms {
  padding-bottom: var(--space);
}

.devices {
  display: grid;
  background: linear-gradient(rgb(224, 228, 252), rgb(237, 245, 242));
  border: 1px solid var(--line);
  border-radius: 28px;
  align-items: end;
}

.devices figure {
  min-width: 0px;
  width: 100%;
}

.devices .shot {
  border-radius: 4px;
}

.devices figcaption {
  text-align: center;
  font-weight: 700;
}

.devices .window-bar {
  border-radius: 9px 9px 0px 0px;
}

.devices .web {
  width: 100%;
  transform: none;
  padding: 0px;
}

.devices .web .shot {
  background: rgb(242, 250, 248);
}

.devices .android {
  grid-area: 1 / 1;
  align-self: end;
  position: relative;
  z-index: 3;
}

.devices .web figcaption {
  text-align: left;
}

@media (min-width: 701px) {
  .devices {
    margin-top: 50px;
    padding: 40px;
    grid-template-columns: 250px minmax(0px, 1fr);
    gap: 30px;
  }

  .devices .android .shot {
    border: 4px solid rgb(19, 23, 57);
    border-radius: 21px;
  }

  .devices figcaption {
    font-size: 13px;
  }

  .devices .web {
    grid-area: 1 / 2;
  }

  .devices .android {
    width: 250px;
    margin: 0px;
  }
}

@media (max-width: 700px) {
  .devices {
    margin-top: 35px;
    padding: 20px 12px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .devices .android .shot {
    border: 5px solid rgb(19, 23, 57);
    border-radius: 24px;
  }

  .devices figcaption {
    font-size: 12px;
  }

  .devices .window-bar {
    height: 30px;
    font-size: var(--fs-ui);
    letter-spacing: var(--ls-ui);
    padding: 0px 8px;
  }

  .devices .web {
    grid-area: 2 / 1;
  }

  .devices .android {
    width: 220px;
    margin: 0px auto;
  }

  .devices .web .shot {
    padding-bottom: 0px;
  }
}

/* Pricing */

.pricing {
  padding-bottom: var(--space);
}

.pricing .center .body-copy {
  margin-top: 20px;
}

.pricing-billing {
  display: flex;
  width: fit-content;
  margin: 32px auto 40px;
  padding: 5px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #e9eaf4;
}

.pricing-billing button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  gap: 10px;
  color: var(--muted);
  background: transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 650;
}

.pricing-billing button[aria-pressed="true"] {
  color: var(--indigo);
  background: white;
  box-shadow: 0 3px 12px #0d127012;
}

.pricing-discount,
.pricing-badge {
  color: var(--night);
  background: var(--mint);
  font-size: 12px;
  font-weight: 750;
  border-radius: 100px;
  padding: 5px 10px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 30px #141b3d06;
}

.pricing-card h3 {
  font-size: 23px;
}

.pricing-badge,
.pricing-badge-space {
  align-self: flex-start;
  min-height: 28px;
  margin-bottom: 22px;
}

.pricing-who {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
  min-height: 45px;
}

.pricing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 22px 0 12px;
}

.pricing-amount {
  display: inline-block;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(34px, 3.3vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.pricing-unit {
  font-size: 13px;
  color: var(--muted);
}

.pricing-bill-note,
.pricing-fallback,
.pricing-saving {
  font-size: 13px;
  line-height: 1.6;
}

.pricing-bill-note {
  min-height: 42px;
  color: var(--muted);
}

.pricing-saving {
  color: #09634e;
  min-height: 42px;
  margin-top: 8px;
}

.pricing-features {
  display: grid;
  gap: 14px;
  margin: 24px 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 14px;
  line-height: 1.55;
}

.pricing-features li {
  position: relative;
  padding-left: 28px;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #07533f;
  background: #b5f8e6;
  font-size: 12px;
  font-weight: 800;
}

.pricing-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--indigo);
  background: #f0f1f9;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
}

.pricing-play[aria-disabled="true"] {
  cursor: default;
}

.pricing-play svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.pricing-firm {
  background: var(--indigo);
  color: white;
  border-color: var(--indigo);
  box-shadow: 0 16px 36px #0d127020;
}

.pricing-firm .pricing-who,
.pricing-firm .pricing-unit,
.pricing-firm .pricing-bill-note {
  color: #d1d5ef;
}

.pricing-firm .pricing-saving {
  color: var(--mint);
}

.pricing-firm .pricing-features {
  border-color: #ffffff30;
}

.pricing-firm .pricing-play {
  background: #dbfff4;
  color: var(--night);
  border-color: transparent;
}

.pricing a.pricing-play:hover {
  background: var(--mint);
  color: var(--night);
}

.pricing-billing button:focus-visible,
.pricing-play:focus-visible,
.pricing-contact a:focus-visible {
  outline: 3px solid #146fcb;
  outline-offset: 4px;
}

.pricing-firm .pricing-play:focus-visible {
  outline-color: var(--mint);
}

.pricing-math {
  max-width: 850px;
  margin: 28px auto 36px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.pricing-addon {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: #e9f7f1;
  border: 1px solid #c5e6da;
  border-radius: 20px;
}

.pricing-ai-icon {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  height: 60px;
  position: relative;
  border-radius: 17px;
  background: var(--indigo);
  color: var(--mint);
  font-size: 22px;
  font-weight: 750;
}

.pricing-ai-icon span {
  position: absolute;
  right: 6px;
  top: 1px;
  font-size: 16px;
}

.pricing-addon .pricing-addon-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(14px, 1.5vw, 19px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

.pricing-addon p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #34564b;
}

.pricing-contact {
  margin: 24px 0 36px;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
}

.pricing-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pricing-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
}

.pricing-notes p {
  margin-top: 8px;
  color: var(--muted);
}

@media (min-width: 701px) and (max-width: 1100px) {
  .pricing-cards {
    gap: 12px;
  }

  .pricing-card {
    padding: 20px 16px;
  }

  .pricing-badge {
    font-size: 10px;
    padding: 5px 7px;
  }

  .pricing-price {
    min-height: 80px;
    align-content: start;
  }

  .pricing-unit {
    flex-basis: 100%;
  }

  .pricing-addon {
    gap: 16px;
    padding: 24px 20px;
  }
}

@media (max-width: 700px) {
  .pricing-cards,
  .pricing-notes {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 26px;
  }

  .pricing-badge-space {
    display: none;
  }

  .pricing-who,
  .pricing-bill-note,
  .pricing-saving {
    min-height: 0;
  }

  .pricing-amount {
    font-size: 40px;
  }

  .pricing-billing button {
    padding: 10px 14px;
  }

  .pricing-addon {
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
  }

  .pricing-ai-icon {
    flex-basis: 36px;
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
  }

  .pricing-addon .pricing-addon-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 750;
  }
}

@media (scripting: none) {
  .pricing-billing {
    display: none;
  }
}

/* Demo and FAQ */

summary {
  touch-action: manipulation;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-weight: 700;
  min-height: 60px;
}

summary:focus-visible {
  outline: rgb(128, 96, 241) solid 3px;
  outline-offset: 5px;
}

.steps {
  display: grid;
  list-style: none;
  padding: 0px;
  counter-reset: step 0;
}

.steps h3 {
  font-size: min(var(--fs-h3), clamp(18px, calc(2.42vw - 3px), 26px));
}

.steps li {
  border-top: 1px solid #424897;
  padding-top: 22px;
  counter-increment: step 1;
}

.steps li::before {
  content: "0" counter(step);
  color: var(--mint);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
}

.demo-note {
  background: #191e78;
  border-radius: 12px;
}

.demo-note .body-copy {
  max-width: none;
}

.faq {
  max-width: 850px;
}

.faq h2 {
  margin-bottom: 30px;
}

details {
  border-bottom: 1px solid #424897;
}

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

summary::after {
  content: "+";
  color: var(--mint);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details .body-copy {
  max-width: none;
}

.demo-stage > .button {
  margin-bottom: 28px;
}

/* Demo stage: looping brand film as the background, under a dark indigo layer that keeps the text readable. */
.demo-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 0 0 1px #2a3080;
}

.demo-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #0d1270 url("video/pomni-loop-poster.webp?v=20261120") center / cover no-repeat;
}

.demo-bg-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.demo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 79, 0.9) 0%, rgba(7, 11, 79, 0.78) 55%, rgba(7, 11, 79, 0.62) 100%),
    linear-gradient(180deg, rgba(7, 11, 79, 0.15) 0%, rgba(7, 11, 79, 0.45) 100%);
}

.demo-bg-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  background: #070b4fb3;
  color: #fff;
  cursor: pointer;
}

.demo-bg-toggle:hover,
.demo-bg-toggle:focus-visible {
  background: #070b4f;
  border-color: var(--mint);
}

.demo-bg-toggle:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.demo-bg-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (min-width: 701px) {
  .demo-stage {
    padding: 56px 56px 40px;
  }
}

@media (max-width: 700px) {
  .demo-stage {
    margin-inline: -8px;
    padding: 30px 22px 34px;
    border-radius: 20px;
  }

  .demo-bg::after {
    background: rgba(7, 11, 79, 0.84);
  }
}

/* Phones and tablets: the stage is taller than wide, so the 16:9 film would be blown up and blurred. Show the whole
   film as a band across the top, fading into indigo, and start the text below it. */
@media (max-width: 900px) {
  .demo-stage {
    padding-top: calc(min(100vw, 900px) * 0.5625 - 24px);
  }

  .demo-bg {
    background: #0d1270;
  }

  .demo-bg-video {
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: 50% 50%;
  }

  .demo-bg::after {
    background: linear-gradient(180deg,
      rgba(13, 18, 112, 0.1) 0,
      rgba(13, 18, 112, 0.25) calc(min(100vw, 900px) * 0.3),
      #0d1270 calc(min(100vw, 900px) * 0.5625 - 8px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-bg-video {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .demo-bg {
    background: #0d1270 url("video/pomni-loop-poster.webp?v=20261120") center top / 100% auto no-repeat;
  }
}

@media (min-width: 701px) {
  summary {
    padding: 21px 0px;
  }

  .demo {
    padding-bottom: 110px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 45px 0px 30px;
  }

  .steps h3 {
    margin: 15px 0px;
  }

  .demo-note {
    padding: 22px 28px;
  }

  .faq {
    margin: 80px auto 0px;
  }

  details .body-copy {
    padding: 0px 32px 24px 0px;
  }
}

@media (max-width: 700px) {
  summary {
    font-size: 16px;
    padding: 20px 0px;
  }

  .demo {
    padding-bottom: 70px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 30px 0px;
  }

  .steps h3 {
    font-size: 20px;
    margin: 10px 0px;
  }

  .demo-note {
    padding: 20px;
  }

  .faq {
    margin: 55px auto 0px;
  }

  details .body-copy {
    padding: 0px 10px 24px 0px;
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .steps h3 {
    font-size: 22px;
  }
}

/* Closing */

.closing h2 {
  position: relative;
  z-index: 2;
}

.closing {
  background: rgb(237, 245, 242);
  color: var(--ink);
  overflow: hidden;
}

.closing-inner {
  position: relative;
  padding-top: 85px;
  padding-bottom: 100px;
}

.closing .eyebrow {
  color: rgb(81, 104, 121);
}

.closing .body-copy {
  color: rgb(70, 85, 106);
  position: relative;
  z-index: 2;
}

.closing .button {
  background: var(--indigo);
  color: white;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.closing-sign {
  font-size: 380px;
  line-height: 1;
  color: rgb(212, 230, 225);
  font-weight: 800;
  font-style: italic;
  pointer-events: none;
}

.closing-sign svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* The animated logo mark: plays once when scrolled into view and rests on the finished logo. */
.closing-mark {
  font-size: 0;
}

.closing-mark-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgb(237, 245, 242);
}

@media (min-width: 701px) {
  .closing-sign.closing-mark {
    width: 240px;
    height: 240px;
    transform: none;
    letter-spacing: 0;
  }
}

@media (max-width: 700px) {
  .closing-sign.closing-mark {
    width: 170px;
    height: 170px;
  }
}

@media (min-width: 1101px) {
  .closing .body-copy {
    margin-bottom: 27px;
    max-width: 580px;
  }

  .closing-sign {
    width: 170px;
    height: 190px;
    position: absolute;
    right: 100px;
    top: 210px;
    letter-spacing: -40px;
    transform: rotate(-10deg);
  }
}

@media (min-width: 701px) {
  .closing h2 {
    margin: 24px 0px;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .closing .body-copy {
    margin-bottom: 27px;
    max-width: 55%;
  }

  .closing-sign {
    width: 170px;
    height: 190px;
    position: absolute;
    top: 210px;
    letter-spacing: -40px;
    transform: rotate(-10deg);
    right: 30px;
    opacity: 0.65;
  }
}

@media (max-width: 700px) {
  .closing-inner {
    padding-block: 60px 32px;
  }

  .closing h2 {
    margin: 22px 0px;
  }

  .closing .body-copy {
    max-width: 100%;
    margin-bottom: 25px;
  }

  .closing-sign {
    display: block;
    position: relative;
    width: 150px;
    height: 174px;
    top: auto;
    bottom: auto;
    right: auto;
    margin: 36px 20px 0px auto;
    opacity: 0.8;
    transform: none;
    letter-spacing: 0px;
  }
}

/* Footer */

footer {
  background: rgb(4, 6, 46);
  border-top: 1px solid rgb(29, 36, 112);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgb(185, 191, 232);
  font-size: 12px;
}

.footer-inner .wordmark {
  color: white;
}

.footer-inner .wordmark span {
  color: var(--mint);
}

@media (min-width: 701px) {
  .footer-inner {
    gap: 20px;
    padding-block: 30px;
  }
}

@media (max-width: 700px) {
  .footer-inner {
    flex-wrap: wrap;
    gap: 22px;
    padding-block: 26px;
  }

  .footer-inner p {
    order: 3;
    width: 100%;
  }
}

/* Final-page control; scroll updates lift it clear of the form and footer. */
.back-top { position: fixed; right: max(16px,env(safe-area-inset-right)); bottom: var(--back-top-bottom, max(18px,env(safe-area-inset-bottom))); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #0d1270; color: #3ff2c4; box-shadow: 0 6px 24px #070b4f55; z-index: 40; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s,transform .25s,visibility .25s; }
.back-top svg { width: 24px; height: 24px; }
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-3px); }
.back-top:focus-visible { outline: 3px solid #3ff2c4; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .back-top { transition: none; } }

/* Lightbox */

dialog {
  border: 1px solid rgb(196, 204, 223);
  border-radius: 16px;
  background: var(--page);
  color: var(--ink);
  max-height: 95vh;
  overflow: auto;
}

dialog::backdrop {
  background: rgba(3, 7, 34, 0.867);
  backdrop-filter: blur(7px);
}

dialog img {
  object-fit: contain;
  margin: auto;
}

dialog p {
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
}

.lightbox-controls {
  position: sticky;
  top: -16px;
  left: 0px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  background: var(--page);
  z-index: 2;
  margin-bottom: 10px;
}

/* One toolbar button component: equal 44 px targets with the same 22 px stroke icon. */
.lightbox-button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--indigo);
  line-height: 0;
  cursor: pointer;
}
.lightbox-button:hover { background: #0d127012; }
.lightbox-button:focus-visible { outline: 3px solid #5548b8; outline-offset: 1px; }
.lightbox-icon { display: block; width: 22px; height: 22px; }
.lightbox-button[hidden] { display: none; }
.lightbox-zoom[aria-pressed="true"] .zoom-plus { display: none; }

@media (max-width: 899px), (pointer: coarse) {
  .lightbox-zoom { display: none; }
  #lightbox > img { touch-action: pan-y pinch-zoom; }
}

dialog.zoomed img {
  width: auto;
  max-width: none;
  max-height: none;
  min-width: 750px;
}

@media (min-width: 701px) {
  dialog {
    padding: 16px 20px 18px;
    max-width: 95vw;
    width: fit-content;
  }

  dialog img {
    width: auto;
    max-width: 85vw;
    max-height: 78vh;
  }

  dialog.zoomed {
    width: 95vw;
  }
}

@media (max-width: 700px) {
  dialog {
    width: calc(-12px + 100vw);
    max-width: calc(-12px + 100vw);
    padding: 12px 8px;
    overscroll-behavior: contain;
  }

  dialog img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }

  dialog.zoomed {
    width: calc(-12px + 100vw);
    max-width: calc(-12px + 100vw);
    overflow: auto;
    contain: inline-size;
  }
}

/* Motion, reduced motion and no JavaScript */

.revealed .leader path {
  transform-origin: center top;
  animation: 0.6s ease 0.25s 1 normal both running line-in;
}

.revealed:not(.chapter-revealed) {
  animation: rise .6s var(--ease) both;
}

.paused * {
  animation-play-state: paused !important;
}

html:not(.has-js) img[data-src-bg] {
  display: none;
}

@media (max-width: 700px) {
  html:not(.has-js) .menu {
    display: none;
  }

  html:not(.has-js) .languages {
    display: flex;
  }

  html:not(.has-js) .header nav {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0px;
    background: transparent;
    color: inherit;
    font-size: 11px;
    gap: 9px;
    border: 0px;
    white-space: nowrap;
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  html:not(.has-js) .nav .small {
    display: none;
  }

  html:not(.has-js) .header {
    height: 112px;
    position: static;
  }

  html:not(.has-js) .nav {
    flex-wrap: wrap;
    align-content: center;
    gap: 0px;
  }

  html:not(.has-js) .hero {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, ::before, ::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@keyframes drift {
  50% {
    translate: 0px -6px;
  }
}

@keyframes shimmer {
  0% {
    opacity: 0.4;
    transform: translateX(-15px);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  0% {
    opacity: 0.4;
    translate: 0px 20px;
  }

  100% {
    opacity: 1;
    translate: 0px;
  }
}

@keyframes line-in {
  0% {
    transform: scaleY(0);
  }

  100% {
    transform: scaleY(1);
  }
}
