/* Notedown marketing site. Light only. 8px spacing grid, one family (Geist), one accent (#0067C0). */

:root {
  --sc-canvas: #ffffff;
  --sc-surface: #ffffff;
  --sc-ink: #0b1220;
  --sc-ink-soft: #4f5a6b;
  --sc-accent: #0067c0;
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Geist", "Segoe UI", system-ui, sans-serif;
  --sc-font-text: "Geist", "Segoe UI", system-ui, sans-serif;
  --sc-shadow-color: 220 30% 25%;

  --ink: #0b1220;
  --ink-2: #4f5a6b;
  --ink-3: #6b7585;
  --line: #e6e8ec;
  --line-2: #d5d9e0;
  --bg-soft: #fafafa;
  --blue: #0067c0;
  --blue-deep: #00508f;
  --sky: #4cc2ff;
  --pop: #ff7a59;

  --tint-blue: #eaf3fd;
  --tint-lav: #f0edfc;
  --tint-mint: #e7f6ef;
  --tint-peach: #fdefe6;

  --shadow-1: 0 1px 2px rgb(16 24 40 / .05);
  --shadow-2: 0 1px 2px rgb(16 24 40 / .04), 0 8px 24px -8px rgb(16 24 40 / .12);
  --shadow-3: 0 2px 4px rgb(16 24 40 / .04), 0 24px 48px -16px rgb(16 24 40 / .18);

  /* 8px grid */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 10vw, 128px);
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

body { background: #fff; color: var(--ink); font-family: var(--sc-font-text); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; letter-spacing: -0.03em; }
p { text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------- type scale */
.t-display { font-size: clamp(44px, 2rem + 3vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.t-h1 { font-size: clamp(40px, 2rem + 2.6vw, 64px); line-height: 1.05; letter-spacing: -0.04em; }
.t-h2 { font-size: clamp(32px, 1.6rem + 1.8vw, 48px); line-height: 1.08; letter-spacing: -0.035em; }
.t-h3 { font-size: clamp(22px, 1.2rem + .5vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.t-lead { font-size: clamp(18px, 1rem + .3vw, 20px); line-height: 1.55; color: var(--ink-2); }
.t-body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.t-small { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* ---------------------------------------------------------------- grid */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--flush { padding-top: 0; }
.head { max-width: 720px; }
.head .t-lead { margin-top: var(--s3); }
.head--center { margin: 0 auto; text-align: center; }
.head--center .t-lead { margin-left: auto; margin-right: auto; max-width: 600px; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  height: 56px; padding: 0 var(--s4); border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgb(0 103 192 / .55); }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: #f0f6fd; }
.btn--outline-white { background: transparent; color: #fff; border-color: rgb(255 255 255 / .6); }
.btn--outline-white:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.btn--sm { height: 40px; padding: 0 var(--s2); font-size: 15px; }
.btn--block { width: 100%; }

/* ----------------------------------------------------------------- nav */
.site-nav { position: sticky; top: 0; z-index: 60; background: rgb(255 255 255 / .88); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color 200ms; }
.site-nav.is-scrolled { border-bottom-color: var(--line); }
.site-nav__row { display: flex; align-items: center; gap: var(--s5); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav__links { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.site-nav__links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); opacity: .8; }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { opacity: 1; }
.site-nav__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.site-nav__end .btn--ghost { border-color: var(--line-2); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.nav-menu-btn { display: none; }
.nav-drawer { display: none; }
@media (max-width: 900px) {
  .site-nav__links, .site-nav__end .hide-sm { display: none; }
  .nav-menu-btn { display: inline-grid; }
  .nav-drawer[data-open="true"] { display: block; border-top: 1px solid var(--line); padding: var(--s2) 0 var(--s3); }
  .nav-drawer ul { list-style: none; margin: 0; padding: 0; }
  .nav-drawer a:not(.btn) { display: block; padding: 12px 0; text-decoration: none; font-size: 17px; font-weight: 500; }
  .nav-drawer .btn { margin-top: var(--s2); width: 100%; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: var(--s10) 0 var(--s12); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.hero__copy .t-lead { margin-top: var(--s3); max-width: 480px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s5); }
.hero__note { margin-top: var(--s2); }

/* collage: blobs + stacked frames + floating chips */
.collage { position: relative; aspect-ratio: 1 / .86; }
.blob { position: absolute; border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; filter: saturate(1.05); }
.blob--a { width: 74%; height: 80%; right: -6%; top: 2%; background: linear-gradient(140deg, #8fd6ff, var(--blue) 75%); animation: drift 18s ease-in-out infinite alternate; }
.blob--b { width: 34%; height: 38%; left: 2%; bottom: 0; background: var(--pop); border-radius: 60% 40% 45% 55% / 55% 60% 40% 45%; animation: drift 14s ease-in-out infinite alternate-reverse; }
.blob--c { width: 22%; height: 24%; right: 6%; bottom: -2%; background: #c9b8ff; border-radius: 50%; animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(2%, -3%) rotate(6deg); } }
.collage .frame { position: absolute; }
.collage__main { left: 6%; top: 10%; width: 90%; }
.collage__sub { left: -2%; bottom: 4%; width: 46%; }
.chip-float { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-3); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip-float .glyph { width: 28px; height: 28px; border-radius: 999px; }
.chip-float--1 { right: 0; top: 2%; }
.chip-float--2 { right: 4%; bottom: 14%; }
.chip-float--3 { left: 40%; bottom: -2%; }

/* -------------------------------------------------------- frames/media */
.frame { position: relative; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-3); overflow: hidden; border: 1px solid rgb(16 24 40 / .08); }
.media { position: relative; aspect-ratio: 16 / 10; background: #f3f5f8; }
.media--wide { aspect-ratio: 16 / 9; }
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity 400ms var(--ease); }
.media.is-ready > img, .media.is-ready > video { opacity: 1; }
.media__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, #f6f8fb, #eef2f7); transition: opacity 300ms; }
.media.is-ready .media__ph { opacity: 0; pointer-events: none; }
.media__ph-inner { display: grid; justify-items: center; gap: var(--s1); color: var(--ink-3); font-size: 14px; font-weight: 500; text-align: center; padding: var(--s2); }
.media__ph-inner svg { width: 32px; height: 32px; opacity: .6; }

.glyph { width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--tint-blue); color: var(--blue); flex: none; }
.glyph svg { width: 18px; height: 18px; }
.glyph--pop { background: #ffe9e1; color: #d8532f; }
.glyph--lav { background: var(--tint-lav); color: #6b4fd8; }
.glyph--mint { background: var(--tint-mint); color: #13804f; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; font-size: 12px; font-weight: 600; border-radius: 999px; background: var(--tint-blue); color: var(--blue); }

/* ------------------------------------------------------------ works with */
.works { padding: 0 0 var(--s4); }
.works__row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s2) var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.works__label { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.works__item { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: #5b6575; }
.works__item svg { width: 22px; height: 22px; }

/* ------------------------------------------------------- tab switcher */
.tabs { margin-top: var(--s6); }
.tabs__list { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s1); padding: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; margin: 0 auto; }
.tab { display: inline-flex; align-items: center; gap: var(--s1); height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 250ms var(--ease), color 250ms, box-shadow 250ms; }
.tab svg { width: 18px; height: 18px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--blue); box-shadow: var(--shadow-2); }
.tabs__panels { margin-top: var(--s5); }
.tab-panel[hidden] { display: none !important; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s6); align-items: center; padding: var(--s6); border-radius: var(--r-xl); background: var(--tint-blue); animation: panelIn 500ms var(--ease); }
.tab-panel .t-h3 { margin-top: var(--s2); }
.tab-panel .t-body { margin-top: var(--s2); }
.tab-panel .frame { animation: frameIn 600ms var(--ease); }
@keyframes panelIn { from { opacity: 0; } }
@keyframes frameIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }

/* ------------------------------------------------- alternating rows */
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s10); align-items: center; }
.row + .row { margin-top: var(--s16); }
.row--flip .row__text { order: 2; }
.row__text .t-lead { margin-top: var(--s3); }
.checks { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 500; }
.checks svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.panel { position: relative; border-radius: var(--r-lg); padding: var(--s6); }
.panel--blue { background: var(--tint-blue); }
.panel--lav { background: var(--tint-lav); }
.panel--mint { background: var(--tint-mint); }
.panel--peach { background: var(--tint-peach); }
.panel .chip-float { bottom: var(--s3); right: var(--s3); }

/* ----------------------------------------------------- benefit cards */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s8); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--shadow-1); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.stat b { display: block; font-size: clamp(40px, 2rem + 1.4vw, 56px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; color: var(--blue); }
.stat h3 { margin-top: var(--s3); font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }
.stat p { margin-top: var(--s1); }

/* ------------------------------------------------------------ quote */
.quote { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); align-items: center; padding: var(--s10); border-radius: var(--r-xl); background: var(--bg-soft); border: 1px solid var(--line); }
.quote blockquote { margin: 0; font-size: clamp(24px, 1.2rem + 1.2vw, 36px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 600; }
.quote__who { margin-top: var(--s4); display: flex; align-items: center; gap: 12px; }
.quote__who img { width: 40px; height: 40px; border-radius: 10px; }
.quote__who b { display: block; font-size: 15px; }


/* -------------------------------------------------------- CTA band */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: var(--s12) var(--s6); text-align: center; color: #fff; background: var(--blue); isolation: isolate; }
.cta::before, .cta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.cta::before { width: 520px; height: 520px; left: -160px; top: -240px; background: #2f8ee0; }
.cta::after { width: 360px; height: 360px; right: -100px; bottom: -200px; background: #0a4f91; }
.cta h2 { color: #fff; }
.cta p { margin: var(--s3) auto 0; max-width: 560px; color: rgb(255 255 255 / .88); font-size: 18px; line-height: 1.55; }
.cta .hero__ctas { justify-content: center; }
.cta__price { margin-top: var(--s2); font-size: 15px; color: rgb(255 255 255 / .85); }
.cta__price s { opacity: .8; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: var(--s10) 0 var(--s5); margin-top: var(--section); }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: var(--s5); }
.site-footer h4 { margin: 0 0 var(--s2); font-size: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--ink); }
.site-footer__base { margin-top: var(--s8); padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }

/* ------------------------------------------------------------ pricing */
.page-head { padding: var(--s10) 0 var(--s8); text-align: center; }
.page-head .t-lead { max-width: 560px; margin: var(--s3) auto 0; }
.plans-wrap { position: relative; padding: var(--s6); border-radius: var(--r-xl); background: var(--tint-blue); overflow: hidden; isolation: isolate; }
.plans-wrap .blob { z-index: -1; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); max-width: 880px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); display: flex; flex-direction: column; box-shadow: var(--shadow-2); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.plan--pro { border: 2px solid var(--blue); }
.plan__name { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.plan__price { margin-top: var(--s3); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan__price b { font-size: 56px; letter-spacing: -0.05em; font-weight: 700; line-height: 1; }
.plan__price s { color: var(--ink-3); font-size: 20px; }
.plan__sub { margin-top: var(--s1); }
.plan ul { list-style: none; padding: 0; margin: var(--s4) 0; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 12px; font-size: 15px; }
.plan li svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.compare { max-width: 880px; margin: var(--s16) auto 0; }
.compare table { width: 100%; border-collapse: collapse; margin-top: var(--s4); font-size: 15px; }
.compare th, .compare td { padding: var(--s2); border-bottom: 1px solid var(--line); text-align: left; }
.compare th { font-weight: 600; font-size: 14px; color: var(--ink-3); }
.compare td:nth-child(n+2), .compare th:nth-child(n+2) { text-align: center; width: 120px; }
.yes { color: var(--blue); display: inline-grid; place-items: center; }
.yes svg { width: 20px; height: 20px; }
.no { color: var(--ink-3); }
.faq { max-width: 720px; margin: var(--s16) auto 0; }
.faq__list { margin-top: var(--s4); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s3) 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: var(--s2); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink-3); transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--s3); }
.pricing-quote { margin-top: var(--s16); }

/* -------------------------------------------------------------- auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
.auth__form { display: grid; place-items: center; padding: var(--s8) var(--gutter); }
.auth__card { width: 100%; max-width: 400px; }
.auth h1 { font-size: 40px; letter-spacing: -0.04em; line-height: 1.1; }
.auth .t-body { margin-top: var(--s1); }
.providers { display: grid; gap: 12px; margin-top: var(--s4); }
.sso { display: flex; align-items: center; justify-content: center; gap: 12px; height: 48px; padding: 0 var(--s2); font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; border: 1px solid; width: 100%; }
.sso svg { width: 20px; height: 20px; flex: none; }
/* Google branding: white fill, #747775 stroke, #1F1F1F text, Roboto Medium */
.sso--google { background: #fff; border-color: #747775; color: #1f1f1f; font-family: Roboto, Arial, sans-serif; border-radius: 999px; }
/* Microsoft branding: white, #8C8C8C border, #5E5E5E text, Segoe UI Semibold */
.sso--microsoft { background: #fff; border-color: #8c8c8c; color: #5e5e5e; font-family: "Segoe UI", Arial, sans-serif; font-weight: 600; border-radius: 999px; }
/* Apple HIG: black fill, white logo and text */
.divider { display: flex; align-items: center; gap: var(--s2); margin: var(--s4) 0; font-size: 13px; color: var(--ink-3); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { display: grid; gap: var(--s1); margin-bottom: var(--s2); }
.field label { font-size: 14px; font-weight: 600; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; }
.field__row a { font-size: 13px; color: var(--blue); text-decoration: none; font-weight: 500; }
.input { height: 48px; padding: 0 var(--s2); border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 16px; width: 100%; transition: border-color 200ms, box-shadow 200ms; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(0 103 192 / .14); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: var(--s1) 0 var(--s3); }
.check input { margin-top: 2px; width: 16px; height: 16px; }
.form-msg { min-height: 20px; font-size: 14px; margin-top: 12px; color: var(--ink-2); }
.form-msg.is-error { color: #c42b1c; }
.auth__alt { margin-top: var(--s3); text-align: center; font-size: 15px; color: var(--ink-2); }
.auth__alt a { color: var(--blue); text-decoration: none; font-weight: 600; }
.auth__fine { margin-top: var(--s2); font-size: 13px; color: var(--ink-3); text-align: center; }
.auth__fine a { color: inherit; }
.auth__art { position: relative; overflow: hidden; margin: var(--s2); border-radius: var(--r-xl); background: linear-gradient(160deg, #e3f1fd, #f0edfc 60%, #fdefe6); display: flex; flex-direction: column; justify-content: center; padding: var(--s8); isolation: isolate; }
.auth__art .blob { z-index: -1; }
.auth__art h2 { font-size: clamp(28px, 1.4rem + 1vw, 40px); line-height: 1.1; letter-spacing: -0.035em; max-width: 460px; }
.auth__art .collage { margin-top: var(--s5); width: 100%; max-width: 560px; }
.auth + .site-footer { margin-top: 0; }

/* -------------------------------------------------------------- motion */
.lift { transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero { padding-top: var(--s6); }
  .hero__grid, .row, .tab-panel, .quote { grid-template-columns: 1fr; }
  .row { gap: var(--s5); }
  .row--flip .row__text { order: 0; }
  .collage { max-width: 640px; width: 100%; margin: 0 auto; }
  .tab-panel { padding: var(--s3); gap: var(--s3); }
  .quote { padding: var(--s5); gap: var(--s5); }
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plans-wrap { padding: var(--s2); }
  .plan { padding: var(--s3); }
  .hero__ctas .btn { width: 100%; }
  .tabs__list { border-radius: var(--r-lg); width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tab { justify-content: center; padding: 0 12px; }
  .panel { padding: var(--s2); }
  .panel .chip-float { display: none; }
  .chip-float { font-size: 12px; padding: 6px 12px 6px 6px; }
  .chip-float .glyph { width: 22px; height: 22px; }
  .chip-float--3 { display: none; }
  .cta { padding: var(--s8) var(--s3); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .compare th, .compare td { padding: 12px 6px; }
  .compare td:nth-child(n+2), .compare th:nth-child(n+2) { width: 64px; }
  .works__row { gap: var(--s2) var(--s4); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
  .tab-panel, .tab-panel .frame { animation: none; }
  .btn:hover, .stat:hover, .plan:hover, .lift:hover { transform: none; }
}

.site-footer a.btn--primary { color: #fff; }

/* Hero motion loop + glass (driven by motion/hero-loop.js) */
.hero { position: relative; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.sweep-text { background: linear-gradient(100deg, transparent 0%, #0a4f94 30%, #0067c0 50%, #0a4f94 70%, transparent 100%) no-repeat, var(--ink); background-size: 45% 100%, 100% 100%; background-position: calc(var(--sweep, -1) * 182% - 41%) 0, 0 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.collage .frame, .chip-float { background: rgb(255 255 255 / .55); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgb(255 255 255 / .85); box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 2px 6px rgb(16 24 40 / .05), 0 28px 56px -20px rgb(16 40 80 / .22); }
.collage .frame { padding: 8px; }
.collage .frame .media { border-radius: calc(var(--r-md) - 6px); overflow: hidden; }
.collage .frame::after, .chip-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .55) 50%, transparent 60%) no-repeat; background-size: 250% 100%; background-position: calc((1 - var(--glass, -1)) * 100%) 0; mix-blend-mode: soft-light; }
.chip-float { overflow: hidden; }
.chip-float--1 { translate: 0 var(--float1, 0); }
.chip-float--2 { translate: 0 var(--float2, 0); }
.chip-float--3 { translate: 0 var(--float3, 0); }

/* ---------------------------------------------------- Film hero (title card) */
:root { --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif; --paper: #f7f2e8; }
.film { position: relative; isolation: isolate; overflow: hidden; min-height: max(760px, calc(100vh - 72px)); background: var(--paper); display: flex; }
.film__scene { position: absolute; inset: 0; z-index: -1; transform-origin: 50% 70%; }
.film.is-in .film__scene { animation: kenburns 22s cubic-bezier(.22,1,.36,1) both; }
.film__layer { position: absolute; left: -5%; width: 110%; height: 104%; top: -2%; object-fit: cover; object-position: 50% 100%; pointer-events: none; user-select: none; will-change: translate; }
.film__clouds { animation: cloudDrift 60s ease-in-out infinite alternate; }
.film__light { position: absolute; inset: 0; background: radial-gradient(60% 50% at 72% 26%, rgb(255 248 230 / .75), transparent 70%); mix-blend-mode: screen; animation: lightShift 18s ease-in-out infinite alternate; }
.film__title { position: relative; text-align: center; padding-top: clamp(64px, 9vh, 120px); padding-bottom: 46vh; display: flex; flex-direction: column; align-items: center; }
.t-film { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 2rem + 5.2vw, 124px); line-height: .98; letter-spacing: -0.02em; color: var(--ink); max-width: 15ch; margin: 0; text-wrap: balance; }
.film__sub { margin-top: var(--s3); max-width: 560px; color: var(--ink-2); }
.film__ctas { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s4); flex-wrap: wrap; justify-content: center; }
.film__note { margin-top: var(--s2); }
.link-under { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.link-under:hover { color: var(--blue); }
.film.is-in .film__title > * { animation: titleIn 1.6s cubic-bezier(.22,1,.36,1) both; }
.film.is-in .film__title > :nth-child(2) { animation-delay: .25s; }
.film.is-in .film__title > :nth-child(3) { animation-delay: .4s; }
.film.is-in .film__title > :nth-child(4) { animation-delay: .5s; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes cloudDrift { from { transform: translateX(-2.5%); } to { transform: translateX(2.5%); } }
@keyframes lightShift { from { opacity: .55; transform: translate(-2%, 0); } to { opacity: 1; transform: translate(2%, 1%); } }
@keyframes titleIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.showcase { padding: var(--s10) 0 var(--s6); }
.showcase .collage { max-width: 980px; margin: 0 auto; }

/* ------------------------------------------------------ Footer landscape band */
.site-footer { padding-bottom: 0; background: linear-gradient(var(--bg-soft), var(--paper)); }
.foot-art { position: relative; height: clamp(260px, 34vw, 480px); margin-top: var(--s6); overflow: hidden; }
.foot-art__layer { position: absolute; left: -4%; width: 108%; height: 112%; bottom: -6%; object-fit: cover; object-position: 50% 100%; pointer-events: none; }
.foot-art__word { position: absolute; left: 0; right: 0; bottom: 30%; text-align: center; font-family: var(--serif); font-size: clamp(120px, 21vw, 380px); line-height: 1; letter-spacing: -0.03em; color: rgb(0 103 192 / .16); pointer-events: none; user-select: none; white-space: nowrap; }

/* ---------------------------------------------------------------- Cursor */

@media (max-width: 900px) { .film__title { padding-bottom: 38vh; } .film { min-height: 680px; } }
@media (max-width: 640px) { .film__title { padding-bottom: 30vh; } .film { min-height: 620px; } }
@media (prefers-reduced-motion: reduce) { .film__scene, .film__clouds, .film__light, .film__title > * { animation: none !important; } }
.film__desk { top: 5%; }
.film__layer, .foot-art__layer { max-width: none; }

/* Footer night band (dithered canvas, replaces the painted hills) */
.foot-art { height: clamp(320px, 36vw, 540px); margin-top: var(--s4); }
.foot-night { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }

/* night scene behind the whole footer */
.site-footer { position: relative; isolation: isolate; background: transparent; }
.foot-night { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.foot-art { height: clamp(440px, 42vw, 640px); }

/* ---------------------------------------------------------------- Sticky scroll features */
.feat { position: relative; height: 460vh; }
.feat__sticky { position: sticky; top: 72px; height: calc(100vh - 72px); display: flex; align-items: center; }
.feat__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; }
.feat__eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.feat__badge { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--blue); color: #fff; }
.feat__badge svg { width: 15px; height: 15px; }
.feat__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -0.005em; margin: 14px 0 clamp(16px, 3vh, 32px); color: var(--ink); max-width: 14ch; }
.feat__list { list-style: none; margin: 0; padding: 0; }
.feat__item { border-top: 1px solid var(--line); padding: clamp(10px, 1.8vh, 18px) 0; opacity: .38; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.feat__item.is-active { opacity: 1; }
.feat__item:not(.is-seen) { opacity: 0; transform: translateY(14px); }
.feat__head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; border: 0; background: none; font: 500 clamp(17px, 1.5vw, 21px)/1.3 var(--sc-font-text); color: var(--ink); text-align: left; cursor: pointer; }
.feat__head svg { width: 20px; height: 20px; flex: none; color: var(--ink); }
.feat__item.is-active .feat__head svg { color: var(--blue); }
.feat__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.feat__item.is-active .feat__body { grid-template-rows: 1fr; }
.feat__body > div { overflow: hidden; display: flex; align-items: flex-start; gap: 24px; }
.feat__body p { margin: 10px 0 0 34px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.feat__go { flex: none; margin-top: 12px; margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s; }
.feat__go:hover { background: var(--tint-blue); border-color: var(--line-2); }
.feat__go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat__bar { display: block; height: 2px; margin: 14px 0 0 34px; background: var(--line); border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.feat__item.is-active .feat__bar { opacity: 1; }
.feat__bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* media card */
.feat__card { position: relative; aspect-ratio: 1 / 1; max-height: calc(100vh - 140px); margin-left: auto; width: 100%; border-radius: 32px; overflow: hidden;
  background: radial-gradient(120% 70% at 20% 0%, #8cc4ff 0%, rgb(140 196 255 / 0) 60%), linear-gradient(170deg, #5aa3f5 0%, #b8cdfb 45%, #ddd3fb 70%, #7f8ff0 100%); box-shadow: var(--shadow-3); }
.feat__lights { position: absolute; left: -4%; right: -4%; top: 38%; height: 24%; display: flex; gap: 2.5%; justify-content: space-between; pointer-events: none; }
.feat__lights span { flex: 1; border-radius: 999px; background: linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .55) 50%, rgb(255 255 255 / .05)); }
.mini { position: absolute; left: 50%; top: 50%; width: min(64%, 360px); transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease);
  background: #fff; border-radius: 22px; padding: clamp(18px, 2.2vw, 28px); text-align: center; box-shadow: 0 0 0 6px rgb(255 255 255 / .35), 0 30px 60px -20px rgb(20 40 110 / .35); }
.mini.is-on { opacity: 1; transform: translate(-50%, -50%); }
.mini:not(.is-on) * { animation: none !important; }
.mini__pill { display: inline-block; padding: 4px 12px; border-radius: 8px; background: var(--tint-blue); color: var(--blue-deep); font-size: 13px; font-weight: 500; }
.mini__big { margin: 12px 0 14px; font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.mini__stage { position: relative; height: clamp(150px, 15vw, 190px); display: grid; place-items: center; border-radius: 14px; background: #f6f8fb; }
.mini__chip { position: absolute; left: 50%; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; transform: translate(-50%, 6px); opacity: 0; box-shadow: 0 6px 16px -6px rgb(0 103 192 / .6); }
.mini__chip svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Ink: rough stroke draws, then becomes a clean circle */
.ink-svg { width: 70%; height: 66%; margin-bottom: 30px; overflow: visible; }
.ink-rough { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: inkRough 5s var(--ease) infinite; }
.ink-clean { fill: none; stroke: var(--blue); stroke-width: 3.5; opacity: 0; transform-origin: 100px 65px; animation: inkClean 5s var(--ease) infinite; }
.ink-chip { animation: chipIn 5s var(--ease) infinite; }
@keyframes inkRough { 0% { stroke-dashoffset: 1; opacity: 1; } 32% { stroke-dashoffset: 0; opacity: 1; } 44% { opacity: 1; } 52%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes inkClean { 0%, 44% { opacity: 0; transform: scale(.9); } 54% { opacity: 1; transform: scale(1.03); } 60%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes chipIn { 0%, 54% { opacity: 0; transform: translate(-50%, 8px); } 62%, 92% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }

/* PDF: highlighter swipe, then a pen note */
.pdf-page { position: relative; width: 74%; height: 84%; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 10px 24px -12px rgb(16 24 40 / .25); padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; text-align: left; }
.pdf-h { font-size: 13px; font-weight: 600; color: var(--ink); }
.pdf-l { position: relative; display: block; height: 6px; border-radius: 3px; background: #dfe3ea; }
.pdf-hl { position: absolute; left: -4px; top: -5px; height: 16px; width: calc(100% + 8px); border-radius: 3px; background: rgb(255 199 66 / .55); transform-origin: left; transform: scaleX(0); animation: hlSwipe 5s var(--ease) infinite; mix-blend-mode: multiply; }
.pdf-note { position: absolute; right: 8px; bottom: 6px; width: 46%; overflow: visible; }
.pdf-note path { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: noteDraw 5s var(--ease) infinite; }
@keyframes hlSwipe { 0%, 8% { transform: scaleX(0); opacity: 1; } 30%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes noteDraw { 0%, 36% { stroke-dashoffset: 1; opacity: 1; } 66%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Builder: three cards slide into one */
.bld { position: relative; width: 100%; height: 100%; }
.bld-c { position: absolute; top: 9%; left: 50%; width: 96px; height: 100px; margin-left: -48px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 10px 24px -12px rgb(16 24 40 / .3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 500; color: var(--ink); }
.bld-c b { font-size: 10px; letter-spacing: .04em; color: #fff; background: var(--blue); border-radius: 4px; padding: 2px 6px; margin-bottom: 4px; }
.bld-c small { font-size: 11px; color: var(--ink-3); }
.bld-c1 { animation: bld1 5s var(--ease) infinite; }
.bld-c2 { animation: bld2 5s var(--ease) infinite; z-index: 2; }
.bld-c3 { animation: bld3 5s var(--ease) infinite; }
.bld-chip { animation: chipIn 5s var(--ease) infinite; }
@keyframes bld1 { 0%, 14% { transform: translateX(-104px) rotate(-6deg); opacity: 1; } 44% { transform: translateX(0) rotate(0); opacity: 1; } 50%, 100% { transform: translateX(0); opacity: 0; } }
@keyframes bld3 { 0%, 14% { transform: translateX(104px) rotate(6deg); opacity: 1; } 44% { transform: translateX(0) rotate(0); opacity: 1; } 50%, 100% { transform: translateX(0); opacity: 0; } }
@keyframes bld2 { 0%, 44% { transform: translateY(0) scale(1); } 52% { transform: translateY(-6px) scale(1.08); } 60%, 100% { transform: translateY(-6px) scale(1.04); } }

/* Split: one pane, then two, then three */
.spl { width: 88%; height: 80%; display: flex; gap: 0; background: #fff; border-radius: 8px; padding: 6px; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 10px 24px -12px rgb(16 24 40 / .25); }
.spl-p { position: relative; min-width: 0; overflow: hidden; border-radius: 5px; background: #f6f8fb; display: flex; flex-direction: column; gap: 6px; padding: 8px; text-align: left; }
.spl-p em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.spl-p i { display: block; height: 5px; width: 85%; border-radius: 3px; background: #d8dde6; }
.spl-p1 { flex: 1 1 0; }
.spl-p2, .spl-p3 { flex: 0 1 0; padding-left: 0; padding-right: 0; opacity: 0; margin-left: 0; }
.spl-p2 { animation: spl2 5s var(--ease) infinite; }
.spl-p3 { animation: spl3 5s var(--ease) infinite; }
.spl-slide { flex: 1; border-radius: 4px; background: linear-gradient(135deg, var(--tint-blue), #cfe2fb); }
.spl-p3 svg { width: 100%; flex: 1; }
.spl-p3 path { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; }
@keyframes spl2 { 0%, 14% { flex-grow: 0; opacity: 0; margin-left: 0; padding: 8px 0; } 30%, 92% { flex-grow: 1; opacity: 1; margin-left: 6px; padding: 8px; } 100% { flex-grow: 0; opacity: 0; margin-left: 0; padding: 8px 0; } }
@keyframes spl3 { 0%, 42% { flex-grow: 0; opacity: 0; margin-left: 0; padding: 8px 0; } 58%, 92% { flex-grow: 1; opacity: 1; margin-left: 6px; padding: 8px; } 100% { flex-grow: 0; opacity: 0; margin-left: 0; padding: 8px 0; } }

/* Markdown: typed raw, then rendered */
.md { position: relative; width: 78%; height: 78%; background: #fff; border-radius: 8px; padding: 16px 18px; text-align: left; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 10px 24px -12px rgb(16 24 40 / .25); }
.md-raw { position: absolute; left: 18px; top: 16px; display: flex; align-items: center; font: 500 20px/32px ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink-2); animation: mdRaw 5s infinite; }
.md-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: mdType 5s steps(10, end) infinite; }
.md-caret { width: 2px; height: 22px; background: var(--blue); margin-left: 1px; animation: caret .8s steps(1) infinite; }
.md-out { font: 700 28px/32px var(--sc-font-display); letter-spacing: -0.02em; color: var(--ink); opacity: 0; transform: translateY(4px); animation: mdOut 5s var(--ease) infinite; }
.md-line { display: block; height: 6px; border-radius: 3px; background: #dfe3ea; opacity: 0; animation: mdOut 5s var(--ease) infinite; }
@keyframes mdType { 0%, 6% { width: 0; } 40%, 100% { width: 10ch; } }
@keyframes mdRaw { 0%, 48% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes mdOut { 0%, 50% { opacity: 0; transform: translateY(4px); } 60%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes caret { 50% { opacity: 0; } }

/* reduced motion: freeze every loop at its finished state */
@media (prefers-reduced-motion: reduce) {
  .mini *, .mini *::before { animation-delay: -4.2s !important; animation-play-state: paused !important; }
  .mini, .feat__item, .feat__body { transition: none; }
}

/* tablet and phone: card on top, tap or auto carousel */
@media (max-width: 960px) {
  .feat { height: auto; padding: var(--section) 0; }
  .feat__sticky { position: static; height: auto; display: block; }
  .feat__grid { grid-template-columns: 1fr; }
  .feat__right { order: -1; }
  .feat__card { aspect-ratio: 4 / 3.4; max-height: none; }
  .mini { width: min(78%, 360px); }
  .feat__title { max-width: none; }
  .feat__item:not(.is-seen) { opacity: .38; transform: none; }
}

/* ---------------------------------------------------------------- macOS pointer */
.has-cursor.cur-on, .has-cursor.cur-on * { cursor: none !important; }
.has-cursor.cur-on input, .has-cursor.cur-on textarea, .has-cursor.cur-on select, .has-cursor.cur-on [contenteditable="true"] { cursor: text !important; }
.mac-cur { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.cur-on .mac-cur { opacity: 1; }
.mac-cur[data-state="text"] { opacity: 0 !important; }
.mac-cur svg { position: absolute; display: block; max-width: none; filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .35)); }
.mac-cur__arrow { left: -4px; top: -2px; width: 22px; height: 26px; }
.mac-cur__hand { left: -9px; top: -2px; width: 24px; height: 26px; display: none !important; }
.mac-cur[data-state="link"] .mac-cur__arrow { display: none; }
.mac-cur[data-state="link"] .mac-cur__hand { display: block !important; }
.mac-cur__pill { position: absolute; left: 20px; top: 20px; padding: 4px 10px; border-radius: 999px; background: rgb(11 18 32 / .88); color: #fff; font: 600 12px/1.2 var(--sc-font-text); white-space: nowrap; opacity: 0; transform: scale(.85); transform-origin: top left; transition: opacity .2s, transform .25s var(--ease); }
.mac-cur[data-state="media"] .mac-cur__pill { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .mac-cur { display: none; } }

.bld-lbl { display: grid; text-align: center; }
.bld-a, .bld-b { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bld-a { animation: bldA 5s var(--ease) infinite; }
.bld-b { opacity: 0; animation: bldB 5s var(--ease) infinite; }
@keyframes bldA { 0%, 46% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes bldB { 0%, 46% { opacity: 0; } 54%, 100% { opacity: 1; } }
.feat__list { min-height: var(--feat-h, auto); }

/* ---------------------------------------------------------------- Round 6: text serif, distance fade, category blocks */
:root { --serif-text: "Newsreader", "Iowan Old Style", Georgia, serif; }
.t-h2, .feat__title { font-family: var(--serif-text); font-weight: 450; font-optical-sizing: auto; font-variation-settings: "opsz" 72; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.feat__title { font-size: clamp(36px, 3.6vw, 54px); max-width: 24ch; }
.feat { height: calc(100vh + var(--n, 5) * 62vh); }
.feat__item, .feat__item:not(.is-seen) { opacity: var(--o, .06); transform: none; transition: opacity .6s var(--ease); }
.feat__bar, .feat__go { display: none !important; }
.feat__body p { margin-right: 0; }
.feat--cat { margin-top: clamp(40px, 6vw, 96px); }
.feat--flip .feat__right { order: -1; }
.feat--flip .feat__card { margin-left: 0; margin-right: auto; }
.feat__badge--pdf { background: #129c8c; }
.feat__badge--build { background: #7a5af5; }
.feat__badge--md { background: #e07a2f; }
.feat__card--mint { background: radial-gradient(110% 70% at 80% 0%, #7fe3d3 0%, rgb(127 227 211 / 0) 60%), linear-gradient(170deg, #3f86d1 0%, #8fd8e6 50%, #c9f2e6 72%, #43b8a9 100%); }
.feat__card--lav { background: radial-gradient(110% 70% at 20% 0%, #f4b8da 0%, rgb(244 184 218 / 0) 60%), linear-gradient(170deg, #c9a6f7 0%, #e5cdf6 48%, #f3d6ea 70%, #9f8cf0 100%); }
.feat__card--warm { background: radial-gradient(110% 70% at 80% 0%, #ffd29a 0%, rgb(255 210 154 / 0) 60%), linear-gradient(170deg, #f5a46a 0%, #fbd3b0 48%, #fde8d4 70%, #e98a64 100%); }
@media (max-width: 960px) { .feat--flip .feat__right { order: -1; } .feat--cat { margin-top: 0; } }

/* shared bits for the new minis */
.ink-clean { transform-box: fill-box; transform-origin: center; stroke-linecap: round; stroke-linejoin: round; }
.pg { position: relative; width: 74%; height: 84%; background: #fff; border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; text-align: left; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 10px 24px -12px rgb(16 24 40 / .25); }
.pg-h { font-size: 13px; font-weight: 600; color: var(--ink); }
.ln { position: relative; display: block; height: 6px; border-radius: 3px; background: #dfe3ea; flex: none; }

/* lasso */
.lso { width: 80%; height: 90%; overflow: visible; }
.lso-g { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: lsoMove 5s var(--ease) infinite; }
.lso-g circle:last-of-type { stroke: var(--blue); }
.lso-loop { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: .02 .015; stroke-dashoffset: 0; animation: lsoLoop 5s var(--ease) infinite; }
@keyframes lsoLoop { 0% { opacity: 1; clip-path: inset(0 100% 0 0); } 36%, 46% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } 70%, 92% { opacity: 1; clip-path: inset(0); transform: translate(56px, -4px) scale(1.15); } 100% { opacity: 0; transform: translate(56px, -4px) scale(1.15); } }
@keyframes lsoMove { 0%, 46% { transform: none; opacity: 1; } 70%, 92% { transform: translate(56px, -4px) scale(1.15); opacity: 1; } 100% { transform: translate(56px, -4px) scale(1.15); opacity: 0; } }
.lso-loop { transform-box: view-box; transform-origin: 70px 64px; }

/* replay */
.rpl { width: 82%; height: 72%; margin-bottom: 26px; overflow: visible; }
.rpl-s { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rpl-s4 { stroke: var(--blue); }
.rpl-s1 { animation: rpl1 5s linear infinite; } .rpl-s2 { animation: rpl2 5s linear infinite; } .rpl-s3 { animation: rpl3 5s linear infinite; } .rpl-s4 { animation: rpl4 5s linear infinite; }
@keyframes rpl1 { 0%, 4% { stroke-dashoffset: 1; } 22%, 94% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes rpl2 { 0%, 24% { stroke-dashoffset: 1; } 34%, 94% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes rpl3 { 0%, 36% { stroke-dashoffset: 1; } 56%, 94% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes rpl4 { 0%, 58% { stroke-dashoffset: 1; } 74%, 94% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.rpl-bar { position: absolute; left: 12%; right: 12%; bottom: 14px; display: flex; align-items: center; gap: 10px; }
.rpl-bar b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 9px; padding-left: 2px; }
.rpl-bar i { flex: 1; height: 4px; border-radius: 2px; background: #dfe3ea; overflow: hidden; }
.rpl-bar s { display: block; height: 100%; background: var(--blue); transform-origin: left; animation: rplBar 5s linear infinite; }
@keyframes rplBar { 0%, 4% { transform: scaleX(0); } 76%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* annotate */
.ln--u i { position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: #129c8c; transform-origin: left; transform: scaleX(0); animation: uLine 5s var(--ease) infinite; }
.bub { position: absolute; right: -14px; top: 30px; padding: 6px 10px; border-radius: 10px 10px 10px 2px; background: #129c8c; color: #fff; font-size: 12px; font-weight: 500; box-shadow: 0 8px 18px -8px rgb(18 156 140 / .7); transform-origin: bottom left; transform: scale(0); animation: bub 5s var(--ease) infinite; }
@keyframes uLine { 0%, 8% { transform: scaleX(0); opacity: 1; } 30%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes bub { 0%, 34% { transform: scale(0); opacity: 1; } 44% { transform: scale(1.08); opacity: 1; } 50%, 92% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* pen circle */
.pen-o { position: absolute; left: 6px; top: 62px; width: 58%; height: 34px; overflow: visible; }
.pen-o path { fill: none; stroke: #e5484d; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: noteDraw 5s var(--ease) infinite; }
.mini--circle .pen-o path { stroke: var(--blue); }

/* thumbnails */
.thm { display: flex; gap: 12px; width: 80%; height: 84%; }
.thm-col { position: relative; display: flex; flex-direction: column; gap: 6px; width: 34px; }
.thm-col span { flex: 1; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgb(16 24 40 / .15); }
.thm-sel { position: absolute; left: -3px; top: -3px; width: 40px; height: calc(25% - 1.5px); border: 2px solid #129c8c; border-radius: 6px; animation: thmSel 5s var(--ease) infinite; }
.thm-big { position: relative; flex: 1; background: #fff; border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 10px 24px -12px rgb(16 24 40 / .25); }
.thm-n { position: absolute; right: 10px; bottom: 8px; width: 16px; height: 16px; overflow: hidden; font: 600 12px/16px var(--sc-font-text); color: var(--ink-3); }
.thm-n em { display: block; font-style: normal; text-align: center; animation: thmN 5s var(--ease) infinite; }
@keyframes thmSel { 0%, 15% { transform: translateY(0); } 25%, 40% { transform: translateY(calc(100% + 4px)); } 50%, 65% { transform: translateY(calc(200% + 8px)); } 75%, 100% { transform: translateY(calc(300% + 12px)); } }
@keyframes thmN { 0%, 15% { transform: translateY(0); } 25%, 40% { transform: translateY(-16px); } 50%, 65% { transform: translateY(-32px); } 75%, 100% { transform: translateY(-48px); } }

/* merge rows */
.mrg { position: relative; width: 76%; height: 80%; }
.mrg-r { position: absolute; left: 0; right: 0; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink); box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 8px 20px -10px rgb(16 24 40 / .3); }
.mrg-r b { font-size: 9px; color: #fff; background: #7a5af5; border-radius: 4px; padding: 2px 5px; }
.mrg-r small { margin-left: auto; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.mrg-r1 { top: 14%; animation: mrg1 5s var(--ease) infinite; }
.mrg-r2 { top: 56%; animation: mrg2 5s var(--ease) infinite; }
.mrg-r3 { top: 35%; opacity: 0; animation: mrg3 5s var(--ease) infinite; }
@keyframes mrg1 { 0%, 16% { transform: none; opacity: 1; } 40% { transform: translateY(32px); opacity: 1; } 46%, 100% { transform: translateY(32px); opacity: 0; } }
@keyframes mrg2 { 0%, 16% { transform: none; opacity: 1; } 40% { transform: translateY(-34px); opacity: 1; } 46%, 100% { transform: translateY(-34px); opacity: 0; } }
@keyframes mrg3 { 0%, 40% { opacity: 0; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* reorder tiles */
.ord { display: flex; gap: 10px; margin-bottom: 34px; }
.ord-t { display: grid; place-items: center; width: 46px; height: 60px; border-radius: 6px; background: #fff; font-weight: 600; color: var(--ink-2); box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 8px 18px -10px rgb(16 24 40 / .3); }
.ord-a { animation: ordA 5s var(--ease) infinite; position: relative; z-index: 2; }
.ord-b { animation: ordB 5s var(--ease) infinite; }
.ord-chip { background: #7a5af5; box-shadow: 0 6px 16px -6px rgb(122 90 245 / .6); animation: chipIn 5s var(--ease) infinite; }
@keyframes ordA { 0%, 14% { transform: none; box-shadow: 0 1px 2px rgb(16 24 40 / .08); } 22% { transform: translateY(-10px) rotate(-4deg); box-shadow: 0 16px 24px -10px rgb(16 24 40 / .4); } 44% { transform: translate(56px, -10px) rotate(3deg); } 52%, 100% { transform: translateX(56px); } }
@keyframes ordB { 0%, 30% { transform: none; } 44%, 100% { transform: translateX(-56px); } }

/* export */
.exp { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 70%; }
.exp-btn { padding: 10px 18px; border-radius: 10px; background: #7a5af5; color: #fff; font-size: 14px; font-weight: 600; animation: expBtn 5s var(--ease) infinite; }
.exp-bar { width: 100%; height: 6px; border-radius: 3px; background: #e4e0f8; overflow: hidden; }
.exp-bar i { display: block; height: 100%; background: #7a5af5; transform-origin: left; transform: scaleX(0); animation: expBar 5s ease-in-out infinite; }
.exp-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); opacity: 0; animation: chipFade 5s var(--ease) infinite; }
.exp-ok svg { width: 14px; height: 14px; fill: none; stroke: #129c8c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes expBtn { 0%, 10% { transform: none; } 14% { transform: scale(.94); } 18%, 100% { transform: none; } }
@keyframes expBar { 0%, 16% { transform: scaleX(0); opacity: 1; } 56%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes chipFade { 0%, 56% { opacity: 0; transform: translateY(4px); } 64%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* markdown: checklist */
.todo-raw, .tbl-raw { position: absolute; left: 18px; top: 18px; font: 500 15px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink-2); animation: mdRaw 5s infinite; }
.todo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink); opacity: 0; animation: mdOut 5s var(--ease) infinite; }
.todo--2 { color: var(--ink-2); }
.todo-box { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1.6px solid var(--line-2); }
.todo-box svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.todo:not(.todo--2) .todo-box { animation: todoBox 5s var(--ease) infinite; }
.todo:not(.todo--2) .todo-box svg { animation: todoTick 5s var(--ease) infinite; }
.todo-t { background: linear-gradient(currentColor, currentColor) 0 55% / 0 1.5px no-repeat; animation: todoStrike 5s var(--ease) infinite; }
@keyframes todoBox { 0%, 66% { background: #fff; border-color: var(--line-2); } 72%, 100% { background: #e07a2f; border-color: #e07a2f; } }
@keyframes todoTick { 0%, 68% { opacity: 0; } 74%, 100% { opacity: 1; } }
@keyframes todoStrike { 0%, 72% { background-size: 0 1.5px; color: var(--ink); } 82%, 100% { background-size: 100% 1.5px; color: var(--ink-3); } }

/* markdown: table + math */
.tbl { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13px; opacity: 0; animation: mdOut 5s var(--ease) infinite; }
.tbl i { font-style: normal; padding: 4px 10px; border-top: 1px solid var(--line); color: var(--ink-2); }
.tbl i:nth-child(-n+2) { border-top: 0; background: #fdf1e6; font-weight: 600; color: var(--ink); }
.eq { font: italic 400 22px/1.2 var(--serif-text); color: var(--ink); text-align: center; opacity: 0; animation: eqIn 5s var(--ease) infinite; }
@keyframes eqIn { 0%, 62% { opacity: 0; transform: translateY(4px); } 72%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* export docx/html */
.dx { position: relative; width: 70%; height: 84%; display: grid; place-items: center; }
.dx-doc { width: 86px; height: 108px; border-radius: 8px; background: #fff; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 10px 24px -12px rgb(16 24 40 / .3); animation: dxDoc 5s var(--ease) infinite; }
.dx-b { position: absolute; top: 50%; left: 50%; padding: 6px 12px; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: 0; box-shadow: 0 8px 18px -8px rgb(16 24 40 / .45); }
.dx-b1 { background: #2b579a; animation: dx1 5s var(--ease) infinite; }
.dx-b2 { background: #e07a2f; animation: dx2 5s var(--ease) infinite; }
@keyframes dxDoc { 0%, 14% { transform: none; } 20% { transform: scale(.95); } 26%, 100% { transform: none; } }
@keyframes dx1 { 0%, 20% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 36%, 92% { opacity: 1; transform: translate(-150%, 10%) rotate(-6deg); } 100% { opacity: 0; transform: translate(-150%, 10%) rotate(-6deg); } }
@keyframes dx2 { 0%, 32% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 48%, 92% { opacity: 1; transform: translate(50%, -90%) rotate(5deg); } 100% { opacity: 0; transform: translate(50%, -90%) rotate(5deg); } }

/* ---------------------------------------------------------------- premium pointer */
.mac-cur__arrow { left: -5px; top: -3px; width: 26px; height: 30px; transition: transform .35s var(--ease), filter .3s; transform-origin: 5px 3px; filter: drop-shadow(0 2px 6px rgb(0 103 192 / .45)) drop-shadow(0 0 1px rgb(0 0 0 / .25)) !important; }
.mac-cur[data-state="link"] .mac-cur__arrow { display: block; transform: rotate(-14deg) scale(1.12); filter: drop-shadow(0 2px 10px rgb(76 194 255 / .9)) drop-shadow(0 0 1px rgb(0 0 0 / .25)) !important; }
.mac-cur__hand { display: none !important; }
.cur-trail { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
@media (hover: none), (pointer: coarse) { .cur-trail { display: none; } }
.feat__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.feat--flip .feat__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
#features .feat__title { font-size: clamp(32px, 2.85vw, 42px); max-width: none; white-space: nowrap; }
@media (max-width: 640px) { #features .feat__title { white-space: normal; } #features .feat__title br { display: none; } }

/* ---------------------------------------------------------------- Round 7: drum list */
.feat--drum { --pitch: 78px; }
.feat__drum { position: relative; }
@media (min-width: 961px) {
  .feat--drum.is-drum .feat__drum { height: calc(var(--pitch) * 5 + var(--dmax, 90px)); perspective: 1000px; perspective-origin: 50% 50%; overflow: hidden;
    -webkit-mask-image: linear-gradient(transparent 0, #000 0, #000 90%, transparent 100%); mask-image: linear-gradient(transparent 0, #000 0, #000 90%, transparent 100%); }
  .feat--drum.is-drum .feat__list { position: absolute; inset: 0; min-height: 0; transform-style: preserve-3d; }
  .feat--drum.is-drum .feat__item { position: absolute; left: 0; right: 0; top: 0; height: var(--pitch); padding: 18px 0 0; transform-origin: 50% 50%;
    opacity: var(--o); transition: none; will-change: transform, opacity; backface-visibility: hidden; }
  .feat--drum.is-drum .feat__body { display: block; position: absolute; left: 0; right: 0; top: 52px; opacity: var(--desc, 0); }
  .feat--drum.is-drum .feat__body > div { overflow: visible; }
  .feat--drum.is-drum .feat__body p { margin-top: 0; }
  .feat--drum.is-drum .feat__item .feat__head svg { color: var(--ink); }
  .feat--drum.is-drum .feat__item.is-active .feat__head svg { color: var(--blue); }
  .feat--drum.is-drum .feat__title { margin-bottom: 8px; }
}

/* ---------------------------------------------------------------- category blocks: plain sections with a timer */
.feat--cat { height: auto; padding: clamp(48px, 7vw, 104px) 0; margin-top: 0; }
.feat--cat .feat__sticky { position: static; height: auto; display: block; }
.feat--cat .feat__card { max-height: 600px; }
.feat--cat .feat__item { position: relative; opacity: var(--o, .45); transition: opacity .5s var(--ease); }
.feat--cat .feat__list { border-bottom: 1px solid var(--line); }
.feat--cat .feat__item + .feat__item { border-top: 1px solid var(--line); }
.cat-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s; }
.feat__item.is-active .cat-bar { opacity: 1; }
.cat-bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
#cat-pdf .cat-bar i { background: #129c8c; } #cat-build .cat-bar i { background: #7a5af5; } #cat-md .cat-bar i { background: #e07a2f; }
@media (prefers-reduced-motion: reduce) { .cat-bar { display: none; } }

/* ---------------------------------------------------------------- bento stats */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(260px, auto); gap: 20px; margin-top: var(--s8); }
.bn { position: relative; overflow: hidden; display: flex; gap: 20px; padding: 28px; border-radius: 28px; border: 1px solid rgb(255 255 255 / .7);
  box-shadow: 0 1px 2px rgb(16 24 40 / .04), 0 18px 40px -24px rgb(16 24 40 / .25); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  opacity: 0; transform: translateY(18px); }
.bento.is-in .bn { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .4s var(--ease); }
.bento.is-in .bn:nth-child(2) { transition-delay: .08s; } .bento.is-in .bn:nth-child(3) { transition-delay: .16s; } .bento.is-in .bn:nth-child(4) { transition-delay: .24s; }
.bento.is-in .bn:hover { transform: translateY(-6px); transition-delay: 0s; }
.bn--pay { grid-column: span 2; background: radial-gradient(90% 120% at 100% 0%, #cfe6ff 0%, rgb(207 230 255 / 0) 60%), linear-gradient(160deg, #f4f9ff, #e3efff); }
.bn--pay:hover { box-shadow: 0 0 0 1px rgb(0 103 192 / .12), 0 28px 60px -24px rgb(0 103 192 / .45); }
.bn--acct { flex-direction: column; background: radial-gradient(90% 90% at 0% 100%, #cdf3ea 0%, rgb(205 243 234 / 0) 60%), linear-gradient(160deg, #f3fcf9, #e2f6f0); }
.bn--acct:hover { box-shadow: 0 0 0 1px rgb(18 156 140 / .14), 0 28px 60px -24px rgb(18 156 140 / .45); }
.bn--panes { flex-direction: column; background: radial-gradient(90% 90% at 100% 100%, #e7dcff 0%, rgb(231 220 255 / 0) 60%), linear-gradient(160deg, #faf7ff, #efe9fe); }
.bn--panes:hover { box-shadow: 0 0 0 1px rgb(122 90 245 / .14), 0 28px 60px -24px rgb(122 90 245 / .45); }
.bn--fmt { grid-column: span 2; background: radial-gradient(90% 120% at 100% 100%, #ffe0c4 0%, rgb(255 224 196 / 0) 60%), linear-gradient(160deg, #fffaf5, #fdeedd); }
.bn--fmt:hover { box-shadow: 0 0 0 1px rgb(224 122 47 / .14), 0 28px 60px -24px rgb(224 122 47 / .45); }
.bn__txt { flex: 1 1 46%; display: flex; flex-direction: column; min-width: 0; }
.bn__num { font-family: var(--serif-text); font-weight: 400; font-variation-settings: "opsz" 72; font-size: clamp(72px, 7vw, 112px); line-height: .9; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bn h3 { margin: auto 0 0; padding-top: 18px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.bn p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.bn__art { position: relative; flex: 1 1 54%; display: grid; place-items: center; min-height: 150px; }
.bn--acct .bn__art, .bn--panes .bn__art { flex: 1 1 auto; min-height: 120px; order: -1; margin: -6px -6px 6px; }
.bn--acct .bn__txt, .bn--panes .bn__txt { flex: 0 0 auto; }
.bn--acct .bn__num, .bn--panes .bn__num { font-size: clamp(64px, 5.5vw, 88px); }

/* price tag flip */
.ptag { position: relative; width: 220px; height: 132px; perspective: 700px; transform: rotate(-5deg); }
.ptag__in { position: absolute; inset: 0; transform-style: preserve-3d; animation: tagFlip 6s var(--ease) infinite; }
.ptag__f, .ptag__b { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 26px 0 44px; border-radius: 16px 28px 28px 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 18px 36px -16px rgb(0 60 130 / .4); }
.ptag__f { background: #fff; color: var(--ink-3); }
.ptag__f small, .ptag__b small { font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.ptag__f s { font: 400 34px/1.1 var(--serif-text); color: var(--ink-3); text-decoration-color: #e5484d; text-decoration-thickness: 2px; }
.ptag__b { background: linear-gradient(135deg, #4cc2ff, #0067c0); color: #fff; transform: rotateY(180deg); }
.ptag__b strong { font: 400 44px/1 var(--serif-text); letter-spacing: -0.02em; }
.ptag__b em { font-style: normal; font-size: 13px; opacity: .85; margin-top: 2px; }
.ptag__hole { position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #e3efff; box-shadow: inset 0 1px 2px rgb(16 24 40 / .25); transform: translateZ(1px); }
@keyframes tagFlip { 0%, 18% { transform: rotateY(0); } 34%, 86% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* crossed-out login */
.lgn { position: relative; width: 170px; padding: 16px; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 14px 30px -16px rgb(16 24 40 / .35); }
.lgn__l { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lgn i { height: 22px; border-radius: 6px; border: 1px solid var(--line); background: #fafbfc; }
.lgn__btn { height: 24px; border-radius: 6px; background: #c9d3df; }
.lgn > *:not(svg) { animation: lgnDim 5s var(--ease) infinite; }
.lgn__x { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); overflow: visible; }
.lgn__x path { fill: none; stroke: #129c8c; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: lgnX 5s var(--ease) infinite; }
@keyframes lgnX { 0%, 14% { stroke-dashoffset: 1; opacity: 1; } 34%, 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lgnDim { 0%, 20% { opacity: 1; } 36%, 90% { opacity: .35; } 100% { opacity: 1; } }

/* split mini in the bento */
.spl--bn { width: 92%; height: 120px; }
.spl--bn .spl-p2, .spl--bn .spl-p3 { animation-duration: 5s; }
.bn--panes .spl-p3 path { stroke: #7a5af5; }
.bn--panes .spl-slide { background: linear-gradient(135deg, #f0edfc, #ddd3fb); }

/* format chips fanning out */
.fan { position: relative; width: 240px; height: 150px; }
.fan__c { position: absolute; left: 50%; top: 50%; width: 92px; height: 116px; margin: -58px 0 0 -46px; border-radius: 12px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .05em; color: #fff; transform-origin: 50% 120%; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 14px 30px -14px rgb(16 24 40 / .45); }
.fan__c::before { content: ""; position: absolute; left: 14px; right: 14px; top: 16px; height: 46px; border-radius: 4px; background: repeating-linear-gradient(rgb(255 255 255 / .55) 0 4px, transparent 4px 11px); }
.fan__c1 { background: linear-gradient(160deg, #ff8a5b, #e5484d); animation: fan1 5s var(--ease) infinite; }
.fan__c2 { background: linear-gradient(160deg, #4f86d9, #2b579a); animation: fan2 5s var(--ease) infinite; z-index: 2; }
.fan__c3 { background: linear-gradient(160deg, #ffb066, #e07a2f); animation: fan3 5s var(--ease) infinite; }
@keyframes fan1 { 0%, 10% { transform: none; } 34%, 86% { transform: translateX(-62px) rotate(-16deg); } 100% { transform: none; } }
@keyframes fan2 { 0%, 10% { transform: none; } 34%, 86% { transform: translateY(-10px); } 100% { transform: none; } }
@keyframes fan3 { 0%, 10% { transform: none; } 34%, 86% { transform: translateX(62px) rotate(16deg); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .bento *, .bento *::before { animation-delay: -3.6s !important; animation-play-state: paused !important; }
  .bn { opacity: 1; transform: none; }
}
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .bn--pay, .bn--fmt { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bn--pay, .bn--fmt { grid-column: auto; flex-direction: column; } .bn__art { order: -1; } }

/* ---------------------------------------------------------------- polish: drum start, No card, pointer */
.feat--drum .feat__head-wrap, .feat--drum .feat__intro { margin-bottom: 0; }
.bn__num--word { letter-spacing: -0.02em; }
.lgn__x { inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); }
.mac-cur, .cur-trail { display: none !important; }
.nd-cur { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.cur-on .nd-cur { opacity: 1; }
.nd-cur[data-state="text"] { opacity: 0 !important; }
.nd-cur__tip { position: absolute; left: -3px; top: -3px; width: 22px; height: 22px; max-width: none; display: block; overflow: visible; transform-origin: 3px 3px; transition: transform .25s var(--ease); filter: drop-shadow(0 2px 4px rgb(0 40 90 / .35)); }
.nd-cur__tip path { fill: #0067C0; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; transition: fill .2s; }
.nd-cur[data-state="link"] .nd-cur__tip { transform: scale(1.2); }
.nd-cur[data-state="link"] .nd-cur__tip path { fill: #4CC2FF; }
.nd-cur__pill { position: absolute; left: 20px; top: 20px; padding: 4px 10px; border-radius: 999px; background: rgb(11 18 32 / .88); color: #fff; font: 600 12px/1.2 var(--sc-font-text); white-space: nowrap; opacity: 0; transform: scale(.85); transform-origin: top left; transition: opacity .2s, transform .25s var(--ease); }
.nd-cur[data-state="media"] .nd-cur__pill { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .nd-cur { display: none; } }

/* ---------------------------------------------------------------- Round 8: pricing, compare, footer */
.plan { position: relative; }
.plan__name { min-height: 30px; }
.plan__sub { min-height: calc(2 * 1.5em); }
.plan ul { flex: 0 0 auto; gap: 14px; align-content: start; margin: var(--s4) 0 var(--s5); }
.plan .btn--block { margin-top: auto; }
.plan__ribbon { position: absolute; top: -15px; right: 22px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: #fff; background: linear-gradient(120deg, #0067c0, #3f86d1 55%, #7a5af5);
  box-shadow: 0 0 0 3px #fff, 0 8px 20px -8px rgb(76 80 245 / .6); }
.plan__ribbon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%) -120% 0 / 60% 100% no-repeat; animation: ribShine 4.5s ease-in-out infinite; }
@keyframes ribShine { 0%, 60% { background-position: -120% 0; } 100% { background-position: 220% 0; } }
.flame { width: 13px; height: 16px; max-width: none; transform-origin: 50% 100%; animation: flick 1.4s ease-in-out infinite; filter: drop-shadow(0 0 3px rgb(76 194 255 / .8)); }
.flame__i { transform-origin: 50% 100%; animation: flickI .9s ease-in-out infinite; }
@keyframes flick { 0%, 100% { transform: scale(1, 1) rotate(-2deg); } 33% { transform: scale(.94, 1.08) rotate(2deg); } 66% { transform: scale(1.04, .95) rotate(-1deg); } }
@keyframes flickI { 0%, 100% { transform: scaleY(1); opacity: .85; } 50% { transform: scaleY(.8); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .flame, .flame__i, .plan__ribbon::after { animation: none; } }

.compare table { border-collapse: separate; border-spacing: 0; }
.compare th.is-pro, .compare td.is-pro { position: relative; background: linear-gradient(90deg, rgb(0 103 192 / .07), rgb(122 90 245 / .07)); border-left: 1px solid rgb(0 103 192 / .18); border-right: 1px solid rgb(0 103 192 / .18); color: var(--ink); }
.compare th.is-pro { border-top: 1px solid rgb(0 103 192 / .18); border-radius: 16px 16px 0 0; padding-top: 18px; }
.compare tbody tr:last-child td.is-pro { border-bottom: 1px solid rgb(0 103 192 / .18); border-radius: 0 0 16px 16px; box-shadow: 0 18px 30px -22px rgb(0 103 192 / .45); }
.pro-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #fff; background: linear-gradient(120deg, #0067c0, #7a5af5); box-shadow: 0 4px 12px -4px rgb(0 103 192 / .55); }
.quote__who { display: none; }

.foot-night { -webkit-mask-image: linear-gradient(transparent 0, #000 190px); mask-image: linear-gradient(transparent 0, #000 190px); }
.site-footer { border-top: 0; padding-top: clamp(200px, 18vw, 260px); }
.plan { border-width: 2px; border-color: var(--line); } .plan--pro { border-color: var(--blue); }
.plan__price { height: 56px; overflow: visible; }

/* ---------------------------------------------------------------- Round 9: link underline, button system, hand cursor */
:where(.site-nav__links a, .nav-drawer a:not(.btn), .site-footer ul a, .t-body a, .t-small a, .faq a, .auth__alt a, .auth__fine a, .field__row a, .site-footer__base a) {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1.5px no-repeat; padding-bottom: 2px;
  transition: background-size .25s cubic-bezier(.2, .7, .3, 1), color .2s; }
:where(.site-nav__links a, .nav-drawer a:not(.btn), .site-footer ul a, .t-body a, .t-small a, .faq a, .auth__alt a, .auth__fine a, .field__row a, .site-footer__base a):hover { background-position: 0 100%; background-size: 100% 1.5px; }
.site-nav__links a:hover { color: var(--blue); }

/* one hover system for every button-like control */
.btn, .sso { position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s; }
.btn:hover, .sso:hover { transform: translateY(-2px); }
.btn:active, .sso:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn--primary:hover { background: var(--blue-deep); box-shadow: 0 10px 26px -8px rgb(0 103 192 / .7), 0 0 0 4px rgb(0 103 192 / .1); }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .35) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 120% 0; }
.btn--primary:hover::after { background-position: -20% 0; transition: background-position .7s var(--ease); }
.btn--primary > * { position: relative; }
.btn--ghost:hover, .sso--google:hover, .sso--microsoft:hover { border-color: var(--blue); background: #f1f7fd; color: var(--ink); box-shadow: 0 8px 20px -10px rgb(0 103 192 / .45); }
.btn svg, .sso svg { transition: transform .25s var(--ease); }
.sso:hover svg, .btn:hover svg { transform: translateX(2px) scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .sso:hover, .btn:active, .sso:active, .sso:hover svg, .btn:hover svg { transform: none; }
  .btn--primary::after { display: none; }
  :where(.site-nav__links a, .site-footer ul a, .t-body a, .t-small a, .faq a, .auth__alt a, .auth__fine a, .field__row a) { transition: color .2s; }
}

/* cursor: arrow by default, hand on anything clickable */
.nd-cur__tip, .nd-cur__hand { transition: opacity .14s ease, transform .18s var(--ease); }
.nd-cur__tip path, .nd-cur__hand path { fill: url(#ndCurG); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.nd-cur[data-state="link"] .nd-cur__tip { transform: scale(.6); opacity: 0; }
.nd-cur[data-state="link"] .nd-cur__tip path { fill: url(#ndCurG); }
.nd-cur__hand { position: absolute; left: -9px; top: -3px; width: 24px; height: 26px; max-width: none; overflow: visible; opacity: 0; transform: scale(.7); transform-origin: 9px 3px; filter: drop-shadow(0 2px 4px rgb(0 40 90 / .35)); }
.nd-cur[data-state="link"] .nd-cur__hand { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Round 10: faq motion, footer base */
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; align-self: center; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform 280ms cubic-bezier(.2,.7,.3,1); }
.faq details[open]:not(.is-closing) summary::after { transform: rotate(135deg); }
.faq details > p { transition: opacity 260ms ease-out, transform 280ms cubic-bezier(.2,.7,.3,1); }
.faq details.is-opening > p { animation: faqIn 280ms cubic-bezier(.2,.7,.3,1); }
.faq details.is-closing > p { opacity: 0; transform: translateY(-6px); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .faq details > p { transition: none; animation: none; } }
.site-footer { padding-top: clamp(340px, 28vw, 400px); }
.site-footer__base { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0 auto; padding: 0 var(--gutter, 24px) 20px; border-top: 0; justify-content: flex-start; }
.site-footer__base .t-small { color: rgb(233 238 246 / .75); }

/* cursor link state: tilted arrow + blooming ring (no hand) */
.nd-cur__hand { display: none !important; }
.nd-cur[data-state="link"] .nd-cur__tip { opacity: 1; transform: rotate(15deg) scale(.85); transition: transform .32s cubic-bezier(.34, 1.56, .64, 1); }
.nd-cur__ring { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #0067C0; box-shadow: 0 0 8px rgb(0 103 192 / .45), inset 0 0 6px rgb(76 194 255 / .3);
  opacity: 0; transform: scale(.3); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.nd-cur[data-state="link"] .nd-cur__ring { opacity: 1; transform: scale(1); transition: opacity .18s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
@media (prefers-reduced-motion: reduce) { .nd-cur__ring, .nd-cur[data-state="link"] .nd-cur__ring { transform: none; transition: opacity .15s; } .nd-cur[data-state="link"] .nd-cur__tip { transition: none; } }
.foot-night { -webkit-mask-image: linear-gradient(transparent 0, rgb(0 0 0 / .5) 50px, #000 100px); mask-image: linear-gradient(transparent 0, rgb(0 0 0 / .5) 50px, #000 100px); }
.site-footer { padding-top: 260px; }

/* ---------------------------------------------------------------- Round 11: glass nav, eyebrow/heading rhythm */
.site-nav, .site-nav.is-scrolled { background: rgb(255 253 250 / .6); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgb(255 255 255 / .55); box-shadow: 0 6px 24px rgb(15 23 42 / .06), inset 0 -1px 0 rgb(15 23 42 / .05); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-nav, .site-nav.is-scrolled { background: rgb(255 253 250 / .94); } }
.feat .feat__eyebrow + .feat__title, .feat__title { margin: 20px 0 42px; }

/* ---------------------------------------------------------------- Round 12: Fraunces hero */
:root { --serif: "Fraunces", "Iowan Old Style", Georgia, serif; }
.t-film { font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0; font-optical-sizing: auto;
  font-size: clamp(48px, 1.6rem + 4.2vw, 96px); line-height: 1.05; letter-spacing: -0.02em; max-width: 9.6em; text-wrap: balance; }

/* ---------------------------------------------------------------- Round 13: hairline-free nav */
.site-nav, .site-nav.is-scrolled { border-bottom: 0 !important; box-shadow: 0 6px 24px rgb(15 23 42 / .06); }
.site-nav::before, .site-nav::after { content: none !important; }
.feat .feat__eyebrow + .feat__title, .feat__title { margin: 27px 0 calc(28px - .27em); }
.t-film { max-width: 13ch; }
/* r14: PDF highlight mini */
.ln--hl i { position: absolute; left: -3px; right: -3px; top: -5px; bottom: -5px; border-radius: 3px; background: rgb(250 204 21 / .55); transform-origin: left; transform: scaleX(0); animation: uLine 5s var(--ease) infinite; }
.pen-o--tick { top: auto; bottom: 8px; left: 10px; width: 70%; height: 30px; }
.mini--annot .pen-o path { stroke: var(--blue); }
/* r14: table mini fits fully */
.mini--table .md { height: auto; padding: 14px 18px; gap: 12px; justify-content: center; }
.mini--table .tbl { flex-shrink: 0; font-size: 12.5px; }
.mini--table .tbl i { padding: 4px 12px; line-height: 1.35; }
.mini--table .eq { flex-shrink: 0; font-size: 20px; }
/* r15: Fraunces for every section heading */
:root { --serif-text: "Fraunces", Georgia, serif; }
.t-h2, .feat__title, .t-h1, .t-display, .auth h1, .auth h2, .bn__num, .ptag__f s, .ptag__b strong, .eq { font-family: var(--serif-text); font-weight: 420; font-optical-sizing: auto; font-variation-settings: "SOFT" 100, "WONK" 0; letter-spacing: -0.015em; }
.t-h2, .feat__title, .t-h1, .t-display, .auth h1 { line-height: 1.06; }
.eq { font-style: normal; }
.feat .feat__eyebrow + .feat__title, .feat__title { margin: 20px 0 calc(33px - .27em); }

/* r16: code block */
.feat__badge--code { background: #334155; }
.feat__card--code { background: radial-gradient(110% 70% at 80% 0%, #a5b4fc 0%, rgb(165 180 252 / 0) 60%), linear-gradient(170deg, #1e293b 0%, #4f46e5 55%, #a78bfa 80%, #6366f1 100%); }
.cw { width: 80%; background: #fff; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font: 500 13px/1.55 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink); text-align: left; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 10px 24px -12px rgb(16 24 40 / .25); }
.cw-r { white-space: pre; display: flex; align-items: baseline; min-height: 1.55em; }
.cw-r b { width: 20px; flex: none; color: #9aa4b2; font-weight: 400; font-size: 11px; }
.cw-r i { font-style: normal; }
.mini--syn .cw-r { opacity: 0; transform: translateX(-6px); animation: cwIn 5s var(--ease) infinite; animation-delay: calc(var(--r) * .14s); }
.cw .k { color: #7c3aed; } .cw .f { color: #2563eb; } .cw .s { color: #16a34a; } .cw .n { color: #ea580c; } .cw .c { color: #94a3b8; font-style: italic; }
@keyframes cwIn { 0%, 6% { opacity: 0; transform: translateX(-6px); } 18%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.xcs { width: 86%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.xc { padding: 6px 10px; border-radius: 999px; background: #fff; font: 600 12.5px/1 ui-monospace, "Cascadia Code", Consolas, monospace; color: #3730a3; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 6px 14px -8px rgb(16 24 40 / .3); opacity: 0; transform: scale(.7); animation: xcIn 5s var(--ease) infinite; animation-delay: calc(var(--i) * .09s); }
@keyframes xcIn { 0%, 4% { opacity: 0; transform: scale(.7); } 14%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9); } }
.cw-tab { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 6px -4px; padding: 4px 10px; border-radius: 6px; background: #eef2ff; font-size: 12px; font-weight: 600; color: var(--ink); }
.cw-dot { width: 7px; height: 7px; border-radius: 50%; background: #64748b; animation: cwDot 5s steps(1) infinite; }
.cw-ok { font-style: normal; font-size: 11px; color: #fff; background: #16a34a; padding: 2px 7px; border-radius: 999px; opacity: 0; transform: scale(.6); animation: cwOk 5s var(--ease) infinite; }
.cw-car { display: inline-block; width: 2px; height: 14px; background: var(--blue); margin-left: 1px; animation: caret .8s steps(1) infinite; }
@keyframes cwDot { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes cwOk { 0%, 55% { opacity: 0; transform: scale(.6); } 62%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* r16: bento file fan */
.fan__c4, .fan__c5 { z-index: 0; }
.fan__c--md { background: linear-gradient(160deg, #4f86d9, #2b579a); }
.fan__c--txt { background: linear-gradient(160deg, #94a3b8, #64748b); }
.fan__c--cv { background: linear-gradient(160deg, #ffb066, #e07a2f); }
.fan__c--py { background: linear-gradient(160deg, #3b82f6, #1d4ed8); }
.fan__c--js { background: linear-gradient(160deg, #fde047, #ca8a04); color: #1f2937; }
.fan__c4 { animation: fan4 5s var(--ease) infinite; } .fan__c5 { animation: fan5 5s var(--ease) infinite; }
@keyframes fan4 { 0%, 10% { transform: none; } 34%, 86% { transform: translateX(-112px) translateY(16px) rotate(-30deg); } 100% { transform: none; } }
@keyframes fan5 { 0%, 10% { transform: none; } 34%, 86% { transform: translateX(112px) translateY(16px) rotate(30deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mini--syn .cw-r, .xc, .cw-ok { animation: none; opacity: 1; transform: none; } .cw-dot { animation: none; } }
.cw-r { display: block; } .cw-r b { display: inline-block; }
.eyebrow + blockquote { font-family: var(--serif-text); font-weight: 420; font-optical-sizing: auto; font-variation-settings: "SOFT" 100, "WONK" 0; letter-spacing: -0.015em; }

/* r17: hero floats made of Notedown objects */
.film__title { padding-top: clamp(140px, 17vh, 180px); padding-bottom: 34vh; }
.hf-defs { position: absolute; }
.hf { position: absolute; pointer-events: none; will-change: translate; }
.hf__in { width: 100%; transform: rotate(var(--r, 0deg)); animation: hfFloat var(--d, 14s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); filter: drop-shadow(0 18px 22px rgb(43 58 85 / .14)) drop-shadow(0 2px 3px rgb(43 58 85 / .08)); }
.hf svg, .hf img { display: block; width: 100%; height: auto; }
.hf img { border-radius: 22%; }
.hf.is-far { opacity: .55; filter: blur(2.5px); }
@keyframes hfFloat { from { transform: translate(0, 0) rotate(var(--r, 0deg)); } to { transform: translate(var(--fx, 6px), var(--fy, -16px)) rotate(calc(var(--r, 0deg) + var(--fr, 3deg))); } }
.hf--app    { left: 9%;  top: 15%; width: 92px;  --r: -10deg; --d: 13s; }
.hf--lasso  { left: 19%; top: 27%; width: 120px; --r: 8deg;  --d: 17s; --dl: -4s; }
.hf--pen    { left: -2%; top: 39%; width: 230px; --r: -24deg; --d: 15s; --dl: -2s; }
.hf--md     { left: 13%; top: 56%; width: 120px; --r: 7deg;  --d: 12s; --dl: -6s; }
.hf--hl     { left: -3%; top: 73%; width: 200px; --r: 14deg; --d: 16s; --dl: -8s; }
.hf--split  { left: 21%; top: 78%; width: 250px; --r: -5deg; --d: 18s; --dl: -3s; }
.hf--pdf    { right: 11%; top: 13%; width: 96px; --r: 9deg;  --d: 14s; --dl: -5s; }
.hf--txt    { right: 22%; top: 27%; width: 74px; --r: -12deg; --d: 19s; }
.hf--code   { right: 1%;  top: 33%; width: 120px; --r: -8deg; --d: 13s; --dl: -7s; }
.hf--py     { right: 3%;  top: 9%;  width: 70px;  --r: 16deg; --d: 18s; --dl: -9s; }
.hf--shape  { right: 13%; top: 54%; width: 160px; --r: 4deg;  --d: 15s; --dl: -1s; }
.hf--eraser { right: -1%; top: 72%; width: 130px; --r: -14deg; --d: 12s; --dl: -5s; }
@media (max-width: 1100px) { .hf--lasso, .hf--txt, .hf--split { display: none; } .hf { transform: scale(.8); } }
@media (max-width: 760px) { .hf--md, .hf--shape, .hf--py, .hf--app { display: none; } .hf { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .hf__in { animation: none; } }

/* r18: showcase tour */
.tour__row { border-top: 0; padding-top: 0; margin-bottom: var(--s6); gap: 10px 12px; }
.tour__row .works__label { margin-right: 6px; }
.tour__chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 15px/1 inherit; font-family: inherit; letter-spacing: -0.01em; color: #5b6575; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.tour__chip svg { width: 18px; height: 18px; }
.tour__chip:hover { color: var(--ink); border-color: rgb(16 24 40 / .18); transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgb(16 24 40 / .35); }
.tour__chip:active { transform: translateY(0) scale(.97); }
.tour__chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tour__chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgb(0 103 192 / .6); }
.collage--solo { aspect-ratio: auto; padding: 4% 3% 6%; }
.collage--solo .collage__main { position: relative; left: auto; top: auto; width: 100%; }
@media (prefers-reduced-motion: reduce) { .tour__chip { transition: none; } .tour__chip:hover { transform: none; } }
.collage--solo { padding: 1% 2% 6%; } .tour__row { margin-bottom: var(--s5); }
/* r19: hero copy */
.film .t-film { max-width: 12ch; }
.ink-word { position: relative; display: inline-block; white-space: nowrap; }
.ink-word svg { position: absolute; left: -6%; right: -6%; width: 112%; bottom: -.32em; height: .5em; overflow: visible; pointer-events: none; }
.ink-word path { fill: none; stroke: var(--blue); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--ink, 1); vector-effect: none; }
@media (prefers-reduced-motion: reduce) { .ink-word path { stroke-dashoffset: 0; } }
/* r19b: bolder underline, centered hero */
.ink-word svg { left: -10%; width: 120%; bottom: -.42em; height: .6em; }
.ink-word path { stroke-width: 4.6; }
.film { align-items: center; }
.film__title { padding-top: 96px; padding-bottom: 96px; justify-content: center; }
@media (max-width: 900px) { .film__title { padding-bottom: 96px; } }
.ink-word svg { left: -14%; width: 128%; } .ink-word path { stroke-width: 7; }
.film .film__sub .ink-word > svg { left: -14%; right: auto; width: 128%; max-width: none; height: 13px; bottom: -9px; }

/* r20: One app minis (session tabs, open with, themes, spellcheck) */
.tbw, .ow, .tmw, .spw { position: relative; width: 82%; }
.tbw { background: #fff; border-radius: 8px; padding: 0 0 14px; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 10px 24px -12px rgb(16 24 40 / .25); display: flex; flex-direction: column; gap: 8px; overflow: hidden; animation: tbwBlink 5s var(--ease) infinite; }
.tbw-bar { display: flex; gap: 4px; padding: 6px 6px 0; background: #eef1f6; }
.tbw-t { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px 6px 0 0; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.tbw-t.is-on { background: #fff; color: var(--ink); }
.tbw-t i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.tbw-l { display: block; height: 6px; margin: 0 14px; border-radius: 3px; background: #dfe3ea; }
.tbw-x { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 600; opacity: 0; animation: tbwOk 5s var(--ease) infinite; }
@keyframes tbwBlink { 0%, 30% { opacity: 1; transform: none; } 38% { opacity: 0; transform: scale(.94); } 48% { opacity: 0; transform: scale(.94); } 58%, 100% { opacity: 1; transform: none; } }
@keyframes tbwOk { 0%, 58% { opacity: 0; transform: translateY(4px); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ow { height: 140px; }
.ow-file { position: absolute; left: 0; top: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); }
.ow-file b { width: 40px; height: 50px; border-radius: 6px; background: #fff; display: grid; place-items: end center; padding-bottom: 6px; font: 700 10px/1 ui-monospace, Consolas, monospace; color: #64748b; box-shadow: 0 1px 2px rgb(16 24 40 / .1), 0 6px 14px -8px rgb(16 24 40 / .3); }
.ow-menu, .ow-fly { position: absolute; background: #fff; border-radius: 8px; padding: 4px; display: flex; flex-direction: column; font-size: 12px; color: var(--ink); box-shadow: 0 1px 2px rgb(16 24 40 / .1), 0 12px 28px -12px rgb(16 24 40 / .35); }
.ow-menu span, .ow-fly span { padding: 6px 10px; border-radius: 5px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ow-menu { left: 58px; top: 20px; width: 128px; opacity: 0; animation: owMenu 5s var(--ease) infinite; }
.ow-sub { background: #eef2f8; justify-content: space-between; }
.ow-fly { left: 182px; top: 52px; opacity: 0; animation: owFly 5s var(--ease) infinite; }
.ow-app { background: var(--blue); color: #fff; font-weight: 600; }
.ow-app img { width: 16px; height: 16px; border-radius: 4px; }
@keyframes owMenu { 0%, 10% { opacity: 0; transform: scale(.96); } 18%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes owFly { 0%, 34% { opacity: 0; transform: translateX(-6px); } 44%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.tmw-s { width: 100%; height: 120px; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 10px 24px -12px rgb(16 24 40 / .3); animation: tmw 6s steps(1) infinite; }
.tmw-h { width: 46%; height: 10px; border-radius: 5px; background: currentColor; opacity: .85; }
.tmw-l { height: 6px; border-radius: 3px; background: currentColor; opacity: .3; }
@keyframes tmw { 0% { background: #fff; color: #1f2937; } 33% { background: #202020; color: #e5e7eb; } 66% { background: #000; color: #d1d5db; } }
.spw { background: #fff; border-radius: 8px; padding: 18px 16px 70px; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 10px 24px -12px rgb(16 24 40 / .25); }
.spw p { margin: 0; font-size: 15px; color: var(--ink); }
.spw-w { position: relative; display: inline-grid; }
.spw-w > span { grid-area: 1 / 1; }
.spw-bad { text-decoration: underline wavy #e5484d; text-decoration-thickness: 1.5px; text-underline-offset: 3px; animation: spBad 5s var(--ease) infinite; }
.spw-good { opacity: 0; animation: spGood 5s var(--ease) infinite; }
.spw-menu { position: absolute; left: 110px; top: 46px; background: #fff; border-radius: 8px; padding: 4px; display: flex; flex-direction: column; font-size: 12px; box-shadow: 0 1px 2px rgb(16 24 40 / .1), 0 12px 28px -12px rgb(16 24 40 / .35); opacity: 0; animation: spMenu 5s var(--ease) infinite; }
.spw-menu span { padding: 5px 10px; border-radius: 5px; white-space: nowrap; color: var(--ink-2); }
.spw-menu .spw-sg { font-weight: 600; color: var(--ink); background: #eef2f8; }
@keyframes spMenu { 0%, 16% { opacity: 0; transform: translateY(-4px); } 24%, 50% { opacity: 1; transform: none; } 56%, 100% { opacity: 0; } }
@keyframes spBad { 0%, 52% { opacity: 1; } 56%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes spGood { 0%, 52% { opacity: 0; } 56%, 96% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tbw, .tbw-x, .ow-menu, .ow-fly, .tmw-s, .spw-bad, .spw-good, .spw-menu { animation: none; } .tbw-x, .ow-menu, .ow-fly { opacity: 1; } .spw-good { opacity: 0; } }

/* r20: tighter footer gap (fade kept, less dead space) */
.site-footer { padding-top: 120px; margin-top: 0; }

/* r20b: tab pills match the app tab bar (.nd-tab: fixed width, 32px tall, 7px radius, dot after name), scaled for the card */
.tbw-bar { gap: 4px; padding: 5px 6px; align-items: center; }
.tbw-t { flex: 0 1 104px; min-width: 0; height: 26px; padding: 0 8px 0 9px; gap: 6px; border-radius: 6px; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.tbw-t > b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: inherit; }
.tbw-t i { flex: none; width: 6px; height: 6px; }
.tbw-t.is-on { box-shadow: 0 1px 2px rgb(16 24 40 / .08); }
.cw-tab { white-space: nowrap; }
.mini--tabs .tbw { width: 92%; padding-bottom: 40px; }
.tbw-t { flex: 0 0 auto; }
.tbw-x { bottom: 9px; }

/* r22: text values in compare table */
.cmp-val { font-size: 14px; font-weight: 600; color: var(--ink); }
.is-pro .cmp-val { color: var(--blue); }
.cmp-val { display: inline-grid; place-items: center; min-height: 20px; line-height: 20px; vertical-align: middle; }

@media (max-width: 960px) { main { overflow-x: clip; } }
