/* =========================================================
   Recalibrate / marketplace.tax — shared design system
   ========================================================= */

:root {
  /* Brand palette (sampled from the Recalibrate dial logo) */
  --rc-navy: #131f2e;
  --rc-ink: #1c2a3d;
  --rc-muted: #5c6b81;
  --rc-purple: #7c4dff;
  --rc-blue: #3b82f6;
  --rc-teal: #14b8ab;
  --rc-green: #22c55e;
  --rc-yellow: #f2b705;
  --rc-orange: #ef5b3b;

  --rc-gradient: linear-gradient(90deg, var(--rc-purple), var(--rc-blue), var(--rc-teal), var(--rc-green), var(--rc-yellow), var(--rc-orange));

  --bg: #f6f7fb;
  --card: #ffffff;
  --border: #e4e8f0;
  --text: #1c2a3d;
  --muted: #5c6b81;
  --shadow-sm: 0 1px 2px rgba(19, 31, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(19, 31, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(19, 31, 46, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------- Top gradient strip -------------------- */
.brand-strip { height: 4px; background: var(--rc-gradient); width: 100%; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 26px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--rc-ink);
  position: relative;
  padding: 6px 2px;
}
.nav-links a.active,
.nav-links a:hover { color: var(--rc-purple); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--rc-gradient);
}
.nav-cta {
  background: var(--rc-navy);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}
.nav-cta:hover { background: #0a1420; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rc-ink);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 18px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; }
  .nav-links a.active::after { display: none; }
  .nav-cta { display: inline-block; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--rc-purple), var(--rc-blue), var(--rc-teal), var(--rc-green), var(--rc-yellow), var(--rc-orange), var(--rc-purple));
  opacity: 0.14;
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rc-purple);
  background: rgba(124, 77, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--rc-navy);
}
.hero .gradient-text {
  background: var(--rc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 560px;
}

/* -------------------- Search / filters -------------------- */
.finder {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.search-box {
  position: relative;
  flex: 1 1 320px;
}
.search-box input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.search-box input:focus { outline: 2px solid var(--rc-purple); outline-offset: 1px; }
.search-box svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--muted);
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
}
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rc-ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill:hover { border-color: var(--rc-purple); }
.pill.active {
  background: var(--rc-navy);
  border-color: var(--rc-navy);
  color: #fff;
}

/* -------------------- Calculator grid / cards -------------------- */
.section { padding: 20px 0 64px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px;}
.section-heading h2 { font-size: 1.5rem; margin: 0; color: var(--rc-navy); }
.section-heading p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.calc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rc-gradient);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.calc-card.is-live:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.calc-card.is-live:hover::before { opacity: 1; }
.calc-card.is-soon { opacity: 0.62; }
.calc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}
.calc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}
.calc-card h3 { font-size: 1.08rem; margin: 0 0 8px; color: var(--rc-navy); }
.calc-card p { font-size: 0.88rem; color: var(--muted); margin: 0 0 18px; flex: 1; }
.calc-card .calc-action {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--rc-purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.calc-card .badge-soon {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background: #eef0f5;
  padding: 5px 10px;
  border-radius: 999px;
  width: fit-content;
}
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  display: none;
}

/* -------------------- Pillars (Educate / Consult / Deploy) -------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
}
.pillar-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.pillar-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--rc-navy); }
.pillar-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* -------------------- Generic content sections -------------------- */
.page-hero {
  padding: 56px 0 36px;
  text-align: left;
}
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--rc-navy); margin: 0 0 12px; letter-spacing: -0.02em; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 1.1rem; margin-top: 0; color: var(--rc-navy); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}

/* -------------------- Forms -------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 20px;
}
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
input[type="text"], input[type="number"], input[type="email"], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: #fff;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rc-purple); outline-offset: 1px; }
.field-hint { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }

button, .btn {
  background: var(--rc-navy);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, background 0.15s ease;
}
button:hover, .btn:hover { background: #0a1420; transform: translateY(-1px); }
.btn-gradient {
  background: var(--rc-gradient);
}
.btn-gradient:hover { filter: brightness(1.05); background: var(--rc-gradient); }

.note {
  background: #fff8e6;
  border: 1px solid #f0dca0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #6b5416;
  margin-top: 6px;
}
.callout { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { color: var(--muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* -------------------- Breadcrumb -------------------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--rc-purple); font-weight: 600; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--rc-navy);
  color: #c7cedb;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.logo-chip {
  display: inline-flex;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.footer-brand img { height: 32px; display: block; }
.footer-brand p { font-size: 0.85rem; color: #9aa5b8; max-width: 320px; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 14px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.88rem;
  color: #c7cedb;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: #8a93a6;
}

/* -------------------- Utility -------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
