/*
 * Perchari marketing site palette.
 * Warm and light, taken from the brand mark (brand/README.md): the gold tile
 * the robin sits on, its one red accent, and the near-white the horizontal
 * lockup is flattened onto. Deliberately the inverse of the Revres landing
 * (deep navy) -- same layout, different product.
 *
 * Gold accent + red highlight + warm ink over near-white.
 */

:root {
  --bg: #fcfaf5;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-solid: #ffffff;
  --bg-cta: linear-gradient(110deg, #f0be45 0%, #f7cf3d 55%, #d9a23c 100%);
  --bg-cta-hover: linear-gradient(110deg, #f7cf3d 0%, #ffdd6b 55%, #f0be45 100%);
  --text: #34302a;
  --text-secondary: #5b5349;
  --text-muted: #6f665c;
  --text-subtle: #8b8175;
  --accent: #d9a23c;
  --accent-hover: #c08c2c;
  --accent-secondary: #e23a5b;
  --accent-highlight: #f0be45;
  --rule: rgba(91, 83, 73, 0.18);
  --rule-subtle: rgba(240, 190, 69, 0.35);
  --eyebrow: #a5741f;
  --selection: rgba(240, 190, 69, 0.45);
  --max-width: 1100px;
  --legal-max-width: 720px;

  /* Ad slot: Perchari does not run ads. Kept at none so the shared skeleton's
     .ad-slot rules stay inert if the markup is ever copied in. */
  --ads-display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--selection);
  color: var(--text);
}

/*
 * Cosmic-dust backdrop, Pulse edition: cobalt + cyan + lavender layers
 * matching pulseAtmosphereLayers from the shared library.
 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at -8% 6%, rgba(91, 141, 239, 0.22), transparent 55%),
    radial-gradient(circle at 60% -4%, rgba(76, 201, 240, 0.16), transparent 55%),
    radial-gradient(circle at 72% 60%, rgba(184, 163, 255, 0.14), transparent 55%),
    radial-gradient(circle at -4% 78%, rgba(91, 141, 239, 0.1), transparent 55%);
  z-index: 0;
}

a {
  color: var(--accent-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  transition:
    color 120ms cubic-bezier(0.25, 0.1, 0.25, 1),
    text-decoration-color 120ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

a:hover {
  color: var(--text);
  text-decoration-color: var(--accent-hover);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 96px;
  font-size: 14px;
  color: var(--text-muted);
  display: block;
}

.site-footer .footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer .attribution {
  color: var(--text-subtle);
  font-size: 13px;
  margin-top: 4px;
}

.site-header .brand {
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-header nav,
.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.site-header nav a[aria-current='page'],
.site-footer nav a[aria-current='page'] {
  color: var(--text);
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 32px 0;
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  padding: 64px 0 88px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin: 0 0 28px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 32px;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero h1 .gradient-line {
  background: linear-gradient(110deg, #7ba5ff 0%, #4cc9f0 45%, #b8a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .tagline {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(240, 244, 255, 0.78);
  margin: 0 0 32px;
  max-width: 620px;
  text-wrap: pretty;
}

/* ---- CTA ----------------------------------------------------------------- */

.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0;
}

.cta {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: #080c1a;
  background: var(--bg-cta);
  text-decoration: none;
  transition: background 160ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cta:hover {
  background: var(--bg-cta-hover);
  color: #080c1a;
  text-decoration: none;
}

.cta-secondary {
  font-size: 15px;
  color: var(--text-muted);
}

.cta-secondary a {
  color: var(--text-secondary);
}

/* ---- Body sections ------------------------------------------------------- */

section + section {
  margin-top: 56px;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 16px;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

p,
address {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

address {
  font-style: normal;
  color: var(--text-muted);
}

ul {
  color: var(--text-secondary);
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

li::marker {
  color: var(--accent);
}

/* ---- Feature cards ------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.feature {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  background: linear-gradient(90deg, rgba(91, 141, 239, 0.06) 0%, transparent 60%);
  border-radius: 0 8px 8px 0;
}

.feature h3 {
  margin-top: 0;
  color: var(--accent-hover);
}

.feature p {
  margin-bottom: 0;
}

/* ---- Ad slot ------------------------------------------------------------- */

/*
 * Single tasteful ad slot. Wrapper holds disclosure label + ad content;
 * the actual ad payload is injected by whatever network we pick (kept
 * privacy-respecting per the trust-first positioning -- no cross-site
 * tracking pixels here).
 */
.ad-slot {
  display: var(--ads-display);
  margin: 64px 0 0;
  padding: 24px;
  border: 1px solid var(--rule-subtle);
  border-radius: 12px;
  background: var(--bg-card);
  text-align: center;
}

.ad-slot .ad-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 12px;
}

.ad-slot .ad-placeholder {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Utility pages -------------------------------------------------------- */

.not-found {
  min-height: 48vh;
  padding: 80px 0;
  max-width: 640px;
}

.not-found h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 24px;
}

/* ---- Legal pages --------------------------------------------------------- */

.legal {
  max-width: var(--legal-max-width);
  margin: 0 auto;
}

.legal h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 32px 0 8px;
}

.legal .effective {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.legal .disclaimer {
  font-size: 13px;
  color: var(--text-subtle);
  border: 1px solid var(--rule-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 24px 0 40px;
  background: var(--bg-card);
}

.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-secondary);
}

.legal .emphasis {
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 40px 0 64px;
  }
  .hero h1 {
    font-size: clamp(40px, 12vw, 64px);
  }
  .hero .tagline {
    font-size: 18px;
  }
  .legal h1 {
    font-size: 30px;
  }
  .site-header,
  .site-footer,
  .page {
    padding-left: 22px;
    padding-right: 22px;
  }
  .features {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  a,
  .cta {
    transition: none;
  }
}
