/* ============================================================
   Anxiety-free Intelligence — Design System
   Light theme: off-white background, dark ink, brand purple accent
   Fonts: Inter (body) + Instrument Serif (headings)
   ============================================================ */

:root {
  /* Brand — inloop.studio purple */
  --brand-400: #8b67ff;
  --brand-500: #7147ff;
  --brand-600: #5a36e6;
  --brand-700: #4427bf;

  /* Light surface neutrals */
  --bg:        #f9f8f6;   /* warm off-white page background  */
  --surface:   #ffffff;   /* card / panel surface            */
  --border:    #e4e2dd;   /* subtle dividers                 */
  --border-md: #cdc9c1;   /* slightly stronger borders       */

  /* Ink scale — dark-on-light */
  --ink-900:   #1a1714;   /* headings                        */
  --ink-700:   #3d3a34;   /* primary body text               */
  --ink-500:   #6b6560;   /* secondary / muted text          */
  --ink-300:   #9e9890;   /* placeholder / disabled          */

  /* Brand tints for light surfaces */
  --brand-tint-soft:   rgba(113,71,255,0.06);
  --brand-tint-medium: rgba(113,71,255,0.12);
  --brand-border:      rgba(113,71,255,0.25);

  /* Typography */
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-heading: 'Instrument Serif', Georgia, serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Long-form prose column — matches highagency.com readability */
.container--prose {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--ink-900);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-tag {
  font-size: 0.75rem;
  color: var(--ink-400);
  letter-spacing: 0.04em;
  font-style: italic;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--ink-500);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--ink-900); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Very faint purple wash behind hero — visible on light bg */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60rem;
  height: 40rem;
  background: radial-gradient(ellipse at center, rgba(113,71,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--brand-border);
  border-radius: 9999px;
  background: var(--brand-tint-soft);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: normal;
  color: var(--brand-500);
}

.hero-headline .hero-title {
  font-size: 1.4em;
}

.hero-headline .initial {
  color: var(--brand-500);
  font-weight: 700;
}

.hero-subhead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--ink-500);
  max-width: 36rem;
  margin: 0 auto 3rem;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--brand-500);
  color: #ffffff;
  border: 1px solid var(--brand-500);
}

.btn-primary:hover {
  background-color: var(--brand-600);
  border-color: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(113,71,255,0.25);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink-500);
  border: 1px solid var(--border-md);
}

.btn-ghost:hover {
  color: var(--ink-900);
  border-color: var(--ink-500);
  transform: translateY(-1px);
}

/* ── Sections ─────────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--brand-500);
}

.section-body {
  font-size: 1.0625rem;
  color: var(--ink-700);
  line-height: 1.75;
}

.section-body p + p {
  margin-top: 1rem;
}

/* ── Long-form prose (highagency.com style) ──────────────────── */
.prose {
  font-size: 1.0625rem;
  color: var(--ink-700);
  line-height: 1.8;
}

.prose p { margin-bottom: 1.25rem; }

.prose p:last-child { margin-bottom: 0; }

.prose strong {
  font-weight: 700;
  color: var(--ink-900);
}

.prose em {
  font-style: italic;
  color: var(--ink-900);
}

.prose blockquote {
  border-left: 3px solid var(--brand-500);
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--ink-500);
  font-style: italic;
  font-size: 1.125rem;
}

/* ── Anxiety cards ───────────────────────────────────────────── */
.anxiety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 3rem;
}

.anxiety-card {
  background-color: var(--surface);
  padding: 2rem;
  transition: background-color 0.2s;
}

.anxiety-card:hover {
  background-color: var(--brand-tint-soft);
}

.anxiety-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.anxiety-card-text {
  font-size: 1rem;
  color: var(--ink-500);
  line-height: 1.6;
  font-style: italic;
}

/* ── Quote / pull-quote block ────────────────────────────────── */
.truth-block {
  background: var(--brand-tint-soft);
  border: 1px solid var(--brand-border);
  border-radius: 1.5rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.truth-block::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(113,71,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.truth-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.35;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.truth-quote em { color: var(--brand-500); font-style: italic; }

/* ── Stats row ───────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--brand-500);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--ink-500);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ── Four Actors grid ────────────────────────────────────────── */
.actors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.actor-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  transition: border-color 0.2s;
}

.actor-card:hover {
  border-color: var(--brand-border);
}

.actor-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}

.actor-desc {
  font-size: 0.9rem;
  color: var(--ink-500);
  line-height: 1.55;
}

/* ── Process ─────────────────────────────────────────────────── */
.process-steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

.process-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  transition: border-color 0.2s;
}

.process-step:hover {
  border-color: var(--brand-border);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brand-500);
  line-height: 1;
  padding-top: 0.125rem;
}

.step-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-900);
  margin-bottom: 0.375rem;
}

.step-body {
  font-size: 0.9375rem;
  color: var(--ink-500);
  line-height: 1.6;
}

/* ── Proof comparison cards ──────────────────────────────────── */
.proof-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.proof-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.proof-card--highlighted {
  border-color: var(--brand-border);
  background: var(--brand-tint-soft);
}

.proof-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 1.25rem;
}

.proof-card--highlighted .proof-card-label {
  color: var(--brand-600);
}

.proof-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.proof-list li {
  font-size: 0.9375rem;
  line-height: 1.5;
  padding-left: 1.5rem;
  position: relative;
}

.proof-list--against li { color: var(--ink-300); }

.proof-list--against li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: var(--ink-300);
  font-weight: 600;
}

.proof-list--for li { color: var(--ink-700); }

.proof-list--for li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-500);
  font-weight: 600;
}

/* ── Chapter / part heading (long-form) ──────────────────────── */
.part-heading {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-300);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 7rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 1.25rem;
}

.cta-title em { color: var(--brand-500); font-style: italic; }

.cta-body {
  font-size: 1.125rem;
  color: var(--ink-500);
  margin-bottom: 2.5rem;
}

.tagline-statement {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--ink-700);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-attribution {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--ink-300);
}

.cta-attribution a {
  color: var(--brand-600);
  text-decoration: none;
}

.cta-attribution a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg);
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--ink-300);
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--brand-600);
  text-decoration: none;
}

.footer-link:hover { text-decoration: underline; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-md), transparent);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .anxiety-grid,
  .diagnosis-grid,
  .proof-row {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 640px) {
  .hero { padding: 4rem 0 3rem; }
  .truth-block { padding: 2rem 1.5rem; }
  .process-step { grid-template-columns: 1fr; gap: 0.75rem; }
  .step-number { font-size: 1.125rem; }
  footer .container { flex-direction: column; align-items: flex-start; }
}
