/* ===================================================================
   Autom8Task — main.css
   Production stylesheet. Mobile-first. BEM-ish naming.
   =================================================================== */

/* -------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------- */
:root {
  --primary: #3C3489;
  --primary-light: #534AB7;
  --accent: #7F77DD;
  --accent-bright: #AFA9EC;
  --green: #5DCAA5;
  --green-dark: #0F6E56;
  --cream: #F9F8F4;
  --beige: #F1EFE8;
  --border: #D3D1C7;
  --text-dark: #26215C;
  --text-med: #5F5E5A;
  --text-light: #888780;
  --white: #ffffff;

  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  --gradient-soft: linear-gradient(135deg, var(--accent-bright) 0%, var(--cream) 100%);

  --shadow-sm: 0 1px 2px rgba(38, 33, 92, 0.06);
  --shadow-md: 0 4px 16px rgba(38, 33, 92, 0.08);
  --shadow-lg: 0 16px 48px rgba(38, 33, 92, 0.12);
  --shadow-xl: 0 24px 64px rgba(38, 33, 92, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --maxw: 1200px;
  --nav-h: 72px;

  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'SF Mono', Consolas, monospace;

  --t-fast: 150ms ease;
  --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--primary-light); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; color: var(--text-med); }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.section--alt { background: var(--beige); }
.section--dark { background: var(--gradient-primary); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255, 255, 255, 0.85); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: inline-block;
}
.section__head p { font-size: 1.1rem; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base), color var(--t-base);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { box-shadow: var(--shadow-lg); color: var(--white); }

.btn--secondary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--border);
}
.btn--secondary:hover { border-color: var(--primary); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); color: var(--white); }

.btn--lg { padding: 1.1rem 2.25rem; font-size: 1.05rem; }

/* -------------------------------------------------------------------
   5. Navigation
   ------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 248, 244, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(249, 248, 244, 0.95);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}
.nav__brand:hover { color: var(--text-dark); }

.logo {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}
.logo--lg { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 14px; }

.brand__name b { color: var(--accent); font-weight: 700; }

.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.4rem;
}
.nav__links a {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-med);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__links a:hover { background: var(--beige); color: var(--text-dark); }
.nav__links a.is-active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }

.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-dark);
}
.nav__toggle span {
  position: relative;
  width: 18px; height: 2px;
  background: currentColor;
  display: block;
  transition: transform var(--t-base);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: '';
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform var(--t-base), top var(--t-base);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle.is-open span { background: transparent; }
.nav__toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav__toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.nav__mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--cream);
  padding: 2rem 1.25rem;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  overflow-y: auto;
  z-index: 99;
}
.nav__mobile.is-open { transform: translateX(0); }
.nav__mobile ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.nav__mobile a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none; }
}

/* -------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 50% -200px, rgba(127, 119, 221, 0.18), transparent 70%),
    var(--cream);
}
@media (min-width: 768px) { .hero { padding: 6rem 0 7rem; } }

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-med);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.6s ease both;
}
.hero__badge .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(93, 202, 165, 0.25);
  animation: pulse 2s infinite;
}

.hero__title {
  margin-bottom: 1rem;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero__title b { color: var(--accent); }

.hero__tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--text-med);
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto;
  animation: fadeUp 1s 0.4s ease both;
}
@media (min-width: 768px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-med);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Floating decorative blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
}
.hero__blob--1 { width: 380px; height: 380px; background: var(--accent-bright); top: -100px; left: -120px; }
.hero__blob--2 { width: 420px; height: 420px; background: var(--green); bottom: -160px; right: -140px; opacity: 0.25; }

/* -------------------------------------------------------------------
   7. Cards
   ------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-bright);
}

.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}
.card__title { margin-bottom: 0.5rem; }
.card__desc { color: var(--text-med); font-size: 0.95rem; margin: 0; }

.card__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  background: var(--beige);
  color: var(--text-med);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.card__tag--green { background: rgba(93, 202, 165, 0.15); color: var(--green-dark); }
.card__tag--purple { background: rgba(127, 119, 221, 0.15); color: var(--primary); }

/* Feature card */
.feature-card { display: flex; flex-direction: column; }
.feature-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.feature-card__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-light);
}

.feature-card__benefits {
  list-style: none;
  padding: 1.25rem 0 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.5rem;
}
.feature-card__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-med);
}
.feature-card__benefits li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
}

/* Image placeholder */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(127, 119, 221, 0.12), rgba(93, 202, 165, 0.12)),
    var(--beige);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  margin-top: 1.5rem;
}

/* -------------------------------------------------------------------
   8. Before / After comparison
   ------------------------------------------------------------------- */
.compare {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .compare { grid-template-columns: 1fr auto 1fr; align-items: center; } }

.compare__col {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}
.compare__col--before { border-color: rgba(220, 38, 38, 0.2); }
.compare__col--after { border-color: var(--green); box-shadow: 0 12px 32px rgba(93, 202, 165, 0.2); }
.compare__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.compare__col--before .compare__label { color: #c83a3a; }
.compare__col--after .compare__label { color: var(--green-dark); }
.compare__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.compare__list li {
  display: flex; gap: 0.75rem; font-size: 0.95rem; color: var(--text-med);
}
.compare__list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-block;
}
.compare__col--before .compare__list li::before {
  background: rgba(220, 38, 38, 0.15) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23c83a3a' d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>") center/12px no-repeat;
}
.compare__col--after .compare__list li::before {
  background: rgba(93, 202, 165, 0.2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%230F6E56' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/12px no-repeat;
}

.compare__arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

/* -------------------------------------------------------------------
   9. Testimonials
   ------------------------------------------------------------------- */
.tcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--t-base), box-shadow var(--t-base);
  height: 100%;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.tcard__stars {
  display: flex;
  gap: 0.15rem;
  color: #f5b342;
  font-size: 1rem;
}
.tcard__quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
}
.tcard__quote::before { content: '“'; font-size: 2.5rem; line-height: 0; color: var(--accent-bright); margin-right: 0.25rem; vertical-align: -0.4em; }

.tcard__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.metric-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  background: var(--beige);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-dark);
}
.metric-pill strong { color: var(--green-dark); margin-right: 0.25rem; }

.tcard__person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.tcard__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.tcard__name { font-weight: 600; color: var(--text-dark); display: block; }
.tcard__role { font-size: 0.85rem; color: var(--text-light); }
.tcard__verified {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-med);
  transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.is-active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* -------------------------------------------------------------------
   10. FAQ Accordion
   ------------------------------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq__item.is-open { border-color: var(--accent); box-shadow: var(--shadow-md); }

.faq__q {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  gap: 1rem;
}
.faq__q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--t-base);
}
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq__a-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-med);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq__item.is-open .faq__a { max-height: 600px; }

/* -------------------------------------------------------------------
   11. Forms
   ------------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.field label .req { color: #c83a3a; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.2);
}
.field textarea { resize: vertical; min-height: 130px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c83a3a; }
.field__error {
  font-size: 0.8rem;
  color: #c83a3a;
  display: none;
}
.field.has-error .field__error { display: block; }

.form__success,
.form__error {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: none;
  font-size: 0.95rem;
}
.form__success {
  background: rgba(93, 202, 165, 0.15);
  border: 1px solid var(--green);
  color: var(--green-dark);
}
.form__error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #c83a3a;
}
.form__error a { color: #c83a3a; text-decoration: underline; }
.form__success.is-shown,
.form__error.is-shown { display: block; }
[data-submit][disabled] { opacity: 0.7; cursor: wait; }

/* -------------------------------------------------------------------
   12. Resource cards / list
   ------------------------------------------------------------------- */
.resource-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.resource-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-weight: 500;
  transition: all var(--t-fast);
}
.resource-list a:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  color: var(--text-dark);
}
.resource-list a::after {
  content: '→';
  margin-left: auto;
  color: var(--primary);
  transition: transform var(--t-fast);
}
.resource-list a:hover::after { transform: translateX(4px); }

.resource-list .pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--beige);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  color: var(--text-med);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -------------------------------------------------------------------
   13. Tier / detail blocks (features page)
   ------------------------------------------------------------------- */
.tier {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.tier__badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.tier__badge--live { background: rgba(127, 119, 221, 0.15); color: var(--primary); }
.tier__badge--growth { background: rgba(93, 202, 165, 0.18); color: var(--green-dark); }
.tier h2 { margin: 0; }

.feature-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: box-shadow var(--t-base);
}
.feature-detail:hover { box-shadow: var(--shadow-md); }
@media (min-width: 900px) {
  .feature-detail { grid-template-columns: 1.2fr 1fr; gap: 3rem; padding: 3rem; }
  .feature-detail--reverse > :first-child { order: 2; }
}
.feature-detail__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.feature-detail__head .card__icon { margin: 0; width: 52px; height: 52px; font-size: 1.5rem; }

/* Integration logos */
.integrations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.integration-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text-dark);
}
.integration-pill .icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--gradient-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.integration-pill--soon { opacity: 0.6; }
.integration-pill--soon::after {
  content: 'Coming Soon';
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--beige);
  color: var(--text-med);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -------------------------------------------------------------------
   14. Story / About blocks
   ------------------------------------------------------------------- */
.story {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.story__pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.5rem;
}
.pillar {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}
.pillar__num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.pillar__label { font-size: 0.85rem; color: var(--text-med); margin-top: 0.5rem; }

/* -------------------------------------------------------------------
   15. CTA banner
   ------------------------------------------------------------------- */
.cta-banner {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 20% 30%, rgba(255,255,255,0.15), transparent),
    radial-gradient(300px 150px at 80% 70%, rgba(175, 169, 236, 0.3), transparent);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* -------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; }
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}
.footer__brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; color: var(--white); font-weight: 700; font-size: 1.1rem; }
.footer__brand:hover { color: var(--white); }
.footer p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer ul a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.footer ul a:hover { color: var(--white); }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------------------------------
   17. Animations
   ------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(93, 202, 165, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(93, 202, 165, 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------
   18. Utilities
   ------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: 0; color: var(--white); }

/* -------------------------------------------------------------------
   19. Page hero (sub-pages)
   ------------------------------------------------------------------- */
.page-hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(800px 300px at 50% 0, rgba(127, 119, 221, 0.12), transparent 70%),
    var(--cream);
  text-align: center;
}
@media (min-width: 768px) { .page-hero { padding: 5rem 0 4rem; } }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* -------------------------------------------------------------------
   20. Reduced motion
   ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
