/* ==========================================================================
   Ironclad Patents — Litigation-Tested Patent Drafting
   One stylesheet. No external fonts or CDNs — Core Web Vitals are a ranking
   factor and most law-firm sites fail them badly.
   ========================================================================== */

:root {
  /* Ink — deep, cool, layered. Depth comes from stacking these, not from flat fills. */
  --ink-950: #060d16;
  --ink-900: #0a1420;
  --ink-800: #101d2e;
  --ink-700: #1b2c42;
  --steel:   #2c4159;
  --slate:   #47596e;
  --muted:   #6d7f95;

  --line:      #dce4ed;
  --line-soft: #edf1f6;
  --bg:        #ffffff;
  --bg-alt:    #f5f8fb;
  --bg-warm:   #faf7f1;

  /* Brass — the trust accent. Warmer and brighter than a typical legal navy-only palette. */
  --accent:      #c0912f;
  --accent-lt:   #ddb45f;
  --accent-dk:   #8f6a1c;
  --accent-wash: #fdf7e9;

  --ok:  #17663f;
  --err: #a32020;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 5px;
  --radius-lg: 10px;

  /* Layered shadows — a single flat shadow is what makes cards look pasted on. */
  --sh-sm: 0 1px 2px rgba(10, 20, 32, .05), 0 2px 6px rgba(10, 20, 32, .04);
  --sh-md: 0 2px 4px rgba(10, 20, 32, .05), 0 8px 20px rgba(10, 20, 32, .07);
  --sh-lg: 0 4px 8px rgba(10, 20, 32, .06), 0 18px 44px rgba(10, 20, 32, .11);
  --sh-gold: 0 4px 10px rgba(192, 145, 47, .16), 0 16px 40px rgba(192, 145, 47, .14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink-900);
  line-height: 1.14;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.021em;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.7rem); letter-spacing: -.026em; }
h3 { font-size: 1.3rem; }
h4 {
  font-family: var(--sans); font-size: 1.02rem; font-weight: 650;
  color: var(--ink-900); line-height: 1.35; margin: 0 0 .5em;
}

p { margin: 0 0 1.15em; }
a { color: var(--accent-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-900); }

ul, ol { padding-left: 1.15em; }
li { margin-bottom: .5em; }
strong { color: var(--ink-800); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 780px; }
.section { padding: clamp(3.5rem, 2rem + 6.5vw, 7rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section--warm { background: var(--bg-warm); border-block: 1px solid #efe7d9; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

/* Dark sections: gradient + grain, never a flat fill */
.section--deep {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 15% 0%, rgba(192, 145, 47, .14), transparent 60%),
    linear-gradient(165deg, var(--ink-800) 0%, var(--ink-950) 100%);
  color: #b6c4d4;
}
.section--deep h2, .section--deep h3, .section--deep h4 { color: #fff; }
.section--deep strong { color: #e6edf4; }
/* Scoped to :not(.btn) — an unscoped `.section--deep a` outranks every
   `.btn` variant's own color on specificity, turning button text the same
   gold as a gold gradient background (illegible). */
.section--deep a:not(.btn) { color: var(--accent-lt); }
.section--deep a:not(.btn):hover { color: #fff; }

/* Film grain — the single cheapest way to stop a dark block reading as flat */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .38;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.section--deep > *, .hero > * { position: relative; z-index: 1; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink-900); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent-dk);
  margin: 0 0 1rem; display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); flex: none;
}
.section--deep .eyebrow, .hero .eyebrow { color: var(--accent-lt); }
.cta-band .eyebrow, .text-center .eyebrow { justify-content: center; }

.lede { font-size: 1.19rem; line-height: 1.62; color: var(--slate); max-width: 64ch; }
.section--deep .lede { color: #a9bacd; }
.section-head { max-width: 70ch; margin-bottom: 3.2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans); font-size: 1rem; font-weight: 620;
  padding: .92em 1.75em; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .16s, color .16s, border-color .16s, box-shadow .16s, transform .16s;
}
.btn--sm { padding: .62em 1.15em; font-size: .92rem; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent-lt) 0%, var(--accent) 55%, var(--accent-dk) 100%);
  color: #fff; border-color: var(--accent-dk);
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, .28);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}
.btn--primary:hover { color: #fff; box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255,255,255,.28); transform: translateY(-1px); }

.btn--ghost { background: #fff; color: var(--ink-900); border-color: var(--line); box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: var(--ink-900); color: var(--ink-900); box-shadow: var(--sh-md); transform: translateY(-1px); }

.btn--onDark { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--onDark:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }

/* ---------- Top credential bar ---------- */
.topbar {
  background: var(--ink-950); color: #8b9cb0; font-size: .81rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar-creds { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }
.topbar-creds strong { color: var(--accent-lt); font-weight: 650; }
.topbar-sep { color: #3d4d60; }
.topbar-cta { margin: 0; }
.topbar-cta a {
  color: #d7e0ea; text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: .45em;
}
.topbar-cta a:hover { color: var(--accent-lt); }
@media (max-width: 760px) { .topbar-creds { display: none; } .topbar-inner { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: var(--sh-md); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 104px; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand-mark { flex: none; filter: drop-shadow(0 2px 4px rgba(10,20,32,.18)); }
.brand-name {
  font-family: var(--serif); font-size: 1.32rem; font-weight: 600;
  color: var(--ink-900); line-height: 1.05; letter-spacing: -.022em;
}
.brand-sub {
  display: block; font-family: var(--sans); font-size: .625rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dk); margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
/* Scoped to :not(.btn) — an unscoped `.nav a` outranks `.btn--primary` on
   specificity and strips the CTA's colour and padding. */
.nav a:not(.btn) {
  font-size: .95rem; font-weight: 560; color: var(--ink-800);
  text-decoration: none; padding: .4em 0; position: relative;
}
.nav a.btn { font-size: .92rem; padding: .7em 1.3em; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent-dk); }
.nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }

/* The idea-test link is a lead magnet — give it weight without making it a
   second primary button competing with the main CTA. */
.nav a.nav-tool {
  display: inline-flex; align-items: center; gap: .45em;
  color: var(--accent-dk); font-weight: 620;
  border: 1px solid #ecdcb8; background: var(--accent-wash);
  border-radius: 100px; padding: .5em 1em;
}
.nav a.nav-tool:hover { background: #faf1dc; border-color: var(--accent); color: var(--accent-dk); }
.nav a.nav-tool::after { display: none; }
.nav a.nav-tool[aria-current="page"] { border-color: var(--accent); box-shadow: var(--sh-sm); }
.nav a.nav-tool svg { color: var(--accent); }

.nav-toggle {
  display: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .55em .72em; cursor: pointer; color: var(--ink-900);
}

@media (max-width: 1010px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; inset: 104px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.5rem; box-shadow: var(--sh-lg);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9em 0; border-bottom: 1px solid var(--line-soft); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1.1rem; border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 2rem + 7vw, 7.5rem) 0 clamp(3.5rem, 2rem + 6vw, 6.5rem);
  background:
    radial-gradient(ellipse 55% 70% at 78% 32%, rgba(192, 145, 47, .20), transparent 62%),
    radial-gradient(ellipse 80% 60% at 8% 90%, rgba(43, 78, 120, .30), transparent 60%),
    linear-gradient(160deg, var(--ink-800) 0%, var(--ink-950) 100%);
  color: #b6c4d4;
}
/* Blueprint grid — echoes a USPTO drawing sheet */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(192,145,47,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,145,47,.10) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 72% 34%, #000 22%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 72% 34%, #000 22%, transparent 76%);
}
.hero h1 { color: #fff; max-width: 17ch; text-wrap: balance; }
.hero h1 em {
  font-style: normal; color: var(--accent-lt);
  background: linear-gradient(180deg, var(--accent-lt), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lede { color: #adbdd0; font-size: 1.24rem; max-width: 56ch; }
/* 75/25 split — the figure fills its column and sits centered, not adrift */
.hero-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } .hero-figure { display: none; } }
.hero-figure { display: flex; justify-content: center; align-items: center; height: 100%; }
.hero-figure svg { width: 100%; max-width: 300px; height: auto; }

.hero-proof {
  margin-top: 2.6rem; padding-top: 1.7rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem;
}
.hero-proof div { min-width: 128px; }
.hero-proof dt {
  font-family: var(--serif); font-size: 1.85rem; color: #fff; line-height: 1;
  letter-spacing: -.02em; margin-bottom: .3rem;
}
.hero-proof dd { margin: 0; font-size: .87rem; color: #8ba0b8; line-height: 1.4; }

/* ---------- Stat bar ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--sh-md); list-style: none; padding: 0; margin: 0;
}
.stat { background: #fff; padding: 2.1rem 1.6rem; text-align: center; margin: 0; position: relative; }
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent-lt), var(--accent));
  opacity: 0; transition: opacity .2s;
}
.stat:hover::before { opacity: 1; }
.stat-num {
  font-family: var(--serif); font-size: 2.5rem; color: var(--ink-900);
  line-height: 1; display: block; margin-bottom: .4rem; letter-spacing: -.03em;
}
.stat-label { font-size: .87rem; color: var(--muted); line-height: 1.45; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(292px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #fcfdfe 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem; box-shadow: var(--sh-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card--link:hover { border-color: var(--accent); box-shadow: var(--sh-lg); transform: translateY(-3px); }
.card h3 { margin-bottom: .55rem; }
.card h3 a { text-decoration: none; color: var(--ink-900); }
.card--link:hover h3 a { color: var(--accent-dk); }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 46px; height: 46px; margin-bottom: 1.2rem;
  display: grid; place-items: center; color: var(--accent-dk);
  background: linear-gradient(180deg, #fff, var(--accent-wash));
  border: 1px solid #f0e3c8; border-radius: var(--radius);
  box-shadow: inset 0 1px 0 #fff;
}
.card-meta {
  display: block; margin-top: 1.2rem; font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dk);
}

.section--deep .card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.14); box-shadow: none; color: #a9bacd;
}
.section--deep .card--link:hover { border-color: var(--accent); background: rgba(255,255,255,.09); }
.section--deep .card h3 a { color: #fff; }
.section--deep .card-icon {
  background: rgba(192,145,47,.14); border-color: rgba(192,145,47,.35); color: var(--accent-lt); box-shadow: none;
}

/* ---------- Pillars (numbered thesis blocks) ---------- */
.pillars { counter-reset: pillar; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pillar {
  position: relative; padding: 2.3rem 1.9rem 2rem;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--sh-sm);
}
.pillar::before {
  counter-increment: pillar; content: counter(pillar, decimal-leading-zero);
  position: absolute; top: -14px; left: 1.9rem;
  font-family: var(--serif); font-size: .95rem; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, var(--accent-lt), var(--accent-dk));
  padding: .3em .8em; border-radius: 100px; letter-spacing: .04em;
  box-shadow: var(--sh-sm);
}
.pillar h3 { margin-bottom: .6rem; }
.pillar p:last-child { margin-bottom: 0; }

/* ---------- Idea-test promo band ---------- */
.tool-band {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.8rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-wash) 100%);
  border: 1px solid #ecdcb8; border-radius: var(--radius-lg);
  padding: 2rem 2.2rem; box-shadow: var(--sh-md);
}
.tool-band-icon {
  flex: none; width: 62px; height: 62px; display: grid; place-items: center;
  color: #fff; border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-lt), var(--accent-dk));
  box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255,255,255,.35);
}
.tool-band-text .eyebrow { margin-bottom: .5rem; }
.tool-band-text h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.85rem); margin-bottom: .5rem; }
.tool-band-text p { margin: 0; font-size: .98rem; max-width: 62ch; }
.tool-band .btn { flex: none; white-space: nowrap; }

@media (max-width: 860px) {
  .tool-band { grid-template-columns: 1fr; text-align: left; gap: 1.2rem; padding: 1.7rem 1.5rem; }
  .tool-band .btn { width: 100%; }
}

/* ---------- Testimonials ---------- */
.quote {
  position: relative;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg); padding: 2.2rem 2rem 1.8rem;
  box-shadow: var(--sh-sm);
}
.quote blockquote {
  margin: 0 0 1.3rem; font-family: var(--serif); font-size: 1.13rem;
  line-height: 1.55; color: var(--ink-800); letter-spacing: -.005em;
}
.quote figcaption { font-size: .89rem; color: var(--muted); line-height: 1.5; }
.quote figcaption strong { display: block; color: var(--ink-900); font-size: .95rem; }
.section--deep .quote {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14);
  border-left-color: var(--accent); box-shadow: none;
}
.section--deep .quote blockquote { color: #e3ebf3; }
.section--deep .quote figcaption strong { color: #fff; }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 2rem; align-items: start; }
.tier { display: flex; flex-direction: column; height: 100%; }
.tier--feature {
  border-color: var(--accent);
  box-shadow: var(--sh-gold);
  background: linear-gradient(180deg, #fffdf8 0%, #fff 55%);
}
.tier--feature::after {
  content: "Recommended"; position: absolute; top: -12px; left: 1.9rem;
  background: linear-gradient(180deg, var(--accent-lt), var(--accent-dk)); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  padding: .38em .9em; border-radius: 100px; box-shadow: var(--sh-sm);
}
.tier-price {
  font-family: var(--serif); font-size: 2.3rem; color: var(--ink-900);
  line-height: 1; margin: .5rem 0 .3rem; letter-spacing: -.03em;
}
.tier-price small { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: .5rem; }
.tier-for {
  font-size: .88rem; color: var(--muted); padding: .9rem 0 0; margin-top: 1.2rem;
  border-top: 1px dashed var(--line);
}
.tier .check { margin: 1.4rem 0 1.9rem; font-size: .96rem; }
.tier .btn { margin-top: auto; width: 100%; }

/* ---------- Case breakdown cards ---------- */
.case {
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--sh-sm); overflow: hidden; margin-bottom: 1.8rem;
  scroll-margin-top: 120px;
}
.case-head {
  padding: 1.7rem 1.9rem 1.4rem;
  background: linear-gradient(180deg, var(--bg-alt), #fff);
  border-bottom: 1px solid var(--line-soft);
}
.case-cite {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-dk); margin: 0 0 .5rem;
}
.case-head h3 { margin-bottom: .35rem; }
.case-issue { font-size: .92rem; color: var(--muted); margin: 0; }
.case-body { padding: 1.7rem 1.9rem; }
.case-body h4 { color: var(--ink-900); margin-top: 1.5rem; }
.case-body h4:first-child { margin-top: 0; }
.case-body p:last-child { margin-bottom: 0; }
.case-lesson {
  margin-top: 1.6rem; padding: 1.2rem 1.4rem;
  background: var(--accent-wash); border: 1px solid #f0e3c8;
  border-radius: var(--radius); font-size: .96rem;
}
.case-lesson h4 { margin-bottom: .35rem; color: var(--accent-dk); }
.case-lesson p:last-child { margin-bottom: 0; }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .96rem; }
.compare th, .compare td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); background: var(--bg-alt);
  border-bottom: 2px solid var(--line);
}
.compare tbody th { font-weight: 620; color: var(--ink-900); width: 26%; }
.compare .col-best { background: var(--accent-wash); }
.compare thead .col-best { color: var(--accent-dk); background: #faf1dc; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; }
.no  { color: var(--muted); }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 78px 1fr; gap: 1.8rem; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 2rem; line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(180deg, var(--accent-lt), var(--accent-dk));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent);
}
.step h3 { margin-bottom: .5rem; }
.step p:last-child { margin-bottom: 0; }
.step-time {
  display: inline-block; margin-top: .8rem; font-size: .82rem; font-weight: 620;
  color: var(--accent-dk); background: var(--accent-wash); border: 1px solid #f0e3c8;
  padding: .3em .85em; border-radius: 100px;
}
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: .5rem; } }

/* ---------- Service blocks ---------- */
.svc { padding: 3.2rem 0; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.svc:first-of-type { border-top: 0; padding-top: 1rem; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.svc-tag {
  display: inline-block; font-size: .73rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--accent-dk); background: var(--accent-wash);
  border: 1px solid #f0e3c8; padding: .34em .85em; border-radius: 100px; margin-bottom: 1.1rem;
}

/* ---------- Checklist ---------- */
.check { list-style: none; padding: 0; margin: 0; }
.check li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.check li::before {
  content: ""; position: absolute; left: .25rem; top: .52em;
  width: 9px; height: 5px; border-left: 2.2px solid var(--accent);
  border-bottom: 2.2px solid var(--accent); transform: rotate(-45deg);
}
.check--x li::before {
  border: 0; width: 11px; height: 11px; top: .42em; left: .15rem; transform: none;
  background:
    linear-gradient(45deg, transparent 44%, var(--muted) 44%, var(--muted) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--muted) 44%, var(--muted) 56%, transparent 56%);
}

/* ---------- Pills / badges ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.pills li {
  margin: 0; font-size: .92rem; font-weight: 550; color: var(--ink-800);
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: .52em 1.1em; box-shadow: var(--sh-sm);
}
.section--deep .pills li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #d5e0eb; box-shadow: none; }

.badges { display: flex; flex-wrap: wrap; gap: .8rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.badges li {
  display: flex; align-items: center; gap: .55rem; margin: 0;
  font-size: .85rem; font-weight: 620; color: #cbd8e5;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: .6em 1em;
}
.badges svg { color: var(--accent-lt); flex: none; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.6rem 3rem 1.6rem 0; position: relative;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--ink-900); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .7rem; top: 2rem;
  width: 11px; height: 11px; border-right: 2.2px solid var(--accent); border-bottom: 2.2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s, top .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); top: 2.2rem; }
.faq summary:hover { color: var(--accent-dk); }
.faq-body { padding: 0 3rem 1.7rem 0; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Callouts ---------- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: linear-gradient(180deg, var(--bg-alt), #fff);
  padding: 1.5rem 1.7rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .98rem;
}
.callout--warn { border-color: #ecd9a8; border-left-color: #c48a1e; background: linear-gradient(180deg, #fdf7ea, #fffdf8); }
.callout h4 { margin-bottom: .45rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.price-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0 1rem; font-size: .97rem; }
.price-table th, .price-table td { text-align: left; padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
/* Opt-in, not position-based — a table whose last column is descriptive
   text (not a price) must NOT be right-aligned just for sitting last. */
.price-table .num { text-align: right; white-space: nowrap; }
.price-table tbody tr:hover { background: var(--bg-alt); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Form ---------- */
.form-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 4rem; align-items: start; }
@media (max-width: 940px) { .form-layout { grid-template-columns: 1fr; gap: 2.5rem; } }

.intake fieldset { border: 0; padding: 0; margin: 0 0 2.8rem; }
.intake legend {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink-900);
  padding: 0 0 .5rem; margin-bottom: 1.5rem; width: 100%; border-bottom: 2px solid var(--line);
}
.field { margin-bottom: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 580px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.field label, .field .label { display: block; font-size: .93rem; font-weight: 650; color: var(--ink-800); margin-bottom: .5rem; }
.req { color: var(--err); font-weight: 400; }
.hint { display: block; font-size: .86rem; color: var(--muted); font-weight: 400; margin-top: .3rem; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink-900);
  padding: .8em .95em; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: inset 0 1px 2px rgba(10,20,32,.04);
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #bfcbd9; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192,145,47,.18);
}
textarea { min-height: 155px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2347596e' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}

[aria-invalid="true"] { border-color: var(--err) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(163,32,32,.15); }
.error-msg { display: none; color: var(--err); font-size: .87rem; font-weight: 620; margin-top: .4rem; }
.error-msg.is-shown { display: block; }

.choices { display: grid; gap: .6rem; }
.choice {
  display: flex; align-items: flex-start; gap: .75rem;
  border: 1px solid var(--line); border-radius: var(--radius); padding: .85em 1.05em;
  cursor: pointer; font-size: .96rem; font-weight: 450; color: var(--slate); margin: 0;
  background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice:hover { border-color: #bfcbd9; background: var(--bg-alt); }
.choice input { margin: .32em 0 0; flex: none; accent-color: var(--accent); width: auto; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); color: var(--ink-900); box-shadow: var(--sh-sm); }

.form-status { display: none; margin-bottom: 1.9rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); font-size: .98rem; }
.form-status.is-shown { display: block; }
.form-status--ok  { background: #edf7f1; border: 1px solid #b9dfca; color: #14532d; }
.form-status--err { background: #fdeeee; border: 1px solid #f0c4c4; color: #7f1d1d; }
.form-status h4 { margin-bottom: .4rem; color: inherit; }
.form-status p:last-child { margin-bottom: 0; }
.form-status a { color: inherit; }

.aside-box {
  background: linear-gradient(180deg, #fff, var(--bg-alt));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem; margin-bottom: 1.6rem; box-shadow: var(--sh-sm);
}
.aside-box h3 { font-size: 1.12rem; }
.aside-box:last-child { margin-bottom: 0; }
.aside-box p, .aside-box li { font-size: .95rem; }
.aside-box p:last-child, .aside-box ul:last-child { margin-bottom: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .8rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-list svg { flex: none; margin-top: .3em; color: var(--accent); }
.contact-list a { font-weight: 600; }
.contact-list address { font-style: normal; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .lede { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Breadcrumbs / page head ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding: 1.2rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dk); text-decoration: underline; }

.page-head {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%);
  border-bottom: 1px solid var(--line); padding: 0 0 3.8rem;
}
.page-head h1 { max-width: 21ch; margin-top: 1.6rem; text-wrap: balance; }
.page-head .lede { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 88% 0%, rgba(192,145,47,.10), transparent 60%),
    linear-gradient(170deg, var(--ink-800), var(--ink-950));
  color: #8ba0b8; padding: 4.5rem 0 2.5rem; font-size: .93rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-bottom: 2.8rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .62rem; }
.site-footer a:not(.btn) { color: #b0c0d1; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--accent-lt); text-decoration: underline; }
.footer-brand .brand-name { color: #fff; font-size: 1.28rem; }
.footer-brand .brand-sub { color: var(--accent); }
.footer-brand p { margin-top: 1.1rem; max-width: 38ch; font-size: .9rem; }
.footer-creds { margin-top: 1.3rem !important; font-size: .82rem; }
.footer-creds li {
  padding-left: 1.3rem; position: relative; color: #7e93aa; margin-bottom: .45rem;
}
.footer-creds li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 4px; border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg);
}
.footer-legal { padding-top: 2.2rem; font-size: .83rem; color: #6b7f96; line-height: 1.6; }
.footer-legal strong { color: #9db0c6; }
.footer-legal p { max-width: 100ch; margin-bottom: .9rem; }
.footer-copy { color: #5d7089; }

/* ==========================================================================
   Patent Eligibility Test — idea-test tool
   ========================================================================== */
.quiz {
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--sh-md); padding: 2rem 2rem 2.2rem;
}
.quiz-progress {
  height: 6px; background: var(--line-soft); border-radius: 100px; overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-lt), var(--accent));
  transition: width .35s ease;
}
.quiz-count {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: .9rem 0 1.6rem;
}
.quiz-step h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: .6rem; }
.quiz-help {
  font-size: .95rem; color: var(--muted); margin-bottom: 1.6rem;
  padding-left: 1rem; border-left: 2px solid var(--accent-lt);
}
.quiz-options { display: grid; gap: .7rem; }
.quiz-option {
  display: flex; align-items: flex-start; gap: .85rem; width: 100%; text-align: left;
  font-family: var(--sans); font-size: 1.02rem; font-weight: 500; color: var(--ink-800);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1em 1.15em; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .12s;
}
.quiz-option:hover {
  border-color: var(--accent); background: var(--accent-wash);
  box-shadow: var(--sh-sm); transform: translateX(2px);
}
.quiz-option-mark {
  flex: none; width: 20px; height: 20px; margin-top: .15em; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.quiz-option:hover .quiz-option-mark {
  border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--accent);
}
.quiz-nav { margin-top: 1.6rem; }

/* ---------- Results ---------- */
.verdict {
  display: flex; align-items: flex-start; gap: 1.8rem; flex-wrap: wrap;
  padding: 2.2rem 2rem; border-radius: var(--radius-lg); margin-bottom: 1.8rem;
  border: 1px solid; box-shadow: var(--sh-md);
}
.verdict h2 { margin-bottom: .5rem; font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
.verdict p:last-child { margin-bottom: 0; }
.verdict-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; margin: 0 0 .35rem; opacity: .75;
}
.verdict-score {
  flex: none; display: grid; place-items: center; width: 104px; height: 104px;
  border-radius: 50%; background: #fff; border: 3px solid currentColor;
  font-family: var(--serif); line-height: 1;
}
.verdict-score span { font-size: 2.5rem; letter-spacing: -.03em; }
.verdict-score small { font-size: .78rem; font-family: var(--sans); opacity: .6; }

.verdict--strong    { background: linear-gradient(180deg, #f0f9f3, #fff); border-color: #b3ddc4; color: #14532d; }
.verdict--promising { background: linear-gradient(180deg, #fdf7e9, #fff); border-color: #ecd9a8; color: #6b4e10; }
.verdict--hurdles   { background: linear-gradient(180deg, #fdf3ea, #fff); border-color: #f0cfa8; color: #7c3f0a; }
.verdict--blocked   { background: linear-gradient(180deg, #fdeeee, #fff); border-color: #f0c4c4; color: #7f1d1d; }
.verdict--strong h2, .verdict--promising h2, .verdict--hurdles h2, .verdict--blocked h2 { color: inherit; }

.results-heading { margin: 2.8rem 0 1.4rem; font-size: 1.5rem; }
.criteria-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.criterion {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--sh-sm);
}
.criterion--pass { border-left-color: var(--ok); }
.criterion--warn { border-left-color: #c48a1e; }
.criterion--fail { border-left-color: var(--err); }
.criterion-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.criterion-head h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.criterion-tag {
  flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: .25em .65em; border-radius: 100px; white-space: nowrap;
}
.criterion--pass .criterion-tag { background: #e8f5ee; color: #14532d; }
.criterion--warn .criterion-tag { background: #fdf3e0; color: #7c5310; }
.criterion--fail .criterion-tag { background: #fdeaea; color: #7f1d1d; }
.criterion-statute {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .7rem;
}
.criterion-answer { font-size: .92rem; color: var(--slate); margin-bottom: .5rem; }
.criterion-answer em { color: var(--ink-800); font-style: normal; font-weight: 600; }
.criterion-note {
  font-size: .9rem; color: var(--slate); margin: 0;
  padding-top: .7rem; border-top: 1px dashed var(--line);
}

.results-next {
  margin-top: 2.5rem; padding: 2rem;
  background: linear-gradient(180deg, var(--bg-alt), #fff);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.results-next h3 { margin-bottom: .6rem; }
.results-note { font-size: .87rem; color: var(--muted); margin: 1.2rem 0 0; }

@media (max-width: 560px) {
  .quiz { padding: 1.5rem 1.3rem 1.7rem; }
  .verdict { padding: 1.7rem 1.4rem; gap: 1.2rem; }
  .verdict-score { width: 84px; height: 84px; }
  .verdict-score span { font-size: 2rem; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

@media print {
  .site-header, .topbar, .site-footer, .btn, .nav-toggle { display: none; }
  body { font-size: 12pt; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
