/* AI Meta Suite — marketing site styles */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');
@import url('./tokens.css');

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-on-surface);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: var(--color-primary); }

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

::selection { background: var(--color-primary-fixed); color: var(--color-on-primary-fixed); }

/* ─── Layout ─────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 104px 0;
}
.section--tight { padding: 72px 0; }
.section--alt {
  background: var(--color-surface-low);
}
.section--ink {
  background: #001e2d;
  color: rgba(255,255,255,0.92);
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .container, .container-narrow { padding: 0 20px; }
}

/* ─── Type ───────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-on-surface-variant);
  background: var(--color-surface-lowest);
  padding: 7px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(192,199,206,0.5);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 0 rgba(0,106,106,0.5);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,106,106,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,106,106,0); }
}

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--color-on-surface);
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-on-surface);
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-on-surface);
}
.h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-on-surface);
}

.lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--color-on-surface-variant);
  text-wrap: pretty;
  max-width: 60ch;
}

.muted { color: var(--color-on-surface-variant); }
.t-grad {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 60%, var(--color-tertiary) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Buttons ────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  transition: all 180ms ease-out;
  white-space: nowrap;
}
.btn--lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn--sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }

.btn--primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-btn-resting);
}
.btn--primary:hover {
  background: var(--gradient-cta-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
  color: #fff;
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--color-surface-lowest);
  color: var(--color-on-surface);
  border: 1px solid rgba(192,199,206,0.5);
}
.btn--ghost:hover {
  background: var(--color-surface-high);
  border-color: rgba(192,199,206,0.85);
  color: var(--color-on-surface);
}

.btn--quiet {
  background: transparent;
  color: var(--color-on-surface);
}
.btn--quiet:hover {
  background: rgba(0,66,94,0.06);
  color: var(--color-primary);
}

.btn .arrow {
  transition: transform 180ms ease-out;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Badges ─────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.badge--ai {
  background: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
}
.badge--rec {
  background: var(--color-primary-fixed);
  color: var(--color-on-primary-fixed);
}
.badge--tert {
  background: var(--color-tertiary-fixed);
  color: var(--color-on-tertiary-fixed);
}
.badge--success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-color: var(--color-success-border);
}

/* ─── Cards ──────────────────────────────────────────── */

.card {
  background: var(--color-surface-lowest);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(192,199,206,0.18);
  box-shadow: var(--shadow-ambient);
  position: relative;
  overflow: hidden;
}
.card--pad-md { padding: 28px; }
.card--pad-lg { padding: 36px; }

.card__glow {
  position: absolute;
  right: -32px; top: -32px;
  width: 140px; height: 140px;
  background: var(--color-primary);
  opacity: 0.045;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
}

/* ─── Navbar ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,251,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(192,199,206,0.25);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-on-surface);
}
.nav__logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  background: white;
  flex-shrink: 0;
}
.nav__logo img { width: 100%; height: 100%; object-fit: cover; }
.nav__brandtext {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav__brandtext .nm {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.015em;
  color: var(--color-on-surface);
}
.nav__brandtext .sub {
  font-size: 11px;
  color: var(--color-on-surface-variant);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-on-surface);
  text-decoration: none;
  transition: all 150ms;
}
.nav__link:hover {
  background: rgba(0,66,94,0.06);
  color: var(--color-primary);
}
.nav__link.is-active {
  background: var(--color-primary-fixed);
  color: var(--color-on-primary-fixed);
}
.nav__cta {
  display: flex; align-items: center; gap: 8px;
}

@media (max-width: 720px) {
  .nav__inner { height: 64px; padding: 0 20px; }
  .nav__links { display: none; }
  .nav__brandtext .sub { display: none; }
}

/* ─── Footer ─────────────────────────────────────────── */

.footer {
  background: #001e2d;
  color: rgba(255,255,255,0.78);
  padding: 80px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand .nav__brandtext .nm { color: #fff; }
.footer__brand .nav__brandtext .sub { color: rgba(255,255,255,0.6); }
.footer__brand .tag {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  max-width: 28ch;
  line-height: 1.55;
}
.footer__col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  text-decoration: none;
  transition: color 150ms;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer__legal a:hover { color: #fff; }

@media (max-width: 720px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ─── Inputs ─────────────────────────────────────────── */

.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface);
  letter-spacing: 0.005em;
}
.input, .textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-on-surface);
  background: var(--color-surface-lowest);
  border: 1px solid rgba(192,199,206,0.6);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.input:focus, .textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0,66,94,0.10);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }

/* ─── Misc utilities ─────────────────────────────────── */

.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.stack { display: flex; flex-direction: column; }

.divider-soft {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(192,199,206,0.5), transparent);
  margin: 0;
  border: none;
}

/* ─── Section header ─────────────────────────────────── */

.sec-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 64px;
}
.sec-head .lead { text-align: center; }

/* ─── Accordion ──────────────────────────────────────── */

.faq {
  display: flex;
  flex-direction: column;
}
.faq__item {
  border-top: 1px solid rgba(192,199,206,0.3);
}
.faq__item:last-child {
  border-bottom: 1px solid rgba(192,199,206,0.3);
}
.faq__btn {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-on-surface);
  cursor: pointer;
  text-align: left;
  transition: color 150ms;
}
.faq__btn:hover { color: var(--color-primary); }
.faq__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: var(--color-surface-low);
  color: var(--color-on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease-out;
  font-weight: 600;
}
.faq__item.is-open .faq__icon {
  background: var(--color-primary);
  color: white;
  transform: rotate(45deg);
}
.faq__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 280ms ease-out;
}
.faq__item.is-open .faq__panel { max-height: 600px; }
.faq__panel-inner {
  padding: 0 0 28px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-on-surface-variant);
  max-width: 70ch;
}

/* ─── Page hero (small pages) ─────────────────────────── */

.page-hero {
  padding: 120px 0 64px;
  text-align: center;
}
.page-hero .lead { margin: 20px auto 0; }

/* ─── Long-form (legal) ──────────────────────────────── */

.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--color-on-surface-variant);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-on-surface);
  margin: 56px 0 16px;
  line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-on-surface);
  margin: 32px 0 12px;
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.prose strong { color: var(--color-on-surface); font-weight: 600; }
.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(0,66,94,0.25);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--color-primary); }

/* Toc / table of contents on legal pages */
.toc {
  background: var(--color-surface-low);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 48px;
  border: 1px solid rgba(192,199,206,0.25);
}
.toc h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-on-surface-variant);
  margin-bottom: 12px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
.toc li {
  margin-bottom: 8px;
  font-size: 14px;
}
.toc a {
  color: var(--color-on-surface);
  text-decoration: none;
}
.toc a:hover { color: var(--color-primary); }

@media (max-width: 600px) {
  .toc ol { columns: 1; }
}
