/* Notary ND — scoped custom-property tokens (palette P8 Corporate Steel & Electric Indigo) */
:root {
  --night: #0F172A;
  --steel: #334155;
  --electric: #6366F1;
  --mist: #F8FAFC;
  --paper: #FFFFFF;
  --hairline: rgba(15, 23, 42, 0.12);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Lato", "Segoe UI", Arial, sans-serif;
  --card-pad: clamp(1.1rem, 3vw, 2rem);
  --page-max: 62rem;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--mist); color: var(--night); font: 400 1.05rem/1.7 var(--font-body); }
a { color: var(--electric); text-underline-offset: 0.15em; }
h1, h2, h3 { font-family: var(--font-head); color: var(--night); line-height: 1.2; }
img { max-width: 100%; }

.wrapper { max-width: var(--page-max); margin: 0 auto; padding: 0 16px; }

/* H4 floating pill header */
.pill-header { position: sticky; top: 0.75rem; z-index: 5; padding-top: 0.75rem; }
.pill-shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--pill-radius, 999px); box-shadow: var(--shadow); padding: 0.55rem 0.6rem 0.55rem 1.1rem; }
.brand-mark { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 1.1rem/1 var(--font-head); color: var(--night); text-decoration: none; }
.brand-mark strong { color: var(--electric); }
.route-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font: 600 0.92rem/1.2 var(--font-head); }
.route-links a { color: var(--steel); text-decoration: none; }
.route-links a:hover { color: var(--electric); }
.order-trigger { display: inline-block; background: var(--electric); color: var(--paper); border: 0; border-radius: 999px; padding: 0.6rem 1.15rem; font: 700 0.92rem/1.2 var(--font-head); text-decoration: none; cursor: pointer; }
.order-trigger:hover { background: var(--night); color: var(--paper); }

.trail-strip ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 1.4rem 0 0.6rem; font-size: 0.86rem; color: var(--steel); }
.trail-strip li + li::before { content: "/"; margin-right: 0.35rem; color: var(--hairline); }
.trail-strip a { color: var(--steel); }

/* D4 cards */
main { display: grid; gap: 1rem; padding-bottom: 2rem; }
.section-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: 1rem; padding: var(--card-pad); box-shadow: var(--shadow); }
.section-card > h2:first-child { margin-top: 0; }
.section-card h2 { font-size: 1.32rem; }
.section-card table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.section-card th, .section-card td { text-align: left; vertical-align: top; padding: 0.55rem 0.65rem; border-bottom: 1px solid var(--hairline); }
.section-card thead th { background: var(--mist); font-family: var(--font-head); font-size: 0.88rem; }
.section-card em { color: var(--steel); }
.hero-card { background: var(--night); color: var(--mist); border: 0; margin-top: 1rem; }
.hero-card h1 { color: var(--paper); font-size: clamp(1.8rem, 4.6vw, 2.7rem); margin: 0.2rem 0 0.8rem; letter-spacing: -0.02em; }
.hero-card a:not(.order-trigger) { color: var(--paper); }
.hero-eyebrow { margin: 0; font: 700 0.78rem/1.2 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--electric); }
.hero-lede { font-size: 1.12rem; max-width: 46rem; margin: 0 0 1rem; }
.checked-line { font-size: 0.85rem; opacity: 0.85; }
.hero-cta { margin-top: 0.3rem; }
.cta-card { border-left: 6px solid var(--electric); }
.cta-title { margin-top: 0; }
.faq-fold { border-bottom: 1px solid var(--hairline); padding: 0.65rem 0; }
.faq-fold summary { cursor: pointer; font: 700 1rem/1.4 var(--font-head); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 0.75rem; }
.service-tile { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.95rem; border-radius: 0.8rem; border: 1px solid var(--hairline); background: var(--mist); color: var(--night); text-decoration: none; }
.service-tile:hover { border-color: var(--electric); }
.service-tile-name { font: 700 1rem/1.3 var(--font-head); color: var(--electric); }
.service-tile-note { font-size: 0.9rem; color: var(--steel); }
.place-list { columns: 2 15rem; padding-left: 1.1rem; }
.fee-schedule, .order-matrix { --fee-accent: var(--electric); border-top: 3px solid var(--fee-accent); padding-top: 0.25rem; }

/* intake form */
.intake-panel { display: grid; gap: 0.9rem; }
.phase-pill { justify-self: start; margin: 0; padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--mist); border: 1px solid var(--electric); color: var(--steel); font: 700 0.8rem/1.3 var(--font-head); }
.intake-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 0.8rem 1rem; }
.intake-field { display: flex; flex-direction: column; gap: 0.3rem; font: 700 0.88rem/1.3 var(--font-head); color: var(--steel); }
.intake-field input, .intake-field select, .intake-field textarea { font: 400 1rem/1.4 var(--font-body); color: var(--night); background: var(--mist); border: 1px solid var(--hairline); border-radius: 0.6rem; padding: 0.6rem 0.7rem; width: 100%; }
.intake-field :focus { outline: 2px solid var(--electric); outline-offset: 1px; }
.upload-tray { border: 1px solid var(--hairline); border-radius: 0.8rem; padding: 0.9rem; background: var(--mist); }
.upload-tray-title { margin: 0 0 0.5rem; font: 700 0.9rem/1.3 var(--font-head); color: var(--steel); }
.file-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0.5rem 0 0; }
.file-chips li { background: var(--paper); border: 1px solid var(--electric); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.85rem; }
.trap-field { position: absolute; left: -9999px; }
.consent-line { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.92rem; }
.intake-status:not(:empty) { padding: 0.7rem 0.9rem; border-radius: 0.6rem; background: var(--mist); border-left: 4px solid var(--electric); }

/* F4 county directory footer */
.county-directory { margin-top: 1rem; padding-bottom: 1.2rem; }
.directory-grid { background: var(--night); color: var(--mist); border-radius: 1rem 1rem 0 0; padding: 1.4rem var(--card-pad); }
.directory-head { margin: 0 0 0.8rem; font: 700 0.82rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; color: var(--electric); }
.directory-grid ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.8rem; }
.directory-grid li { display: flex; flex-direction: column; border-left: 2px solid var(--steel); padding-left: 0.6rem; }
.directory-grid a { color: var(--paper); font: 700 0.98rem/1.3 var(--font-head); text-decoration: none; }
.directory-grid span { font-size: 0.85rem; opacity: 0.8; }
.notice-band { background: var(--steel); color: var(--mist); padding: 1rem var(--card-pad); font-size: 0.92rem; }
.notice-band p { margin: 0; }
.copyright-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; background: var(--paper); border: 1px solid var(--hairline); border-top: 0; border-radius: 0 0 1rem 1rem; padding: 0.8rem var(--card-pad); font-size: 0.86rem; color: var(--steel); }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; }
.legal-links a { color: var(--steel); }

@media (max-width: 40rem) {
  .pill-shell { border-radius: 1.2rem; }
  .pill-header { position: static; }
}
