/* TradePact: the pact is a share-certificate style sheet; one oxblood seal marks a triggered clause.
   Libre Caslon Text for the pact and headings, Public Sans (the US government's typeface) for the UI. */
@font-face { font-family: "Libre Caslon Text"; src: url(fonts/libre-caslon-text-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url(fonts/libre-caslon-text-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url(fonts/libre-caslon-text-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-wght-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --paper: #eef0f3; --sheet: #fbfbfc; --wash: #e2e6ed; --rule: #c9ced8; --rule-2: #aeb5c3;
  --ink: #14213d; --ink-2: #33405e; --muted: #556079;
  --seal: #7a1f2b; --seal-2: #962838; --kept: #2f6b4f; --kept-wash: #e3eee8; --amber: #8f5c12; --amber-line: #b7791f; --amber-wash: #f6ecd9;
  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px; --wrap: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--seal); }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(30px, 3.6vw, 41px); }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; border-radius: var(--r); }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #22325a; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--sheet); }
.btn.seal { background: var(--seal); border-color: var(--seal); }
.btn.seal:hover { background: var(--seal-2); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(238, 240, 243, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--serif); text-decoration: none; color: var(--ink); }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--seal); }
.nav .btn { color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule-2); border-radius: var(--r); min-height: 40px; padding: 6px 12px; font: 600 15px var(--sans); color: var(--ink); }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--sheet); border-bottom: 1px solid var(--rule); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--wash); font-size: 17px; }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.015em; margin-bottom: 22px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.assure { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.assure li { padding-left: 22px; position: relative; }
.assure li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--seal); }

/* the pact sheet (share-certificate frame) */
.pact { position: relative; }
.sheet { position: relative; background: var(--sheet); padding: 30px 32px 26px; border: 11px solid transparent; border-radius: 3px;
  background: linear-gradient(var(--sheet), var(--sheet)) padding-box,
    repeating-radial-gradient(circle at 0 0, #c4cad6 0 1px, transparent 1.5px 5px) border-box,
    repeating-radial-gradient(circle at 100% 100%, #c4cad6 0 1px, transparent 1.5px 5px) border-box, var(--sheet) border-box;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(20, 33, 61, .45); }
.sheet::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); pointer-events: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 14px; }
.sheet-head h2 { font-size: 25px; margin: 0; }
.sheet-head .no { font: italic 15px var(--serif); color: var(--muted); white-space: nowrap; }
.clauses { list-style: none; margin: 0; padding: 0; counter-reset: c; font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.clauses li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr; padding: 9px 128px 9px 0; border-bottom: 1px dotted var(--rule); position: relative; }
.clauses li:last-child { padding-right: 0; }
.clauses li::before { content: "§" counter(c); color: var(--muted); font-size: 15px; padding-top: 2px; }
.clauses .val { color: var(--muted); font: 500 13px var(--sans); display: block; margin-top: 2px; }
.clauses .hit .val { color: var(--kept); }
.plan-line { margin: 14px 0 0; padding: 12px 14px; background: var(--paper); border-left: 3px solid var(--ink); font: italic 17px/1.5 var(--serif); }
.plan-line b { font: 600 13px var(--sans); font-style: normal; display: block; color: var(--muted); margin-bottom: 2px; }
.signed { display: flex; justify-content: space-between; align-items: end; margin-top: 18px; font-size: 13px; color: var(--muted); }
.signed .sig { font: italic 22px var(--serif); color: var(--ink); border-bottom: 1px solid var(--ink-2); padding: 0 24px 2px 2px; }
.seal-stamp { position: absolute; right: 22px; top: 70px; width: 124px; height: 132px; color: var(--seal); transform: rotate(-11deg); mix-blend-mode: multiply; opacity: .9; pointer-events: none; }
.alert-card { position: relative; width: min(92%, 380px); margin: -26px 0 0 auto; z-index: 2; background: #fff; border: 1px solid var(--rule); border-radius: 12px 12px 12px 4px; padding: 14px 16px 12px; box-shadow: 0 14px 30px -18px rgba(20, 33, 61, .5); font-size: 15px; }
.alert-card .from { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.alert-card .from svg { width: 22px; height: 22px; }
.alert-card .from span { margin-left: auto; font-weight: 400; color: var(--muted); }
.alert-card p { margin: 0 0 6px; }
.alert-card .q { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.alert-card .q span { border: 1px solid var(--rule-2); border-radius: 6px; padding: 7px; text-align: center; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.sample-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .seal-stamp { animation: press .5s cubic-bezier(.2, .9, .3, 1.2) .7s both; }
  .alert-card { animation: arrive .45s ease-out 1.15s both; }
}
@keyframes press { from { opacity: 0; transform: rotate(-11deg) scale(1.45); } to { opacity: .9; transform: rotate(-11deg) scale(1); } }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
}
@media (max-width: 520px) {
  .sheet { padding: 22px 16px 20px; border-width: 8px; }
  .seal-stamp { width: 92px; height: 92px; right: 8px; top: 58px; }
  .clauses li { grid-template-columns: 28px 1fr; padding-right: 92px; }
  .sheet-head h2 { font-size: 21px; }
}

/* sections */
section { padding: 72px 0; }
.band { background: var(--sheet); border-block: 1px solid var(--rule); }
.intro { max-width: 46em; margin-bottom: 36px; }
.intro p { color: var(--ink-2); font-size: 18px; }

/* how it works: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); font: 400 34px/1 var(--serif); color: var(--seal); display: block; margin-bottom: 10px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 16px; margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* before / after */
.ba { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; gap: 18px; align-items: stretch; }
.ba > div { border-radius: var(--r); padding: 20px; }
.ba .arrow { align-self: center; color: var(--muted); }
.ba .arrow svg { width: 28px; height: 28px; display: block; }
.ba h3 { font-size: 18px; margin-bottom: 10px; font-family: var(--sans); font-weight: 700; }
.note { background: #fff8d9; border: 1px solid #e6d9a3; font: italic 17px/1.6 var(--serif); color: #3b3520; }
.note h3 { color: #6a5e2b; font-style: normal; }
.blocks-view { background: #fff; border: 1px solid var(--rule); }
.blk { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); font-size: 15px; margin-bottom: 8px; }
.blk b { font-weight: 600; }
.blk em { font-style: normal; background: #fff; border: 1px solid var(--rule-2); border-radius: 4px; padding: 0 6px; }
.logic { font: 700 12px var(--sans); color: var(--seal); margin: 2px 0 8px 4px; letter-spacing: .02em; }
.tg { background: #fff; border: 1px solid var(--rule); font-size: 15px; }
.tg p { margin: 0 0 8px; }
.tg .plan { border-left: 3px solid var(--ink); padding-left: 10px; font-family: var(--serif); font-style: italic; }
@media (max-width: 960px) { .ba { grid-template-columns: 1fr; } .ba .arrow { transform: rotate(90deg); justify-self: center; } }

/* sample pacts */
.sample { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.pact-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); }
.pact-list li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--wash); }
.pact-list li:last-child { border-bottom: 0; }
.pact-list h3 { font-size: 18px; margin: 0 0 3px; }
.pact-list p { margin: 0; font-size: 15px; color: var(--ink-2); }
.pact-list .plan { font: italic 15px/1.5 var(--serif); color: var(--muted); margin-top: 4px; }
.state { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 13px; font-size: 13px; font-weight: 600; white-space: nowrap; align-self: start; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.watch { color: var(--kept); background: var(--kept-wash); }
.state.fired { color: var(--seal); background: #f4e3e5; }
.state.wait { color: var(--amber); background: var(--amber-wash); }
.state.off { color: var(--muted); background: var(--wash); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--ink); border-radius: var(--r); padding: 12px 14px; font-size: 15px; }
.feed li.f-rule { border-left-color: var(--seal); }
.feed li.f-filing { border-left-color: var(--ink); }
.feed li.f-macro { border-left-color: var(--amber-line); }
.feed b { display: block; margin-bottom: 2px; }
.feed .when { font-size: 13px; color: var(--muted); }
.caption { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (max-width: 880px) { .sample { grid-template-columns: 1fr; } .pact-list li { grid-template-columns: 1fr; gap: 8px; } }

/* radar + economy */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two h3 { font-size: 24px; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--wash); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--kept); border-bottom: 2px solid var(--kept); transform: rotate(-45deg); }
@media (max-width: 880px) { .two { grid-template-columns: 1fr; gap: 36px; } }

/* condition library */
.lib { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.lib > div { padding: 18px; border-right: 1px solid var(--wash); }
.lib > div:last-child { border-right: 0; }
.lib h3 { font-size: 19px; margin-bottom: 10px; }
.lib ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.lib li { padding: 5px 0; }
.pro-tag { display: inline-block; font: 700 11px/1 var(--sans); color: var(--seal); border: 1px solid currentColor; border-radius: 3px; padding: 3px 4px 2px; margin-left: 4px; vertical-align: 2px; }
@media (max-width: 960px) { .lib { grid-template-columns: 1fr 1fr; } .lib > div { border-bottom: 1px solid var(--wash); } }
@media (max-width: 520px) { .lib { grid-template-columns: 1fr; } }

/* key guide */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: -1px; position: relative; }
.tabs button { font: 600 15px var(--sans); color: var(--ink-2); background: transparent; border: 1px solid transparent; border-bottom: 0; border-radius: var(--r) var(--r) 0 0; padding: 10px 16px; cursor: pointer; min-height: 44px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); border-color: var(--rule); }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 0 var(--r) var(--r) var(--r); padding: 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.panel[hidden] { display: none; }
.panel ol { margin: 0; padding-left: 22px; }
.panel ol li { margin-bottom: 10px; }
.panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; }
.combo { margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--rule-2); border-radius: var(--r); font-size: 16px; }
@media (max-width: 760px) { .panel { grid-template-columns: 1fr; } }

/* pricing */
.prices { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; max-width: 920px; }
.prices > div { padding: 28px; }
.prices > div + div { border-left: 1px solid var(--rule); background: var(--sheet); }
.prices h3 { font-size: 28px; margin-bottom: 4px; }
.price { font: 400 44px/1 var(--serif); margin: 10px 0 4px; }
.price small { font: 400 16px var(--sans); color: var(--muted); }
.prices ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.prices li { padding: 8px 0; border-bottom: 1px solid var(--wash); font-size: 16px; }
.prices li b { font-weight: 600; }
.plan-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-btns .btn { flex: 1 1 180px; }
.plan-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } .prices > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

/* FAQ */
.faq h2, .faq details { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 0; font: 400 20px/1.35 var(--serif); list-style: none; display: flex; gap: 12px; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); }

/* footer */
.foot { background: var(--ink); color: #d7dbe5; padding: 48px 0 40px; font-size: 15px; }
.foot a { color: #fff; }
.foot .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.foot .logo { color: #fff; margin-bottom: 12px; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid #2f3d5f; padding-top: 18px; font-size: 13px; color: #aab2c4; max-width: 70em; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

/* legal pages */
.doc { max-width: 44em; padding: 48px 0 72px; }
.doc h1 { font-size: 40px; }
.doc h2 { font-size: 24px; margin-top: 1.6em; }
.doc li { margin-bottom: 8px; }
.doc .updated { color: var(--muted); }
