/* Prior Patent Search — light theme (tokens: warm neutral base, teal accent, WCAG-oriented) */
:root {
  color-scheme: light;
  --bg: #f6f4f1;
  --bg-subtle: #ece8e4;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --text: #141826;
  --text-soft: rgba(20, 24, 38, 0.88);
  --text-muted: #4b5568;
  --accent: #0d9488;
  --accent-dim: #0f766e;
  --accent-hover: #0f766e;
  --accent-muted: rgba(13, 148, 136, 0.12);
  --accent-border: rgba(13, 148, 136, 0.32);
  --gold: #9a6700;
  --border: rgba(20, 24, 38, 0.1);
  --border-strong: rgba(20, 24, 38, 0.14);
  --shadow-sm: 0 1px 2px rgba(20, 24, 38, 0.06);
  --shadow-md: 0 10px 40px rgba(20, 24, 38, 0.08);
  --text-on-accent: #ffffff;
  --max: 1080px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --section-pad-y: clamp(3.25rem, 6vw, 5rem);
  --header-h: 3.75rem;
  --tap-min: 44px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 110% 75% at 50% -25%, rgba(13, 148, 136, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(154, 103, 0, 0.05), transparent 48%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-dim);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--gold);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: 0 var(--space-3);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
}

.nav-toggle:hover {
  border-color: var(--accent-border);
  color: var(--accent-dim);
}

.nav-toggle:active {
  transform: scale(0.98);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: var(--text-on-accent) !important;
  padding: 0.5rem 1rem;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none !important;
}

.nav-cta:hover {
  filter: brightness(1.05);
  color: var(--text-on-accent) !important;
}

.nav-cta:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: var(--space-3) var(--space-2);
    min-height: var(--tap-min);
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
  }
}

main section {
  scroll-margin-top: calc(var(--header-h) + var(--space-3));
  padding: var(--section-pad-y) var(--space-5);
  border-bottom: 1px solid var(--border);
}

main section:nth-child(even) {
  background: linear-gradient(
    180deg,
    var(--bg-subtle) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    var(--bg-subtle) 100%
  );
}

#hero {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: calc(var(--section-pad-y) + 0.5rem);
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.06) 0%, transparent 72%);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-3);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  margin: 1.75rem 0 0.55rem;
  color: var(--gold);
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 68ch;
  margin: 0 0 1.5rem;
}

.section-inner > h3:first-of-type {
  margin-top: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    filter 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    background-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: var(--text-on-accent);
}

.btn-primary:hover {
  filter: brightness(1.05);
  color: var(--text-on-accent);
}

.btn-primary:active {
  filter: brightness(0.96);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:active {
    transform: translateY(1px);
  }
}

.btn-primary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-ghost:active {
  background: var(--accent-muted);
}

.hero-standfirst {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 500;
  color: var(--text-soft);
  max-width: 58ch;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.hero-boundary {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
}

.hero-boundary strong {
  color: var(--text);
}

.slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--gold);
  margin: 1.75rem 0 0;
  max-width: 42ch;
  line-height: 1.45;
}

.grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-6) 1.25rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) {
  .card:hover {
    border-color: var(--accent-border);
    background: var(--bg);
  }
}

.card p,
.card li {
  font-size: 1rem;
  line-height: 1.65;
}

.card h3 {
  margin-top: 0;
}

.muted-note {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.muted-note--spacing {
  margin-top: 1.5rem;
}

.muted-copy {
  margin: 0;
  color: var(--text-muted);
}

.muted-copy--gap {
  margin-top: 1rem;
}

.footer-intake {
  max-width: 52ch;
  margin: var(--space-4) auto 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.list-workflow {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-workflow li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
  min-height: 2.75rem;
  color: var(--text-muted);
}

.list-workflow li:last-child {
  margin-bottom: 0;
}

.list-workflow li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  color: var(--accent-dim);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.list-workflow li strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions .btn-primary {
  max-width: 100%;
  word-break: break-word;
}

.list-check {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.list-check li {
  margin-bottom: 0.5rem;
}

.disclaimer-box {
  background: rgba(254, 243, 199, 0.45);
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
  font-size: 0.97rem;
  color: var(--text-soft);
}

.disclaimer-box p {
  margin: 0;
}

.disclaimer-box__follow {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.site-footer {
  padding: var(--space-6) var(--space-5) 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-line {
  margin: 0;
  line-height: 1.65;
}

.footer-copy {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  opacity: 0.92;
}

.footer-legal {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.mono-email {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  word-break: break-all;
}
