/* ==========================================================================
   Automated Solutions AI — Design System
   --------------------------------------------------------------------------
   Everything visual is controlled from the tokens in :root below.
   Change a token here and it updates across every page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand / accent */
  --accent:            #35e08f;   /* signal green — primary accent */
  --accent-hover:      #4ff0a2;
  --accent-ink:        #06120c;   /* text on top of accent fills */
  --accent-soft:       rgba(53, 224, 143, 0.10);
  --accent-line:       rgba(53, 224, 143, 0.28);
  --accent-glow:       rgba(53, 224, 143, 0.16);

  /* Surfaces */
  --bg:                #07080b;
  --bg-alt:            #0a0c11;
  --surface:           #0e1116;
  --surface-2:         #12161d;
  --surface-hover:     #161b23;

  /* Lines */
  --line:              rgba(255, 255, 255, 0.07);
  --line-strong:       rgba(255, 255, 255, 0.13);

  /* Text */
  --text:              #f1f4f8;
  --text-muted:        #98a2b3;
  --text-dim:          #6b7686;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --container:         1180px;
  --container-narrow:  820px;
  --radius:            14px;
  --radius-lg:         20px;
  --radius-sm:         9px;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Effects */
  --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6);
  --shadow-lg:   0 2px 4px rgba(0,0,0,.4), 0 24px 60px -16px rgba(0,0,0,.75);
  --ease:        cubic-bezier(.16,.84,.44,1);
  --nav-h:       68px;
}

/* --------------------------------------------------------------------------
   1b. ACCENT THEMES
   --------------------------------------------------------------------------
   The default accent above is signal green. To switch the whole site to the
   original brand blue, add data-theme="blue" to the <html> tag on every page:

       <html lang="en" data-theme="blue">

   Nothing else changes. Both themes are WCAG-AA legible on the dark surfaces.
   -------------------------------------------------------------------------- */
:root[data-theme="blue"] {
  --accent:       #5c6bff;   /* legible on near-black; brand #2934ff is too dark for text */
  --accent-hover: #7683ff;
  --accent-ink:   #ffffff;
  --accent-soft:  rgba(92, 107, 255, 0.12);
  --accent-line:  rgba(92, 107, 255, 0.34);
  --accent-glow:  rgba(41, 52, 255, 0.30);   /* the true brand blue, used for glow */
}
:root[data-theme="blue"] .brand__mark {
  background: linear-gradient(145deg, #5c6bff, #2934ff);
}
:root[data-theme="blue"] .plan--featured {
  background: linear-gradient(180deg, rgba(92,107,255,.07), transparent 42%), var(--surface);
}
:root[data-theme="blue"] .cta {
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(92,107,255,.12), transparent 70%),
    var(--surface);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); letter-spacing: -0.015em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  opacity: .6;
}

.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(64px, 9vw, 118px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: var(--s-8); }
.section-head .eyebrow { margin-bottom: var(--s-4); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Decorative grid backdrop */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .8;
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .935rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              transform .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 28px -10px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 1px var(--accent-hover), 0 12px 34px -10px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: rgba(255,255,255,.22); }

.btn-ghost { background: transparent; color: var(--text-muted); padding-inline: 14px; }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.04); }

.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .875rem; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   6. NAV
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(7, 8, 11, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1rem;
  flex-shrink: 0;
}
.brand__mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #17a367);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.brand__text small {
  display: block;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
  line-height: 1;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: .925rem;
  color: var(--text-muted);
  transition: color .16s, background .16s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.045); }
.nav__links a[aria-current="page"] { color: var(--text); }

.nav__cta { display: flex; align-items: center; gap: var(--s-2); }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .22s var(--ease), opacity .18s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; left: 0; transform: none; }
.nav__toggle span::before { top: -5.5px; }
.nav__toggle span::after  { top: 5.5px; }
.nav__toggle[aria-expanded="true"] span { transform: translate(-50%,-50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::before { opacity: 0; }
.nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-90deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links, .nav__cta { display: none; }

  .nav__drawer {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(7,8,11,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) var(--s-5) var(--s-6);
    display: none;
    flex-direction: column;
    gap: var(--s-1);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__drawer.is-open { display: flex; }
  .nav__drawer a:not(.btn) {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
    color: var(--text-muted);
  }
  .nav__drawer a[aria-current="page"] { color: var(--accent); }
  .nav__drawer .btn { margin-top: var(--s-4); }
}
@media (min-width: 901px) { .nav__drawer { display: none !important; } }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(72px, 11vw, 140px) clamp(64px, 9vw, 112px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  top: -280px; left: 50%;
  width: 900px; height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 68%);
  pointer-events: none;
  filter: blur(30px);
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { margin-bottom: var(--s-5); max-width: 19ch; }
.hero .lede { margin-bottom: var(--s-6); }
.hero--center { text-align: center; }
.hero--center h1, .hero--center .lede { margin-inline: auto; }
.hero--center h1 { max-width: 24ch; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px 6px 10px;
  margin-bottom: var(--s-5);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: .8rem;
  color: var(--text);
  font-weight: 450;
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* --------------------------------------------------------------------------
   8. CARDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.card--lift:hover { transform: translateY(-3px); }

.card__icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: var(--s-4);
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.card__icon svg { width: 18px; height: 18px; }

.card h3 { margin-bottom: var(--s-3); }
.card p  { color: var(--text-muted); font-size: .945rem; }

/* Feature bullet list inside cards */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .58em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .75;
}
.feature-list--check li::before {
  content: "✓";
  left: 0; top: 0;
  width: auto; height: auto;
  background: none;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   9. NUMBERED STEPS
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.step__num {
  counter-increment: step;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: var(--s-4);
  display: block;
}
.step__num::before { content: "0" counter(step); }
.step h3 { margin-bottom: var(--s-3); }
.step p { color: var(--text-muted); font-size: .945rem; margin-bottom: var(--s-4); }

/* --------------------------------------------------------------------------
   10. STAT / METRIC STRIP
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--surface); padding: var(--s-5); }
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.stat__label {
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.4;
}
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   11. PRICING
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  align-items: start;
}
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.plan {
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  height: 100%;
}
.plan--featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(53,224,143,.05), transparent 42%), var(--surface);
  box-shadow: 0 0 0 1px var(--accent-line), 0 30px 70px -30px var(--accent-glow);
}
.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.plan__name {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.plan--featured .plan__name { color: var(--accent); }
.plan__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(2.1rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.plan__price span {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-dim);
}
.plan__sub {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line-strong);
  font-size: .9rem;
  color: var(--text-muted);
}
.plan__sub strong { color: var(--text); font-weight: 550; }
.plan .btn { margin-block: var(--s-5); }
.plan__incl {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s-4);
}
.plan .feature-list { margin-top: auto; }

/* --------------------------------------------------------------------------
   12. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  list-style: none;
  transition: color .16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px; height: 11px;
  margin-top: 7px;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform .22s var(--ease), border-color .16s;
}
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); }
.faq__body {
  padding-bottom: var(--s-5);
  color: var(--text-muted);
  font-size: .96rem;
  max-width: 78ch;
}
.faq__body p + p { margin-top: var(--s-3); }

/* --------------------------------------------------------------------------
   13. PROSE (long-form content)
   -------------------------------------------------------------------------- */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-8); margin-bottom: var(--s-2); }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-1); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 550; }
.prose ul, .prose ol { padding-left: var(--s-5); display: grid; gap: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.callout {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.callout--warn { border-left-color: #f0b34a; }
.callout h3 { margin-bottom: var(--s-2); font-size: 1.02rem; }
.callout p { font-size: .935rem; color: var(--text-muted); }

/* Table of contents */
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.toc__title {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s-4);
}
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 6px 0;
  font-size: .9rem;
  color: var(--text-muted);
  transition: color .16s, padding-left .16s;
}
.toc a:hover { color: var(--accent); padding-left: 4px; }

.layout-sidebar {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 960px) {
  .layout-sidebar { grid-template-columns: 1fr; gap: var(--s-6); }
  .toc { position: static; }
}

/* --------------------------------------------------------------------------
   14. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; }
.field label {
  font-size: .855rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.field label .req { color: var(--accent); }
.field .hint { font-size: .8rem; color: var(--text-dim); }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  transition: border-color .16s, background .16s, box-shadow .16s;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255,255,255,.2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2398a2b3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.select option { background: var(--surface); color: var(--text); }

.checkbox {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-size: .885rem;
  color: var(--text-muted);
  line-height: 1.55;
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  appearance: none;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  position: relative;
}
.checkbox input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(40deg);
}

.form-status {
  padding: var(--s-4);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  display: none;
}
.form-status.is-ok   { display: block; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); }
.form-status.is-err  { display: block; background: rgba(240,90,90,.09); border: 1px solid rgba(240,90,90,.32); color: #ffb4b4; }

/* Contact info cards */
.contact-card {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.contact-card:hover { border-color: var(--line-strong); }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: var(--s-3); }
.contact-card a.link {
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--accent);
  word-break: break-word;
}
.contact-card a.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   15. CTA BAND
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 80px) var(--s-5);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(53,224,143,.10), transparent 70%),
    var(--surface);
  text-align: center;
}
.cta h2 { margin-bottom: var(--s-4); }
.cta .lede { margin: 0 auto var(--s-6); }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: var(--s-8) var(--s-5);
  margin-top: var(--s-2);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; gap: var(--s-5); } }

.footer__brand p {
  margin-top: var(--s-4);
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 34ch;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__col a {
  font-size: .92rem;
  color: var(--text-muted);
  transition: color .16s;
}
.footer__col a:hover { color: var(--accent); }

.footer__legal {
  padding-top: var(--s-5);
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 95ch;
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  margin-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   17. UTILITIES
   -------------------------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }

.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: 50%; top: 8px;
  transform: translate(-50%, -200%);
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 550;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Scroll-in reveal (progressively enhanced by main.js) */
.reveal { opacity: 0; transform: translateY(14px); }
.js-ready .reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible, html:not(.js-ready) .reveal { opacity: 1; transform: none; }
