/* LexDeep public site. Serif type on white, indigo-blue accent. */

:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --ink-soft: #475569;
  --ink-mute: #7d889e;
  --paper: #ffffff;
  --ivory: #f4f6fb;
  --ivory-2: #e6eaf3;
  --line: #e3e8f0;
  --accent: #2f4ee0;
  --accent-deep: #2a44c8;
  --accent-soft: #eef1ff;
  --accent-light: #8ea2ff; /* accent on dark backgrounds */
  --navy: #1e3a8a;
  --red: #b42318;
  --red-soft: #fde8e6;
  --green: #17803d;
  --green-soft: #e3f4e8;
  --margin-red: #d9534f;

  --serif: "Gloock", Georgia, "Times New Roman", serif;          /* headlines */
  --italic: "Instrument Serif", Georgia, serif;                   /* accent words, clause numerals */
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;         /* case numbers, times */
  --hand: "Kalam", "Segoe Print", cursive;                        /* the diary: an Indian hand */

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 2px 8px rgba(11, 18, 32, .04);
  --shadow: 0 2px 4px rgba(11, 18, 32, .04), 0 12px 32px rgba(11, 18, 32, .08);
  --shadow-lg: 0 4px 8px rgba(11, 18, 32, .05), 0 30px 80px rgba(11, 18, 32, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.45'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: #dce3ff; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }


/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before { content: "§"; font-family: var(--italic); font-size: 18px; letter-spacing: 0; text-transform: none; line-height: 1; }
.display, .h2, .h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; line-height: 1.08; margin: 0; }
.display { font-size: clamp(44px, 7vw, 92px); }
.h2 { font-size: clamp(34px, 4.6vw, 58px); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 36em; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .h2 { margin: 16px 0 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: "§"; font-family: var(--italic); font-size: 18px; letter-spacing: 0; line-height: 1; transform: scaleX(-1); }
.section-head.center .lead { margin: 0 auto; }
em.accent { font-family: var(--italic); font-style: italic; font-weight: 400; color: var(--accent-deep); letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ink { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 0 0 3px var(--paper), 0 0 0 4px var(--accent), 0 10px 26px rgba(47, 78, 224, .3); }
.btn-ink:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 0 0 3px var(--paper), 0 0 0 4px var(--accent-deep), 0 16px 34px rgba(47, 78, 224, .36); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #4561f0; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ivory); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(226, 232, 240, .25); }
.btn-ghost-light:hover { background: rgba(226, 232, 240, .08); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); color: var(--ivory);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: 0;
}
.brand-mark sup { position: absolute; top: 6px; right: 4px; font-size: 7px; color: var(--accent-light); letter-spacing: 0; }
.brand-name { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 0; }
.brand-name span { color: var(--accent-deep); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent-deep);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { color: var(--paper); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 160px 0 120px; overflow: hidden; background: var(--paper);
}
.hero-grid { position: relative; display: grid; gap: 72px; }
.hero-grid > div { max-width: 780px; }
.hero h1 { margin: 22px 0 24px; }
.hero h1 .underline { position: relative; display: inline-block; font-family: var(--italic); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent-deep); }
.hero h1 .underline svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: .32em; overflow: visible; }
.hero h1 .underline path { stroke: var(--accent); stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--accent-deep); }

/* Real screenshots, framed plainly */
.shot { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; border-radius: 5px; }
.shot-bar + img { border-radius: 0 0 5px 5px; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--ivory); border-radius: 6px 6px 0 0; }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #cdd4e2; }
.shot-bar span { margin-left: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--ink-mute); }
.shot-hero { width: min(100%, 1040px); margin-left: auto; }

/* Handwritten margin notes, as if marked up by hand */
.note { position: absolute; font-family: var(--hand); font-size: 20px; line-height: 1.15; color: var(--accent-deep); transform: rotate(-4deg); pointer-events: none; }
.note svg { position: absolute; width: 80px; height: 60px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note-hero { top: -78px; right: 14%; }
.note-hero svg { left: -88px; top: 10px; }
.note-left { left: -150px; bottom: 56px; }
.note-left svg { left: 46px; top: -58px; }

/* Courts strip */
.courts { border-block: 1px solid var(--line); background: var(--ivory); padding: 18px 0; }
.courts-inner { display: flex; gap: 28px; align-items: baseline; }
.courts-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.courts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 4px; font-family: var(--serif); font-size: 17px; color: var(--ink-2); }
.courts li:not(:last-child)::after { content: "·"; margin: 0 12px; color: var(--accent); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 130px 0; }
.section-ivory { background: var(--ivory); }

/* Problem */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-card {
  position: relative; padding: 34px 30px 32px; border-radius: 0 var(--radius) var(--radius) var(--radius);
  background: #fff; border: 1px solid var(--line); margin-top: 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.problem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.problem-card .num { font-family: var(--italic); font-style: italic; font-size: 72px; line-height: 1; color: var(--ivory-2); position: absolute; right: 24px; top: 18px; }
.problem-card .icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; color: var(--ink); }
.problem-card .icon svg { width: 44px; height: 44px; }
.problem-card h3 { font-family: var(--serif); font-size: 24px; letter-spacing: 0; line-height: 1.2; margin: 0 0 10px; font-weight: 400; }
.problem-card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.problem-answer { margin-top: 56px; text-align: center; font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); letter-spacing: 0; line-height: 1.25; }
.problem-answer em { font-family: var(--italic); color: var(--accent-deep); }

.tag { color: var(--accent-light); }
.span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; }
.tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px 3px; border-radius: 3px; color: var(--ink-soft); background: transparent;
  border: 3px double currentColor; transform: rotate(-2deg);
  -webkit-mask-image: var(--grain); mask-image: var(--grain); /* worn ink */
}

/* Features: real screens beside plain text */
.feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; margin-top: 96px; }
.feature.flip { grid-template-columns: 1.4fr .6fr; gap: 56px; }
.feature.flip .feature-text { order: 2; }
.feature:not(.flip) .shot { max-width: 520px; justify-self: end; }
.feature-text .h3 { margin: 18px 0 14px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.feature-text p { margin: 0; color: var(--ink-soft); max-width: 32em; }
.also { display: grid; grid-template-columns: .8fr 2fr; gap: 48px; margin-top: 120px; padding-top: 40px; border-top: 4px double var(--line); }
.also dl { margin: 0; }
.also dl > div { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.also dl > div:first-child { padding-top: 0; }
.also dt { font-weight: 600; display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.also dd { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Vocabulary */
.words { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.word {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.word .old { font-size: 15px; color: var(--ink-mute); position: relative; align-self: flex-start; }
.word .old::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease) calc(var(--i, 0) * 120ms + 300ms); }
.word .new { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: 0; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease) calc(var(--i, 0) * 120ms + 700ms), transform .6s var(--ease) calc(var(--i, 0) * 120ms + 700ms); }
.word .new small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--accent-deep); }
.word .why { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.words.in .old::after { transform: scaleX(1); }
.words.in .new { opacity: 1; transform: none; }

/* Day timeline */
.day { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.day-sticky { position: sticky; top: 130px; }
.timeline { position: relative; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline .progress { position: absolute; left: 11px; top: 8px; width: 2px; height: 0; background: linear-gradient(var(--accent), var(--accent-deep)); transition: height .15s linear; }
.moment { position: relative; padding-bottom: 46px; }
.moment:last-child { padding-bottom: 0; }
.moment::before { content: ""; position: absolute; left: -41px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); transition: border-color .4s, background .4s, box-shadow .4s; }
.moment.lit::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(47, 78, 224, .2); }
.moment time { font-family: var(--mono); font-size: 11px; color: var(--accent-deep); font-weight: 600; letter-spacing: .04em; }
.moment h3 { font-family: var(--serif); font-size: 26px; letter-spacing: 0; margin: 6px 0 8px; font-weight: 400; line-height: 1.2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.moment p { margin: 0; color: var(--ink-soft); }

/* Promise */
.promise {
  background: var(--ink); color: var(--ivory); overflow: hidden;
}
.promise .eyebrow { color: var(--accent-light); }
.promise .lead { color: #a3adc2; }
.promise-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: center; }
.seal { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; }
.seal svg { width: 100%; height: 100%; }
.seal .ring { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.promises { list-style: none; margin: 40px 0 0; padding: 0; }
.promises li { display: grid; grid-template-columns: 52px 1fr; gap: 6px 16px; padding: 22px 0; border-top: 1px solid rgba(226, 232, 240, .12); }
.promises li:last-child { border-bottom: 1px solid rgba(226, 232, 240, .12); }
.promises .n { font-family: var(--italic); font-style: italic; font-size: 30px; color: var(--accent-light); line-height: 1; }
.promises b { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: 0; display: block; margin-bottom: 4px; color: var(--ivory); }
.promises p { margin: 0; color: #a3adc2; font-size: 15.5px; }
.promise-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }


/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: 0; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq .answer { overflow: hidden; color: var(--ink-soft); padding: 0 48px 26px 0; }
.faq .answer p { margin: 0 0 10px; }

/* CTA */
.cta-box {
  position: relative; border-radius: 8px; padding: 90px 56px; text-align: center; overflow: hidden;
  background: var(--ink); color: var(--ivory);
}
.cta-box .h2 { max-width: 16em; margin: 18px auto; }
.cta-box .lead { color: #a3adc2; margin: 0 auto 36px; }
.cta-box .eyebrow { color: var(--accent-light); }
.cta-box .hero-cta { justify-content: center; }

/* Footer */
.footer { padding: 90px 0 40px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer p { color: var(--ink-soft); font-size: 15px; max-width: 26em; }
.footer h4 { margin: 0 0 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: 15px; }
.footer li a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.footer li a:hover { color: var(--ink); }
.footer-bottom { margin-top: 70px; padding-top: 26px; border-top: 4px double var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-mute); }
.footer-word { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 13vw, 200px); letter-spacing: 0; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--ivory-2); margin-top: 60px; user-select: none; text-align: center; }

/* ---------- Legal pages ---------- */
.doc-hero { padding: 150px 0 60px; background: var(--ivory); border-bottom: 4px double var(--line); position: relative; overflow: hidden; }
.doc-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(30, 58, 138, .05) 39px 40px); mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.doc-hero .container { position: relative; }
.doc-hero h1 { margin: 16px 0 14px; }
.doc-meta { color: var(--ink-mute); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.doc-single { padding: 64px 0 120px; }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 72px; padding: 64px 0 120px; align-items: start; }
.toc { position: sticky; top: 110px; font-size: 14px; }
.toc summary { display: none; }
.toc h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-soft); transition: color .2s, border-color .2s; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.prose { max-width: 720px; }
.prose h2 { font-family: var(--serif); font-size: 30px; letter-spacing: 0; line-height: 1.2; margin: 56px 0 16px; scroll-margin-top: 110px; font-weight: 400; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent-deep); }
.prose a {
  color: var(--navy); text-decoration: none; border-bottom: 1px solid currentColor;
  background: linear-gradient(#dce3ff, #dce3ff) no-repeat 0 100% / 0 45%; transition: background-size .35s var(--ease);
}
.prose a:hover { background-size: 100% 45%; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); background: var(--ivory); }
.summary-card { background: #fff; border: 4px double var(--line); border-left: 4px solid var(--accent); border-radius: 2px; padding: 24px 28px; margin-bottom: 48px; }
.summary-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 22px; }
.summary-card ul { margin: 0; }
.callout { background: var(--ivory); border-radius: var(--radius-sm); padding: 18px 22px; margin: 20px 0; font-size: 16px; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 18px 54px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 600; font-size: 15px; }

/* ---------- Signature details: court paperwork ---------- */
html { scrollbar-color: var(--accent) var(--ivory); scrollbar-width: thin; }

/* Printer's crop marks outside the screenshots */
.shot::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none; --c: #c4cde0;
  background:
    linear-gradient(var(--c), var(--c)) left top / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 12px no-repeat;
}
.shot::before { inset: -14px; }

/* File-folder tab on the problem cards */
.problem-card::before {
  content: attr(data-tab); position: absolute; left: -1px; top: -28px; height: 28px; padding: 0 18px 0 16px;
  background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 16px 0 0;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; line-height: 28px; color: var(--ink-mute);
}

/* Red tape (lal fita) and a wax seal on the closing box */
.cta-box::after {
  content: ""; position: absolute; top: 44px; right: -70px; width: 300px; height: 22px; transform: rotate(38deg);
  background: repeating-linear-gradient(90deg, #b3261e 0 6px, #a11f18 6px 7px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.cta-box::before {
  content: "§"; position: absolute; z-index: 1; top: 34px; right: 46px; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--italic); font-size: 30px; color: rgba(255, 236, 230, .9);
  background: radial-gradient(circle at 35% 30%, #d4473d, #8f1a14 70%);
  box-shadow: 0 0 0 4px rgba(143, 26, 20, .55), 0 6px 14px rgba(0, 0, 0, .4);
}

/* Two-tone icons: ink line, accent-soft fill, red tape where it belongs */
.du { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.du .f { fill: var(--accent-soft); stroke: none; }
.du .a { stroke: var(--accent); }
.du .t { stroke: #b3261e; stroke-width: 2; }
.promise .du .f { fill: rgba(142, 162, 255, .18); }
.hero h1 .underline path.u2 { stroke-width: 2.5; opacity: .45; animation-delay: 1.25s; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .shot-hero { width: 100%; }
  .note { display: none; }
  .feature, .feature.flip, .also { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-text { order: 0; }
  .feature:not(.flip) .shot { justify-self: start; }
  .day, .promise-grid { grid-template-columns: 1fr; gap: 48px; }
  .day-sticky { position: static; }
  .seal { width: 280px; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open { background: var(--paper); }
  .nav-links li { border-bottom: 1px solid var(--ivory-2); }
  .nav-links li:last-child { border: 0; padding-top: 16px; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; font-size: 17px; }
  .nav-links .btn { width: 100%; }
  .nav-toggle { display: block; }
  .problem-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .toc { position: static; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 18px; }
  .toc summary { display: block; cursor: pointer; padding: 12px 0; font-weight: 600; }
  .toc h4 { display: none; }
  .toc ol { padding-bottom: 12px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 88px 0; }
  .hero { padding: 120px 0 72px; }

  .also dl > div { grid-template-columns: 1fr; gap: 6px; }
  .courts-inner { flex-direction: column; gap: 8px; }
  .feature { margin-top: 64px; }
  .cta-box { padding: 96px 22px 64px; }
  .cta-box::before { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 24px; }
  .cta-box::after { top: 30px; right: -90px; }
  .faq summary { font-size: 19px; }
  .btn { width: 100%; }
  .nav .btn, .promise-links .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
