/* ============================================================
   illustrate the web — static styles
   Palette carried over exactly from the brand tokens.
   ============================================================ */

:root {
  --background: oklch(0.972 0.012 25);
  --foreground: oklch(0.24 0.045 330);
  --card: oklch(0.995 0.005 60);
  --card-foreground: oklch(0.24 0.045 330);
  --primary: oklch(0.415 0.1 336);        /* logo plum #663366 */
  --primary-foreground: oklch(0.98 0.012 40);
  --secondary: oklch(0.95 0.02 30);
  --muted: oklch(0.955 0.018 40);
  --muted-foreground: oklch(0.5 0.05 340);
  --accent: oklch(0.45 0.16 25);          /* apple red */
  --border: oklch(0.9 0.022 30);
  --input: oklch(0.9 0.022 30);
  --ring: oklch(0.415 0.1 336);
  --peach: oklch(0.875 0.018 18);         /* blush */
  --destructive: oklch(0.577 0.245 27.325);

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --radius: 0.5rem;
  --maxw: 72rem;
}

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

* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

/* Ensure the [hidden] attribute always wins over display rules below */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.05; text-wrap: balance; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

.section { border-bottom: 1px solid var(--border); }
.section-bg { background-color: var(--background); }
.section-peach { background-color: color-mix(in oklch, var(--peach) 50%, var(--background)); }

.section .container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .section .container { padding-top: 6rem; padding-bottom: 6rem; }
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0;
}
.eyebrow-accent { color: var(--accent); }
.eyebrow-plum { color: var(--primary); }
.eyebrow-peach { color: var(--peach); }
.eyebrow-line { display: inline-block; width: 2rem; height: 1px; background: var(--peach); }

.section-title {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}
.btn-solid { background: var(--primary); color: var(--primary-foreground); }
.btn-solid:hover { opacity: 0.9; }
.btn-peach { background: var(--peach); color: var(--primary); box-shadow: 0 10px 25px -10px rgba(0,0,0,.4); }
.btn-peach:hover { transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: var(--primary-foreground); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  background: color-mix(in oklch, var(--background) 80%, transparent);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
}
.logo { height: 4rem; width: auto; }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  transition: color 0.15s ease;
}
.nav-desktop a:hover { font-weight: 700; color: color-mix(in oklch, var(--primary) 70%, transparent); }

.nav-cta { display: none; padding: 0.5rem 1.25rem; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  background: var(--background);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu a {
  display: block;
  border-radius: 0.375rem;
  padding: 0.75rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  transition: background-color 0.15s ease, font-weight 0.15s ease;
}
.mobile-menu a:hover { background: var(--secondary); font-weight: 700; }
.mobile-menu .mobile-cta { margin-top: 0.5rem; color: var(--primary-foreground); }
.mobile-menu .mobile-cta:hover { background: var(--primary); }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero-img { width: 100%; }
.hero-img-mobile { display: block; }
.hero-img-desktop { display: none; }
@media (min-width: 768px) {
  .hero-img-mobile { display: none; }
  .hero-img-desktop { display: block; }
}

.hero-copy { background: var(--primary); color: var(--primary-foreground); }
.hero-copy .container { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) {
  .hero-copy .container { padding-top: 4rem; padding-bottom: 4rem; }
}
.hero .eyebrow { margin-bottom: 1rem; }
.hero-title {
  max-width: 48rem;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 0.95;
}
.hero-title em { font-style: italic; color: var(--peach); }
.hero-sub {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: color-mix(in oklch, var(--primary-foreground) 85%, transparent);
}
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Stats ---------- */
.stats-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  transition: box-shadow 0.2s ease;
}
.stat-card:hover { box-shadow: 0 20px 50px -24px rgba(102,51,102,0.45); }
.stat-bar { display: block; height: 4px; width: 2.5rem; border-radius: 9999px; background: var(--accent); }
.stat-value {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 5vw, 3.75rem);
  color: var(--primary);
}
.stat-label { margin-top: 1rem; font-size: 1rem; font-weight: 600; color: var(--foreground); }
.stat-note { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Reasons ---------- */
.reasons-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .reasons-grid { grid-template-columns: repeat(2, 1fr); } }

.reason-card {
  display: flex;
  gap: 1.25rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  padding: 1.75rem;
}
.reason-num { font-family: var(--font-serif); font-weight: 500; font-size: 1.875rem; color: var(--accent); }
.reason-title { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; color: var(--primary); }
.reason-body { margin-top: 0.5rem; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Ad examples ---------- */
.ads-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ads-grid { grid-template-columns: repeat(2, 1fr); } }

.ad-figure {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: box-shadow 0.3s ease;
}
.ad-figure:hover { box-shadow: 0 24px 60px -28px rgba(102,51,102,0.55); }
.ad-figure img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ad-figure:hover img { transform: scale(1.05); }

/* ---------- Testimonial ---------- */
.testimonial { background: var(--primary); color: var(--primary-foreground); }
.testimonial-inner {
  max-width: 56rem;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .testimonial-inner { padding-top: 7rem; padding-bottom: 7rem; }
}
.stars { display: flex; justify-content: center; gap: 0.25rem; margin-bottom: 1.5rem; }
.stars svg { width: 1.25rem; height: 1.25rem; fill: var(--peach); }
.quote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.5;
}
.quote-author { margin-top: 2.5rem; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.author-photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
}
.author-meta { text-align: left; }
.author-name { font-weight: 500; }
.author-company { font-size: 0.875rem; color: color-mix(in oklch, var(--primary-foreground) 70%, transparent); }

/* ---------- Comparison ---------- */
.comparison-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) {
  .comparison-grid { grid-template-columns: 1fr 1.4fr; }
}
.compare-callout { margin-top: 2rem; display: flex; align-items: baseline; gap: 0.75rem; }
.compare-multiplier { font-family: var(--font-serif); font-weight: 500; font-size: clamp(4.5rem, 10vw, 6rem); color: var(--primary); }
.compare-text { max-width: 12rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

.bars { display: flex; flex-direction: column; gap: 2rem; }
.bar-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.5rem; }
.bar-label { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.bar-value { font-family: var(--font-serif); font-weight: 500; font-size: 1.875rem; color: var(--primary); }
.bar-track { height: 2rem; width: 100%; overflow: hidden; border-radius: 9999px; background: var(--card); }
.bar-fill { height: 100%; border-radius: 9999px; transition: width 1s ease; }
.bar-fill-strong { background: var(--primary); }
.bar-fill-weak { background: color-mix(in oklch, var(--primary) 30%, transparent); }
.bar-caption { font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Contact ---------- */
.contact { background: var(--primary); color: var(--primary-foreground); }
.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); padding-top: 7rem; padding-bottom: 7rem; }
}
.contact-title { color: var(--primary-foreground); max-width: 28rem; }
.contact-lead { margin-top: 1.5rem; max-width: 28rem; line-height: 1.6; color: color-mix(in oklch, var(--primary-foreground) 80%, transparent); }
.contact-note { margin-top: 1.5rem; font-size: 0.875rem; color: color-mix(in oklch, var(--primary-foreground) 60%, transparent); }

.form-card { background: var(--card); color: var(--card-foreground); border-radius: 1rem; padding: 1.5rem; }
@media (min-width: 768px) { .form-card { padding: 2rem; } }
.concept-form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.field input,
.field textarea {
  border: 1px solid var(--input);
  background: var(--background);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: none; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-foreground); }
.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 30%, transparent);
}
.form-error { font-size: 0.875rem; color: var(--destructive); }
.form-submit { margin-top: 0.5rem; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success { display: flex; flex-direction: column; gap: 0.75rem; padding: 2rem 0; }
.form-success h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; color: var(--foreground); }
.form-success p { line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--background); }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-nav a:hover { color: var(--primary); }
.footer-copy { font-size: 0.875rem; color: var(--muted-foreground); }
