/* Basic reset and typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0b1630;
  background-color: #fdfaf5;
  line-height: 1.5;
}

.admin-body {
  background: radial-gradient(circle at top, #f5f7ff, #fdfaf5);
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.nav-links a:hover {
  color: #0f172a;
}

.nav-link-active {
  color: #0f172a;
  font-weight: 600;
}

/* Local-run guidance banner */
.local-run-banner {
  background-color: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  padding: 0.5rem 0;
}

.local-run-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font-size: 0.8rem;
  color: #1e40af;
}

.local-run-label {
  font-weight: 600;
}

.local-run-text,
.local-run-guide {
  color: #1e3a8a;
}

.local-run-banner code {
  font-size: 0.75em;
  padding: 0.1rem 0.35rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 0.25rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(circle at top left, #f5f7ff, #fdfaf5);
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hero-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
  display: block;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4b5563;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 0.98rem;
  color: #4b5563;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-secondary {
  border-color: #cbd5f5;
  background-color: #eff6ff;
  color: #1e3a8a;
}

.btn-secondary:hover {
  background-color: #e0ecff;
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: #4b5563;
}

.btn-ghost:hover {
  background-color: #e5e7eb;
}

.hero-note {
  font-size: 0.8rem;
  color: #6b7280;
  max-width: 30rem;
}

.hero-card {
  border-radius: 1.2rem;
  border: 1px solid #e2e8f0;
  background: radial-gradient(circle at top left, #eef2ff, #ffffff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  padding: 1.25rem 1.35rem;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.hero-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.hero-pill.human {
  background-color: rgba(22, 163, 74, 0.1);
  color: #166534;
}

.hero-pill.ai {
  background-color: rgba(79, 70, 229, 0.1);
  color: #3730a3;
}

.hero-card-body {
  font-size: 0.8rem;
  color: #334155;
}

/* Admin login */
.admin-main {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
}

.admin-login-section {
  width: 100%;
}

.admin-login-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 2.25rem 2.25rem;
  border-radius: 1.2rem;
  border: 1px solid #e2e8f0;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.admin-title {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.admin-subtitle {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0 0 1.5rem;
}

.admin-content-card {
  margin-top: 1.75rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.admin-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.admin-input {
  border-radius: 0.55rem;
  border: 1px solid #cbd5e1;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  outline: none;
  background-color: #f9fafb;
}

.admin-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2);
  background-color: #ffffff;
}

.admin-textarea {
  resize: vertical;
  min-height: 3.5rem;
}

.admin-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem 1rem;
  margin-bottom: 1.1rem;
}

.admin-fieldset legend {
  padding: 0 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6b7280;
}

.admin-submit {
  width: 100%;
  margin-top: 0.4rem;
}

.admin-placeholder-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Plans grid on pricing page */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-tagline {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.plan-list {
  font-size: 0.85rem;
  color: #4b5563;
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}

.plan-list li {
  margin-bottom: 0.25rem;
}

.plan-cta {
  margin-top: auto;
}

.hero-bar {
  margin-bottom: 0.8rem;
}

.hero-bar-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.hero-bar-track {
  margin-top: 0.3rem;
  height: 0.65rem;
  border-radius: 999px;
  background-color: #e5e7eb;
  display: flex;
  overflow: hidden;
}

.hero-bar-fill {
  height: 100%;
}

.hero-bar-fill.human {
  background: linear-gradient(to right, #22c55e, #16a34a);
}

.hero-bar-fill.ai {
  background: linear-gradient(to right, #4f46e5, #6366f1);
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-list li {
  padding: 0.3rem 0;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-muted {
  background-color: #f1f5f9;
}

.section-inner > h2 {
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.about-logo {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.section-lead {
  font-size: 0.96rem;
  color: #4b5563;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.grid-3 {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  padding: 1.1rem 1.2rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  color: #020617;
}

.lead {
  margin-bottom: 0.8rem;
}

.contact-note {
  font-size: 0.88rem;
  color: #6b7280;
}

/* Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.tools-column h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.tools-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.tools-column li + li {
  margin-top: 0.25rem;
}

.tools-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 1rem;
}

.tools-pills {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.tools-pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.tools-pill-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.tools-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: #e5edff;
  border: 1px solid #d4ddff;
  font-size: 0.8rem;
  color: #1e3a8a;
  font-weight: 500;
}

.capture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.capture-card {
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  padding: 0.9rem 1rem;
  font-size: 0.86rem;
  color: #4b5563;
}

.capture-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #020617;
}

/* Branded feature section */
.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.feature-copy .feature-list {
  list-style: disc;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.feature-copy .feature-list li + li {
  margin-top: 0.25rem;
}

.feature-panel {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: radial-gradient(circle at top left, #eef2ff, #ffffff);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  font-size: 0.85rem;
  color: #111827;
}

.feature-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.step-label {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background-color: #e5edff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-weight: 600;
}

.step-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

.feature-summary {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.7rem;
  margin-top: 0.5rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.summary-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: #ecfdf5;
  color: #16a34a;
  font-weight: 600;
}

.summary-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

/* CTA */
.section-cta {
  background: radial-gradient(circle at top left, #e0f2fe, #eff6ff);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.cta-actions {
  max-width: 22rem;
}

.cta-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.6rem;
}

/* Patent evidence */
.patent-inner {
  border-top: 1px solid #e5e7eb;
  padding-top: 2.25rem;
}

.patent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.patent-card {
  background-color: #ffffff;
}

.patent-card h3 {
  font-size: 0.95rem;
}

.patent-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 1.2rem;
}

.flow-list {
  margin: 1.2rem 0 0;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.flow-list li + li {
  margin-top: 0.55rem;
}

/* Capabilities section */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.1rem;
}

.capabilities-column h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.capabilities-column ul {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.capabilities-column li + li {
  margin-top: 0.6rem;
}

/* Screen mapping */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.screen-card {
  font-size: 0.9rem;
}

/* Business use list */
.business-list {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.business-list li + li {
  margin-top: 0.35rem;
}

/* Patent reference table */
.patent-ref {
  border-top: 1px solid #e5e7eb;
  padding-top: 2.25rem;
}

.patent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-top: 1rem;
}

.patent-table th,
.patent-table td {
  border: 1px solid #e2e8f0;
  padding: 0.55rem 0.6rem;
  vertical-align: top;
}

.patent-table th {
  background-color: #f1f5f9;
  font-weight: 600;
  text-align: left;
}

.patent-table td:first-child {
  white-space: nowrap;
  font-weight: 600;
}

/* Evidence highlights */
.evidence-inner {
  border-top: 1px solid #e5e7eb;
  padding-top: 2.25rem;
}

.evidence-list {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 0.8rem;
}

.evidence-list li + li {
  margin-top: 0.4rem;
}

/* Patent-to-product mapping table */
.patent-map {
  border-top: 1px solid #e5e7eb;
  padding-top: 2.25rem;
}

.patent-map-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-top: 1rem;
}

.patent-map-table th,
.patent-map-table td {
  border: 1px solid #e2e8f0;
  padding: 0.55rem 0.6rem;
  vertical-align: top;
}

.patent-map-table th {
  background-color: #f8fafc;
  font-weight: 600;
  text-align: left;
}

.patent-tag {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e2e8f0;
  background-color: #ffffff;
  padding: 1.25rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-note {
  max-width: 30rem;
}

.footer-legal-links {
  margin-top: 0.5rem;
}

.footer-legal-links a {
  color: #2563eb;
  text-decoration: none;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

/* Print styles for evidence/PDF export */
@media print {
  body {
    background-color: #ffffff;
    color: #0f172a;
  }

  .site-header,
  .site-footer {
    border-color: #d4d4d8;
  }

  .hero {
    padding-top: 2rem;
  }

  .section,
  .section-muted {
    page-break-inside: avoid;
  }

  .card,
  .patent-table,
  .patent-map-table {
    page-break-inside: avoid;
  }

  @page {
    margin: 1.5cm;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links {
    font-size: 0.85rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .capture-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .patent-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .screens-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

