/* ============================================================
   PressAura — Site styles (site.css)
   Shared layout + components for all pages.
   Requires tokens.css loaded first.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink-1);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
/* Paper grain */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.13  0 0 0 0 0.11  0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal-deep); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
section { position: relative; z-index: 2; }

/* ------------------------------------------------ Header */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 234, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
header.site-header.scrolled { border-bottom-color: var(--ink-5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.logo {
  font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink-1);
  letter-spacing: -0.01em; text-decoration: none; display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.logo-dot { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; display: inline-block; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-3);
  text-decoration: none; transition: color 0.2s ease; white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--ink-1); }
nav.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--signal); padding-bottom: 2px; }
.nav-cta-mobile { display: none; }

.header-cta {
  font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--paper); text-decoration: none; padding: 11px 20px;
  background: var(--ink-1); border: 1px solid var(--ink-1); border-radius: 100px;
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.header-cta:hover { background: var(--signal-deep); border-color: var(--signal-deep); }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-1); margin: 5px 0; transition: all 0.25s var(--ease); }

/* ------------------------------------------------ Type & sections */
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-3); display: inline-flex; align-items: center;
  gap: 10px; margin-bottom: 24px;
}
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); position: relative; }
.eyebrow .pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--signal); opacity: 0; animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

h1.headline {
  font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 84px);
  line-height: 1.0; letter-spacing: -0.025em; color: var(--ink-1); margin-bottom: 26px; max-width: 900px;
}
h1.headline em, h2 em { font-style: italic; color: var(--signal-deep); }

.section-label {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-4); margin-bottom: 18px;
}
h2.section-title {
  font-family: var(--serif); font-size: clamp(34px, 4.5vw, 52px); line-height: 1.05;
  letter-spacing: -0.02em; font-weight: 400; color: var(--ink-1); margin-bottom: 24px; max-width: 800px;
}
.lede { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-deep { background: var(--paper-deep); }

.hero { padding: 80px 0 88px; }
.hero .eyebrow { opacity: 0; animation: fadeUp 0.7s var(--ease) 0.1s forwards; }
.hero h1.headline { opacity: 0; animation: fadeUp 0.9s var(--ease) 0.25s forwards; }
.hero .lede, .hero .hero-actions { opacity: 0; animation: fadeUp 0.9s var(--ease) 0.4s forwards; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* ------------------------------------------------ Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--signal); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 15px 28px; border-radius: 100px; border: 0; cursor: pointer;
  transition: all 0.22s var(--ease);
}
.btn-primary:hover { background: var(--signal-deep); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--ink-1); text-decoration: none;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 14px 26px; border-radius: 100px; border: 1px solid var(--ink-1); cursor: pointer;
  transition: all 0.22s var(--ease);
}
.btn-secondary:hover { background: var(--ink-1); color: var(--paper); }
.text-link { color: var(--signal-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--signal-soft); transition: border-color 0.2s ease; }
.text-link:hover { border-bottom-color: var(--signal-deep); }

/* ------------------------------------------------ Cards & grids */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper-soft); border: 1px solid var(--ink-5);
  border-radius: 16px; padding: 32px 28px; transition: all 0.25s var(--ease);
}
.card:hover { border-color: var(--ink-4); transform: translateY(-2px); }
.card .kicker {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--signal-deep); margin-bottom: 14px;
}
.card h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 10px; line-height: 1.15; }
.card p { font-size: 14.5px; color: var(--ink-3); line-height: 1.6; }
.card p + p { margin-top: 10px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; counter-reset: step; }
.step {
  background: var(--paper-soft); border: 1px solid var(--ink-5); border-radius: 16px; padding: 32px 28px; position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 12px; color: var(--signal-deep);
  letter-spacing: 0.1em; display: block; margin-bottom: 16px;
}
.step h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-3); line-height: 1.6; }

/* ------------------------------------------------ Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.price-card {
  background: var(--paper-soft); border: 1px solid var(--ink-5);
  border-radius: 18px; padding: 36px 30px; position: relative; display: flex; flex-direction: column;
  transition: all 0.3s var(--ease);
}
.price-card:hover { border-color: var(--ink-4); }
.price-card.featured { border: 2px solid var(--signal); background: #fff; }
.price-tag {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: #fff; background: var(--signal);
  padding: 4px 12px; border-radius: 100px; position: absolute; top: -12px; left: 30px;
}
.price-name { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 4px; }
.price-tagline {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-4); margin-bottom: 26px;
}
.price-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.price-num { font-family: var(--serif); font-size: 54px; line-height: 1; font-weight: 400; }
.price-unit { font-size: 14px; color: var(--ink-3); }
.price-list { list-style: none; margin-bottom: 28px; flex-grow: 1; }
.price-list li {
  font-size: 14px; color: var(--ink-2); padding: 9px 0;
  border-top: 1px solid var(--paper-deep);
  display: flex; align-items: flex-start; gap: 10px;
}
.price-list li::before { content: '→'; color: var(--signal-deep); font-family: var(--mono); font-weight: 500; flex-shrink: 0; }
.price-card .btn-primary, .price-card .btn-secondary { justify-content: center; width: 100%; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 40px; background: var(--paper-soft); border: 1px solid var(--ink-5); border-radius: 16px; overflow: hidden; }
.compare-table th, .compare-table td { text-align: left; padding: 16px 18px; font-size: 14px; border-bottom: 1px solid var(--paper-deep); vertical-align: top; }
.compare-table th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); background: var(--paper-deep); }
.compare-table td:first-child { font-weight: 600; color: var(--ink-1); }
.compare-table td { color: var(--ink-2); }
.compare-table .yes { color: var(--signal-deep); font-weight: 600; }
.compare-table .no { color: var(--ink-4); }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------ FAQ accordion */
.faq-list { margin-top: 40px; border-top: 1px solid var(--ink-5); }
.faq-item { border-bottom: 1px solid var(--ink-5); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); color: var(--ink-1);
  padding: 24px 48px 24px 0; position: relative; line-height: 1.3;
}
.faq-q::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 22px; color: var(--ink-4); transition: transform 0.25s var(--ease);
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); color: var(--signal-deep); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a-inner { padding: 0 0 26px; font-size: 15px; color: var(--ink-2); line-height: 1.65; max-width: 680px; }
.faq-a-inner p + p { margin-top: 12px; }

/* ------------------------------------------------ CTA band */
.cta-band { background: var(--ink-1); color: var(--paper); padding: 96px 0; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 20px; }
.cta-band h2 em { font-style: italic; color: var(--signal); }
.cta-band p { color: rgba(246, 242, 234, 0.75); max-width: 560px; font-size: 16.5px; margin-bottom: 36px; }
.cta-band .micro { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(246,242,234,0.5); margin-top: 20px; }

/* ------------------------------------------------ Forms */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 16px; font-family: var(--sans); font-size: 15px; color: var(--ink-1);
  background: var(--paper-soft); border: 1px solid var(--ink-5); border-radius: 10px;
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--signal-deep); }
.form-note { font-size: 12.5px; color: var(--ink-4); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: 14px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: var(--signal-deep); }
.form-status.err { display: block; color: #B0432E; }

/* ------------------------------------------------ Prose (legal, blog) */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; margin: 44px 0 14px; line-height: 1.15; }
.prose h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; margin: 32px 0 10px; }
.prose p { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 6px; }
.prose .updated { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); margin-bottom: 32px; }

/* Blog cards */
.post-card { display: block; text-decoration: none; }
.post-card .date { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); margin-bottom: 12px; }

/* Breadcrumbs */
.breadcrumbs { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); padding: 24px 0 0; }
.breadcrumbs a { color: var(--ink-4); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink-1); }

/* ------------------------------------------------ Footer */
footer.site-footer { background: var(--paper-deep); border-top: 1px solid var(--ink-5); padding: 72px 0 40px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-brand p { font-size: 14px; color: var(--ink-3); max-width: 320px; margin-top: 14px; line-height: 1.6; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-4); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--ink-1); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--ink-5);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4);
}
.footer-bottom a { color: var(--ink-4); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink-1); }

/* ------------------------------------------------ Responsive */
@media (max-width: 940px) {
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper-soft); border-bottom: 1px solid var(--ink-5);
    flex-direction: column; align-items: flex-start; padding: 20px 32px; gap: 18px;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner .header-cta { display: none; }
  .nav-cta-mobile { display: inline-block !important; color: var(--signal-deep) !important; font-weight: 600; }
  .card-grid, .card-grid.two, .steps, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
}
@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; justify-content: center; }
}
