/* System Hub — homepage */

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

:root {
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.1);
  --max-w: 1140px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green-700);
  text-decoration: none;
}

a:hover {
  color: var(--green-800);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--slate-200);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--slate-900);
  text-decoration: none;
}

.brand img {
  height: 2rem;
  width: auto;
}

.brand em {
  font-style: normal;
  color: var(--green-600);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--slate-900);
  background: var(--slate-100);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 880px) {
  .site-nav {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  padding: 0.625rem 1.1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-ghost {
  color: var(--slate-700) !important;
  background: transparent;
}

.btn-ghost:hover {
  background: var(--slate-100);
}

.btn-outline {
  color: var(--slate-700) !important;
  background: var(--white);
  border: 1px solid var(--slate-200);
}

.btn-outline:hover {
  border-color: var(--green-600);
  color: var(--green-700) !important;
}

.btn-primary {
  color: var(--white) !important;
  background: var(--green-600);
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.2);
}

.btn-primary:hover {
  background: var(--green-700);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.22);
}

.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 0.9375rem;
}

@media (max-width: 480px) {
  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions .btn-primary {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 55% at 70% -10%, var(--green-100) 0%, transparent 58%),
    linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--slate-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--slate-200) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 15%, transparent 72%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 4.5rem 0 5.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
}

.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--green-600);
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1rem;
  max-width: 18ch;
}

.hero h1 span {
  display: block;
  color: var(--green-700);
}

.hero .lede {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--slate-600);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-600);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-trust svg {
  width: 1rem;
  height: 1rem;
  color: var(--green-600);
}

.hero-frame {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.hero-frame-dots {
  display: flex;
  gap: 0.35rem;
}

.hero-frame-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--slate-300);
}

.hero-frame-url {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-400);
}

.hero-frame img {
  width: 100%;
  height: auto;
  display: block;
  padding: 0.75rem;
  object-fit: contain;
  object-position: top center;
  background: var(--white);
}

/* ── Venue bar ── */
.venue-bar {
  padding: 1.75rem 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  background: var(--white);
}

.venue-bar p {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 1rem;
}

.venue-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.75rem;
}

.venue-row span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* ── Sections ── */
.hero,
.section,
.venue-bar,
.closing {
  scroll-margin-top: 4.5rem;
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5.5rem 0;
  }
}

.section.alt {
  background: var(--slate-50);
}

.section-header {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.7rem;
}

.section-header h2,
.section-copy h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-header p,
.section-copy .tagline {
  font-size: 1.05rem;
  color: var(--slate-500);
  line-height: 1.65;
}

.split {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.85rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--slate-600);
  margin-bottom: 0.85rem;
}

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

.card.before {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
}

.card.after {
  border-color: var(--green-200);
  background: linear-gradient(180deg, #fff 0%, var(--green-50) 100%);
  box-shadow: var(--shadow-md);
}

.pain-list,
.feature-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pain-list li,
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--slate-700);
}

.pain-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4em;
  border: 1.5px solid #f87171;
  border-radius: 2px;
}

.feature-list .tick {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  color: var(--green-600);
}

/* ── Shift + media ── */
.media-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .media-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.section-copy p {
  font-size: 1rem;
  color: var(--slate-600);
  margin-bottom: 0.9rem;
}

.section-copy p a {
  font-weight: 600;
}

.media-frame {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.media-frame img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: top center;
  background: var(--white);
  padding: 0.5rem;
}

/* ── Steps ── */
.steps {
  list-style: none;
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.steps li {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.steps h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.steps p {
  font-size: 0.9375rem;
  color: var(--slate-600);
}

/* ── FAQ ── */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  margin: 0 auto;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-list details[open] {
  border-color: var(--green-200);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--slate-900);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  transform: rotate(180deg);
}

.faq-list details p {
  padding: 0 1.2rem 1.1rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ── Modules ── */
.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.module-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.module-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.module-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
}

.module-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  flex: 1;
}

.module-card .more {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green-700);
}

.hub-copy {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  text-align: center;
  color: var(--slate-600);
}

.hub-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.hub-links a {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
}

.hub-links a:hover {
  border-color: var(--green-600);
  color: var(--green-700);
  text-decoration: none;
}

.hub-hero-inner {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.hub-hero h1 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.hub-hero .hero-cta,
.hub-hero .hero-trust {
  justify-content: center;
}

@media (max-width: 520px) {
  .hub-hero .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

.module-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.45rem;
}

.module-price {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate-900);
}

.module-card.featured {
  padding: 1.6rem 1.45rem 1.45rem;
}

@media (min-width: 900px) {
  .module-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 800px) {
  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem;
  }
}

.resource-grid h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.85rem;
}

.hub-link-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.hub-link-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
}

.hub-link-list a:hover {
  color: var(--green-700);
  text-decoration: underline;
}

/* ── Closing CTA ── */
.closing {
  padding: 4.5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, var(--green-100) 0%, transparent 70%),
    var(--green-50);
  border-top: 1px solid var(--green-200);
  border-bottom: 1px solid var(--green-200);
}

.closing h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.closing p {
  max-width: 32rem;
  margin: 0 auto 1.6rem;
  color: var(--slate-600);
  font-size: 1.05rem;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* ── Footer ── */
.site-footer {
  background: var(--slate-50);
  color: var(--slate-600);
  padding: 3.5rem 0 1.75rem;
  font-size: 0.875rem;
  border-top: 1px solid var(--slate-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.25rem;
  }
}

.footer-brand p {
  max-width: 18rem;
  margin-top: 0.75rem;
  line-height: 1.6;
  color: var(--slate-500);
}

.site-footer h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate-900);
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: var(--slate-600);
}

.site-footer a:hover {
  color: var(--green-700);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.footer-bottom a {
  color: var(--slate-500);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .module-card {
    transition: none;
  }
}
