/* ---------- Base palette (aligned with app) ---------- */
:root {
  --blue: #0b4aa2;            /* top bar / primary */
  --blue-soft: #e4efff;       /* light card edges, pills */
  --blue-text: #1b3f73;       /* headings / strong labels */
  --accent: #14a44d;          /* green totals, icons */
  --accent-soft: #e4f7eb;
  --accent-strong: #0f8c41;
  --bg: #f3f7ff;              /* app-like light background */
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-soft: #6b7280;
  --border-subtle: #d1ddf2;
  --danger: #eb4c4c;
  --max-width: 960px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.18);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Layout ---------- */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;        /* soft corners, matches app feel */
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.3);
}

.brand-logo span {
  font-size: 0.85rem;
  font-weight: 800;
  color: #05301a;
}

.brand-text-main {
  font-weight: 650;
  letter-spacing: 0.03em;
}

.brand-text-sub {
  font-size: 0.8rem;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: #e5edff;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a.active {
  font-weight: 600;
  color: #ffffff;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #ffd54a; /* matches your yellow chips */
}

/* ---------- Main Content ---------- */
main {
  flex: 1;
}

/* Utility */
.section {
  margin-top: 2.25rem;
}

.section:first-of-type {
  margin-top: 2.5rem;
}

.section-header {
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: 1.35rem;
  margin: 0 0 0.15rem;
  color: var(--blue-text);
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card-subtle {
  background: #f9fbff;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid var(--border-subtle);
}

/* ---------- Hero (index) ---------- */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 2.3rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  margin: 0 0 0.75rem;
  color: var(--blue-text);
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  margin: 0 0 1.2rem;
  color: var(--text-soft);
  max-width: 34rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.badge {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  color: var(--blue-text);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.btn-primary {
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 550;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 164, 77, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.hero-cta-sub {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Image mock side */
.hero-mock {
  position: relative;
}

.hero-device {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 34px;
  padding: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.22);
}

.hero-device-inner {
  border-radius: 26px;
  background: #f3f7ff;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hero-device-placeholder {
  border-radius: 18px;
  border: 1px dashed #c0d4f5;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero-device-placeholder strong {
  color: var(--blue-text);
}

.hero-note {
  position: absolute;
  left: -1rem;
  bottom: -1.2rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.72rem;
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.feature-card-title {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
  color: var(--blue-text);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
  background: var(--blue-soft);
  color: var(--blue-text);
  margin-bottom: 0.55rem;
}

/* ---------- Tables & lists ---------- */
.policy-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
}

.policy-list > li {
  margin-bottom: 0.75rem;
}

.policy-list strong {
  display: inline-block;
  margin-bottom: 0.2rem;
  color: var(--blue-text);
}

.policy-sublist {
  margin: 0.2rem 0 0.4rem 1.1rem;
  padding-left: 0.4rem;
  color: var(--text-soft);
}

.policy-sublist li {
  margin-bottom: 0.25rem;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #d2ddf2;
}

.table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-soft);
}

.table tr:last-child td {
  border-bottom: none;
}

/* Links */
a {
  color: var(--blue);
}

a:hover {
  color: #06367b;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
  padding: 1.2rem 1.5rem 2.4rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: #f9fbff;
}

/* ---------- Responsive ---------- */
@media (max-width: 840px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-mock {
    order: -1;
    margin-bottom: 1.75rem;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
