@font-face {
  font-family: "Mrs Saint Delafield";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/mrs-saint-delafield-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --white: light-dark(#ffffff, #0b0c10);
  --card: light-dark(#ffffff, #17181e);
  --gray: light-dark(#f5f5f7, #111217);
  --ink: light-dark(#1d1d1f, #f5f5f7);
  --ink-2: light-dark(#424245, #c7c7cc);
  --muted: light-dark(#6e6e73, #98989f);
  --line: light-dark(#d2d2d7, #2c2d36);
  --accent: light-dark(#1e3a8a, #4169e1);
  --accent-hover: light-dark(#172554, #3557c4);
  --link: light-dark(#1e3a8a, #a3b6f2);
  --dark: #000000;
  --dark-2: #161617;
  --dark-ink: #f5f5f7;
  --dark-muted: #a1a1a6;
  --ok: #0a7a3d;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

::selection {
  background: #fde68a;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(1080px, 100% - 44px);
  margin: 0 auto;
}

/* Buttons */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font: 500 17px/1 var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease-soft), transform 0.12s ease-out;
}

.pill:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.pill:active,
.chev-link:active,
.seg button:active {
  transform: scale(0.97);
}

.pill-sm {
  min-height: 30px;
  padding: 0 14px;
  font-size: 14px;
}

.pill-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.pill-ghost:hover {
  background: var(--accent);
  color: #fff;
}

.chev-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  transition: transform 0.12s ease-out;
}

.chev-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: light-dark(rgb(255 255 255 / 0.72), rgb(11 12 16 / 0.72));
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
}

.brand:hover {
  text-decoration: none;
}

.mark {
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgb(23 37 84 / 0.25);
}

.mark svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin: 0 auto;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: 0;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-signin {
  color: var(--ink-2);
  font-size: 13px;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: 88px 0 40px;
  text-align: center;
  overflow: hidden;
}

.ghosts {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ghosts i {
  position: absolute;
  width: 150px;
  height: 92px;
  border: 1px solid light-dark(rgb(30 58 138 / 0.1), rgb(160 180 255 / 0.12));
  border-radius: 12px;
  background:
    linear-gradient(rgb(30 58 138 / 0.09), rgb(30 58 138 / 0.09)) 16px 20px / 60% 6px no-repeat,
    linear-gradient(rgb(30 58 138 / 0.06), rgb(30 58 138 / 0.06)) 16px 36px / 75% 5px no-repeat,
    linear-gradient(rgb(30 58 138 / 0.06), rgb(30 58 138 / 0.06)) 16px 50px / 50% 5px no-repeat,
    linear-gradient(rgb(251 191 36 / 0.35), rgb(251 191 36 / 0.35)) 16px 68px / 40% 10px no-repeat,
    light-dark(rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.03));
  animation: ghost-drift 22s ease-in-out infinite alternate;
}

.ghosts i:nth-child(1) {
  top: 9%;
  left: 5%;
  transform: rotate(-8deg);
}

.ghosts i:nth-child(2) {
  top: 26%;
  right: 6%;
  transform: rotate(7deg);
  animation-duration: 26s;
  animation-delay: -6s;
}

.ghosts i:nth-child(3) {
  top: 56%;
  left: 3%;
  width: 120px;
  height: 76px;
  transform: rotate(5deg);
  animation-duration: 30s;
  animation-delay: -12s;
}

.ghosts i:nth-child(4) {
  top: 62%;
  right: 4%;
  width: 124px;
  height: 78px;
  transform: rotate(-6deg);
  animation-duration: 24s;
  animation-delay: -3s;
}

@keyframes ghost-drift {
  to {
    translate: 0 -26px;
    rotate: 4deg;
  }
}

@media (max-width: 1000px) {
  .ghosts {
    display: none;
  }
}

.hero-title {
  font-size: clamp(48px, 8.4vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero-title .line {
  display: block;
  animation: rise 1.1s var(--ease) both;
}

.hero-title .soft {
  color: var(--muted);
  animation-delay: 0.12s;
}

.hero-sub {
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--ink-2);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.38;
  letter-spacing: -0.015em;
  animation: rise 1.1s var(--ease) 0.24s both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  animation: rise 1.1s var(--ease) 0.36s both;
}

.hero-price {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  animation: rise 1.1s var(--ease) 0.44s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(10px);
  }
}

/* Scenes: purpose-built product compositions */

.scene {
  position: relative;
  width: min(1000px, 100% - 44px);
  height: clamp(520px, 62vw, 640px);
  margin: 80px auto 0;
  perspective: 1800px;
  text-align: left;
}

.doc {
  position: absolute;
  left: 44%;
  top: 0;
  width: min(600px, 80%);
  padding: clamp(28px, 4vw, 48px) clamp(26px, 4vw, 52px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05), 0 2px 4px rgb(0 0 0 / 0.04), 0 50px 100px -40px rgb(30 27 75 / 0.35);
  transform: translateX(-50%) rotateX(calc(var(--tilt, 1) * 12deg)) translateY(calc(var(--tilt, 1) * 20px));
  transform-origin: 50% 100%;
  animation: doc-in 1.3s var(--ease) 0.45s both;
  will-change: transform;
}

@keyframes doc-in {
  from {
    opacity: 0;
    translate: 0 60px;
  }
}

.doc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid #ececf0;
}

.doc-head b {
  display: block;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.doc-head small {
  color: var(--muted);
  font-size: 13px;
}

.doc-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.doc p {
  margin-bottom: 12px;
  color: #3a3a3c;
  font: 400 14px/1.6 "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.doc p b {
  color: var(--ink);
}

.doc-sign {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 24px;
  margin-top: 30px;
}

.sig-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.sig-box {
  position: relative;
  height: 74px;
  border-radius: 10px;
  border: 1.5px dashed rgb(30 58 138 / 0.55);
  background: rgb(30 58 138 / 0.05);
  overflow: hidden;
  animation: box-signed 0.6s var(--ease) 2.9s both;
}

@keyframes box-signed {
  to {
    border-style: solid;
    border-color: rgb(10 122 61 / 0.35);
    background: rgb(10 122 61 / 0.05);
  }
}

.sig-script {
  position: absolute;
  left: 14px;
  bottom: 4px;
  color: #1e1b4b;
  font: 400 52px/1 "Mrs Saint Delafield", "Snell Roundhand", cursive;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  animation: write 1.4s cubic-bezier(0.45, 0, 0.2, 1) 1.6s forwards;
}

@keyframes write {
  to {
    clip-path: inset(0 -10% 0 0);
  }
}

.sig-name {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.date-box {
  display: flex;
  align-items: center;
  height: 74px;
  padding: 0 14px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.date-box span {
  animation: fade 0.5s ease 3s both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.notif {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 3;
  display: flex;
  gap: 12px;
  width: 330px;
  padding: 14px;
  border-radius: 22px;
  background: rgb(246 246 248 / 0.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.06), 0 20px 40px -12px rgb(0 0 0 / 0.25);
  animation: notif-in 0.9s var(--ease) 3.3s both;
}

@keyframes notif-in {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
    filter: blur(6px);
  }
}

.notif-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
}

.notif-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

.notif-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.notif-top b {
  color: var(--ink-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 11px;
}

.notif-title {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
}

.notif-text {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.35;
}

.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 980px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05), 0 16px 32px -14px rgb(0 0 0 / 0.3);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.chip-code {
  left: 0;
  top: 120px;
  animation: chip-in 0.9s var(--ease) 1.1s both;
}

.chip-cert {
  left: 4%;
  bottom: 90px;
  animation: chip-in 0.9s var(--ease) 3.7s both;
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
    filter: blur(6px);
  }
}

.tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-phone {
  position: absolute;
  right: -1%;
  bottom: 10px;
  z-index: 2;
  width: 236px;
  transform: translateY(calc(var(--tilt, 1) * 40px));
  animation: phone-in 1.3s var(--ease) 0.8s both;
}

@keyframes phone-in {
  from {
    opacity: 0;
    translate: 40px 60px;
  }
}

/* Phone */

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.2;
  padding: 9px;
  border-radius: 46px;
  background: #0b0b0c;
  box-shadow: inset 0 0 0 1.5px #3a3a3e, inset 0 0 0 4px #0b0b0c, 0 40px 70px -30px rgb(0 0 0 / 0.5);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: #fafafa;
  font-size: 11px;
}

.ps-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 600;
}

.ps-island {
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: #000;
}

.ps-icons {
  display: flex;
  gap: 3px;
}

.ps-icons i {
  width: 12px;
  height: 7px;
  border-radius: 2px;
  background: var(--ink);
}

.ps-icons i:first-child {
  width: 10px;
}

.ps-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid #ececf0;
  background: #fff;
  font-size: 11px;
}

.ps-logo {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #1e3a8a;
  box-shadow: inset -5px -5px 0 -3px #fbbf24;
}

.ps-secure {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 99px;
  background: #e8f6ee;
  color: var(--ok);
  font-size: 9px;
  font-weight: 600;
}

.ps-body {
  flex: 1;
  padding: 12px 14px;
}

.ps-from {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.ps-av {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--accent);
  font-size: 7px;
  font-weight: 700;
}

.ps-title {
  margin: 6px 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ps-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.ps-steps i {
  height: 3px;
  border-radius: 3px;
  background: #e5e5ea;
}

.ps-steps .done {
  background: var(--ok);
}

.ps-steps .now {
  background: var(--accent);
}

.ps-page {
  display: grid;
  gap: 7px;
  padding: 14px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px #ececf0;
}

.ps-line {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #e8e8ed;
}

.w40 { width: 40%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w75 { width: 75%; }
.w80 { width: 80%; }
.w85 { width: 85%; }
.w90 { width: 90%; }

.ps-field {
  position: relative;
  height: 40px;
  margin: 6px 0 2px;
  border-radius: 7px;
  border: 1.5px solid rgb(10 122 61 / 0.4);
  background: rgb(10 122 61 / 0.05);
}

.ps-sig {
  position: absolute;
  left: 8px;
  bottom: 0;
  color: #1e1b4b;
  font: 400 28px/1 "Mrs Saint Delafield", "Snell Roundhand", cursive;
  white-space: nowrap;
}

.ps-done {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px #ececf0;
  color: var(--ok);
  font-size: 10px;
  font-weight: 600;
}

.ps-done i {
  height: 4px;
  border-radius: 4px;
  background: var(--ok);
}

.ps-date {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px #ececf0;
  font-size: 10px;
}

.ps-date span {
  color: var(--muted);
}

.ps-cta {
  margin: 10px 12px 18px;
  padding: 10px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* Story panes */

.story-stage-wrap {
  position: relative;
}

.story-stage {
  position: sticky;
  top: calc(50vh - 230px);
  height: 460px;
}

.pane,
.pane-phone {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  filter: blur(8px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease);
}

.story-stage[data-active="0"] [data-for="0"],
.story-stage[data-active="1"] [data-for="1"],
.story-stage[data-active="2"] [data-for="2"],
.story-stage[data-active="3"] [data-for="3"] {
  opacity: 1;
  transform: none;
  filter: none;
}

.pane {
  height: max-content;
  max-width: 560px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05), 0 40px 80px -40px rgb(0 0 0 / 0.3);
}

.pane-phone {
  width: 240px;
  height: max-content;
}

.pane-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #ececf0;
  background: #fafafa;
}

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

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e0e0e5;
}

.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }

.pane-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.pane-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid #ececf0;
}

.tool-chip {
  padding: 6px 12px;
  border-radius: 8px;
  background: #f2f2f5;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.tool-chip.on {
  background: #eff6ff;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgb(30 58 138 / 0.4);
}

.pane-page {
  display: grid;
  gap: 9px;
  padding: 26px 30px 30px;
}

.pg-h {
  font: 600 20px/1.2 "Iowan Old Style", Georgia, serif;
}

.pg-t {
  margin-bottom: 6px;
  color: #3a3a3c;
  font: 400 15px/1.6 "Iowan Old Style", Georgia, serif;
}

.edit-sel {
  position: relative;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgb(30 58 138 / 0.14);
  box-shadow: 0 0 0 1.5px var(--accent);
  color: var(--ink);
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.pane-split {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.pane-side {
  padding: 16px;
  border-right: 1px solid #ececf0;
  background: #fbfbfc;
}

.side-h {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.signer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}

.av {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.a1 { background: var(--accent); }
.a2 { background: #0d9488; }

.field-pill {
  display: inline-block;
  margin: 0 4px 6px 0;
  padding: 5px 9px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px #e0e0e5;
  background: #fff;
  font-size: 12px;
}

.pane-page.small {
  gap: 8px;
  padding: 22px;
}

.drop-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.drop {
  flex: 1;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.drop.sm {
  flex: 0 0 70px;
}

.d1 {
  border: 1.5px solid rgb(30 58 138 / 0.6);
  background: rgb(30 58 138 / 0.08);
  color: var(--accent);
}

.d2 {
  border: 1.5px solid rgb(13 148 136 / 0.6);
  background: rgb(13 148 136 / 0.08);
  color: #0f766e;
}

.pane-done {
  padding: 28px;
}

.done-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ececf0;
}

.done-check {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 0 0 8px rgb(10 122 61 / 0.1);
}

.done-title {
  font-size: 17px;
  font-weight: 600;
}

.done-sub {
  color: var(--ok);
  font-size: 14px;
  font-weight: 500;
}

.done-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.done-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.ok {
  margin-left: auto;
  color: var(--ok);
  font-size: 13px;
}

.attach {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f5f5f7;
}

.attach b {
  display: block;
  font-size: 14px;
}

.attach small {
  color: var(--muted);
  font-size: 12px;
}

.pdf {
  display: grid;
  place-items: center;
  width: 38px;
  height: 46px;
  border-radius: 6px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* Feature tile minis */

.mini-editor {
  align-self: end;
  margin: 0 -36px -36px 0;
  overflow: hidden;
  border-radius: 16px 0 0 0;
  background: #fff;
  box-shadow: 0 0 0 1px #ececf0, 0 30px 60px -30px rgb(0 0 0 / 0.3);
}

.me-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #ececf0;
  font-size: 12px;
}

.me-toolbar > * {
  padding: 4px 8px;
  border-radius: 6px;
  background: #f2f2f5;
  color: var(--ink-2);
}

.me-spacing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.me-spacing em {
  position: relative;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 40%, #d2d2d7 40%);
}

.me-fit {
  background: #fff7e6 !important;
  color: #a15c07 !important;
  box-shadow: inset 0 0 0 1px #f5c26b;
}

.me-page {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 52px 26px 34px;
}

.me-logo {
  position: absolute;
  right: 22px;
  top: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 0 0 1.5px var(--accent);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tile-phone-wrap {
  width: 210px;
  margin: 18px auto -90px;
}

.mini-list {
  display: grid;
  gap: 2px;
  align-self: end;
  margin: 0 0 -36px -36px;
  padding: 10px;
  list-style: none;
  border-radius: 0 16px 0 0;
  background: #fff;
  box-shadow: 0 0 0 1px #ececf0, 0 30px 60px -30px rgb(0 0 0 / 0.3);
}

.mini-list li {
  display: grid;
  grid-template-columns: 1fr 56px auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
}

.mini-list li:first-child {
  background: #f8f8fa;
}

.ml-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ml-title small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.ml-bar {
  height: 4px;
  border-radius: 4px;
  background: #e8e8ed;
  overflow: hidden;
}

.ml-bar i {
  display: block;
  height: 100%;
  transform-origin: left;
  background: var(--ok);
}

.pill-s {
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-s.ok { background: #e8f6ee; color: var(--ok); }
.pill-s.out { background: #eff6ff; color: var(--accent); }
.pill-s.draft { background: #f2f2f5; color: var(--muted); }
.pill-s.warn { background: #fef3c7; color: #92400e; }

.ml-docs li {
  grid-template-columns: 1fr auto;
}

@media (max-width: 1000px) {
  .story-stage-wrap {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .scene {
    height: 600px;
    margin-top: 56px;
  }

  .doc {
    left: 0;
    width: 100%;
    transform: rotateX(calc(var(--tilt, 1) * 10deg));
  }

  .doc p:nth-of-type(3) {
    display: none;
  }

  .doc-sign {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sig-col.date {
    display: none;
  }

  .scene {
    height: 560px;
  }

  .notif {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    width: 310px;
    margin-left: -155px;
  }

  .chip-code {
    display: none;
  }

  .chip-cert {
    display: none;
  }

  .hero-phone {
    display: none;
  }

  .story-stage {
    height: 430px;
  }

  .pane-split {
    grid-template-columns: 1fr;
  }

  .pane-side {
    display: none;
  }

  .mini-editor,
  .mini-list {
    margin: 0 -36px -36px;
    border-radius: 16px 16px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sig-script {
    clip-path: none;
  }
}

/* Strip */

.strip {
  padding: 120px 0 64px;
  text-align: center;
}

.strip-title {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
}

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  flex: none;
  gap: 12px;
  margin: 0;
  padding: 0 6px;
  list-style: none;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track li {
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--gray);
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-100% - 12px));
  }
}

/* Section heads */

.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 21px);
}

/* Story (pinned device) */

.story {
  padding: 96px 0 120px;
  background: var(--gray);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}

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

.story-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.6s var(--ease-soft);
}

.story-step.on {
  opacity: 1;
}

.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.story-step h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.story-step p {
  margin-top: 14px;
  max-width: 420px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.45;
}

/* Use cases */

.for-you {
  padding: 120px 0;
}

.seg {
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 4px;
  border-radius: 980px;
  background: var(--gray);
  overflow-x: auto;
}

.seg button {
  position: relative;
  z-index: 1;
  padding: 10px 22px;
  border: 0;
  border-radius: 980px;
  background: none;
  color: var(--ink-2);
  font: 500 15px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s var(--ease-soft), transform 0.12s ease-out;
}

.seg button[aria-selected="true"] {
  color: var(--ink);
}

.seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--w, 0);
  border-radius: 980px;
  background: var(--card);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1), 0 4px 12px rgb(0 0 0 / 0.06);
  transform: translateX(var(--x, 4px));
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}

.panels {
  max-width: 880px;
  margin: 0 auto;
}

.panel {
  display: grid;
  gap: 28px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 28px;
  background: var(--gray);
  animation: panel-in 0.6s var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
}

.panel h3 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.ticks {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.4;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.panel-docs {
  color: var(--muted);
  font-size: 15px;
}

/* Bento */

.features {
  padding: 120px 0;
  background: var(--gray);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tile {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 300px;
  padding: 36px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.18);
}

.tile h3 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tile p {
  color: var(--ink-2);
  font-size: 17px;
}

.tile-wide {
  grid-column: span 2;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 28px;
}

.tile-wide.reverse .tile-copy {
  order: 2;
}

.tile-copy {
  display: grid;
  gap: 10px;
}

.tile-phone {
  grid-row: span 2;
  justify-items: center;
  text-align: center;
}

.tile-big-text {
  justify-items: start;
  background: var(--dark-2);
  color: var(--dark-ink);
}

.tile .big-num {
  color: var(--dark-ink);
  font-size: 120px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.tile-big-text h3 {
  color: var(--dark-muted);
  font-size: 24px;
}

.tile-row {
  min-height: 240px;
}

.tile-script .script-word {
  color: var(--ink);
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.proof-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Proof (dark) */

.proof {
  padding: 140px 0;
  background: var(--dark);
  color: var(--dark-ink);
}

.reveal-words {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.reveal-words .w {
  color: #3a3a3c;
  transition: color 0.35s var(--ease-soft);
}

.reveal-words .w.lit {
  color: var(--dark-ink);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-top: 96px;
}

.cert-float {
  perspective: 1400px;
}

.cert-float img {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 50px 100px -30px rgb(29 78 216 / 0.35), 0 30px 60px -30px rgb(0 0 0 / 0.8);
  transform: rotateY(calc(var(--turn, 1) * -14deg)) rotateX(calc(var(--turn, 1) * 6deg));
  will-change: transform;
}

.proof-list {
  display: grid;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  display: grid;
  gap: 6px;
}

.proof-list strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.proof-list span {
  color: var(--dark-muted);
  font-size: 17px;
}

/* Try it */

.try {
  padding: 120px 0;
}

.paper {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 0 0 1px #e5e5ea, 0 40px 80px -40px rgb(0 0 0 / 0.25);
}

.paper-text {
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.demo-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 24px;
  align-items: end;
  margin-top: 36px;
}

.demo-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 10px 12px 18px;
  border-bottom: 1.5px solid var(--ink);
}

.sig-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

.sig-form input,
.final-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: 400 17px/1 var(--font);
}

.sig-form input:focus,
.final-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(30 58 138 / 0.2);
}

.sig-ink {
  color: #1e1b4b;
  font: italic 500 clamp(32px, 5vw, 44px)/1 var(--font);
  letter-spacing: -0.02em;
  clip-path: inset(0 100% 0 0);
  animation: ink 1.1s var(--ease) forwards;
}

@keyframes ink {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.demo-date {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--ink);
}

.demo-date span {
  color: var(--muted);
  font-size: 13px;
}

.demo-done {
  margin-top: 22px;
  color: var(--ok);
  font-size: 15px;
  font-weight: 500;
  animation: rise 0.8s var(--ease) both;
}

/* Pricing */

.pricing {
  padding: 120px 0;
  background: var(--gray);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: center;
  align-items: start;
  gap: 20px;
}

.plan {
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.plan-sub {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
}

.plan-list {
  justify-self: stretch;
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
  color: var(--ink-2);
  font-size: 15px;
}

.plan-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--ok);
  font-weight: 700;
}

.plan-soon {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

@media (max-width: 1000px) {
  .plans {
    grid-template-columns: minmax(0, 420px);
  }
}

.plan {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 44px 32px;
  border-radius: 28px;
  background: var(--card);
  text-align: center;
}

.plan h3 {
  color: var(--muted);
  font-size: 19px;
  font-weight: 600;
}

.price {
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.price span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.plan-line {
  margin-bottom: 20px;
  color: var(--ink-2);
  font-size: 19px;
}

.plan-pick {
  box-shadow: 0 0 0 2px var(--accent), 0 30px 60px -30px rgb(30 58 138 / 0.45);
}

.price-note {
  max-width: 560px;
  margin: 36px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* FAQ */

.faq {
  padding: 120px 0;
}

.faq-in {
  max-width: 820px;
}

.faq h2 {
  margin-bottom: 40px;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
}

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

.faq-list summary {
  position: relative;
  padding: 24px 44px 24px 0;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  color: var(--muted);
  font-size: 30px;
  font-weight: 300;
  transform: translateY(-50%);
  transition: transform 0.4s var(--ease);
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  padding: 0 44px 26px 0;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.5;
  animation: rise 0.5s var(--ease) both;
}

/* Final */

.final {
  padding: 140px 0 120px;
  background: var(--gray);
  text-align: center;
}

.final-in h2 {
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.final-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 40px auto 0;
}

.final-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */

.foot {
  padding: 28px 0 40px;
  background: var(--gray);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.foot-in {
  display: grid;
  gap: 12px;
}

.foot-legal {
  max-width: 720px;
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  margin: 12px 0 8px;
  font-size: 13px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.foot-h {
  margin: 0 0 2px;
  color: var(--ink);
  font-weight: 600;
}

.foot-links a {
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .foot-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Reveal on scroll */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Simple pages (report) */

.simple {
  padding: 96px 0;
}

.simple-card {
  max-width: 720px;
  margin: 0 auto;
}

.simple-card h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.simple-card .lede {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 21px;
}

.simple-card .ticks {
  margin-top: 36px;
}

.simple-card .fine {
  margin-top: 32px;
  color: var(--muted);
  font-size: 15px;
}

/* Responsive */

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento > .tile-row:last-child {
    grid-column: span 2;
  }

  .tile-phone {
    grid-row: auto;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-stage-wrap {
    order: -1;
    position: sticky;
    top: 72px;
    z-index: 2;
  }

  .story-stage {
    position: relative;
    top: auto;
    max-width: 520px;
    margin: 0 auto;
  }

  .story-step {
    min-height: 46vh;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 18px;
  }


  .strip {
    padding: 80px 0 40px;
  }

  .story,
  .for-you,
  .features,
  .try,
  .pricing,
  .faq {
    padding: 80px 0;
  }

  .proof {
    padding: 96px 0;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento > .tile-row:last-child {
    grid-column: auto;
  }

  .tile-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .tile-wide.reverse .tile-copy {
    order: 0;
  }


  .plans {
    grid-template-columns: 1fr;
  }

  .demo-row {
    grid-template-columns: 1fr;
  }

  .final-form {
    flex-direction: column;
  }

  .section-head {
    margin-bottom: 44px;
  }
}

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .doc,
  .cert-float img {
    transform: none !important;
  }

  .sig-ink {
    clip-path: none;
  }

  .marquee-track {
    animation: none;
  }

  .marquee {
    flex-wrap: wrap;
    justify-content: center;
    mask-image: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--white);
    backdrop-filter: none;
  }
}

/* SEO pages: use cases, hub, trust */

.sub-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.sub-hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  animation: rise 1s var(--ease) both;
}

.sub-hero .hero-sub {
  animation-delay: 0.1s;
}

.crumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs a {
  color: var(--muted);
}

.example {
  padding: 40px 0 100px;
}

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.example-fig {
  margin: 0;
}

.example-fig img {
  width: 100%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px #e5e5ea, 0 40px 80px -40px rgb(0 0 0 / 0.3);
}

.example-fig figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.example-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.sub-h2 {
  margin-bottom: 40px;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-align: center;
}

.steps3 {
  padding: 100px 0;
  background: var(--gray);
}

.steps3-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps3-list li {
  padding: 32px;
  border-radius: 24px;
  background: var(--card);
}

.steps3-list h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.steps3-list p {
  margin-top: 8px;
  color: var(--ink-2);
}

.more {
  padding: 100px 0;
}

.more + .more {
  padding-top: 0;
}

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

.card {
  display: grid;
  gap: 6px;
  padding: 28px;
  border-radius: 22px;
  background: var(--gray);
  color: var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.2);
}

.card b {
  font-size: 19px;
  letter-spacing: -0.015em;
}

.card span {
  color: var(--ink-2);
  font-size: 15px;
}

.card-all {
  background: var(--ink);
  color: #fff;
}

.card-all span {
  color: var(--dark-muted);
}

.trust-h2 {
  margin: 44px 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.trust-p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.55;
}

.trust-p .pill {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .example-grid,
  .steps3-list {
    grid-template-columns: 1fr;
  }

  .sub-hero {
    padding-top: 48px;
  }

  .steps3,
  .more,
  .example {
    padding: 64px 0;
  }
}

/* Templates and free tools */

.sub-hero-tight {
  padding-bottom: 24px;
}

.paper {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px #e5e5ea, 0 40px 80px -40px rgb(0 0 0 / 0.25);
  color: #2c2c2e;
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}

.paper .doc-title {
  margin-bottom: 20px;
  font: 700 28px/1.2 var(--font);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.paper h3 {
  margin: 26px 0 8px;
  font: 600 18px/1.3 var(--font);
  color: var(--ink);
}

.paper p,
.paper ul {
  margin: 8px 0;
}

.paper ul {
  padding-left: 22px;
}

.ph {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgb(30 58 138 / 0.1);
  color: var(--accent-hover);
  font: 500 0.88em var(--font);
  white-space: nowrap;
}

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

.center {
  text-align: center;
}

.tool-wrap {
  padding: 8px 0 80px;
}

.tool {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 32px);
  border-radius: 24px;
  background: var(--gray);
}

.tool .seg {
  justify-self: start;
}

.tool-label {
  font-weight: 600;
  font-size: 15px;
}

.tool-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font: inherit;
  font-size: 17px;
  color: var(--ink);
}

.tool-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.mono,
.hash-out code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  word-break: break-all;
}

.sg-fonts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sg-fonts button {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: #1e1b4b;
  font-size: 30px;
  line-height: 1.2;
  cursor: pointer;
}

.sg-fonts button[aria-checked="true"],
.sg-inks button[aria-checked="true"] {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: var(--accent);
}

.sg-inks {
  display: flex;
  gap: 10px;
}

.sg-inks button {
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}

#sg-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 3;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fff;
  touch-action: none;
}

#sg-canvas.drawing {
  cursor: crosshair;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-note,
.tool-hint {
  color: var(--muted);
  font-size: 14px;
}

.hash-out {
  display: grid;
  gap: 8px;
  min-height: 56px;
  padding: 14px;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink-2);
}

.hash-ok {
  color: var(--ok);
  font-weight: 600;
}

.hash-bad {
  color: #b42318;
  font-weight: 600;
}

.embed-code {
  display: block;
  max-width: 760px;
  margin: 20px auto 0;
  resize: none;
}

body.embed {
  background: #fff;
}

.embed-main {
  padding: 12px;
}

.embed-credit {
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.tool .seg {
  margin: 0;
  background: var(--card);
}

.tool .seg button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.final-in > a.pill {
  margin-top: 28px;
}

/* Comparison pages */

.cmp-wrap {
  overflow-x: auto;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 0 0 1px #e5e5ea;
  -webkit-overflow-scrolling: touch;
}

.cmp {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--card);
  font-size: 15px;
  line-height: 1.45;
}

.cmp th,
.cmp td {
  padding: 14px 16px;
  border-bottom: 1px solid #ececf0;
  text-align: left;
  vertical-align: top;
}

.cmp thead th {
  background: var(--gray);
  font-weight: 600;
}

.cmp tbody th {
  width: 26%;
  color: var(--ink-2);
  font-weight: 500;
}

.cmp tr:last-child th,
.cmp tr:last-child td {
  border-bottom: 0;
}

.cmp .yes {
  color: var(--ok);
  font-weight: 600;
}

.cmp .no {
  color: var(--muted);
}

.cmp .nc {
  color: var(--muted);
  font-style: italic;
}

.cmp-note {
  max-width: 960px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.example-one {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.pick2 {
  grid-template-columns: repeat(2, 1fr);
}

.steps3-plain {
  background: none;
}

.alt-list {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.alt-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--card);
}

.alt-card h3 {
  margin-top: 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.alt-card p {
  margin-top: 8px;
  color: var(--ink-2);
}

.alt-best {
  font-weight: 600;
}

.alt-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin-top: 16px;
  font-size: 15px;
}

.alt-facts dt {
  color: var(--muted);
}

.alt-fit {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--gray);
}

@media (max-width: 760px) {
  .pick2 {
    grid-template-columns: 1fr;
  }

  .alt-facts {
    grid-template-columns: 1fr;
  }

  .alt-facts dd {
    margin: 0 0 6px;
  }
}

/* Blog */

.post {
  padding: 56px 0 24px;
}

.post-wrap {
  max-width: 720px;
}

.post h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.post-meta {
  color: var(--muted);
  font-size: 15px;
}

.draft-banner {
  margin-bottom: 24px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff7e6;
  color: #7a4b00;
  font-size: 14px;
}

.post-body {
  margin-top: 32px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.65;
}

.post-body h2 {
  margin: 44px 0 12px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.post-body h3 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 21px;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote {
  margin: 14px 0;
}

.post-body ul,
.post-body ol {
  padding-left: 24px;
}

.post-body li + li {
  margin-top: 6px;
}

.post-body blockquote {
  padding: 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
}

.blog-table {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 14px;
  box-shadow: 0 0 0 1px #e5e5ea;
}

.blog-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.blog-table th,
.blog-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #ececf0;
  text-align: left;
}

.blog-table th {
  background: var(--gray);
}

.post-sources {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.post-sources h2 {
  font-size: 20px;
}

.post-sources ol {
  margin-top: 12px;
  padding-left: 22px;
}

.post-sources li span {
  color: var(--muted);
}

.admin {
  padding: 40px 16px 80px;
}

.admin h1 {
  font-size: 40px;
}

.post-cta {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--gray);
  box-shadow: inset 0 0 0 1px #e5e5ea;
  font-size: 17px;
  line-height: 1.55;
}

.post-cta p {
  margin: 0;
}

.post-cta b {
  color: var(--ink);
}

.post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 14px !important;
}

.post-cta-actions .pill {
  color: #fff;
}

/* AI drafting */

.strip-link {
  margin-top: 28px;
  font-size: 17px;
}

.ai {
  padding: 140px 0 120px;
  background: var(--dark);
  color: var(--dark-ink);
  overflow: hidden;
}

.ai .section-head {
  margin-bottom: 40px;
}

.ai .section-head p {
  color: var(--dark-muted);
}

.ai-describe {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(640px, 100%);
  margin: 0 auto 72px;
  padding: 6px 6px 6px 18px;
  border-radius: 980px;
  background: var(--dark-2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  transition: box-shadow 0.2s var(--ease-soft);
}

.ai-describe:focus-within {
  box-shadow: inset 0 0 0 1px rgb(129 140 248 / 0.9), 0 0 0 4px rgb(29 78 216 / 0.25);
}

.ai-spark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #93c5fd;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.ai-spark {
  display: grid;
  flex: none;
}

.ai-describe input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--dark-ink);
  font: 400 17px var(--font);
  letter-spacing: -0.01em;
}

.ai-describe input::placeholder {
  color: #86868b;
}

.ai-describe .pill {
  flex: none;
}

.ai-mock {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: #fafafa;
  color: #18181b;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 60px 120px -40px rgb(30 58 138 / 0.45);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
}

.ai-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #ececf0;
  background: #fff;
}

.ai-bar .pane-title {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
}

.ai-send {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.ai-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.ai-doc {
  padding: 26px 30px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  font-family: Helvetica, Arial, sans-serif;
}

.ai-doc p {
  margin: 0 0 6px;
}

.ai-h {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px !important;
}

.ai-sh {
  margin-top: 12px !important;
  font-weight: 700;
}

.ai-v {
  padding: 0 3px;
  border-radius: 4px;
  background: #eff6ff;
  font-weight: 400;
}

.ai-chg {
  margin: 0 -10px;
  padding: 2px 10px 4px;
  border-radius: 6px;
  box-shadow: inset 3px 0 0 #059669;
  background: #ecfdf5;
}

.ai-sigs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.ai-box {
  padding: 12px 10px;
  border-radius: 6px;
  font: 500 11px var(--font);
}

.ai-box.b1 {
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #1d4ed8;
  color: #1e3a8a;
}

.ai-box.b2 {
  background: #f0fdfa;
  box-shadow: inset 0 0 0 1px #0d9488;
  color: #0f766e;
}

.ai-chat {
  display: flex;
  flex-direction: column;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.ai-tabs {
  display: flex;
  gap: 2px;
  margin: 8px;
  padding: 3px;
  border-radius: 9px;
  background: #f4f4f5;
}

.ai-tabs span {
  flex: 1;
  padding: 5px 0;
  border-radius: 7px;
  color: #52525b;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.ai-tabs span.on {
  background: #fff;
  color: #18181b;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.ai-tabs em {
  font-style: normal;
  color: #71717a;
  font-size: 11px;
}

.ai-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 10px 14px;
  list-style: none;
}

.ai-u {
  align-self: flex-end;
  max-width: 86%;
  padding: 7px 12px;
  border-radius: 16px;
  background: #f4f4f5;
}

.ai-a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}

.ai-a p {
  margin: 0;
  padding-top: 2px;
}

.ai-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eff6ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l1.9 4.6 4.6 1.9-4.6 1.9L12 16.5l-1.9-4.6L5.5 10l4.6-1.9z'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.ai-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
}

.ai-card i {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='M13 7l4 4'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.ai-card span {
  flex: 1;
  display: grid;
  color: #71717a;
  font-size: 11px;
  line-height: 1.3;
}

.ai-card b {
  color: #18181b;
  font-size: 12px;
  font-weight: 600;
}

.ai-card em {
  color: #52525b;
  font-style: normal;
  font-size: 12px;
}

.ai-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px;
  padding: 10px 8px 10px 14px;
  border: 1px solid #d4d4d8;
  border-radius: 18px;
  color: #71717a;
}

.ai-composer i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
}

.ai-mock.in .m1,
.ai-mock.in .m2,
.ai-mock.in .m3,
.ai-mock.in .m4,
.ai-mock.in .ai-chg {
  animation: ai-in 0.6s var(--ease) both;
}

.ai-mock.in .m2 {
  animation-delay: 0.5s;
}

.ai-mock.in .m3 {
  animation-delay: 1.1s;
}

.ai-mock.in .m4 {
  animation-delay: 1.7s;
}

.ai-mock.in .ai-chg {
  animation-name: ai-glow;
  animation-delay: 1.9s;
}

@keyframes ai-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes ai-glow {
  from {
    background: transparent;
    box-shadow: inset 0 0 0 transparent;
  }
}

.ai-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 980px;
  margin: 72px auto 0;
  padding: 0;
  list-style: none;
}

.ai-points h3 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.ai-points p {
  margin: 8px 0 0;
  color: var(--dark-muted);
  font-size: 15px;
}

.ai-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin: 56px 0 0;
  color: #86868b;
  font-size: 14px;
  text-align: center;
}

.ai-foot .chev-link {
  color: #93c5fd;
}

@media (max-width: 1000px) {
  .ai-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .ai {
    padding: 96px 0 88px;
  }

  .ai-describe {
    flex-wrap: wrap;
    padding: 6px;
    border-radius: 22px;
  }

  .ai-describe input {
    flex-basis: calc(100% - 40px);
  }

  .ai-describe .pill {
    width: 100%;
  }

  .ai-spark {
    margin-left: 10px;
  }

  .ai-split {
    grid-template-columns: 1fr;
  }

  .ai-doc {
    display: none;
  }

  .ai-points {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-mock.in .m1,
  .ai-mock.in .m2,
  .ai-mock.in .m3,
  .ai-mock.in .m4,
  .ai-mock.in .ai-chg {
    animation: none;
  }
}

.more.more-tight {
  padding-top: 8px;
}

.plans-one { grid-template-columns: minmax(0, 420px); justify-content: center; }

.ink-mark {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}

.ink-mark::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.3em;
  bottom: 0.02em;
  z-index: -1;
  height: 0.2em;
  border-radius: 0.1em;
  background: #fbbf24;
  transform: rotate(-1.2deg);
  transform-origin: left;
  animation: ink-draw 0.9s var(--ease) 0.5s both;
}

@keyframes ink-draw {
  from {
    transform: rotate(-1.2deg) scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ink-mark::after {
    animation: none;
  }
}

#sig-start {
  background: #fbbf24;
  color: #422006;
  box-shadow: 0 0 0 4px rgb(251 191 36 / 0.25);
}

#sig-start:hover {
  background: #f59e0b;
}

.tile.in .ml-bar i {
  animation: ml-fill 1.4s var(--ease) both;
}

.tile.in .mini-list li:nth-child(2) .ml-bar i {
  animation-delay: 0.15s;
}

.tile.in .pill-s {
  animation: ml-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tile.in .mini-list li:nth-child(1) .pill-s {
  animation-delay: 1.2s;
}

.tile.in .mini-list li:nth-child(2) .pill-s {
  animation-delay: 1.35s;
}

.tile.in .mini-list li:nth-child(3) .pill-s {
  animation-delay: 1.5s;
}

.tile.in .mini-list li:nth-child(4) .pill-s {
  animation-delay: 1.65s;
}

@keyframes ml-fill {
  from {
    transform: scaleX(0);
  }
}

@keyframes ml-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ghosts i,
  .tile.in .ml-bar i,
  .tile.in .pill-s {
    animation: none;
  }
}

body:not(.embed)::before,
body:not(.embed)::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body:not(.embed)::before {
  inset: 0;
  background: light-dark(rgb(30 58 138 / 0.09), rgb(160 180 255 / 0.08));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M-20 210c90-70 150-90 170-40s-60 120-30 110 90-150 140-140-40 130 0 120 70-90 110-80 20 70 60 60 120-60 190-30 160 20 220-10 160-70 220-20'/%3E%3Cpath d='M240 520c70-60 130-80 140-40s-70 110-40 100 100-140 150-120-50 120-10 110 80-90 120-70 10 60 50 50 150-50 230-20 180 10 260-30'/%3E%3Cpath d='M820 330c40-40 90-50 90-10s-50 70-20 60 70-90 100-70-30 60 0 50 60-40 140-30'/%3E%3C/svg%3E") center / 1200px 700px no-repeat, radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
  -webkit-mask-composite: source-in;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M-20 210c90-70 150-90 170-40s-60 120-30 110 90-150 140-140-40 130 0 120 70-90 110-80 20 70 60 60 120-60 190-30 160 20 220-10 160-70 220-20'/%3E%3Cpath d='M240 520c70-60 130-80 140-40s-70 110-40 100 100-140 150-120-50 120-10 110 80-90 120-70 10 60 50 50 150-50 230-20 180 10 260-30'/%3E%3Cpath d='M820 330c40-40 90-50 90-10s-50 70-20 60 70-90 100-70-30 60 0 50 60-40 140-30'/%3E%3C/svg%3E") center / 1200px 700px no-repeat, radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
  mask-composite: intersect;
  animation: bg-sway 30s ease-in-out infinite alternate;
}

body:not(.embed)::after {
  top: -30vmax;
  left: 50%;
  width: 80vmax;
  height: 80vmax;
  margin-left: -40vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(29 78 216 / 0.09), rgb(251 191 36 / 0.04) 38%, transparent 62%);
  animation: bg-glow 28s ease-in-out infinite alternate;
}

@keyframes bg-sway {
  to {
    transform: translate(-3vw, 2vh) rotate(-2deg);
  }
}

@keyframes bg-glow {
  0% {
    transform: translate(-18vw, 0) scale(1);
  }
  100% {
    transform: translate(18vw, 6vh) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.embed)::before,
  body:not(.embed)::after {
    animation: none;
  }
}

.scene,
.story-stage,
.mini-editor,
.mini-list,
.mini-lh,
.phone,
.cert-float,
.ai-mock,
.paper {
  color-scheme: light;
  color: var(--ink);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}

.theme-toggle:hover {
  background: light-dark(rgb(0 0 0 / 0.05), rgb(255 255 255 / 0.08));
  color: var(--ink);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .tt-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .tt-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .tt-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .tt-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .tt-moon {
    display: none;
  }
}

.tile-wide.tile-full {
  grid-column: 1 / -1;
}

.mini-lh {
  position: relative;
  min-width: 0;
  align-self: end;
  display: grid;
  gap: 18px;
  margin: 0 0 -36px -36px;
  padding: 26px 30px 18px;
  border-radius: 0 16px 0 0;
  background: #fff;
  box-shadow: 0 0 0 1px #ececf0, 0 30px 60px -30px rgb(0 0 0 / 0.3);
}

.lh-pick {
  position: absolute;
  top: -14px;
  right: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #e4e4ea, 0 8px 20px -10px rgb(0 0 0 / 0.25);
  font-size: 12px;
  font-weight: 600;
}

.lh-pick em {
  margin-left: 4px;
  color: var(--ink-3, #71717a);
  font-style: normal;
  font-weight: 500;
}

.lh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}

.lh-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.lh-firm {
  display: grid;
  min-width: 0;
  text-align: right;
  line-height: 1.45;
}

.lh-firm b {
  color: var(--accent);
  font-size: 15px;
}

.lh-firm small {
  color: var(--ink-2);
  font-size: 10.5px;
}

.lh-text {
  display: grid;
  gap: 9px;
}

.lh-title {
  font-size: 14px !important;
  font-weight: 700;
  color: var(--ink) !important;
}

.lh-foot {
  padding-top: 10px;
  border-top: 1px solid #ececf0;
  color: var(--ink-2);
  font-size: 10px;
  text-align: center;
}

@media (max-width: 760px) {
  .mini-lh {
    margin: 0 -36px -36px;
    border-radius: 16px 16px 0 0;
  }
}

.mini-list.ml-docs {
  margin: 0 -36px -36px 0;
  border-radius: 16px 0 0 0;
}

@media (max-width: 760px) {
  .mini-list.ml-docs {
    margin: 0 -36px -36px;
    border-radius: 16px 16px 0 0;
  }
}

/* Chapters */

.map { padding: 120px 0 96px; }
.map .section-head { margin-bottom: 48px; }
.map-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.map-list a { display: grid; gap: 8px; height: 100%; padding: 28px; border-radius: 24px; background: var(--gray); color: inherit; text-decoration: none; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.map-list a:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.18); }
.map-list .step-n { margin-bottom: 10px; }
.map-list b { font-size: 24px; letter-spacing: -0.02em; }
.map-list span:last-child { color: var(--ink-2); font-size: 16px; }
.ch-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 17px; font-weight: 600; }
.section-head .ch-tag { margin: 0 0 18px; color: inherit; font-size: 17px; }
.ch-tag .step-n, .map-list .step-n { color: var(--white); }
.ch-tag .step-n { width: 30px; height: 30px; margin: 0; font-size: 14px; }
.ai .ch-tag .step-n, .ch-tag-dark .step-n { background: var(--dark-ink); color: var(--dark); }
.ch-tag-dark { display: flex; justify-content: center; margin-bottom: 28px; color: var(--dark-ink); }
.ch { padding: 120px 0; }
.ch-light { background: var(--gray); }
.ch-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.ch-flip .ch-copy { order: 2; }
.ch-copy h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.ch-copy .ticks li { font-size: 17px; }
.ch-stage .pane { position: relative; inset: auto; margin: 0 auto; opacity: 1; transform: none; filter: none; }
.ch-stack { display: grid; gap: 20px; }
.ch-try { color: var(--muted); font-size: 15px; text-align: center; }
.ch-stack .paper { width: 100%; }
.ch-stack .mini-list { margin: 0; border-radius: 16px; }
.proof .reveal-words { text-align: center; }
@media (max-width: 1000px) {
  .map-list,   .ch-split { grid-template-columns: 1fr; gap: 48px; }
  .ch-flip .ch-copy { order: 0; }
}
@media (max-width: 760px) {
  .map, .ch { padding: 80px 0; }
  .map-list, }
.ch-bento { margin-top: 72px; }
.ai .ch-bento .tile { background: var(--dark-2); color: var(--dark-ink); }
.ai .ch-bento .tile p, .ai .ch-bento .tile-big-text h3 { color: var(--dark-muted); }
.ai .ch-bento .tile-count { background: var(--accent); }
.ai .ch-bento .tile-count h3 { color: rgb(255 255 255 / 0.8); }
.try .ch-bento .tile:not(.tile-big-text) { background: var(--gray); }
.ch-light .ch-bento .tile:not(.tile-big-text) { background: var(--card); }
.ch-four { grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
.ch-four .tile { min-height: 0; padding: 28px; }
.ch-four .tile h3 { font-size: 22px; }
.ch-four .tile p { font-size: 16px; }
.try .tile-script .script-word { color: var(--accent); }
@media (max-width: 1000px) { .ch-four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .ch-four { grid-template-columns: 1fr; } }
