/* www.legalsling.com. Plain CSS, no build step. Colours and type follow the app. */

:root {
  --ink: #0a0f1c;
  --ink-2: #1f2937;
  --text: #1e293b;
  --muted: #5b6678;
  --muted-2: #8a94a6;
  --line: #e5e7eb;
  --line-soft: #eef1f4;
  --bg: #ffffff;
  --canvas: #f5f6f8;
  --tint: #f8fafc;
  --amber: #b45309;
  --amber-mark: #f59e0b;
  --amber-bg: #fff7ed;
  --amber-line: #fed7aa;
  --yellow: #facc15;
  --term-bg: #fef9c3;
  --red: #dc2626;
  --red-strong: #b91c1c;
  --red-bg: #fef2f2;
  --red-line: #fecaca;
  --green: #15803d;
  --green-bg: #f0fdf4;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --header: 68px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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); line-height: 1.15; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

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

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-right: 28px; padding-left: 28px; }
.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; }

.eyebrow { margin: 0 0 14px; color: var(--amber); font-size: 13.5px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.lede { max-width: 700px; margin: 18px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.muted { color: var(--muted); }
.fineprint,
.feature-row .fineprint { margin: 16px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.section-link { margin: 32px 0 0; }
.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: 9px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #1f2937; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1f5f9; }
.btn--small { padding: 10px 16px; font-size: 14.5px; }
.link-quiet { color: var(--muted); font-weight: 600; text-decoration: none; }
.link-quiet:hover { color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 650; text-decoration: none; }
.link-arrow .icon { width: 17px; height: 17px; transition: transform 0.15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-light { color: #cbd5e1; font-weight: 600; }
.link-light:hover { color: #fff; }

/* Header */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
.site-header__inner { display: flex; align-items: center; gap: 36px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 780; letter-spacing: -0.02em; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; }
.brand--light { color: #fff; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--muted); font-size: 15.5px; font-weight: 600; text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.mobile-nav { display: none; }

/* Page header */

.page-hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--canvas), #fff); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.08; }
.page-hero--article h1 { font-size: clamp(32px, 4.4vw, 46px); }
/* 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: 1160px; }
.page-hero--article .wrap > * { grid-column: 2; }
.page-meta { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 14.5px; }
.page-meta .icon { width: 17px; height: 17px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Home hero */

.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background: radial-gradient(1200px 500px at 85% -10%, #fff7ed 0%, rgba(255, 247, 237, 0) 60%), linear-gradient(180deg, var(--canvas), #fff 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero .lede { max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust .icon { width: 17px; height: 17px; color: var(--green); }

.shot { position: relative; margin: 0; }
.shot__frame { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.shot__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.shot__bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.shot__bar em { margin-left: 10px; color: var(--muted-2); font-size: 12px; font-style: normal; }
.shot__note {
  position: absolute;
  left: -34px;
  bottom: 30px;
  max-width: 290px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--red-line);
  border-left: 4px solid var(--red);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 14.5px;
  line-height: 1.45;
}
.shot__note strong { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; color: var(--red-strong); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.shot__note strong .icon { width: 16px; height: 16px; }
.shot__note p { margin: 0; color: var(--ink-2); }

/* Sections */

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--tint { background: var(--canvas); }
.section--ink { background: var(--ink); color: #e2e8f0; }
.section--ink h2,
.section--ink h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-right: auto; margin-left: auto; text-align: center; }
.section-head h2,
.section-title { font-size: clamp(30px, 3.8vw, 42px); letter-spacing: -0.028em; }
.section-title { margin-bottom: 28px; font-size: clamp(24px, 3vw, 30px); }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 18.5px; }
.section--ink .section-head p { color: #94a3b8; }

/* Cards and grids */

.card-grid { display: grid; gap: 20px; }
.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 { display: flex; flex-direction: column; gap: 8px; padding: 26px; background: #fff; 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.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.card--link:hover { border-color: #cbd5e1; box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 13px; color: var(--amber); }
.card__icon--red { background: var(--red-bg); border-color: var(--red-line); color: var(--red-strong); }
.card__icon--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.card__eyebrow { color: var(--amber); font-size: 12.5px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.card__title,
.card h3 { color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.card__text,
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card .link-arrow { margin-top: auto; padding-top: 10px; }
.section--ink .card { background: #111a2e; border-color: #1e293b; box-shadow: none; }
.section--ink .card h3 { color: #fff; }
.section--ink .card p { color: #94a3b8; }
.section--ink .ticks li,
.section--ink .crosses li { color: #cbd5e1; }

/* Steps */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 28px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; background: var(--ink); color: #fff; border-radius: 50%; font-weight: 750; }
.steps h3 { margin-bottom: 8px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Feature rows (text beside a screenshot) */

.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 96px; }
.feature-row--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.feature-row--flip .feature-row__text { order: 2; }
.feature-row h2 { margin-bottom: 16px; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.028em; }
.feature-row h3 { margin-bottom: 14px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; }
.feature-row p { color: var(--muted); font-size: 17.5px; }
.feature-row .eyebrow { color: var(--amber); font-size: 13.5px; }
.ticks { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; border-radius: 50%; }
.crosses { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.crosses li { display: flex; gap: 10px; color: var(--ink-2); font-size: 16px; }
.crosses li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; background: var(--red-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7.5 7.5l9 9M16.5 7.5l-9 9'/%3E%3C/svg%3E") center / 13px no-repeat; border-radius: 50%; }
.screenshot { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.screenshot--phone { justify-self: center; width: 100%; max-width: 300px; border-radius: 32px; }
.screenshot--page { justify-self: center; width: 100%; max-width: 480px; }

/* The clause demo on the home page */

.demo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.demo__doc { padding: 40px 44px; background: #fff; border-right: 1px solid var(--line); font-family: var(--serif); font-size: 17px; line-height: 1.85; color: #1f2937; }
.demo__doc h3 { margin-bottom: 14px; font-family: var(--font); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.demo__doc p { margin: 0 0 14px; }
.demo__doc mark { padding: 1px 3px; border-radius: 4px; background: var(--term-bg); color: inherit; }
.demo__doc mark.flag { background: #fee2e2; box-shadow: inset 0 -2px 0 var(--red); }
.demo__side { display: flex; flex-direction: column; background: var(--tint); }
.demo__tabs { display: flex; gap: 4px; padding: 14px 14px 0; border-bottom: 1px solid var(--line); }
.demo__tab { padding: 10px 14px; background: none; border: 0; border-bottom: 2.5px solid transparent; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer; }
.demo__tab[aria-selected="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.demo__panel { padding: 26px 28px 30px; }
.demo__panel h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.demo__panel h4 .icon { width: 17px; height: 17px; }
.demo__panel p { margin: 0 0 12px; font-size: 16px; }
.demo__panel p:last-child { margin-bottom: 0; }
.demo__panel--flag h4 { color: var(--red-strong); }
.demo__who { display: grid; gap: 10px; }
.demo__who div { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.demo__who strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.demo__who .is-you { border-color: var(--amber-line); background: var(--amber-bg); }
.no-js .demo__panel,
.demo__panel { display: block; }
.js .demo__panel[aria-hidden="true"] { display: none; }

/* Law chips */

.laws { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.laws li { padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.quote-card { padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.quote-card blockquote { margin: 0 0 16px; padding-left: 16px; border-left: 3px solid var(--yellow); font-family: var(--serif); font-size: 18px; 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: 650; }
.quote-card .verdict .icon { color: var(--green); }
.quote-card .verdict--open .icon { color: var(--amber); }
.quote-stack { display: grid; gap: 16px; }

/* Pricing */

.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.packs--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pack { display: flex; flex-direction: column; gap: 4px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pack--free { background: var(--ink); border-color: var(--ink); color: #cbd5e1; }
.pack__price { color: var(--ink); font-size: 36px; font-weight: 780; letter-spacing: -0.03em; }
.pack--free .pack__price { color: #fff; }
.pack__credits { color: var(--ink-2); font-weight: 650; }
.pack--free .pack__credits { color: #fff; }
.pack__hint { color: var(--muted); font-size: 14.5px; }
.pack--free .pack__hint { color: #94a3b8; }
.estimator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 30px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.estimator label { display: block; margin-bottom: 12px; color: var(--ink); font-weight: 650; }
.estimator input[type="range"] { width: 100%; accent-color: var(--ink); }
.estimator__result { padding: 22px 24px; background: var(--canvas); border-radius: var(--radius); }
.estimator__big { margin: 2px 0 0; color: var(--ink); font-size: 34px; font-weight: 780; letter-spacing: -0.02em; }
.estimator__small { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.estimator input[type="range"] + .estimator__small { margin-top: 14px; }
.pricing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.pricing-actions .fineprint { margin: 0; }
.section--tint .table-wrap { background: #fff; }

/* Tables */

.table-wrap { overflow-x: auto; margin: 26px 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: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
thead th { background: var(--canvas); color: var(--ink); font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; 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: 48px; padding-bottom: 80px; }
.article-layout:not(:has(.toc)) { grid-template-columns: minmax(0, 760px); }
.toc { position: sticky; top: calc(var(--header) + 28px); align-self: start; font-size: 14.5px; }
.toc__title { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.toc ol { display: grid; gap: 9px; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); list-style: none; }
.toc a { color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }

.prose { min-width: 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin-bottom: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.1em; font-size: clamp(25px, 3vw, 30px); letter-spacing: -0.022em; line-height: 1.2; }
.prose h3 { margin-top: 1.7em; font-size: 21px; letter-spacing: -0.012em; }
.prose h2 + *,
.prose h3 + * { margin-top: 0.7em; }
.prose a { color: var(--ink); text-decoration-color: var(--amber-mark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose strong { color: var(--ink); }
.prose blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--line); color: var(--muted); }
.prose .table-wrap { font-size: 15.5px; line-height: 1.5; }

.summary-box { padding: 22px 24px; background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: var(--radius); }
.summary-box__label { display: flex; align-items: center; gap: 7px; margin: 0 0 6px !important; color: var(--amber); font-size: 13px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.summary-box__label .icon { width: 17px; height: 17px; }
.summary-box p { margin: 0; color: #431407; font-size: 17.5px; }
.summary-box .summary-box__label { color: var(--amber); font-size: 13px; }

.callout { display: flex; gap: 14px; padding: 18px 20px; background: var(--tint); 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-strong); }
.callout--tip { background: var(--green-bg); border-color: #bbf7d0; }
.callout--tip > .icon { color: var(--green); }

.clause-example { margin-left: 0; margin-right: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.clause-example blockquote { margin: 0; padding: 20px 22px; border: 0; background: #fcfcfd; color: var(--ink-2); font-family: var(--serif); font-size: 17px; line-height: 1.75; }
.clause-example blockquote p + p { margin-top: 0.7em; }
.clause-example mark { padding: 1px 3px; border-radius: 4px; background: var(--term-bg); color: inherit; }
.clause-example mark.flag { background: #fee2e2; box-shadow: inset 0 -2px 0 var(--red); }
.clause-example figcaption { padding: 14px 22px 16px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.clause-example figcaption strong { color: var(--ink); }

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

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

/* FAQ */

.faq h2 { margin-bottom: 18px; }
.faq--page h2 { font-size: clamp(28px, 3.4vw, 38px); text-align: center; margin-bottom: 30px; }
.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: 18px 40px 18px 0; color: var(--ink); font-size: 17.5px; font-weight: 650; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; top: 50%; right: 6px; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq__item[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq__answer { padding: 0 0 20px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.faq__answer p { margin: 0; }
.faq__answer a { color: var(--ink); }

/* Call to action band */

.cta-band { padding: 72px 0; background: var(--ink); color: #cbd5e1; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { margin-bottom: 10px; color: #fff; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.028em; }
.cta-band p { max-width: 620px; margin: 0; font-size: 17.5px; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* Footer */

.site-footer { padding: 64px 0 32px; background: #070b14; color: #94a3b8; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__about p { max-width: 340px; margin: 16px 0 0; }
.site-footer__legal { color: #64748b; font-size: 13.5px; }
.site-footer__heading { margin: 0 0 14px; color: #fff; font-size: 13px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #1e293b; font-size: 14px; }
.site-footer__base p { margin: 0; }

/* 404 */

.not-found { padding: 110px 0 120px; text-align: center; }
.not-found h1 { margin-bottom: 16px; font-size: clamp(34px, 5vw, 52px); }
.not-found .eyebrow { color: var(--amber); font-size: 13.5px; }
.not-found p { color: var(--muted); font-size: 18px; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

/* Smaller screens */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .shot { max-width: 760px; }
  .shot__note { left: auto; right: 16px; bottom: -22px; }
  .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: 32px; padding: 20px 22px; background: var(--canvas); border-radius: var(--radius); }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-nav,
  .site-header__actions { display: none; }
  .mobile-nav { display: block; margin-left: auto; }
  .mobile-nav > summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; 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 20px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08); }
  .mobile-nav__panel a:not(.btn) { padding: 12px 4px; color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
  .mobile-nav__panel .btn { margin-top: 12px; }
  .card-grid--3,
  .steps { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row--flip .feature-row__text { order: 0; }
  .feature-row + .feature-row { margin-top: 64px; }
  .demo { grid-template-columns: 1fr; }
  .demo__doc { border-right: 0; border-bottom: 1px solid var(--line); }
  .estimator { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header: 60px; }
  body { font-size: 16.5px; }
  .wrap { padding-right: 16px; padding-left: 16px; }
  .hero { padding: 44px 0 64px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .page-hero { padding: 40px 0 30px; }
  .card-grid--2,
  .card-grid--4,
  .packs { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .demo__doc { padding: 26px 22px; font-size: 16px; }
  .demo__tab { padding: 10px 10px; font-size: 13.5px; }
  .shot__note { position: relative; right: auto; bottom: auto; max-width: none; margin: -24px 12px 0; }
  .prose { font-size: 17px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 56px 0; }
}

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

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