/* ==========================================================
   Caprica Works - main stylesheet
   Palette: deep navy (trust), teal (technology), warm amber (action)
   ========================================================== */
:root {
  --navy-900: #0b1f33;
  --navy-800: #12304d;
  --navy-700: #1b4266;
  --teal-600: #0f8b8d;
  --teal-500: #14a3a6;
  --teal-50:  #e8f6f6;
  --amber-500: #f2a541;
  --amber-600: #e08e1f;
  --ink: #1d2733;
  --muted: #5b6878;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 31, 51, .08);
  --max: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin: 0 0 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-600); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
  text-decoration: none !important; font-family: inherit;
}
.btn--primary { background: var(--amber-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--amber-600); }
.btn--secondary { background: var(--teal-600); color: #fff; }
.btn--secondary:hover { background: var(--teal-500); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--teal-600); color: var(--teal-600); }
.btn--outline:hover { background: var(--teal-600); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy-900); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.logo span { color: var(--teal-600); }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.nav a { color: var(--ink); font-weight: 500; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-600); text-decoration: none; }
.nav .btn { padding: 10px 18px; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border: 0; margin-top: 12px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(20,163,166,.35), transparent 60%),
              linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff; padding: 100px 0 110px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 780px; }
.hero .lead { color: #c8d6e5; max-width: 640px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero__badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 48px; color: #9fb4c9; font-size: .92rem; }
.hero__badges span::before { content: "✓"; color: var(--teal-500); font-weight: 700; margin-right: 8px; }

.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; padding: 72px 0 64px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c8d6e5; max-width: 680px; margin: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card__icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--teal-50); color: var(--teal-600);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__foot { margin-top: auto; padding-top: 12px; }

/* Product card */
.product-card { padding: 0; overflow: hidden; }
.product-card__top {
  padding: 28px; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff;
  display: flex; align-items: center; gap: 16px;
}
.product-card__top h3 { color: #fff; margin: 0; font-size: 1.4rem; }
.product-card__top p { color: #c8d6e5; margin: 2px 0 0; font-size: .95rem; }
.product-card__logo {
  width: 52px; height: 52px; border-radius: 12px; background: var(--teal-500); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
}
.product-card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.product-card__body ul { padding-left: 0; list-style: none; margin: 0 0 20px; }
.product-card__body li { padding: 4px 0 4px 26px; position: relative; color: var(--ink); }
.product-card__body li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-600); font-weight: 700; }
.product-card--placeholder { border: 2px dashed var(--line); box-shadow: none; background: var(--bg-soft); justify-content: center; align-items: center; text-align: center; padding: 40px 28px; }
.product-card--placeholder h3 { color: var(--muted); }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--amber-500); color: var(--navy-900); margin-left: auto;
}
.tag--free { background: var(--teal-50); color: var(--teal-600); }

/* ---------- Split / CTA ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { padding: 8px 0 8px 34px; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-600); font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 72px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 20px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.step h4 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }

.cta-band { background: linear-gradient(135deg, var(--teal-600), var(--navy-700)); color: #fff; border-radius: 16px; padding: 56px 48px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #e0f0f3; margin: 0; max-width: 560px; }

/* ---------- Forms ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } .form { padding: 24px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; color: var(--navy-900); }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd8e3; border-radius: 8px; font: inherit; font-size: 1rem;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,163,166,.18); }
.field small { color: var(--muted); font-size: .85rem; }
.check-group { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.check-group label { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; }
.check-group input { width: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: .95rem; }
.alert--error { background: #fdecea; color: #8a1f12; border: 1px solid #f5c2bb; }

/* ---------- Contact block ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border: 0; }
.contact-list svg { width: 22px; height: 22px; color: var(--teal-600); flex-shrink: 0; margin-top: 3px; }
.contact-list strong { display: block; color: var(--navy-900); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb4c9; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #c8d6e5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 48px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
