/* Pacific Search AI — site-wide brand sheet */
:root {
  --navy: #0B1E3F;
  --cream: #F4EFE6;
  --citrus: #D9FF4F;
  --surf: #7DBBC2;
  --graph: #2B2B2B;
  --fog: #EDEDED;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--graph);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* Layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 40px; }
.rule { height: 1px; background: var(--navy); opacity: 0.12; }
.hairline { border: none; height: 1px; background: var(--navy); opacity: 0.12; margin: 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(11,30,63,0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity .15s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: ''; display: block; height: 7px; width: 7px; background: var(--citrus);
  margin: 6px auto 0; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  padding: 12px 22px; border: 1.5px solid var(--navy);
  background: var(--navy); color: var(--cream);
  letter-spacing: 0.01em;
  transition: transform .15s, background .15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: #14315e; }
.btn-cta {
  background: var(--citrus); color: var(--navy); border-color: var(--navy);
}
.btn-cta:hover { background: #c8ec3f; }
.btn-ghost {
  background: transparent; color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.6;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.03;
  margin: 0;
  font-weight: 300;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 6vw, 96px); }
h2 { font-size: clamp(34px, 3.6vw, 56px); }
h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 700; }
p { color: var(--graph); max-width: 60ch; text-wrap: pretty; }

/* Hero type */
.hero-kicker {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy); opacity: 0.55;
}

/* Section */
section { padding: 120px 0; }
section.tight { padding: 72px 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: end; margin-bottom: 56px;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

/* Tag / chip */
.tag {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 10px; letter-spacing: 0.04em;
  background: var(--citrus); color: var(--navy);
  border: 1px solid var(--navy);
  padding: 3px 8px; display: inline-block; line-height: 1.4;
}

/* Card */
.card {
  background: #fff; border: 1px solid var(--fog);
  padding: 32px; border-radius: 2px;
}

/* Trusted strip */
.founding {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); opacity: 0.6;
}
.founding .dot {
  width: 9px; height: 9px; background: var(--citrus);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--navy);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Footer */
footer {
  background: var(--navy); color: var(--cream);
  padding: 80px 0 40px;
}
footer h3 { color: var(--cream); }
footer a { color: var(--cream); opacity: 0.8; }
footer a:hover { opacity: 1; }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot-col h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.6; margin: 0 0 16px; font-weight: 500;
}
.foot-col a {
  display: block; font-size: 13px; line-height: 2; font-family: var(--font-body);
}
.foot-meta {
  border-top: 1px solid rgba(244,239,230,0.2);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.5;
}

/* Inputs */
input[type="text"], input[type="url"], input[type="email"], textarea {
  font-family: var(--font-body); font-size: 15px;
  padding: 14px 16px; border: 1px solid rgba(11,30,63,0.2);
  background: #fff; color: var(--navy);
  width: 100%; border-radius: 2px;
  transition: border-color .15s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--navy);
}
label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--navy); opacity: 0.7; margin-bottom: 8px;
  display: block;
}

/* Utility */
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mt-8 { margin-top: 64px; }
.muted { color: var(--graph); opacity: 0.7; }
.citrus { color: var(--citrus); }
.nowrap { white-space: nowrap; }
a.source-link { color: var(--navy); text-decoration: none; }
a.source-link:hover { text-decoration: underline; }

/* Dense mode (tweakable) */
body.dense section { padding: 72px 0; }
body.dense h1 { font-size: clamp(40px, 5vw, 72px); }
body.dense h2 { font-size: clamp(28px, 3vw, 44px); }

/* Minimal mode (tweakable) */
body.minimal .hero-art-wrap { opacity: 0.25; }
body.minimal .citrus-splash { background: transparent !important; color: var(--navy) !important; }

/* Responsive visibility helpers */
.only-mobile { display: none; }
@media (max-width: 860px) {
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
}

/* ===== Tablet + Mobile responsive ===== */
@media (max-width: 860px) {
  /* Layout containers */
  .wrap, .wrap-narrow { padding: 0 20px; }
  section { padding: 72px 0 !important; }

  /* Force any inline grid to single column on mobile */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Shrink oversized inline gaps that look huge when stacked */
  [style*="gap: 80"], [style*="gap:80"],
  [style*="gap: 72"], [style*="gap:72"],
  [style*="gap: 64"], [style*="gap:64"],
  [style*="gap: 60"], [style*="gap:60"] { gap: 40px !important; }

  /* Typography */
  h1 { font-size: clamp(34px, 9vw, 54px) !important; line-height: 1.08; }
  h2 { font-size: clamp(26px, 6vw, 40px) !important; }
  h3 { font-size: clamp(20px, 4.5vw, 26px) !important; }
  p { max-width: none; }

  /* Cards */
  .card { padding: 24px; }

  /* Hero art */
  .hero-art-wrap { min-height: 320px !important; }

  /* Nav: hide text links on mobile, keep logo + compact CTA */
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 12px; }
  .nav-inner { height: 60px; }
  .nav-links .btn-cta {
    padding: 8px 14px !important;
    font-size: 12px;
    letter-spacing: 0.02em;
  }
}

/* ===== Small mobile ===== */
@media (max-width: 520px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  section { padding: 56px 0 !important; }

  h1 { font-size: clamp(32px, 10vw, 44px) !important; }
  h2 { font-size: clamp(24px, 7vw, 34px) !important; }

  /* Big stat numbers inside The Math cards — tighten */
  [style*="font-size: 96px"] { font-size: 64px !important; }
  [style*="font-size: 56px"], [style*="font-size: 64px"] { font-size: 48px !important; }

  /* Big prices / money readouts — tighten */
  [style*="font-size: 36px"] { font-size: 28px !important; }

  /* Allow flex rows with space-between to wrap on tiny screens */
  [style*="justify-content: space-between"][style*="display: flex"] { flex-wrap: wrap; }
}
