/* ============================================
   WICFLOW — Base Styles
   "The Quiet Confidence" — Light Monochrome Editorial
   ============================================ */

/* CSS Variables */
:root {
  /* Colors */
  --bg-primary: #f7f7f5;
  --bg-alt: #eeeee9;
  --bg-dark: #111113;
  --bg-black: #000000;
  --text-primary: #111113;
  --text-muted: #626b7a;
  --text-light: #f0f0f2;
  --text-light-muted: hsla(240, 7%, 95%, 0.6);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: clamp(3rem, 5vw, 5rem);
  --container-max: 1280px;
  --container-padding: clamp(1.5rem, 4vw, 4rem);

  /* Transitions & Easing */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --speed-fast: 0.12s;
  --speed-base: 0.25s;
  --transition-fast: 0.2s var(--ease-out);
  --transition-medium: 0.3s var(--ease-spring);
}

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

html {
  font-size: clamp(15px, 1.1vw, 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.015em;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1 {
  font-size: clamp(3rem, 5.5vw, 6rem);
  letter-spacing: -0.055em;
  line-height: 1.0;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

p {
  max-width: 65ch;
}

/* Shared Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* Section Number Pill */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  background: var(--bg-alt);
  border-radius: 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.section-label .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 500;
}

/* Pill CTA Button */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  overflow: hidden;
  position: relative;
}

.btn-pill-dark {
  background: var(--text-primary);
  color: var(--bg-primary);
}

@media (any-hover: hover) {
  .btn-pill-dark:hover {
    background: #2a2a2c;
    transform: translateY(-1px);
  }
}

.btn-pill-dark:active {
  transform: scale(0.97);
}

.btn-pill-light {
  background: var(--text-light);
  color: var(--text-primary);
}

@media (any-hover: hover) {
  .btn-pill-light:hover {
    background: #ffffff;
    transform: translateY(-1px);
  }
}

.btn-pill-light:active {
  transform: scale(0.97);
}

/* Tag Pills */
.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--bg-alt);
  border-radius: 2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.65;
}

/* Scroll Reveal (initial hidden state) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Selection */
::selection {
  background: rgba(17, 17, 19, 0.12);
}

/* iter4 — What is Wicflow GEO block */
.what-is {
  padding: 64px 0 32px;
  background: var(--bg-cream, #f7f7f5);
}
.what-is__lead {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 16px;
  color: var(--text, #0a0a0a);
}
.what-is__clients {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted, #555);
}
@media (max-width: 768px) {
  .what-is { padding: 40px 0 24px; }
  .what-is__lead { font-size: 1rem; }
}

/* iter5 — tech-strip + founder links */
.tech-strip {
  padding: 32px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tech-strip__container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.tech-strip__row {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.65);
  letter-spacing: 0.02em;
}
.tech-strip__label {
  font-weight: 600;
  color: rgba(0,0,0,0.85);
  margin-right: 12px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.tech-strip__items { font-weight: 400; }

.founder__links {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.founder__link {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text, #0a0a0a);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.founder__link:hover { opacity: 0.6; }

@media (max-width: 768px) {
  .tech-strip { padding: 24px 0; }
  .tech-strip__row { font-size: 0.8rem; }
}

/* iter8 — blog strip on homepage */
.blog-strip { padding: 80px 0; background: var(--bg-cream, #f7f7f5); }
.blog-strip__header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.blog-strip__heading { font-family: 'Instrument Serif', serif; font-size: 2.2rem; line-height: 1.1; margin: 0 0 12px; color: var(--text, #0a0a0a); }
.blog-strip__lead { font-size: 1rem; color: var(--text-muted, #555); }
.blog-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.blog-strip__card { display: block; padding: 24px; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.blog-strip__card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.blog-strip__card-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(0,0,0,0.55); margin-bottom: 12px; }
.blog-strip__card-title { font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin: 0 0 12px; color: var(--text, #0a0a0a); }
.blog-strip__card-summary { font-size: 0.9rem; line-height: 1.55; color: var(--text-muted, #555); margin-bottom: 12px; }
.blog-strip__card-cta { font-size: 0.85rem; font-weight: 600; color: var(--text, #0a0a0a); }
.blog-strip__all { display: inline-block; margin: 32px auto 0; font-size: 0.95rem; color: var(--text, #0a0a0a); border-bottom: 1px solid currentColor; padding-bottom: 2px; text-decoration: none; }
@media (max-width: 900px) { .blog-strip__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-strip__grid { grid-template-columns: 1fr; } .blog-strip { padding: 56px 0; } }

/* iter9 — comparison table */
.comparison { padding: 80px 0; background: #fff; }
.comparison__header { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.comparison__heading { font-family: 'Instrument Serif', serif; font-size: 2.2rem; line-height: 1.1; margin: 0 0 12px; color: var(--text, #0a0a0a); }
.comparison__lead { font-size: 1rem; color: var(--text-muted, #555); }
.comparison__table-wrap { max-width: 980px; margin: 0 auto; overflow-x: auto; }
.comparison__table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.comparison__table th, .comparison__table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.06); vertical-align: top; }
.comparison__table thead th { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(0,0,0,0.7); border-bottom: 2px solid rgba(0,0,0,0.12); }
.comparison__table thead th:nth-child(2) { color: var(--accent, #0a0a0a); background: rgba(0,0,0,0.02); }
.comparison__table tbody td { color: var(--text-muted, #555); }
.comparison__table tbody td:first-child { font-weight: 600; color: var(--text, #0a0a0a); white-space: nowrap; }
.comparison__table tbody td:nth-child(2) { background: rgba(0,0,0,0.02); }
.comparison__table tbody td strong { color: var(--text, #0a0a0a); }
@media (max-width: 768px) {
  .comparison__heading { font-size: 1.6rem; }
  .comparison__table { font-size: 0.85rem; }
  .comparison__table th, .comparison__table td { padding: 12px; }
}


/* A3 — comparison table mobile fix: stack as cards on phone */
@media (max-width: 600px) {
  .comparison__table thead { display: none; }
  .comparison__table, .comparison__table tbody, .comparison__table tr, .comparison__table td {
    display: block;
    width: 100%;
  }
  .comparison__table tr {
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
  }
  .comparison__table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    text-align: left;
  }
  .comparison__table td:last-child { border-bottom: none; }
  .comparison__table td:first-child {
    font-weight: 700;
    background: transparent;
    border-bottom: 2px solid rgba(0,0,0,0.12);
    padding-bottom: 12px;
    margin-bottom: 8px;
  }
  /* Label each cell with the column header */
  .comparison__table td:nth-of-type(2)::before { content: "Wicflow: "; font-weight: 600; color: rgba(0,0,0,0.55); }
  .comparison__table td:nth-of-type(3)::before { content: "In-house: "; font-weight: 600; color: rgba(0,0,0,0.55); }
  .comparison__table td:nth-of-type(4)::before { content: "Freelance: "; font-weight: 600; color: rgba(0,0,0,0.55); }
}
