/* ============================================================
   PatentSignal — Shared Stylesheet
   Design System: "Precision Editorial"
   Display font: Bricolage Grotesque
   Body font:    Plus Jakarta Sans
   Colors:       Navy #0C1629 · Cream #F3EDE0 · Teal #0D9488 · Coral #E05C52
   Updated:      2026-04-17
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Core palette */
  --navy:           #0C1629;
  --navy-mid:       #111E35;
  --navy-light:     #1A2F50;

  /* Backgrounds */
  --cream:          #F3EDE0;
  --cream-mid:      #EDE5D3;
  --warm-white:     #FDFAF4;

  /* Brand */
  --teal:           #0D9488;
  --teal-bright:    #14B8A6;
  --teal-dim:       rgba(13, 148, 136, 0.10);
  --teal-glow:      rgba(13, 148, 136, 0.20);
  --coral:          #E05C52;
  --coral-dim:      rgba(224, 92, 82, 0.10);

  /* Text */
  --text-dark:      #0C1629;
  --text-mid:       #374151;
  --text-light:     #6B7280;
  --text-faint:     #9CA3AF;

  /* Borders */
  --border-warm:    #DDD6C4;
  --border-navy:    rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-display:   'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:      'Plus Jakarta Sans', system-ui, sans-serif;

  /* Radii */
  --radius-xs:      2px;
  --radius-sm:      4px;
  --radius-md:      6px;
  --radius-lg:      10px;
  --radius-pill:    100px;

  /* Transitions */
  --t-fast:         0.15s ease;
  --t-base:         0.20s ease;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: var(--font-body); }


/* ============================================================
   3. CONTAINER
   ============================================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 1024px) { .container { padding: 0 32px; } }
@media (max-width: 768px)  { .container { padding: 0 20px; } }


/* ============================================================
   4. NAVIGATION
   ============================================================ */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--border-navy);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  transition: color var(--t-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: white; }

/* Desktop nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav-signin:hover { color: white; }

/* Nav CTA button variants */
.btn-teal-nav,
.nav-actions .btn-teal,
.nav-actions .btn {
  background: var(--teal);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--t-fast);
  white-space: nowrap;
}
.btn-teal-nav:hover,
.nav-actions .btn-teal:hover,
.nav-actions .btn:hover { background: var(--teal-bright); }

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Hamburger open state → X */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Mobile nav ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner { height: 56px; }

  /* Show hamburger */
  .nav-hamburger { display: flex; }

  /* Hide desktop links & actions */
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--navy);
    border-bottom: 1px solid var(--border-navy);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 20px;
  }

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

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 13px 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.70);
    border-bottom: none;
  }
  .nav-links a:hover,
  .nav-links a.active { color: white; background: rgba(255, 255, 255, 0.04); }

  /* Mobile nav: "Try Free" as a teal link row */
  .nav-links .nav-mobile-cta {
    display: block;
    margin: 12px 20px 0;
    padding: 11px 20px;
    background: var(--teal);
    color: white !important;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-align: center;
  }
  .nav-links .nav-mobile-cta:hover { background: var(--teal-bright); }

  /* Hide sign-in + CTA button from nav-actions on mobile */
  .nav-actions { display: none; }
}


/* ============================================================
   5. PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v1H0zM0 0v40h1V0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero .inner,
.page-hero .container { position: relative; z-index: 2; }

.page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 14px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  color: white;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.page-hero h1 em { color: var(--teal-bright); font-style: normal; }

.page-hero p {
  color: rgba(255, 255, 255, 0.60);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

@media (max-width: 768px) {
  .page-hero { padding: 52px 0 44px; }
}

@media (max-width: 480px) {
  .page-hero { padding: 40px 0 36px; }
  .page-hero p { font-size: 0.97rem; }
}


/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn-teal {
  display: inline-block;
  background: var(--teal);
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn-teal:hover { background: var(--teal-bright); transform: translateY(-1px); }

.btn-teal-lg {
  font-size: 15px;
  padding: 12px 28px;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-warm);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

@media (max-width: 480px) {
  /* Full-width buttons on very small screens when inside a block context */
  .btn-block-mobile { display: block; text-align: center; width: 100%; }
}


/* ============================================================
   7. CARDS
   ============================================================ */
.card {
  background: white;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.card:hover {
  border-color: rgba(13, 148, 136, 0.30);
  box-shadow: 0 6px 24px rgba(12, 22, 41, 0.08);
  transform: translateY(-2px);
}


/* ============================================================
   8. FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Legacy class alias */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer-brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.65;
  margin-top: 14px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.40);
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: rgba(255, 255, 255, 0.90); }

.footer-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin-top: 4px;
}
.footer-tools-all {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--teal-bright) !important;
  text-decoration: none;
}
.footer-tools-all:hover { opacity: 0.80; }

.footer-bottom {
  border-top: 1px solid var(--border-navy);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(255, 255, 255, 0.55); }

@media (max-width: 860px) {
  .footer-top,
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  footer { padding: 40px 0 24px; }
  .footer-top,
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* ============================================================
   9. UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-teal  { color: var(--teal); }
.text-coral { color: var(--coral); }
.text-navy  { color: var(--navy); }


/* ============================================================
   10. PRINT
   ============================================================ */
@media print {
  #nav { background: white !important; border-bottom: 1px solid #ccc; }
  .nav-logo { color: var(--navy) !important; }
  .nav-links, .nav-actions, .nav-hamburger { display: none !important; }
  footer { background: white !important; }
}
