:root {
  --blue: #0b4aa2;
  --blue-soft: #e4efff;
  --blue-text: #1b3f73;

  /* OnSight accents */
  --green: #1f8f4a;
  --green-soft: #e9f7ef;
  --green-text: #16653a;

  --yellow: #f4b400;
  --yellow-soft: #fff3cf;

  /* Use green as the primary accent (links, focus states, etc.) */
  --accent: var(--green);

  /* Slightly warmer neutral background to avoid “blue + white” flatness */
  --bg: #f8faf7;
  --card: #ffffff;
  --text: #0b1320;
  --muted: #5b6b82;

  --border: rgba(11, 19, 32, 0.10);
  --border-subtle: rgba(11, 19, 32, 0.07);

  --shadow: 0 10px 30px rgba(11, 19, 32, 0.08);
  --radius: 16px;
}

/* ---------- Global reset-ish ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrapper {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(11, 19, 32, 0.10);
}

.brand-text-main { font-weight: 800; letter-spacing: 0.2px; }
.brand-text-sub { font-size: 0.92rem; color: var(--muted); }

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-links a.active { color: var(--blue-text); }

/* ---------- Sections ---------- */
.section { margin: 0 0 44px 0; }
.section-header { margin-bottom: 18px; }

.section-kicker {
  color: var(--green-text);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
}

.section-title {
  margin: 6px 0 0 0;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.18;
}

/* ---------- Cards ---------- */
.card,
.card-subtle {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px;
}

.card-subtle { box-shadow: none; }
.card ul { margin-top: 10px; }

.card p:last-child,
.card-subtle p:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(31, 143, 74, 0.18);
  color: var(--green-text);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 14px 0;
  letter-spacing: -0.2px;
}

.hero-title span {
  color: var(--blue);
  /* tiny warmth so it isn’t “blue-only” */
  text-shadow: 0 2px 0 rgba(244, 180, 0, 0.18);
}

.hero-subtitle {
  color: var(--muted);
  margin: 0 0 18px 0;
  font-size: 1.05rem;
  max-width: 56ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid var(--border-subtle);
  color: var(--blue-text);
  font-weight: 650;
  font-size: 0.95rem;
}

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

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 18px 0;
}

.btn-primary {
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #1f8f4a, #2db36a);
  box-shadow: 0 14px 30px rgba(31, 143, 74, 0.22);
  cursor: pointer;
  text-align: left;
  width: fit-content;
}

.btn-primary:hover {
  box-shadow:
    0 14px 30px rgba(31, 143, 74, 0.22),
    0 0 0 4px rgba(244, 180, 0, 0.14);
}

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

.hero-cta-sub { color: var(--muted); font-size: 0.98rem; }

.hero-platforms {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.98rem;
}

.hero-mock { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Hero visual (Option A) ---------- */
.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(31, 143, 74, 0.18);
  color: var(--green-text);
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.feature-title { margin: 0 0 8px 0; color: var(--blue-text); }

/* -------------------- Feature icons (inline SVG) -------------------- */

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  color: var(--green);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Outline icons */
.feature-icon:not(.solid) svg {
  stroke: currentColor;
  fill: none;
}

/* Solid icons (invoice doc) */
.feature-icon.solid {
  color: var(--green);
}

.feature-icon.solid svg {
  fill: currentColor;
  stroke: none;
}

/* Optional yellow emphasis (use sparingly) */
.feature-icon.accent {
  color: var(--yellow);
}

/* ---------- Policy list ---------- */
.policy-list { margin: 0; padding-left: 18px; }
.policy-sublist { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--card);
  border-top: 1px solid var(--border-subtle);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 16px 0;
}

/* -------------------- Carousel -------------------- */

.hero-carousel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center; /* centers the phone-shaped viewport */
}

/*
  Size by HEIGHT + ASPECT-RATIO so the viewport hugs phone screenshots
  (no side gutters, no cropping).
*/
.hero-carousel-viewport {
  height: clamp(420px, 62vh, 640px);
  aspect-ratio: var(--carousel-aspect, 9 / 19.5);
  width: auto;
  max-width: 100%;

  overflow: hidden;
  border-radius: 34px;

  background: #0b1320;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 18px 45px rgba(11, 19, 32, 0.22);
}

.hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 550ms ease;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}

/* show full screenshot (no cropping) */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* dots */
.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(31, 143, 74, 0.12);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  background: rgba(31, 143, 74, 0.65);
  border-color: rgba(31, 143, 74, 0.65);
}

.hero-dot:focus-visible {
  outline: 2px solid rgba(31, 143, 74, 0.70);
  outline-offset: 3px;
}

/* ===========================
   Mobile swipe for hero carousel
   (append at end of styles.css)
   =========================== */

/* Match the JS breakpoint you’re using (SWIPE_MAX_WIDTH = 900). */
@media (max-width: 899px) {
  /* Let the user swipe the track; the viewport stays “phone shaped”. */
  .hero-carousel-viewport {
    overflow: hidden; /* keep rounded corners + phone mask */
  }

  .hero-carousel-track {
    /* enable native horizontal swiping */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    /* IMPORTANT: in swipe mode we don’t want transform-based sliding */
    transform: none !important;
    transition: none !important;

    /* hide scrollbar */
    scrollbar-width: none; /* Firefox */
  }
  .hero-carousel-track::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
  }

  .hero-slide {
    scroll-snap-align: start;
  }

  /* Optional: if you want slightly easier dot tapping on phones */
  .hero-dot {
    width: 12px;
    height: 12px;
  }
}
/* ---------- Daily Rhythm list spacing fix ---------- */

.policy-list > li {
  margin-bottom: 20px; /* space between numbered sections */
}

.policy-list > li:last-child {
  margin-bottom: 0;
}

/* Give the section titles breathing room */
.policy-list > li > strong {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
}

/* First item shouldn't be pushed down */
.policy-list > li:first-child > strong {
  margin-top: 0;
}

/* Sublist spacing */
.policy-sublist {
  margin-top: 8px;
  margin-bottom: 0;
}

.policy-sublist li {
  margin-bottom: 6px;
}
