/* MailSigned. Two grounds: ink for the evidence, paper for the explanation. System type only (no web fonts).
   Everything a person reads is full ink on paper or full paper on ink. Hierarchy by size and weight, never by gray. */
:root {
  --ink: #0b0d10;
  --paper: #f3eee4;
  --red: #c8102e;
  --rule: #0b0d10;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 19px; line-height: 1.5; }
body.paper { background: var(--paper); color: var(--ink); }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; font-weight: 700; }
.ink .kicker { color: #ff5a6e; }

/* header: brand + one CTA, one line on phones */
.bar { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--mono); font-weight: 700; font-size: clamp(17px, 2.4vw, 20px); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; }
.brand::before { content: ""; display: inline-block; width: 11px; height: 11px; background: var(--red); border-radius: 50%; margin-right: 9px; vertical-align: 1px; }
.cta { font-family: var(--mono); font-weight: 700; font-size: clamp(13px, 1.9vw, 15px); text-decoration: none; padding: 11px 16px; border: 2px solid currentColor; white-space: nowrap; }
.ink .cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.paper .cta, body.paper .cta { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* hero */
.ink { background: var(--ink); color: var(--paper); }
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(40px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 74px); }
.hero h1 em { font-style: normal; color: #ff5a6e; }
.hero .lede { font-size: clamp(19px, 2.2vw, 24px); margin: 22px 0 28px; max-width: 30ch; }
.hero .actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero .actions .cta { font-size: 16px; padding: 14px 22px; }
.hero .actions .quiet { font-family: var(--mono); font-size: 14px; }

/* the forgery: an invoice email, as a paper object, with a stamp across it */
.forgery { margin: 0; position: relative; transform: rotate(-1.2deg); animation: settle 900ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes settle { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } to { opacity: 1; transform: translateY(0) rotate(-1.2deg); } }
.mail { background: #fffdf8; color: #0b0d10; padding: 22px 24px 26px; box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 2px 0 rgba(0,0,0,.4); font-size: 16px; line-height: 1.45; }
.mail .row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px solid #ddd6c8; font-family: var(--mono); font-size: 13.5px; }
.mail .row .k { font-weight: 700; }
.mail .row .from { color: var(--red); font-weight: 700; }
.mail .body { padding: 18px 0 6px; }
.mail .body p { margin: 0 0 10px; }
.mail .att { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; border: 1.5px solid #0b0d10; padding: 7px 10px; margin: 6px 0 16px; }
.mail .att svg { width: 14px; height: 14px; }
.mail .pay { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 14px; background: #0b0d10; color: #fffdf8; padding: 10px 16px; }
.stamp { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); font-family: var(--mono); font-weight: 700; font-size: clamp(22px, 3.4vw, 40px); letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); border: 5px solid var(--red); padding: 8px 18px; white-space: nowrap; mix-blend-mode: multiply; opacity: 0; animation: stamp 500ms cubic-bezier(.3,1.6,.4,1) 700ms both; }
@keyframes stamp { from { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(2.2); } to { opacity: .92; transform: translate(-50%, -50%) rotate(-14deg) scale(1); } }
.forgery figcaption { margin: 16px 4px 0; font-family: var(--mono); font-size: 14px; line-height: 1.45; color: var(--paper); transform: rotate(1.2deg); }
@media (prefers-reduced-motion: reduce) { .forgery, .stamp { animation: none; opacity: 1; } .stamp { opacity: .92; } }

/* paper sections */
.paper { background: var(--paper); color: var(--ink); }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(44px, 7vw, 96px) var(--gutter); border-top: 3px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 20ch; margin-bottom: 28px; }
.section .lead { font-size: clamp(19px, 2vw, 22px); max-width: 56ch; }
.two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 64px); align-items: start; }

/* index rows, not tiles */
.index { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.index li { counter-increment: n; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 20px 0; border-top: 1.5px solid var(--rule); }
.index li:first-child { border-top: 0; }
.index li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-weight: 700; font-size: 26px; line-height: 1; color: var(--red); }
.index li strong { display: block; font-size: 22px; margin-bottom: 4px; }
.index li p { margin: 0; }
.index .who { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-top: 8px; display: block; }

/* price */
.price { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.price .num { font-family: var(--mono); font-weight: 700; font-size: clamp(72px, 12vw, 150px); line-height: .9; letter-spacing: -0.04em; }
.price .num small { display: block; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 12px; }
.price ul { margin: 0 0 22px; padding-left: 22px; }
.price li { margin: 6px 0; }

/* check us */
.proof { font-family: var(--mono); font-size: 15px; border: 2px solid var(--rule); padding: 18px 20px; display: grid; gap: 8px; }
.proof b { color: var(--red); }

/* faq */
.faq details { border-top: 1.5px solid var(--rule); padding: 16px 0; }
.faq details:last-child { border-bottom: 1.5px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 21px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; max-width: 64ch; }

/* close */
.close { text-align: left; }
.close h2 { max-width: 24ch; }
.close .actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.close .actions .cta { font-size: 16px; padding: 14px 22px; }
.foot { font-family: var(--mono); font-size: 13px; border-top: 1px solid rgba(243,238,228,.25); flex-wrap: wrap; }
.foot a { text-decoration: none; }
.narrow { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
.narrow h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 20px; }
.narrow h1 small { display: block; font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; margin-top: 8px; }
.narrow h2 { font-size: clamp(22px, 3vw, 28px); margin: 36px 0 12px; }
.narrow .lead { font-size: clamp(19px, 2vw, 22px); }
.narrow .actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.narrow .actions .cta { font-size: 16px; padding: 14px 22px; }
.actions .quiet, .quiet a { font-family: var(--mono); font-size: 14px; }
.plain { margin: 0; padding-left: 22px; }
.plain li { margin: 8px 0; }

/* the free check */
.check-form { display: grid; gap: 10px; margin: 24px 0 18px; }
.check-form label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.check-form input { font: inherit; font-family: var(--mono); font-size: 18px; padding: 14px 16px; border: 2px solid var(--ink); background: #fffdf8; color: var(--ink); border-radius: 0; width: 100%; }
.check-form input:focus { outline: 3px solid var(--red); outline-offset: 2px; }
.check-form .cta { justify-self: start; font-size: 16px; padding: 14px 22px; border: 0; cursor: pointer; }
.result { list-style: none; margin: 24px 0; padding: 0; }
.result li { padding: 16px 0; border-top: 1.5px solid var(--rule); }
.result li:last-child { border-bottom: 1.5px solid var(--rule); }
.result strong { display: block; font-size: 20px; margin-bottom: 4px; }
.result p { margin: 0; }

/* expandable technical evidence */
details.more { margin-top: 16px; }
details.more summary { cursor: pointer; font-family: var(--mono); font-size: 14px; font-weight: 700; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "– "; }
details.more > *:not(summary) { margin-top: 14px; }
.paperfoot { border-top: 1px solid rgba(11,13,16,.25); color: var(--ink); }
.paperfoot a { text-decoration: underline; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .forgery { margin: 12px 8px 0; }
  .two, .price { grid-template-columns: 1fr; }
  .price .num { font-size: clamp(72px, 22vw, 120px); }
}
@media (max-width: 420px) {
  body { font-size: 17.5px; }
  .mail { padding: 16px; font-size: 15px; }
  .mail .row { grid-template-columns: 58px 1fr; }
  .index li { grid-template-columns: 44px 1fr; }
}
