/* ===========================================================
   Precision Process Servers & Notary — shared design system
   "Executive courthouse paper": light, high-trust, restrained
   =========================================================== */

:root {
  --paper: #f5f6f4;
  --paper-2: #eef0ec;
  --card: #ffffff;
  --ink: #0f1b33;
  --ink-soft: #1d2a44;
  --navy: #14213d;
  --red: #9e1b1b;
  --red-bright: #b91c1c;
  --gold: #b08a3e;
  --gold-soft: #cbb27a;
  --muted: #586173;
  --line: rgba(15, 27, 51, 0.12);
  --line-strong: rgba(15, 27, 51, 0.22);
  --ok: #1d6b3f;
  --max: 1140px;
  --radius: 4px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: "Libre Caslon Text", Georgia, serif; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
a { color: inherit; }
img, svg { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }

.flag {
  display: inline-block; width: 1.45em; height: 0.97em; vertical-align: -0.13em;
  border: 0.5px solid rgba(15,27,51,0.25); border-radius: 1.5px;
  box-shadow: 0 1px 2px rgba(15,27,51,0.18);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 14px;
  padding: 12px 22px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: all 0.25s var(--ease);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(158,27,27,0.22); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,27,51,0.2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); background: #fff; transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Header ---------- */
header.site {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(245, 246, 244, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
header.site.scrolled { border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(15,27,51,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .name { font-family: "Libre Caslon Text", serif; font-weight: 700; font-size: 1.12rem; letter-spacing: 0.01em; color: var(--ink); line-height: 1.05; }
.brand .name small { display: block; font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.links { display: flex; align-items: center; gap: 26px; }
.links a.nl { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color 0.2s var(--ease); }
.links a.nl:hover { color: var(--red); }
.links a.nl.active { color: var(--red); }
.tel { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: 1px; white-space: nowrap; }
.tel:hover { color: var(--red); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 9px 11px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: 0.3s; }
.mobile-tray { display: none; flex-direction: column; gap: 4px; padding: 12px 28px 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
.mobile-tray a { text-decoration: none; color: var(--ink); padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-tray .btn { margin-top: 12px; }
.mobile-tray.open { display: flex; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); margin: 20px 0 0; color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--red); }
.hero .lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 31em; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-trust span { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.seal-frame { display: flex; justify-content: center; }
.seal { width: 100%; max-width: 300px; aspect-ratio: 1; filter: drop-shadow(0 12px 26px rgba(15,27,51,0.12)); }

/* ---------- Section scaffolding ---------- */
section { padding: 80px 0; }
.sec-head { max-width: 660px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 14px; color: var(--ink); }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Service tier cards ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 34px 30px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: all 0.3s var(--ease); }
.tier-card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--red); transition: width 0.35s var(--ease); }
.tier-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15,27,51,0.1); border-color: var(--line-strong); }
.tier-card:hover::after { width: 100%; }
.tier-card.featured { border-color: var(--gold); }
.tier-card.featured::after { width: 100%; background: var(--gold); }
.tier-badge { position: absolute; top: 0; right: 22px; background: var(--navy); color: #fff; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 0 0 4px 4px; }
.tier-card h3 { font-size: 1.3rem; margin: 6px 0 10px; color: var(--ink); }
.tier-card .blurb { color: var(--muted); font-size: 0.96rem; margin-bottom: 20px; min-height: 44px; }
.tier-list { list-style: none; margin-bottom: 22px; border-top: 1px solid var(--line); }
.tier-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.tier-list .k { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.tier-list .v { color: var(--ink-soft); font-weight: 500; text-align: right; }
.tier-price { display: flex; align-items: baseline; gap: 7px; margin-top: auto; margin-bottom: 20px; }
.tier-price .amt { font-family: "Libre Caslon Text", serif; font-size: 2.4rem; font-weight: 700; color: var(--navy); }
.tier-price .unit { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--muted); }

/* ---------- Configurator ---------- */
.config-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.config-wrap { display: grid; grid-template-columns: 1.45fr 1fr; gap: 32px; align-items: start; margin-top: 40px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 36px 32px; box-shadow: 0 14px 34px rgba(15,27,51,0.05); }
.step-group { margin-bottom: 34px; }
.step-group:last-child { margin-bottom: 0; }
.step-label { display: block; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--red); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.step-label b { color: var(--ink); font-weight: 600; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.option-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; cursor: pointer; transition: all 0.2s var(--ease); display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.option-card::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: transparent; transition: background 0.2s var(--ease); }
.option-card:hover { border-color: var(--line-strong); background: #fff; }
.option-card.active { border-color: var(--navy); background: #fff; box-shadow: 0 6px 16px rgba(15,27,51,0.08); }
.option-card.active::before { background: var(--gold); }
.option-card .ot { font-size: 0.98rem; font-weight: 600; color: var(--ink); }
.option-card .od { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.option-card .op { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--navy); margin-top: 6px; font-weight: 500; align-self: flex-start; background: var(--paper-2); padding: 3px 8px; border-radius: 4px; }
.option-card.active .op { background: rgba(176,138,62,0.14); color: var(--red); }

/* Stepper + toggle */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.stepper button { width: 44px; height: 44px; border: none; background: var(--card); font-size: 20px; color: var(--navy); cursor: pointer; transition: background 0.2s var(--ease); }
.stepper button:hover { background: var(--paper-2); }
.stepper input { width: 56px; height: 44px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-family: "IBM Plex Mono", monospace; font-size: 15px; color: var(--ink); background: #fff; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stepper-row .lbl { font-size: 0.92rem; color: var(--ink-soft); }
.stepper-row .lbl small { display: block; color: var(--muted); font-size: 0.8rem; }

.toggle { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer; transition: all 0.2s var(--ease); }
.toggle.active { border-color: var(--navy); background: #fff; }
.toggle .box { width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 4px; flex: none; display: grid; place-items: center; transition: all 0.2s var(--ease); }
.toggle.active .box { background: var(--navy); border-color: var(--navy); }
.toggle.active .box::after { content: "✓"; color: #fff; font-size: 13px; }
.toggle .tt { font-size: 0.94rem; font-weight: 600; color: var(--ink); }
.toggle .tp { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--red); margin-left: auto; }

/* ---------- Summary ---------- */
.summary { position: sticky; top: 100px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 8px; padding: 34px 30px; box-shadow: 0 18px 44px rgba(15,27,51,0.09); }
.summary .stitle { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.summary .total { font-family: "Libre Caslon Text", serif; font-size: 3.6rem; font-weight: 700; color: var(--navy); line-height: 1; margin: 8px 0 2px; transition: opacity 0.15s var(--ease); }
.summary .sub { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.line-items { list-style: none; border-top: 1px solid var(--line); margin: 22px 0; padding-top: 6px; }
.line-items li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.line-items li:last-child { border-bottom: none; }
.line-items .li-k { color: var(--ink-soft); }
.line-items .li-k small { display: block; color: var(--muted); font-size: 0.78rem; }
.line-items .li-v { font-family: "IBM Plex Mono", monospace; color: var(--navy); white-space: nowrap; }

.summary form { margin-top: 4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font-family: "Inter", sans-serif; font-size: 15px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,33,61,0.1); background: #fff; }
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; }
.note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; line-height: 1.5; }
.note .lock { color: var(--ink-soft); }
.feedback { margin-top: 12px; font-size: 0.9rem; text-align: center; min-height: 18px; }
.feedback.err { color: var(--red); }
.feedback.ok { color: var(--ok); }

.success-card { background: var(--card); border: 1px solid var(--ok); border-radius: 8px; padding: 40px 32px; text-align: center; box-shadow: 0 18px 44px rgba(15,27,51,0.09); }
.success-card .ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(29,107,63,0.1); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; font-size: 26px; }
.success-card h3 { font-size: 1.5rem; color: var(--ink); margin-bottom: 10px; }
.success-card p { color: var(--muted); }

/* ---------- Trust strip ---------- */
.creds { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cred { background: var(--paper); padding: 28px 24px; }
.cred h4 { font-family: "Libre Caslon Text", serif; font-size: 1.16rem; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.cred p { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #c5cdda; padding: 66px 0 34px; }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-brand .name { font-family: "Libre Caslon Text", serif; font-size: 1.32rem; color: #fff; display: flex; align-items: center; gap: 10px; }
.foot-brand p { font-size: 0.92rem; margin-top: 10px; max-width: 30em; }
.foot-cols { display: flex; gap: 52px; flex-wrap: wrap; }
.foot-col h5 { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.foot-col a { display: block; text-decoration: none; color: #c5cdda; font-size: 0.94rem; padding: 5px 0; transition: color 0.2s var(--ease); }
.foot-col a:hover { color: #fff; }
.disclaimer { margin-top: 28px; font-size: 0.76rem; line-height: 1.7; color: rgba(197,205,218,0.6); text-align: justify; }
.disclaimer strong { color: rgba(255,255,255,0.8); }
.copy { margin-top: 20px; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: rgba(197,205,218,0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .seal-frame { order: -1; }
  .seal { max-width: 200px; }
  .tier-grid, .config-wrap, .creds-grid, .contact-grid { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .summary { position: static; margin-top: 28px; }
  .links { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  section { padding: 56px 0; }
  .hero { padding: 116px 0 50px; }
  .option-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr; }
  .summary .total { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
