/* www.legalsling.com. Plain CSS, no build step.
   Black, white and greys, in one typeface: Inter, whose optical sizes give large
   headings their own tighter cut. Colour appears only inside the app mock-ups
   (.mock, .m-*), where the red flags and key terms are the app's own. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter.woff2") format("woff2"); }

:root {
  --ink: #0a0a0a;
  --ink-2: #171717;
  --ink-3: #2b2b2b;
  --text: #262626;
  --muted: #666666;
  --muted-2: #8a8a8a;
  --bg: #ffffff;
  --paper: #f7f7f7;
  --stone: #eeeeee;
  --card: #ffffff;
  --line: #e5e5e5;
  --line-soft: #efefef;
  --accent: #0a0a0a;
  --label: #737373;
  --on-ink: #fafafa;
  --on-ink-muted: #a3a3a3;
  --on-ink-soft: #737373;
  --tint: #f4f4f4;
  --red: #b91c1c;
  --red-bg: #fdf1f0;
  --red-line: #f3c9c5;
  --green: #2f7a4f;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 40px 90px -24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --app: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --header: 72px;
  --gutter: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* A fine grain, so flat colour reads as paper rather than plastic. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 20px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.018em; }
h1, h2 { font-weight: 560; letter-spacing: -0.036em; text-wrap: balance; }
/* The second half of a heading steps back in grey rather than changing face. */
h1 em, h2 em { font-style: normal; color: var(--muted-2); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: #e5e5e5; color: var(--ink); }

.icon { width: 20px; height: 20px; flex: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-right: var(--gutter); padding-left: var(--gutter); }
.wrap--narrow { max-width: 820px; }

.skip-link { position: absolute; top: -48px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.lede { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: clamp(18px, 1.9vw, 20.5px); line-height: 1.6; }
.muted { color: var(--muted); }
.fineprint,
.feature-row .fineprint { margin: 18px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.section-link { margin: 40px 0 0; }
.section-link--center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.btn .icon { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: var(--ink-3); }
.btn--inverse { background: var(--on-ink); color: var(--ink); }
.btn--inverse:hover { background: #ffffff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.btn--line-light { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, 0.24); }
.btn--line-light:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--on-ink); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--small { padding: 9px 17px; font-size: 14px; }
.btn--large { padding: 15px 28px; font-size: 16px; }
.link-quiet { color: var(--muted); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.link-quiet:hover { color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-light { color: var(--on-ink-muted); font-weight: 600; }
.link-light:hover { color: #fff; }

/* Header */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); border-bottom: 1px solid var(--line-soft); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); transition: background 0.3s ease, border-color 0.3s ease; }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; text-decoration: none; }
.brand__mark { width: 28px; height: 28px; }
.brand--light { color: var(--on-ink); }
/* On dark backgrounds the mark turns over: a white tile with a black L. */
.brand--light .brand__mark rect,
.js .site-header--over:not(.is-light) .brand__mark rect { fill: var(--on-ink); }
.brand--light .brand__mark .brand__l,
.js .site-header--over:not(.is-light) .brand__mark .brand__l { stroke: var(--ink); }
.site-nav { display: flex; gap: 34px; }
.site-nav a { position: relative; color: var(--muted); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: color 0.2s ease; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--ink); }
.site-header__actions { display: flex; align-items: center; justify-self: end; gap: 22px; }
.mobile-nav { display: none; }

/* Over the dark hero on the home page, until the visitor scrolls past it. */
.js .site-header--over:not(.is-light) { background: rgba(10, 10, 10, 0.6); border-bottom-color: rgba(255, 255, 255, 0.08); }
.js .site-header--over:not(.is-light) .brand,
.js .site-header--over:not(.is-light) .site-nav a:hover,
.js .site-header--over:not(.is-light) .site-nav a[aria-current="page"] { color: var(--on-ink); }
.js .site-header--over:not(.is-light) .site-nav a,
.js .site-header--over:not(.is-light) .link-quiet { color: var(--on-ink-muted); }
.js .site-header--over:not(.is-light) .link-quiet:hover { color: var(--on-ink); }
.js .site-header--over:not(.is-light) .btn--primary { background: var(--on-ink); color: var(--ink); }
.js .site-header--over:not(.is-light) .mobile-nav > summary { border-color: rgba(255, 255, 255, 0.2); color: var(--on-ink); }

/* Page header (inner pages) */

.page-hero { position: relative; padding: 96px 0 64px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; }
.page-hero--article h1 { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.08; }
/* Line the guide's title up with its text column, beside the contents list. */
.page-hero--article .wrap { display: grid; grid-template-columns: 240px minmax(0, 720px); column-gap: 64px; justify-content: center; max-width: 1200px; }
.page-hero--article .wrap > * { grid-column: 2; }
.page-meta { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; color: var(--muted); font-size: 14.5px; }
.page-meta .icon { width: 17px; height: 17px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; letter-spacing: 0.01em; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Home: hero */

/* The hero runs up under the header, so the dark header sits on it rather than on the page. */
.kind-home .hero { margin-top: calc(var(--header) * -1); padding-top: calc(var(--header) + 104px); }
.hero { position: relative; overflow: hidden; padding: 104px 0 230px; background: radial-gradient(1000px 520px at 50% -12%, rgba(255, 255, 255, 0.1), transparent 62%), var(--ink); color: var(--on-ink); text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.12; mix-blend-mode: overlay; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 980px; color: var(--on-ink); font-size: clamp(42px, 6.6vw, 84px); font-weight: 560; line-height: 1.02; letter-spacing: -0.042em; }
.hero h1 em { display: block; color: var(--on-ink-soft); }
.hero .lede { max-width: 660px; margin-top: 28px; color: var(--on-ink-muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--on-ink-muted); font-size: 14px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { width: 16px; height: 16px; color: var(--on-ink); }
.hero-stage { position: relative; z-index: 2; margin-top: -180px; }
.stage-caption { margin: 18px auto 0; max-width: 620px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* Stages: the coloured panels the mock-ups sit on */

.stage { position: relative; isolation: isolate; padding: clamp(18px, 4.6vw, 64px); border-radius: var(--radius-xl); overflow: hidden; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: 0.18; mix-blend-mode: soft-light; pointer-events: none; }
.stage--light { background: radial-gradient(90% 80% at 0% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(150deg, #f0f0f0 0%, #dcdcdc 100%); }
.stage--dark { background: radial-gradient(70% 70% at 80% 0%, rgba(255, 255, 255, 0.12), transparent 70%), #111111; }
.stage--soft { background: linear-gradient(160deg, #f6f6f6, #ebebeb); }
.stage--hero { padding: clamp(14px, 4vw, 56px) clamp(14px, 5vw, 72px); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.3); }

/* Sections */

.section { position: relative; padding: 120px 0; }
.section--tight { padding: 64px 0; }
.section--tint,
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--on-ink-muted); }
.section--ink h2,
.section--ink h3 { color: var(--on-ink); }
.section--ink h2 em { color: var(--on-ink-soft); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head--center { margin-right: auto; margin-left: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.06; }
.section-title { margin-bottom: 32px; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; }
.section-head p { max-width: 640px; margin: 22px 0 0; color: var(--muted); font-size: 18.5px; line-height: 1.6; }
.section-head--center p { margin-right: auto; margin-left: auto; }
.section--ink .section-head p { color: var(--on-ink-muted); }

/* Cards and grids */

.card-grid { display: grid; gap: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card--link { color: inherit; text-decoration: none; transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease); }
.card--link::before { content: ""; position: absolute; top: -1px; right: 30px; left: 30px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.card--link:hover { border-color: #d4d4d4; box-shadow: var(--shadow); transform: translateY(-3px); }
.card--link:hover::before { transform: scaleX(1); }
.card__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; background: var(--tint); border: 1px solid var(--line); border-radius: 11px; color: var(--ink); }
.card__icon--red { background: var(--tint); border-color: var(--line); color: var(--ink); }
.card__icon--ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.card__title,
.card h3 { color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; }
.card__text,
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.card .link-arrow { align-self: flex-start; margin-top: auto; padding-top: 14px; border-bottom: 0; }
.section--ink .card { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.section--ink .card h3 { color: var(--on-ink); }
.section--ink .card p { color: var(--on-ink-muted); }
.section--ink .ticks li,
.section--ink .crosses li { color: var(--on-ink); }

/* Steps */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 34px 32px 8px 0; counter-increment: step; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 20px; color: var(--muted-2); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; line-height: 1; }
.steps h3 { margin-bottom: 10px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Feature rows (text beside a mock-up) */

.feature-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.feature-row + .feature-row { margin-top: 120px; }
.feature-row--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row--flip .feature-row__text { order: 2; }
.feature-row__text h2 { margin-bottom: 18px; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; }
.feature-row__text h3 { margin-bottom: 16px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.12; letter-spacing: -0.032em; text-wrap: balance; }
.feature-row__text p:not(.fineprint) { color: var(--muted); font-size: 17.5px; }
.feature-row__text p a,
.prose a,
.faq__answer a { color: var(--ink); text-decoration-color: rgba(0, 0, 0, 0.35); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.feature-row__text p a:hover,
.prose a:hover { text-decoration-color: var(--ink); }
.ticks { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m7.5 12.5 3 3 6-6.5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.crosses { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.crosses li { display: flex; gap: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.crosses li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8.5 8.5l7 7M15.5 8.5l-7 7'/%3E%3C/svg%3E") center / 18px no-repeat; }
.screenshot { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }

/* Home: who it's for */

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -20px auto 48px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 550; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.pill .icon { width: 18px; height: 18px; color: var(--muted-2); }
.pill:hover { border-color: #cfcfcf; }
.pill[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); }
.pill[aria-selected="true"] .icon { color: var(--on-ink-muted); }
.audience__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.audience__panel + .audience__panel { margin-top: 96px; }
.js .audience__panel + .audience__panel { margin-top: 0; }
.js .audience__panel[aria-hidden="true"] { display: none; }
.js .audience__panel { animation: rise 0.6s var(--ease) both; }
.audience__text h3 { margin-bottom: 18px; font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.audience__text > p { color: var(--muted); font-size: 17.5px; }
.audience__visual { min-height: 460px; display: grid; place-items: center; }
.audience__link { margin: 32px 0 0; }

/* Home: the docked journey */

.journey { padding-bottom: 80px; }
.journey__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "steps dock"; gap: 56px; align-items: start; }
.journey__dock { grid-area: dock; position: sticky; top: calc(var(--header) + max(20px, (100vh - var(--header) - 540px) / 2)); }
.journey__steps { grid-area: steps; margin: 0; padding: 0; list-style: none; }
.journey__step { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 78vh; padding: 0 0 0 36px; border-left: 1px solid var(--line); transition: opacity 0.5s ease; }
.journey__step::before { content: ""; position: absolute; top: calc(50% - 60px); left: -1px; width: 1px; height: 120px; background: var(--ink); transform: scaleY(0); transition: transform 0.6s var(--ease); }
.journey__step:first-child { min-height: 64vh; justify-content: flex-start; padding-top: 12vh; }
.journey__step:last-child { min-height: 82vh; }
.journey__num { display: block; margin-bottom: 18px; color: var(--muted-2); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.journey__step h3 { margin-bottom: 14px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.14; letter-spacing: -0.032em; }
.journey__step p { max-width: 440px; margin: 0; color: var(--muted); font-size: 17.5px; }
.js .journey__step { opacity: 0.28; }
.js .journey__step.is-active { opacity: 1; }
.js .journey__step.is-active::before { transform: scaleY(1); }
.journey__stage { padding: clamp(12px, 2vw, 26px); }
.journey__caption { display: none; }

/* Home: careful by design */

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: principle; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.principles li { padding: 36px 28px 0 0; counter-increment: principle; }
.principles li + li { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.principles li::before { content: counter(principle, decimal-leading-zero); display: block; margin-bottom: 24px; color: var(--on-ink-soft); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; line-height: 1; }
.principles h3 { margin-bottom: 12px; font-size: 18px; line-height: 1.3; }
.principles p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.laws-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 24px; margin-top: 72px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.laws-row p { margin: 0; color: var(--on-ink-muted); font-size: 14.5px; }

/* Law chips */

.laws { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.laws li { padding: 7px 15px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.laws-row .laws { margin: 0; }
.laws--light li { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.16); color: var(--on-ink); }
.quote-card { padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.quote-card blockquote { margin: 0 0 16px; padding-left: 18px; border-left: 2px solid var(--ink); font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.quote-card p { margin: 0; color: var(--muted); font-size: 15px; }
.quote-card .verdict { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink); font-weight: 600; }
.quote-card .verdict .icon { color: var(--ink); }
.quote-card .verdict--open .icon { color: var(--muted-2); }
.quote-stack { display: grid; gap: 16px; }

/* Home: an explanation, not advice */

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; margin: 0 auto; border-top: 1px solid var(--line); }
.compare__col { padding: 40px 48px 0 0; }
.compare__col + .compare__col { padding-left: 48px; border-left: 1px solid var(--line); }
.compare__col h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.028em; }

/* Home: pricing tiers */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tier { display: flex; flex-direction: column; gap: 10px; padding: 34px 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tier p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tier .tier__label { color: var(--label); font-size: 11.5px; font-weight: 550; letter-spacing: 0.16em; text-transform: uppercase; }
.tier .tier__figure { margin: 6px 0 6px; color: var(--ink); font-size: 38px; font-weight: 600; line-height: 1.05; letter-spacing: -0.042em; }
.tier__unit { font-size: 0.45em; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.tier--feature .tier__unit { color: var(--on-ink-muted); }
.tier--feature { background: var(--ink); border-color: var(--ink); }
.tier--feature p { color: var(--on-ink-muted); }
.tier--feature .tier__label { color: var(--on-ink-muted); }
.tier--feature .tier__figure { color: var(--on-ink); }

/* Currency switch */

.currency { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--muted); font-size: 13.5px; }
.currency--center { display: flex; justify-content: center; }
.currency__options { display: inline-flex; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.currency__options button { padding: 6px 14px; background: transparent; border: 0; border-radius: 999px; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.currency__options button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* Pricing page */

.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.packs--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pack { display: flex; flex-direction: column; gap: 6px; padding: 28px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pack--free { background: var(--ink); border-color: var(--ink); color: var(--on-ink-muted); }
.pack__price { color: var(--ink); font-size: 38px; font-weight: 600; line-height: 1.05; letter-spacing: -0.042em; }
.pack--free .pack__price { color: var(--on-ink); }
.pack__credits { color: var(--ink-2); font-weight: 600; }
.pack--free .pack__credits { color: var(--on-ink); }
.pack__hint { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pack--free .pack__hint { color: var(--on-ink-muted); }
.estimator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 36px 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.estimator label { display: block; margin-bottom: 14px; color: var(--ink); font-weight: 600; }
.estimator input[type="range"] { width: 100%; accent-color: var(--ink); }
.estimator__result { padding: 26px 28px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.estimator__big { margin: 2px 0 0; color: var(--ink); font-size: 38px; font-weight: 600; line-height: 1.05; letter-spacing: -0.042em; }
.estimator__small { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.estimator input[type="range"] + .estimator__small { margin-top: 16px; }
.pricing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.pricing-head .section-title { margin: 0; }
.pricing-head .currency { margin: 0 0 4px; }
.pricing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.pricing-actions .fineprint { margin: 0; }
.section--tint .table-wrap,
.section--paper .table-wrap { background: var(--card); }

/* Tables */

.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th,
td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
thead th { background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }

/* Guides: article layout and prose */

.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; justify-content: center; padding-top: 56px; padding-bottom: 96px; }
.article-layout:not(:has(.toc)) { grid-template-columns: minmax(0, 760px); }
.toc { position: sticky; top: calc(var(--header) + 32px); align-self: start; font-size: 14.5px; }
.toc__title { margin: 0 0 14px; color: var(--label); font-size: 11.5px; font-weight: 550; letter-spacing: 0.16em; text-transform: uppercase; }
.toc ol { display: grid; gap: 10px; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--line); list-style: none; }
.toc a { color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }

.prose { min-width: 0; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2em; font-size: clamp(26px, 3vw, 32px); line-height: 1.16; letter-spacing: -0.03em; }
.prose h3 { margin-top: 1.7em; font-size: 21px; letter-spacing: -0.012em; }
.prose h2 + *,
.prose h3 + * { margin-top: 0.7em; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--muted-2); }
.prose strong { color: var(--ink); }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--line); color: var(--muted); }
.prose .table-wrap { font-size: 15.5px; line-height: 1.5; }

.summary-box { padding: 24px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.summary-box__label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px !important; color: var(--label); font-size: 11.5px; font-weight: 550; letter-spacing: 0.16em; text-transform: uppercase; }
.summary-box__label .icon { width: 16px; height: 16px; }
.summary-box p { margin: 0; color: var(--ink-2); font-size: 17.5px; }
.summary-box .summary-box__label { color: var(--label); font-size: 11.5px; }

.callout { display: flex; gap: 14px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 16.5px; }
.callout > .icon { margin-top: 3px; color: var(--muted); }
.callout p { margin: 0; }
.callout p + p { margin-top: 0.6em; }
.callout--flag { background: var(--red-bg); border-color: var(--red-line); }
.callout--flag > .icon { color: var(--red); }
.callout--tip { background: #f1f7f2; border-color: #cfe6d6; }
.callout--tip > .icon { color: var(--green); }

.clause-example { margin-left: 0; margin-right: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.clause-example blockquote { margin: 0; padding: 22px 24px; border: 0; background: #fafafa; color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.clause-example blockquote p + p { margin-top: 0.7em; }
.clause-example mark { padding: 1px 3px; border-radius: 4px; background: #fdf3c4; color: inherit; }
.clause-example mark.flag { background: #fde4e1; box-shadow: inset 0 -2px 0 var(--red); }
.clause-example figcaption { padding: 15px 24px 17px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.clause-example figcaption strong { color: var(--ink); }

.checklist { padding-left: 0 !important; list-style: none; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border: 1.5px solid #b5b5b5; border-radius: 5px; }

.disclaimer { display: flex; gap: 12px; margin-top: 3em !important; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); color: var(--muted); font-size: 15px; line-height: 1.6; }
.disclaimer .icon { margin-top: 2px; color: var(--muted); }
.disclaimer p { margin: 0; }

/* The founder's story (home page and About). After .prose blockquote, so it wins there too. */
.founder h2 { margin: 0 0 28px; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.founder--home { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 72px; align-items: start; }
.founder--home .founder__link { grid-column: 2; margin: 0; }
.founder__figure { position: relative; margin: 0; padding-top: 34px; }
.founder__figure blockquote p { text-indent: -0.42em; }
blockquote.founder__quote { margin: 0; padding: 0; border: 0; color: var(--ink); }
blockquote.founder__quote p { margin: 0; color: var(--ink); font-size: clamp(21px, 2.2vw, 26px); font-weight: 450; line-height: 1.5; letter-spacing: -0.018em; }
.founder__by { margin: 24px 0 0; color: var(--muted); font-size: 13px; font-weight: 550; letter-spacing: 0.14em; text-transform: uppercase; }
.founder__by::before { content: ""; display: inline-block; width: 24px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--ink); }
.prose blockquote.founder__quote { margin: 1.7em 0 0; padding: 2px 0 2px 24px; border-left: 2px solid var(--ink); }
.prose blockquote.founder__quote p { font-size: clamp(19px, 2vw, 22px); }
.prose .founder__mission { margin-top: 1.5em; padding: 2px 0 2px 24px; border-left: 2px solid var(--ink); color: var(--ink); font-size: clamp(19px, 2vw, 22px); font-weight: 450; line-height: 1.5; letter-spacing: -0.015em; }
.prose .founder__by { margin-top: 0.9em; }
.founder .section-link { margin-top: 26px; }

/* FAQ */

.faq h2 { margin-bottom: 22px; font-size: clamp(26px, 3vw, 32px); }
.faq--page h2 { margin-bottom: 36px; font-size: clamp(32px, 4vw, 46px); text-align: center; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-of-type { border-top: 1px solid var(--line); }
.faq__item summary { position: relative; padding: 22px 48px 22px 0; color: var(--ink); font-size: 17.5px; font-weight: 550; letter-spacing: -0.015em; list-style: none; cursor: pointer; transition: color 0.2s ease; }
.faq__item summary:hover { color: var(--muted); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before,
.faq__item summary::after { content: ""; position: absolute; top: 50%; right: 8px; width: 14px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__answer { padding: 0 0 24px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.faq__answer p { margin: 0; max-width: 700px; }

/* Call to action band */

.cta-band { position: relative; overflow: hidden; padding: 120px 0; background: radial-gradient(800px 380px at 50% 0%, rgba(255, 255, 255, 0.09), transparent 70%), var(--ink); color: var(--on-ink-muted); text-align: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.1; mix-blend-mode: overlay; pointer-events: none; }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { max-width: 860px; margin-bottom: 20px; color: var(--on-ink); font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; }
.cta-band h2 em { color: var(--on-ink-soft); }
.cta-band p { max-width: 600px; margin: 0; font-size: 18px; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* Footer */

.site-footer { padding: 80px 0 36px; background: #050505; color: var(--on-ink-muted); font-size: 14.5px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.site-footer__about p { max-width: 340px; margin: 18px 0 0; line-height: 1.6; }
.site-footer__legal { color: #737373; font-size: 13px; }
.site-footer__heading { margin: 4px 0 18px; color: #737373; font-size: 11.5px; font-weight: 550; letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #d4d4d4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13.5px; }
.site-footer__base p { margin: 0; }

/* Asking about Reddit's ad pixel. site.js shows it until the visitor chooses. */

.consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  width: min(440px, calc(100% - 48px));
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.consent p { margin: 0; }
.consent strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; font-weight: 600; }
.consent a { color: var(--ink); text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 10px; margin-top: 16px; }
.consent__actions .btn { flex: 1; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--stone); color: var(--ink); font-size: 0.86em; }

/* 404 */

.not-found { padding: 130px 0 140px; text-align: center; }
.not-found h1 { margin-bottom: 18px; font-size: clamp(42px, 6vw, 72px); }
.not-found p { color: var(--muted); font-size: 18px; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* Gentle entrances, added by site.js only when motion is welcome */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes fill { from { transform: scaleX(0.04); } to { transform: scaleX(1); } }
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* =========================================================
   App mock-ups
   Sized in em from the width of the mock (container query units), so a whole
   window scales like a picture. Narrow mocks show the side panel on its own.
   ========================================================= */

.mock { position: relative; width: 100%; container-type: inline-size; color: #1e293b; font-family: var(--app); text-align: left; line-height: 1.5; letter-spacing: normal; }
.mock .icon { width: 1.15em; height: 1.15em; }
/* The page's own spacing stays outside the mock-ups; :where() keeps this weaker than any m- rule. */
:where(.mock) :where(p, ul, ol, dl, dd, blockquote) { margin: 0; }
.mock__window { position: relative; overflow: hidden; background: #fff; border-radius: 0.9em; box-shadow: var(--shadow-lg); font-size: 14px; font-size: clamp(5px, 1.33cqw, 15px); }
.mock__chrome { display: flex; align-items: center; gap: 0.45em; height: 2.5em; padding: 0 1em; background: #f6f6f4; border-bottom: 1px solid #e7e5df; }
.mock__chrome span { width: 0.75em; height: 0.75em; border-radius: 50%; background: #dcd9d2; }
.mock__chrome span:nth-child(1) { background: #ee6a5f; }
.mock__chrome span:nth-child(2) { background: #f5be4f; }
.mock__chrome span:nth-child(3) { background: #62c554; }
.mock__chrome em { flex: 1; margin-right: 3em; color: #8b8f99; font-size: 0.8em; font-style: normal; text-align: center; }
.mock__app { position: relative; display: flex; flex-direction: column; height: 46em; overflow: hidden; background: #fff; }
.mock--hero .mock__app { height: 47em; }

/* Top bar */
.m-top { display: flex; flex: none; align-items: center; gap: 2em; height: 3.7em; padding: 0 1.6em; border-bottom: 1px solid #e5e7eb; }
.m-top__brand { color: #0a0f1c; font-size: 1.2em; font-weight: 800; letter-spacing: -0.03em; }
.m-top__nav { display: flex; gap: 1.8em; height: 100%; }
.m-top__nav span { display: flex; align-items: center; color: #64748b; font-size: 0.93em; font-weight: 600; box-shadow: inset 0 0 0 transparent; }
.m-top__nav .is-on { color: #0a0f1c; box-shadow: inset 0 -2px 0 #0a0f1c; }
.m-top__search { display: flex; align-items: center; gap: 0.7em; flex: 0 1 20em; margin-left: auto; padding: 0.6em 0.9em; border: 1px solid #e5e7eb; border-radius: 0.6em; color: #94a3b8; font-size: 0.86em; white-space: nowrap; overflow: hidden; }
.m-top__credits { display: flex; align-items: center; gap: 0.45em; padding: 0.45em 0.9em; border: 1px solid #e5e7eb; border-radius: 999px; color: #0a0f1c; font-size: 0.82em; font-weight: 700; white-space: nowrap; }
.m-top__credits .icon { color: #737373; }
.m-top__avatar { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: #262626; color: #fff; font-size: 0.8em; font-weight: 800; }

/* Split view */
.m-split { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) 27em; min-height: 0; }
.m-split--docs { grid-template-columns: minmax(0, 1fr) 30em; }
.m-docpane { position: relative; display: flex; flex-direction: column; min-height: 0; background: #f4f5f7; overflow: hidden; }
.m-dochead { display: flex; flex: none; align-items: center; gap: 0.9em; height: 4em; padding: 0 1.4em; background: #fff; border-bottom: 1px solid #e5e7eb; }
.m-dochead > .icon { color: #64748b; }
.m-dochead strong { display: block; color: #0a0f1c; font-size: 0.95em; }
.m-dochead em { display: block; color: #94a3b8; font-size: 0.66em; font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; }
.m-dochead__tools { display: flex; align-items: center; gap: 0.8em; margin-left: auto; padding: 0.4em 0.8em; border: 1px solid #e5e7eb; border-radius: 0.6em; color: #0a0f1c; font-size: 0.78em; font-weight: 700; }
.m-dochead__tools b { color: #64748b; font-weight: 500; }
.m-paper { flex: 1; min-height: 0; padding: 1.5em 2.2em 0; overflow: hidden; }
.m-page { padding: 1.8em 2.1em 4em; background: #fff; border-radius: 0.2em 0.2em 0 0; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); color: #334155; font-size: 0.93em; line-height: 1.85; }
.m-page p { margin: 0 0 0.85em; }
.m-page--cover { text-align: left; }
.m-page__title { margin: 0.8em 0 1.4em !important; color: #0a0f1c; font-size: 1.25em; font-weight: 800; letter-spacing: 0.3em; text-align: center; text-transform: uppercase; }
.m-page__h { margin-top: 1.2em !important; padding-bottom: 0.4em; border-bottom: 1px solid #e5e7eb; color: #0a0f1c; font-weight: 700; text-transform: uppercase; }
.m-clause { position: relative; margin: 0 -0.6em 0.9em; padding: 1em 1.2em 0.2em; border: 1.5px solid transparent; border-radius: 0.7em; }
.m-clause--red { background: #fef2f2; border-color: #ef4444; }
.m-clause--next { background: #fffafa; }
.m-clause__tag { position: absolute; top: 0.8em; right: 0.9em; padding: 0.15em 0.7em; background: #fff; border: 1px solid #fecaca; border-radius: 999px; color: #b91c1c; font-size: 0.62em; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.m-clause__h { color: #0a0f1c; font-weight: 700; text-transform: uppercase; }
.m-clause__h i { margin-right: 0.6em; color: #94a3b8; font-style: normal; font-weight: 500; }
.m-hl { padding: 0 0.1em; border-radius: 0.15em; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.7s var(--ease), color 0.4s ease, box-shadow 0.4s ease; }
.m-hl--term { background-image: linear-gradient(#fde68a, #fde68a); background-size: 100% 38%; box-shadow: inset 0 -2px 0 #facc15; color: #0a0f1c; font-weight: 600; }
.m-hl--red { background-image: linear-gradient(#fee2e2, #fee2e2); background-size: 100% 100%; box-shadow: inset 0 -2px 0 #dc2626; color: #b91c1c; font-weight: 600; }
.m-hl--amber { background-image: linear-gradient(#ffedd5, #ffedd5); background-size: 100% 100%; box-shadow: inset 0 -2px 0 #f59e0b; }
.m-legend { position: absolute; bottom: 1.2em; left: 1.2em; display: flex; gap: 1.4em; padding: 0.8em 1.2em; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.9em; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.m-key { display: flex; align-items: center; gap: 0.6em; color: #334155; font-size: 0.66em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.m-key::before { content: ""; width: 1.4em; height: 1.4em; border-radius: 0.35em; }
.m-key--term::before { background: #fef9c3; border: 1px solid #facc15; }
.m-key--red::before { background: #fef2f2; border: 1px solid #f87171; }
.m-key--amber::before { background: #fff7ed; border: 1px solid #fb923c; }

/* Side panel */
.m-side { display: flex; flex-direction: column; min-height: 0; background: #fff; border-left: 1px solid #e5e7eb; }
.m-analyst { display: flex; flex: none; align-items: center; gap: 0.9em; padding: 1.1em 1.4em; }
.m-analyst__bot { display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: 0.7em; background: #0a0f1c; color: #fff; }
.m-analyst strong { display: block; color: #0a0f1c; font-size: 1em; }
.m-analyst em { display: flex; align-items: center; gap: 0.5em; color: #64748b; font-size: 0.66em; font-style: normal; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.m-analyst em::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: #22c55e; }
.m-analyst__tune { margin-left: auto; color: #64748b; }
.m-tabs { display: flex; flex: none; gap: 1.8em; padding: 0 1.4em; border-bottom: 1px solid #e5e7eb; }
.m-tabs span { display: flex; align-items: center; gap: 0.6em; padding: 0.85em 0.2em; color: #64748b; font-size: 0.9em; font-weight: 600; }
.m-tabs .is-on { color: #0a0f1c; box-shadow: inset 0 -2px 0 #0a0f1c; }
.m-tabs b { padding: 0.05em 0.5em; background: #f1f5f9; border-radius: 0.4em; color: #64748b; font-size: 0.72em; }
.m-side__body { display: flex; flex: 1; flex-direction: column; gap: 0.9em; min-height: 0; padding: 1.2em 1.4em; overflow: hidden; }
.m-side__foot { flex: none; padding: 0.9em 1.4em 0.7em; border-top: 1px solid #eef1f4; }
.m-back { display: flex; align-items: center; gap: 0.5em; margin: 0; color: #64748b; font-size: 0.78em; font-weight: 600; }
.m-eyebrow { margin: 0; color: #64748b; font-size: 0.66em; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.m-h { margin: -0.5em 0 0; color: #0a0f1c; font-size: 1.32em; font-weight: 800; letter-spacing: -0.02em; }
.m-link { margin: -0.5em 0 0; color: #334155; font-size: 0.76em; font-weight: 600; text-decoration: underline; }
.m-muted { margin: 0; color: #64748b; font-size: 0.8em; }
.m-label { display: flex; align-items: center; gap: 0.6em; margin: 0 0 0.6em; color: #64748b; font-size: 0.66em; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.m-label .icon { width: 1.5em; height: 1.5em; }
.m-card { padding: 1em 1.1em; border: 1px solid #e5e7eb; border-radius: 0.9em; }
.m-card p { margin: 0; }
.m-type { color: #1e293b; font-size: 0.84em; line-height: 1.6; }
.m-flag { display: flex; gap: 0.7em; padding: 1em 1.1em; background: #fef2f2; border: 1px solid #fecaca; border-radius: 0.9em; color: #991b1b; }
.m-flag > .icon { margin-top: 0.1em; color: #b91c1c; }
.m-flag p { margin: 0 0 0.5em; font-size: 0.8em; line-height: 1.5; }
.m-flag .m-flag__title { color: #991b1b; font-size: 0.86em; font-weight: 800; }
.m-flag blockquote { margin: 0; padding: 0.6em 0.8em; background: #fff; border-radius: 0.6em; color: #7f1d1d; font-size: 0.76em; font-style: italic; line-height: 1.5; }
.m-who { display: grid; gap: 0.15em; margin-top: 0.5em; padding: 0.6em 0.8em; border: 1px solid #e5e7eb; border-radius: 0.6em; font-size: 0.8em; line-height: 1.45; }
.m-who strong { display: flex; align-items: center; gap: 0.5em; color: #0a0f1c; font-size: 0.82em; letter-spacing: 0.08em; text-transform: uppercase; }
.m-who strong b { padding: 0.1em 0.5em; background: #0a0f1c; border-radius: 999px; color: #fff; font-size: 0.85em; letter-spacing: 0; text-transform: none; }
.m-who.is-you { background: #fff7ed; border-color: #fed7aa; }
.m-lean { display: flex; align-items: center; gap: 0.5em; margin-top: 0.7em !important; color: #0a0f1c; font-size: 0.78em; font-weight: 700; }
.m-ask { display: flex; align-items: center; justify-content: space-between; padding: 0.4em 0.4em 0.4em 1em; border: 1px solid #e5e7eb; border-radius: 0.8em; color: #94a3b8; font-size: 0.84em; }
.m-ask b { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 0.6em; background: #0a0f1c; color: #fff; }
.m-brief-btn { display: flex; align-items: center; justify-content: center; gap: 0.6em; margin-top: 0.7em; height: 3.2em; border-radius: 0.7em; background: #0a0f1c; color: #fff; font-size: 0.92em; font-weight: 700; }
.m-note { margin: 0.7em 0 0; color: #94a3b8; font-size: 0.58em; font-weight: 700; letter-spacing: 0.16em; text-align: center; text-transform: uppercase; }

/* Overview */
.m-reading { display: flex; align-items: center; gap: 0.7em; padding: 0.8em 1em; background: #f8fafc; border: 1px solid #eef1f4; border-radius: 0.8em; color: #64748b; font-size: 0.8em; line-height: 1.45; }
.m-reading strong { color: #0a0f1c; }
.m-reading u { margin-left: auto; color: #0a0f1c; font-weight: 700; }
.m-summary { display: grid; gap: 0.75em; margin: 0.7em 0 0; padding-left: 1.1em; color: #dc2626; font-size: 0.8em; font-weight: 700; line-height: 1.45; }
.m-summary li::marker { color: #dc2626; }
.m-summary b,
.m-facts b { display: inline-block; margin-left: 0.3em; padding: 0 0.6em; border: 1px solid #e5e7eb; border-radius: 999px; color: #334155; font-size: 0.82em; font-weight: 700; }
.m-facts { display: grid; gap: 0.7em; margin: 0; }
.m-fact { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 0.8em; }
.m-fact dt { color: #64748b; font-size: 0.72em; font-weight: 700; letter-spacing: 0.04em; }
.m-fact dd { margin: 0; color: #1e293b; font-size: 0.78em; line-height: 1.45; }
.m-absent { display: grid; gap: 0.7em; margin: 0; padding: 0; list-style: none; }
.m-absent li { color: #64748b; font-size: 0.76em; line-height: 1.45; }
.m-absent strong { display: block; color: #0a0f1c; }

/* Chat */
.m-chat { gap: 1em; }
.m-bubble { margin: 0; padding: 0.8em 1em; border-radius: 1em; font-size: 0.86em; line-height: 1.55; }
.m-bubble--me { align-self: flex-end; max-width: 80%; background: #0a0f1c; border-bottom-right-radius: 0.3em; color: #fff; }
.m-bubble--ai { max-width: 94%; background: #f8fafc; border: 1px solid #eef1f4; border-bottom-left-radius: 0.3em; }
.m-bubble--ai .m-type { font-size: 1em; }
.m-refs { display: flex; flex-wrap: wrap; gap: 0.4em; margin: 0.6em 0 0 !important; }
.m-refs b { padding: 0.1em 0.6em; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; color: #334155; font-size: 0.82em; text-decoration: underline; }
.m-suggest { display: flex; flex-wrap: wrap; gap: 0.5em; margin: auto 0 0; }
.m-suggest span { padding: 0.45em 0.9em; border: 1px solid #e5e7eb; border-radius: 999px; color: #334155; font-size: 0.76em; font-weight: 600; }

/* Upload */
.m-upload { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4em; align-items: center; padding: 3em 4em; background: #f4f5f7; }
.m-drop { display: flex; flex-direction: column; align-items: center; gap: 0.6em; padding: 3em 2em; background: #fff; border: 2px dashed #cbd5e1; border-radius: 1.2em; text-align: center; }
.m-drop > .icon { width: 2.4em; height: 2.4em; padding: 0.5em; background: #f1f5f9; border-radius: 0.8em; color: #0a0f1c; }
.m-drop .m-h { margin: 0.3em 0 0; }
.m-file { display: flex; align-items: center; gap: 0.7em; margin-top: 1em; padding: 0.7em 1em; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 0.8em; text-align: left; }
.m-file > .icon { color: #b91c1c; }
.m-file strong { display: block; color: #0a0f1c; font-size: 0.84em; }
.m-file em { display: block; color: #64748b; font-size: 0.72em; font-style: normal; }
.m-progress { padding: 1.6em; background: #fff; border: 1px solid #e5e7eb; border-radius: 1.2em; }
.m-bar { display: block; height: 0.45em; margin-bottom: 1.4em; overflow: hidden; background: #eef1f4; border-radius: 999px; }
.m-bar i { display: block; height: 100%; background: #0a0f1c; border-radius: inherit; transform-origin: left; }
.m-stages { display: grid; gap: 1em; margin: 0; padding: 0; list-style: none; }
.m-stage { display: flex; align-items: flex-start; gap: 0.8em; }
.m-stage__dot { display: grid; flex: none; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #0a0f1c; color: #fff; transition: background 0.4s ease, color 0.4s ease; }
.m-stage__dot .icon { width: 1em; height: 1em; }
.m-stage strong { display: block; color: #0a0f1c; font-size: 0.86em; }
.m-stage em { display: block; color: #64748b; font-size: 0.74em; font-style: normal; }

/* Brief */
.m-briefwrap { flex: 1; min-height: 0; padding: 1.6em 7em 0; background: #f4f5f7; overflow: hidden; }
.m-brief__actions { display: flex; align-items: center; gap: 0.8em; margin-bottom: 1.2em; }
.m-brief__actions > span:first-child { display: flex; align-items: center; gap: 0.5em; margin-right: auto; color: #64748b; font-size: 0.8em; font-weight: 600; }
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.7em 1.1em; background: #0a0f1c; border: 1px solid #0a0f1c; border-radius: 0.6em; color: #fff; font-size: 0.8em; font-weight: 700; }
.m-btn--ghost { background: #fff; border-color: #e5e7eb; color: #0a0f1c; }
.m-btn--block { width: 100%; margin-top: 0.6em; }
.m-briefdoc { padding: 2.4em 3.4em 3em; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.8em 0.8em 0 0; }
.m-briefdoc p { margin: 0; }
.m-briefdoc__brand { color: #0a0f1c; font-size: 0.9em; font-weight: 800; }
.m-briefdoc .m-eyebrow { margin-top: 1em; }
.m-briefdoc__title { margin: 0.2em 0 0.4em !important; color: #0a0f1c; font-size: 1.5em; font-weight: 800; letter-spacing: -0.02em; }
.m-briefdoc__h { display: flex; align-items: center; gap: 0.7em; margin: 1.5em 0 0.7em !important; padding-top: 1.2em; border-top: 1px solid #e5e7eb; color: #0a0f1c; font-size: 1em; font-weight: 800; }
.m-briefdoc__h b { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #0a0f1c; color: #fff; font-size: 0.78em; }
.m-briefdoc__dl { display: grid; gap: 0.6em; margin: 0; font-size: 0.84em; }
.m-briefdoc__dl div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 1em; }
.m-briefdoc__dl dt { color: #64748b; font-weight: 700; }
.m-briefdoc__dl dd { margin: 0; color: #1e293b; }
.m-briefdoc__dl i { display: block; color: #64748b; }
.m-me { padding: 0.1em 0.6em; background: #0a0f1c; border-radius: 999px; color: #fff; font-size: 0.8em; }
.m-briefdoc__need { padding: 0.9em 1em; border: 1px solid #0a0f1c; border-radius: 0.6em; color: #0a0f1c; font-size: 0.86em; }
.m-briefdoc__q { display: grid; gap: 0.4em; margin: 0; padding-left: 1.3em; color: #1e293b; font-size: 0.84em; }

/* Clause list and counts */
.m-counts { display: flex; gap: 1.2em; padding-bottom: 0.9em; border-bottom: 1px solid #eef1f4; }
.m-counts span { display: flex; align-items: center; gap: 0.5em; color: #64748b; font-size: 0.76em; font-weight: 600; }
.m-count { display: grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 0.4em; background: #f1f5f9; border-radius: 0.5em; color: #0a0f1c; font-size: 0.9em; }
.m-count--red { background: #fef2f2; color: #b91c1c; }
.m-count--amber { background: #fff7ed; color: #b45309; }
.m-rows { display: grid; gap: 0.35em; margin: 0; padding: 0; list-style: none; }
.m-row { display: grid; grid-template-columns: 1.8em minmax(0, 1fr) auto auto; gap: 0.7em; align-items: center; padding: 0.55em 0.7em; border-radius: 0.6em; box-shadow: inset 3px 0 0 #e5e7eb; }
.m-row--red { background: #fef2f2; box-shadow: inset 3px 0 0 #dc2626; }
.m-row--amber { background: #fff7ed; box-shadow: inset 3px 0 0 #f59e0b; }
.m-row i { color: #94a3b8; font-size: 0.76em; font-style: normal; font-weight: 700; text-align: center; }
.m-row strong { display: block; color: #0a0f1c; font-size: 0.8em; }
.m-row em { display: block; overflow: hidden; color: #64748b; font-size: 0.7em; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.m-row u { color: #334155; font-size: 0.68em; font-weight: 600; }
.m-tag { padding: 0.1em 0.6em; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; color: #64748b; font-size: 0.6em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.m-tag--red { border-color: #fecaca; color: #b91c1c; }
.m-tag--amber { border-color: #fed7aa; color: #b45309; }
.m-law { display: flex; align-items: center; gap: 0.7em; margin-top: auto; padding: 0.8em 1em; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 0.8em; }
.m-law > .icon { color: #15803d; }
.m-law strong { display: block; color: #0a0f1c; font-size: 0.8em; }
.m-law em { display: block; color: #64748b; font-size: 0.7em; font-style: normal; }

/* Documents */
.m-docs { padding: 1.6em 1.8em; background: #f4f5f7; }
.m-docs .m-h { margin: 0 0 0.8em; }
.m-docrows { display: grid; gap: 0.7em; margin: 0; padding: 0; list-style: none; }
.m-docrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.4em 0.8em; align-items: center; padding: 1em 1.1em; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.9em; }
.m-docrow > .icon { color: #64748b; }
.m-docrow strong { display: block; color: #0a0f1c; font-size: 0.86em; }
.m-docrow em { display: block; color: #64748b; font-size: 0.74em; font-style: normal; }
.m-docrow__fact { display: flex; grid-column: 2 / -1; align-items: center; gap: 0.5em; color: #334155; font-size: 0.72em; font-weight: 600; }
.m-docrow__fact .icon { color: #94a3b8; }

/* Credits */
.m-credits { flex: 1; padding: 2em 4em; background: #f4f5f7; }
.m-credits__balance { margin: 0.2em 0 0.3em; color: #0a0f1c; font-size: 2.2em; font-weight: 800; letter-spacing: -0.03em; }
.m-credits .m-card { margin-top: 1.4em; background: #fff; }
.m-packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8em; }
.m-pack { display: flex; flex-direction: column; gap: 0.2em; padding: 1em; border: 1px solid #e5e7eb; border-radius: 0.8em; }
.m-pack__price { color: #0a0f1c; font-size: 1.6em; font-weight: 800; letter-spacing: -0.02em; }
.m-pack__credits { color: #1e293b; font-size: 0.82em; font-weight: 700; }

/* Floating notes over a mock */
.m-float { position: absolute; z-index: 2; width: 24em; padding: 1.1em 1.2em; background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 1em; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.4); font-size: 14px; font-size: clamp(6px, 1.25cqw, 14px); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.m-float p { margin: 0; color: #1e293b; font-size: 0.9em; line-height: 1.5; }
.m-float .m-float__label { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.6em; color: #737373; font-size: 0.68em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.m-float blockquote { margin: 0.5em 0; padding-left: 0.8em; border-left: 2px solid #0a0a0a; color: #525252; font-size: 0.86em; font-style: italic; line-height: 1.5; }
.m-float__ok { display: flex; align-items: center; gap: 0.5em; color: #0a0a0a !important; font-size: 0.78em !important; font-weight: 700; }
.m-float--law { bottom: 2%; left: -3.5%; }
.mock--hero .m-legend { display: none; }
.m-float--ask { top: 21%; right: -3.5%; width: 19em; }
.m-float--need { top: 14%; right: -4%; width: 19em; }

/* Phone */
.mock--phone { display: grid; place-items: center; container-type: normal; }
.mock__phone { position: relative; width: min(320px, 100%); aspect-ratio: 9 / 18.5; padding: 10px; background: #0a0a0a; border-radius: 44px; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); container-type: inline-size; }
.mock__notch { position: absolute; top: 18px; left: 50%; z-index: 2; width: 30%; height: 22px; background: #0a0a0a; border-radius: 999px; transform: translateX(-50%); }
.mock--phone .mock__app { height: 100%; border-radius: 34px; font-size: 12px; font-size: 4.3cqw; }
.mock--phone .m-phonebar { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 3.4em 1.4em 0.8em; }
.mock--phone .m-top__brand { font-size: 1.15em; }
.mock--phone .m-analyst { padding-top: 0.6em; padding-bottom: 0.6em; }
.mock--phone .m-reading u { display: none; }
.mock--phone .m-float { font-size: 12px; }
.mock--phone .m-float--need { top: 20%; right: max(-6%, calc(50% - 310px)); width: 17em; }

/* Narrow mocks: the side panel on its own, at a readable size */
@container (max-width: 600px) {
  .mock__window { font-size: 2.7cqw; }
  .mock__app { height: 44em; }
  .m-split,
  .m-split--docs { grid-template-columns: minmax(0, 1fr); }
  .m-docpane,
  .m-docs,
  .m-top__nav,
  .m-top__search { display: none; }
  .m-top__credits { margin-left: auto; }
  .m-side { border-left: 0; }
  .m-upload { grid-template-columns: minmax(0, 1fr); padding: 2em; gap: 1.4em; }
  .m-drop { padding: 1.6em 1.4em; }
  .m-briefwrap { padding: 1.2em 1.2em 0; }
  .m-briefdoc { padding: 1.6em 1.6em 2em; }
  .m-brief__actions .m-btn--ghost { display: none; }
  .m-credits { padding: 1.4em; }
  .m-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-float { display: none; }
  /* Keeping contracts: the documents list sits above the key facts instead of beside them. */
  .mock--protect .mock__app { height: auto; }
  .mock--protect .m-docs { display: block; padding: 1.4em 1.4em 0.2em; background: #fff; }
  .mock--protect .m-side__body { padding-top: 0.8em; }
  /* The flags step is about the words in the contract, so show the contract rather than the panel. */
  [data-screen="flag"] .m-screen--clause .m-docpane { display: flex; }
  [data-screen="flag"] .m-screen--clause .m-side { display: none; }
  .m-paper { padding: 1em 1em 0; }
  .m-page { padding: 1.2em 1.3em 3em; }
  .m-legend { display: none; }
}

/* Home hero mock: plays once, from a plain page to a finished reading */
.mock.is-demo .m-hl--term { background-size: 0% 38%; box-shadow: inset 0 -2px 0 transparent; color: inherit; font-weight: inherit; }
.mock.is-demo .m-hl--red { background-size: 0% 100%; box-shadow: inset 0 -2px 0 transparent; color: inherit; font-weight: inherit; }
.mock.is-demo .m-clause--red { background: #fff; border-color: transparent; transition: background 0.6s ease, border-color 0.6s ease; }
.mock.is-demo .m-clause__tag,
.mock.is-demo .m-side__body > *,
.mock.is-demo .m-float { opacity: 0; transform: translateY(0.8em); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.mock.is-p1 .m-hl--term { background-size: 100% 38%; box-shadow: inset 0 -2px 0 #facc15; color: #0a0f1c; font-weight: 600; }
.mock.is-p1 .m-d2 { transition-delay: 0.25s; }
.mock.is-p1 .m-d3 { transition-delay: 0.5s; }
.mock.is-p2 .m-hl--red { background-size: 100% 100%; box-shadow: inset 0 -2px 0 #dc2626; color: #b91c1c; font-weight: 600; }
.mock.is-p2 .m-clause--red { background: #fef2f2; border-color: #ef4444; }
.mock.is-p2 .m-clause__tag { opacity: 1; transform: none; }
.mock.is-p3 .m-side__body > * { opacity: 1; transform: none; }
.mock.is-p3 .m-side__body > :nth-child(2) { transition-delay: 0.08s; }
.mock.is-p3 .m-side__body > :nth-child(3) { transition-delay: 0.16s; }
.mock.is-p3 .m-side__body > :nth-child(4) { transition-delay: 0.24s; }
.mock.is-p3 .m-side__body > :nth-child(5) { transition-delay: 0.4s; }
.mock.is-p3 .m-side__body > :nth-child(6) { transition-delay: 0.56s; }
.mock.is-p4 .m-float { opacity: 1; transform: none; }
.mock.is-p4 .m-float--ask { transition-delay: 0.35s; }

/* The journey's screens: one shows at a time, chosen by the step in view */
.m-screens { position: relative; flex: 1; min-height: 0; }
.m-screen { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: scale(0.985); transition: opacity 0.55s ease, transform 0.7s var(--ease), visibility 0s linear 0.55s; }
.m-screen > .m-split,
.m-screen > .m-upload,
.m-screen > .m-briefwrap { flex: 1; min-height: 0; }
[data-screen="upload"] .m-screen--upload,
[data-screen="overview"] .m-screen--overview,
[data-screen="clause"] .m-screen--clause,
[data-screen="flag"] .m-screen--clause,
[data-screen="ask"] .m-screen--ask,
[data-screen="brief"] .m-screen--brief { opacity: 1; visibility: visible; transform: none; transition: opacity 0.55s ease, transform 0.7s var(--ease), visibility 0s; }
/* Upload: the stages tick off one by one */
[data-screen="upload"] .m-bar i { animation: fill 2.6s var(--ease) both; }
[data-screen="upload"] .m-stage__dot { animation: rise 0.5s var(--ease) both; }
[data-screen="upload"] .m-stage.m-d2 .m-stage__dot { animation-delay: 0.6s; }
[data-screen="upload"] .m-stage.m-d3 .m-stage__dot { animation-delay: 1.2s; }
[data-screen="upload"] .m-stage.m-d4 .m-stage__dot { animation-delay: 1.8s; }
/* Flags: the clause and its words stand out, the explanation steps back */
[data-screen="flag"] .m-screen--clause .m-hl--red { background-image: linear-gradient(#fecaca, #fecaca); box-shadow: inset 0 -2px 0 #b91c1c; }
[data-screen="flag"] .m-screen--clause .m-card { opacity: 0.35; transition: opacity 0.5s ease; }
[data-screen="flag"] .m-screen--clause .m-flag { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); transition: box-shadow 0.5s ease; }
.m-type.is-typing::after { content: ""; display: inline-block; width: 0.08em; height: 1em; margin-left: 0.1em; vertical-align: -0.12em; background: currentColor; animation: caret 0.9s step-end infinite; }

/* Smaller screens */

@media (max-width: 1080px) {
  .card-grid--4,
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packs--5 .pack--free { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: minmax(0, 760px); gap: 0; }
  .page-hero--article .wrap { grid-template-columns: minmax(0, 760px); }
  .page-hero--article .wrap > * { grid-column: 1; }
  .toc { position: static; margin-bottom: 36px; padding: 22px 24px; background: var(--paper); border-radius: var(--radius); }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
  .feature-row,
  .audience__panel,
  .journey__grid { gap: 48px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-nav,
  .site-header__actions { display: none; }
  .mobile-nav { display: block; justify-self: end; }
  .mobile-nav > summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); list-style: none; cursor: pointer; }
  .mobile-nav > summary::-webkit-details-marker { display: none; }
  .mobile-nav__close,
  .mobile-nav[open] .mobile-nav__open { display: none; }
  .mobile-nav[open] .mobile-nav__close { display: block; }
  .mobile-nav__panel { position: absolute; top: var(--header); right: 0; left: 0; display: grid; gap: 4px; padding: 14px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.12); }
  .mobile-nav__panel a:not(.btn) { padding: 13px 2px; color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
  .mobile-nav__panel .btn { margin-top: 14px; }
  .card-grid--3,
  .tiers,
  .steps { grid-template-columns: 1fr; }
  .steps li,
  .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .feature-row,
  .feature-row--flip,
  .audience__panel,
  .founder--home { grid-template-columns: 1fr; gap: 36px; }
  .founder--home .founder__link { grid-column: 1; }
  .feature-row--flip .feature-row__text { order: 0; }
  .feature-row + .feature-row { margin-top: 80px; }
  .audience__visual { min-height: 0; }
  .compare { grid-template-columns: 1fr; }
  .compare__col,
  .compare__col + .compare__col { padding: 32px 0 0; border-left: 0; }
  .estimator { grid-template-columns: 1fr; }
  .section { padding: 88px 0; }

  /* The journey on a phone: without JavaScript the steps simply follow the window. With it, the
     window and a caption fill the screen and stay docked, and the (invisible) steps scrolling
     beneath them choose what they show. */
  .journey__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "dock" "steps"; gap: 0; }
  .journey__stage { padding: 10px; border-radius: 20px; }
  .mock--journey .mock__app { height: 34em; }
  .journey__step,
  .journey__step:first-child,
  .journey__step:last-child { justify-content: flex-start; min-height: 0; padding: 32px 0 0 22px; }
  .js .journey__dock { top: var(--header); z-index: 2; display: flex; flex-direction: column; min-height: calc(100vh - var(--header)); margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter) 0; background: var(--bg); }
  .js .journey__caption { display: block; padding: 22px 4px 0 18px; border-left: 1px solid var(--ink); margin: 22px 0 0; min-height: 13em; }
  .js .journey__caption .journey__num { margin-bottom: 10px; }
  .js .journey__caption .journey__title { margin: 0 0 8px; color: var(--ink); font-size: 23px; font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
  .js .journey__caption .journey__text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
  .js .journey__steps { position: relative; z-index: 1; }
  .js .journey__step,
  .js .journey__step.is-active { min-height: 62vh; padding: 0; border: 0; opacity: 0; pointer-events: none; }
  .js .journey__step:first-child { margin-top: calc((100vh - var(--header)) * -0.5); }
}

@media (max-width: 640px) {
  :root { --header: 62px; --gutter: 16px; }
  body { font-size: 16.5px; }
  .brand { font-size: 17px; }
  .hero { padding: 64px 0 150px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero-stage { margin-top: -110px; }
  .stage { border-radius: 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .page-hero { padding: 56px 0 40px; }
  .card-grid--2,
  .card-grid--4,
  .packs,
  .principles { grid-template-columns: 1fr; }
  .principles li,
  .principles li + li { padding: 28px 0 0; border-left: 0; }
  .card { padding: 24px; }
  .tier { padding: 28px 24px; }
  .pills { margin-top: -12px; }
  .pill { padding: 9px 16px 9px 13px; font-size: 14px; }
  .prose { font-size: 17px; }
  .table-wrap--stack thead { display: none; }
  .table-wrap--stack tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .table-wrap--stack tbody tr:last-child { border-bottom: 0; }
  .table-wrap--stack td { display: block; padding: 0; border: 0; }
  .table-wrap--stack td:first-child { color: var(--ink); font-weight: 600; }
  .table-wrap--stack td + td { margin-top: 8px; }
  .table-wrap--stack td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 88px 0; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .consent { left: 16px; bottom: 16px; width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header,
  .site-footer,
  .consent,
  .cta-band,
  .toc { display: none; }
}
