/* ─────────────────────────────────────────────
   SYLOFIT AI — shared styles
   Used by: index.html, privacy.html, terms.html, support.html
   ───────────────────────────────────────────── */

/* ─── Tokens ─── */
:root {
  --ink:        #09090b;
  --ink-2:      #27272a;
  --muted:      #52525b;
  --muted-2:    #71717a;
  --muted-3:    #a1a1aa;
  --surface:    #ffffff;
  --surface-2:  #fafafa;
  --border:     #e4e4e7;
  --accent:     #a3e635;
  --accent-2:   #bef264;

  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-lg:   18px;
  --fs-xl:   20px;
  --fs-2xl:  24px;
  --fs-3xl:  30px;
  --fs-4xl:  36px;
  --fs-5xl:  48px;
  --fs-6xl:  60px;

  --radius:     6px;
  --radius-lg:  8px;
  --container:  1040px;
  --header-h:   64px;
}

/* ─── Reset-ish ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

img, svg { display: block; }

/* ─── Container ─── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ─── Utility atoms ─── */
.muted { color: var(--muted-3); }

.eyebrow {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  padding: 10px 18px;
  border: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}

.btn--sm  { padding: 8px 16px; font-size: var(--fs-sm); }
.btn--lg  { padding: 14px 24px; font-size: var(--fs-base); }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.btn--primary:hover { background: #18181b; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: #f4f4f5; }

.btn--accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 700;
}
.btn--accent:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn--outline-light {
  background: transparent;
  color: var(--surface);
  border-color: var(--surface);
}
.btn--outline-light:hover {
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost-light {
  background: transparent;
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost-light:hover {
  border-color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.nav-link {
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color 120ms ease;
}
.nav-link:hover { color: var(--ink); }

/* ─── Mobile menu toggle ─── */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 120ms ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu__link {
  font-size: var(--fs-base);
  font-weight: 500;
  padding: 8px 0;
  color: var(--ink);
}

/* ─── Hero ─── */
.hero {
  padding-top: 80px;
  padding-bottom: 96px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero__headline {
  font-size: var(--fs-5xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero__highlight {
  background: var(--accent);
  padding: 0 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__sub {
  max-width: 560px;
  font-size: var(--fs-lg);
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 28px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__hint {
  font-size: var(--fs-sm);
  color: var(--muted-2);
}

/* Plan card (hero right column) */
.plan-card {
  position: relative;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.plan-card__badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius);
}

.plan-card__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-3);
  margin-bottom: 4px;
}

.plan-card__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 20px;
}

.plan-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  padding: 16px 0;
  margin-bottom: 20px;
}

.plan-card__stats > div > .plan-card__label { margin-bottom: 2px; }

.plan-card__stat {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1;
}

.plan-card__stat-unit {
  font-size: var(--fs-base);
  color: var(--muted-3);
  font-weight: 500;
}

.plan-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-sm);
}
.plan-card__list li {
  display: flex;
  justify-content: space-between;
}

/* ─── Sections ─── */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section--muted { background: var(--surface-2); }

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ─── Features ─── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.feature__icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: 12px;
}
.feature__icon svg { width: 24px; height: 24px; }

.feature__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 6px;
}

.feature__body {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Steps ─── */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.step__num {
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 6px;
}

.step__body {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Final CTA ─── */
/* Store link block */
.labs-link {
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: var(--surface);
}

.labs-link__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.labs-link .eyebrow {
  color: var(--accent);
}

.labs-link__title {
  max-width: 680px;
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.labs-link__body {
  max-width: 720px;
  color: var(--muted-3);
  line-height: 1.65;
}

.labs-link__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta {
  background: var(--ink);
  color: var(--surface);
}

.cta__inner {
  padding: 80px 24px;
  text-align: center;
}

.cta__title {
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta__sub {
  font-size: var(--fs-lg);
  color: var(--muted-3);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta__brand {
  background: var(--accent);
  color: var(--ink);
  padding: 0 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.cta__break { display: none; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 24px 32px;
}

.footer__brandcol .brand { display: block; margin-bottom: 8px; font-size: var(--fs-base); }
.footer__tag {
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 280px;
}

.footer__col h5 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 10px; }

.footer__col a {
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color 120ms ease;
}
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 20px 24px;
  text-align: center;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--muted-2);
}

.footer__legal {
  display: flex;
  gap: 16px;
}

.footer__legal a {
  font-size: var(--fs-xs);
  color: var(--muted-2);
  transition: color 120ms ease;
}
.footer__legal a:hover { color: var(--ink); }

/* ─── Reveal-on-scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .site-header, .btn, .nav-link, .menu-toggle__bar { transition: none; }
}

/* ─── Legal pages (privacy/terms) ─── */
.legal {
  padding-top: 56px;
  padding-bottom: 80px;
}
.legal__inner {
  max-width: 720px;
  margin-inline: auto;
}
.legal__heading {
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.legal__updated {
  color: var(--muted-2);
  font-size: var(--fs-sm);
  margin-bottom: 40px;
}
.legal__section + .legal__section { margin-top: 32px; }
.legal__section h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.legal__section p {
  color: var(--muted);
  line-height: 1.7;
}
.legal__section ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 12px;
}
.legal__section ul li {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ─── Support page ─── */
.support__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.support__card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface);
  transition: border-color 120ms ease, transform 120ms ease;
}
.support__card:hover { border-color: var(--ink); transform: translateY(-1px); }

.support__card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 8px;
}
.support__card p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.support__card a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.faq__list {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__q::after {
  content: "+";
  font-size: var(--fs-xl);
  color: var(--muted-2);
  transition: transform 200ms ease;
}

.faq__item[open] .faq__q::after {
  content: "−";
  color: var(--ink);
}

.faq__a {
  padding: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: var(--fs-sm);
}

/* ─── Responsive ─── */
@media (min-width: 768px) {
  .hero { padding-top: 112px; padding-bottom: 128px; }
  .hero__grid {
    grid-template-columns: 3fr 2fr;
    gap: 56px;
  }
  .hero__headline { font-size: var(--fs-6xl); }

  .section { padding: 112px 0; }
  .section__title { font-size: var(--fs-4xl); }

  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .step-grid    { grid-template-columns: repeat(3, 1fr); gap: 48px; }

  .labs-link__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .labs-link__title { font-size: var(--fs-4xl); }

  .cta__title { font-size: var(--fs-5xl); }
  .cta__break { display: inline; }

  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 64px 24px 40px;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .legal { padding-top: 80px; padding-bottom: 112px; }
  .legal__heading { font-size: var(--fs-5xl); }

  .support__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile nav swap */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}
