/* ── Start Here ──────────────────────────────────────────── */
.starthere-section {
  /* === Typography defaults — overridden per-instance by ACF === */
  --atg-eyebrow-size: 12px;
  --atg-eyebrow-color: var(--primary, #00c3d0);
  --atg-section-title-size: clamp(48px, 6vw, 72px);
  --atg-section-title-plain-color: var(--text-white, #ffffff);
  --atg-section-title-accent-color: var(--primary, #00c3d0);
  --atg-subtitle-size: 17px;
  --atg-subtitle-color: var(--text-white, #ffffff);
  --atg-card-title-size: clamp(20px, 1.6vw, 24px);
  --atg-card-title-color: var(--text-white, #ffffff);
  --atg-card-content-size: 15px;
  --atg-card-content-color: var(--text-muted, #8b949e);
  /* Single-tone title gradient lives on .starthere__title-single below.
     A custom plain color in single-tone mode is applied via inline <style>
     emitted by the render template. */

  position: relative;
  padding: 100px 0;
}

/* ── Header (LEFT-aligned) ──────────────────────────────── */
.starthere__header {
  text-align: left;
  margin-bottom: 0;
}

/* ── Eyebrow pill (Variant B, opt-in) ───────────────────── */
.starthere__eyebrow {
  display: inline-block;
  padding: 10px 22px;
  margin-bottom: 28px;
  border: 1px solid rgba(0, 195, 208, 0.4);
  background: rgba(0, 195, 208, 0.06);
  color: var(--atg-eyebrow-color);
  font-family: var(--font-heading, "Inter", system-ui, sans-serif);
  font-size: var(--atg-eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* ── Title (typography skeleton — colors live on the inner spans) ─── */
.starthere__title {
  margin: 0;
  font-family: var(--font-heading, "Inter", system-ui, sans-serif);
  font-size: var(--atg-section-title-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Single-tone mode: gradient on the inner span (default visual) */
.starthere__title-single {
  background: linear-gradient(180deg, #ffffff 0%, #aae3e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Two-tone mode: solid plain + solid accent (no gradient) */
.starthere__title-plain {
  color: var(--atg-section-title-plain-color);
}
.starthere__title-accent {
  color: var(--atg-section-title-accent-color);
}

/* Optional second line — forces a new line, inherits parent size */
.starthere__title-line2 {
  display: block;
  color: var(--atg-section-title-plain-color);
}

/* ── Subtitle ───────────────────────────────────────────── */
.starthere__subtitle {
  max-width: 720px;
  margin: 24px 0 64px;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: var(--atg-subtitle-size);
  line-height: 1.55;
  color: var(--atg-subtitle-color);
}
.starthere__subtitle p { margin: 0; }
.starthere__subtitle p + p { margin-top: 12px; }

/* ── Cards container (grid skeleton) ────────────────────── */
.starthere__cards {
  display: grid;
  grid-template-columns: 1fr; /* single column by default; ≥768px overrides per variant */
}

/* Column counts — only at ≥768px so mobile naturally collapses to 1fr */
@media (min-width: 768px) {
  .starthere--cols-3 .starthere__cards { grid-template-columns: 1fr 1fr 1fr; }
  .starthere--cols-2 .starthere__cards { grid-template-columns: 1fr 1fr; }
}

/* ── Card layout: BORDERED (Variant A — hairline separators) ─── */
.starthere--card-bordered .starthere__cards {
  border-top: 1px solid rgba(0, 195, 208, 0.18);
  border-bottom: 1px solid rgba(0, 195, 208, 0.18);
}
.starthere--card-bordered .starthere__card {
  padding: 56px 48px;
  background: transparent;
  border-right: 1px solid rgba(0, 195, 208, 0.18);
}
.starthere--card-bordered .starthere__card:last-child {
  border-right: none;
}

/* ── Card layout: PANEL (Variant B — boxed with bg + radius + gap) ─── */
.starthere--card-panel .starthere__cards {
  gap: 24px;
}
.starthere--card-panel .starthere__card {
  padding: 40px;
  background: rgba(8, 18, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

/* ── Card (common — flex stack regardless of variant) ───── */
.starthere__card {
  display: flex;
  flex-direction: column;
}

/* ── Icon box ───────────────────────────────────────────── */
.starthere__card-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(15, 25, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  margin-bottom: 32px;
  flex-shrink: 0;
}
.starthere__card-icon {
  display: block;
  max-width: 36px;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── Card title ─────────────────────────────────────────── */
.starthere__card-title {
  margin: 0 0 16px;
  font-family: var(--font-heading, "Inter", system-ui, sans-serif);
  font-size: var(--atg-card-title-size);
  font-weight: 600;
  line-height: 1.3;
  color: var(--atg-card-title-color);
}

/* ── Card rich content (WYSIWYG description) ────────────── */
.starthere__card-rich-content {
  color: var(--atg-card-content-color);
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: var(--atg-card-content-size);
  line-height: 1.6;
  margin-bottom: 36px;
  flex: 1;
}
.starthere__card-rich-content p { margin: 0 0 14px; }
.starthere__card-rich-content p:last-child { margin-bottom: 0; }

.starthere__card-rich-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.starthere__card-rich-content ul li {
  position: relative;
  padding-left: 22px;
}
.starthere__card-rich-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, #00c3d0);
}

.starthere__card-rich-content ol {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  counter-reset: starthere-ol;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.starthere__card-rich-content ol li {
  position: relative;
  padding-left: 28px;
  counter-increment: starthere-ol;
}
.starthere__card-rich-content ol li::before {
  content: counter(starthere-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary, #00c3d0);
  font-weight: 600;
}

.starthere__card-rich-content strong,
.starthere__card-rich-content b {
  color: var(--text-white, #ffffff);
  font-weight: 700;
}
.starthere__card-rich-content em,
.starthere__card-rich-content i { font-style: italic; }

.starthere__card-rich-content a {
  color: var(--primary, #00c3d0);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 195, 208, 0.3);
  transition: border-color 0.2s ease;
}
.starthere__card-rich-content a:hover {
  border-bottom-color: rgba(0, 195, 208, 0.8);
}

.starthere__card-rich-content > *:last-child { margin-bottom: 0; }

/* ── Button: FULL-WIDTH outline (Variant A) ─────────────── */
.starthere__card-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 14px 0;
  background: rgba(10, 20, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-heading, "Inter", system-ui, sans-serif);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(0, 195, 208, 0.05),
    0 4px 16px rgba(0, 195, 208, 0.08);
  transition: all 0.25s ease;
}
.starthere__card-btn:hover {
  background: rgba(0, 195, 208, 0.08);
  border-color: rgba(0, 195, 208, 0.4);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 195, 208, 0.2),
    0 8px 32px rgba(0, 195, 208, 0.25);
}

/* ── Button: INLINE LINK with chevron (Variant B) ───────── */
.starthere__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--primary, #00c3d0);
  font-family: var(--font-heading, "Inter", system-ui, sans-serif);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  align-self: flex-start;
  transition: gap 0.2s ease;
}
.starthere__card-link:hover {
  gap: 10px;
  color: var(--primary, #00c3d0);
}
.starthere__card-link-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.starthere__card-link:hover .starthere__card-link-arrow {
  transform: translateX(2px);
}

/* ── Tablet (768px – 1024px) ────────────────────────────── */
@media (max-width: 1024px) {
  .starthere-section { padding: 80px 0; }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .starthere--card-bordered .starthere__card { padding: 40px 32px; }
  .starthere--card-panel .starthere__card { padding: 32px; }
  .starthere__subtitle { margin-bottom: 48px; }
}

/* ── Mobile (<768px) ────────────────────────────────────── */
@media (max-width: 767px) {
  .starthere-section { padding: 60px 0; }
  .starthere__subtitle { margin-bottom: 40px; }

  /* Bordered: vertical hairlines → horizontal hairlines between stacked cards */
  .starthere--card-bordered .starthere__card {
    border-right: none;
    border-bottom: 1px solid rgba(0, 195, 208, 0.18);
    padding: 40px 24px;
  }
  .starthere--card-bordered .starthere__card:last-child {
    border-bottom: none;
  }

  /* Panel: tighter gap + padding when stacked */
  .starthere--card-panel .starthere__cards {
    gap: 16px;
  }
  .starthere--card-panel .starthere__card {
    padding: 32px 24px;
  }
}
