/*
Theme Name: AIvisible
Theme URI: https://aivisible.io
Author: AIvisible
Author URI: https://aivisible.io
Description: Theme for AIvisible — AI visibility audits for B2B brands. Built on the AIvisible brand system (Presence Blue / Absent Grey / Flare Pink).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: aivisible
*/

/* ==========================================================================
   DESIGN TOKENS — mirrors the AIvisible brand book. Change values here only.
   ========================================================================== */
:root {
  --paper: #F6F4EE;
  --paper-deep: #E7EAFB;
  --ink: #121214;
  --ink-soft: #55534E;
  --presence: #2E45F5;
  --presence-deep: #1D2CB0;
  --absent: #B7B2A6;
  --absent-line: #D8D4C8;
  --flare: #FF2E88;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --container: 1120px;
  --radius: 10px;
}

/* ==========================================================================
   RESET
   ========================================================================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.4em;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 800;
}
p { margin: 0 0 1em; }
button, input, textarea, select { font-family: var(--font-body); font-size: 16px; }

/* Focus visibility — accessibility floor */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--presence);
  outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

/* ==========================================================================
   TYPE SCALE
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--presence);
  margin-bottom: 14px;
  display: block;
}
h1.display { font-size: clamp(40px, 6vw, 68px); font-weight: 900; max-width: 780px; }
h2.display { font-size: clamp(30px, 4vw, 44px); font-weight: 800; max-width: 680px; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 560px; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--absent-line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-logo img { height: 30px; width: auto; }
.primary-nav ul { display: flex; gap: 32px; align-items: center; }
.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.primary-nav a:hover { color: var(--presence); }
.nav-cta {
  background: var(--flare);
  color: white !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius);
}
.menu-toggle { display: none; }

@media (max-width: 780px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--absent-line);
    padding: 16px 24px 24px;
  }
  .primary-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .menu-toggle { display: block; background: none; border: none; font-size: 22px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { color: var(--paper); }
.hero .found { color: var(--presence); }
.hero p.lede { color: var(--absent); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-scan { display: none; }
}

/* The hero's one deliberate bold moment: a floating "live scan" card that
   demonstrates the actual product mechanic instead of decorating with
   generic AI imagery. */
.hero-scan-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 26px;
  transform: rotate(-2.5deg);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.45);
}
.hero-scan-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.hero-scan-text {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.hero-scan-text .found { color: var(--presence); font-weight: 600; }
.hero-scan-text .absent-text { color: var(--absent); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--absent); }
.hero-scan-pills { display: flex; gap: 8px; flex-wrap: wrap; }

/* Section dividers — a deliberate, consistent structural rule: any two
   stacked top-level sections get a Presence Blue seam between them. */
.section + .section,
.section + .section-tight,
.section-tight + .section,
.section-tight + .section-tight,
.hero + .section,
.hero + .section-tight {
  border-top: 2px solid var(--presence);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}
.btn-flare { background: var(--flare); color: #fff; }
.btn-flare:hover { background: #e0257a; }
.btn-outline { background: transparent; color: var(--paper); border: 1px solid var(--absent); }
.btn-outline:hover { border-color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   PRESENCE SYSTEM DEMO (reused across Home / Audit / Sample Report)
   ========================================================================== */
.presence-demo {
  background: #fff;
  border: 1px solid var(--absent-line);
  border-radius: var(--radius);
  padding: 40px;
}
.presence-demo h3 { font-size: 17px; margin-bottom: 20px; }
.prompt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 3px;
  margin-bottom: 2px;
}
.prompt-row.on { background: rgba(46,69,245,0.06); }
.prompt-row.off { background: rgba(0,0,0,0.02); }
.prompt-row.off .prompt-text { color: var(--ink-soft); }
.status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 20px;
  color: #fff;
}
.status-pill.on { background: var(--presence); }
.status-pill.off { background: var(--absent); }

/* ==========================================================================
   CARDS / GRID
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: #fff;
  border: 1px solid var(--absent-line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 0; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.price-card { text-align: left; }
.price-card .price { font-family: var(--font-display); font-size: 40px; font-weight: 900; margin: 8px 0 4px; }
.price-card .price-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); margin-bottom: 24px; }
.price-card ul { margin-bottom: 28px; }
.price-card li {
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--absent-line);
}
.price-card li:first-child { border-top: none; }
.price-card.featured { border: 2px solid var(--presence); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--absent);
  padding: 64px 0 32px;
}
.site-footer a { color: var(--paper); }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: var(--paper); font-size: 14px; margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid #2A2A2E;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
@media (max-width: 780px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.post-list-item { padding: 32px 0; border-bottom: 1px solid var(--absent-line); }
.post-list-item h2 { font-size: 24px; margin-bottom: 8px; }
.post-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); margin-bottom: 12px; }
.entry-content { max-width: 680px; font-size: 18px; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content p { margin-bottom: 1.4em; }

/* ==========================================================================
   FORMS (free scan / contact)
   ========================================================================== */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--absent-line);
  border-radius: var(--radius);
  background: #fff;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--presence); }
