/* ==========================================================================
   IP Of Counsel — Design System
   Premium, understated, editorial. Built for a skeptical, accomplished
   audience. No gradients, no neon, minimal motion.
   ========================================================================== */

:root {
  /* Palette */
  --ink: #1b2430;
  --ink-soft: #3a4453;
  --paper: #faf8f4;
  --paper-alt: #f1ede3;
  --paper-deep: #eae4d6;
  --line: #ddd5c4;
  --line-soft: #e8e2d4;
  --navy: #16283d;
  --navy-deep: #0e1c2c;
  --brass: #8a6d3b;
  --brass-soft: #b79a5f;
  --white: #ffffff;

  /* Type */
  --serif: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --max: 1120px;
  --max-narrow: 760px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.9em;
  display: block;
}

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

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--ink);
}
.btn-secondary:hover { border-color: var(--navy); background: rgba(22,40,61,0.04); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.wordmark .divider { color: var(--brass); font-weight: 400; }
.wordmark small {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  align-self: center;
}

.nav {
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 500;
  flex-wrap: nowrap;
}
.nav-links a { color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-color: var(--brass); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 20px;
  border-top: 1px solid var(--line-soft);
}
.mobile-panel a {
  padding: 12px 4px;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-panel .btn { margin-top: 12px; }

body.nav-open .mobile-panel { display: flex; }

@media (max-width: 1040px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Sections ---------- */

section { padding: 92px 0; }
@media (max-width: 700px) { section { padding: 62px 0; } }

.section-alt { background: var(--paper-alt); }
.section-deep { background: var(--paper-deep); }

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 108px 0 90px;
  background: var(--paper);
  position: relative;
}

.hero-inner { max-width: 780px; }

.hero h1 { margin-bottom: 0.55em; }

.hero .lede { max-width: 620px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 34px 0 26px;
}

.trust-line {
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.trust-line .dot { color: var(--brass); margin: 0 8px; }

/* ---------- Path diagram ---------- */

.path-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 44px 0;
  flex-wrap: wrap;
}
.path-step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 26px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.path-step.is-active {
  border-color: var(--brass-soft);
  background: #fffdf8;
}
.path-step .step-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}
.path-step strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.path-arrow {
  color: var(--brass);
  font-size: 1.4rem;
  flex: 0 0 auto;
  padding: 0 4px;
}
@media (max-width: 720px) {
  .path-diagram { flex-direction: column; }
  .path-arrow { transform: rotate(90deg); }
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card .eyebrow { margin-bottom: 0.7em; }
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }

.card-number {
  font-family: var(--serif);
  color: var(--brass-soft);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* ---------- Quote / pull ---------- */

.pull-statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--navy);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.pull-statement .rule {
  display: block;
  width: 46px;
  height: 2px;
  background: var(--brass);
  margin: 0 auto 28px;
}

/* ---------- Stat / list styling ---------- */

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.plain-list li:last-child { border-bottom: none; }
.plain-list .mark { color: var(--brass); flex-shrink: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
  margin-top: 9px;
  flex-shrink: 0;
}

/* ---------- Steps (How it works) ---------- */

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.step-row .num {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--brass-soft);
}
@media (max-width: 620px) {
  .step-row { grid-template-columns: 50px 1fr; }
  .step-row .num { font-size: 1.5rem; }
}

/* ---------- Dark band (Why FPL / CTA) ---------- */

.band-dark {
  background: var(--navy);
  color: #eef1f5;
}
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .eyebrow { color: var(--brass-soft); }
.band-dark p { color: #c9d2dc; }
.band-dark a.text-link { color: var(--brass-soft); border-color: var(--brass-soft); }

.text-link {
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  font-weight: 600;
}
.text-link:hover { opacity: 0.8; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #b9c2cd;
  padding: 64px 0 32px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer .wordmark { color: var(--white); }
.site-footer .wordmark small { color: #8fa0b3; }
.footer-tagline { color: #93a1b0; margin-top: 12px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--sans);
  color: #eef1f5;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a { display: block; color: #b9c2cd; margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #7f8ea0;
}
.footer-bottom a { color: #7f8ea0; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Page hero (secondary pages) ---------- */

.page-hero {
  padding: 68px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 0.6em; }
.page-hero .lede { max-width: 680px; }

/* ---------- Breadcrumb-ish back link ---------- */

.back-link { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 20px; display: inline-block; }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.12rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  color: var(--brass);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { margin-top: 14px; color: var(--ink-soft); max-width: 720px; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
@media (max-width: 620px) { .form-card { padding: 26px 20px; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass-soft);
  background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b23b3b;
}

fieldset { border: none; padding: 0; margin: 0; }
fieldset legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  padding: 0;
}
.radio-grid { display: grid; gap: 9px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.radio-option input { accent-color: var(--brass); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-consent {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.form-status.success { background: #eef4ec; color: #2c4a2e; border: 1px solid #cfe0cb; }
.form-status.error { background: #f8ecec; color: #7a2e2e; border: 1px solid #e6c8c8; }
.form-status.is-visible { display: block; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.small-caps-note {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.divider-rule {
  width: 46px;
  height: 2px;
  background: var(--brass);
  margin: 0 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }
