/* ============================================================
   Featuron Website — Base CSS
   Reset, variables, typography, utility classes
   ============================================================ */

:root {
  --color-brand:       #047A3D;
  --color-brand-dark:  #035e2f;
  --color-brand-light: #e8f5ee;
  --color-accent:      #f59e0b;
  --color-text:        #1a1a2e;
  --color-muted:       #64748b;
  --color-border:      #e2e8f0;
  --color-bg:          #ffffff;
  --color-bg-alt:      #f8fafc;
  --color-white:       #ffffff;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);

  --max-w: 1160px;
  --navbar-h: 64px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { color: var(--color-muted); line-height: 1.75; }

a { color: var(--color-brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--color-brand-dark); }

ul { list-style: none; }

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

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Section ---- */
.section { padding: 5rem 0; }
.section--alt { background: var(--color-bg-alt); }

.section__title {
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.section__title--center { text-align: center; }
.section__sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}
.btn--primary:hover { background: var(--color-brand-dark); border-color: var(--color-brand-dark); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn--outline:hover { background: var(--color-brand-light); }

.btn--secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--secondary:hover { background: var(--color-border); }

.btn--white {
  background: #fff;
  color: var(--color-brand);
  border-color: #fff;
}
.btn--white:hover { background: var(--color-brand-light); color: var(--color-brand-dark); }

.btn--lg { padding: .85rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card__icon { font-size: 2rem; margin-bottom: .75rem; }
.card__title { font-size: 1.15rem; color: var(--color-text); margin-bottom: .5rem; }
.card__desc { font-size: .9rem; color: var(--color-muted); margin-bottom: 1rem; }
.card__link { font-size: .9rem; font-weight: 600; color: var(--color-brand); }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: #fff;
  padding-top: calc(var(--navbar-h) + 2.5rem);
  padding-bottom: 2.5rem;
}
.page-hero--sm { padding-top: calc(var(--navbar-h) + 2rem); padding-bottom: 2rem; }
.page-hero__title { color: #fff; margin-bottom: .5rem; }
.page-hero__sub { color: rgba(255,255,255,.85); font-size: 1.05rem; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-banner__title { color: #fff; margin-bottom: .75rem; }
.cta-banner__sub { color: rgba(255,255,255,.85); margin-bottom: 1.75rem; font-size: 1.05rem; }

/* ---- Legal pages ---- */
.legal-content h2 {
  font-size: 1.2rem;
  margin: 2rem 0 .5rem;
  color: var(--color-text);
}
.legal-content p,
.legal-content ul,
.legal-content li {
  font-size: .95rem;
  color: var(--color-muted);
  margin-bottom: .6rem;
}
.legal-content ul { list-style: disc; padding-left: 1.5rem; }
.legal-content a { color: var(--color-brand); }

/* ---- HTMX loading indicator ---- */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Form messages ---- */
.form-msg {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-weight: 500;
  margin-top: 1rem;
}
.form-msg--success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-msg--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.form-msg__icon { font-size: 1.25rem; flex-shrink: 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .cards { grid-template-columns: 1fr; }
}

