/* InControl — marketing page
   Plus Jakarta Sans via Google Fonts (linked in HTML) */

:root {
  --bg: #0a0f14;
  --bg-elevated: #111923;
  --bg-card: #151d28;
  --border: color-mix(in srgb, #e2e8f0 12%, transparent);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #2dd4bf;
  --accent-dim: color-mix(in srgb, var(--accent) 35%, var(--bg));
  --accent-hover: #5eead4;
  --focus: #fbbf24;
  --header-h: 4rem;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 24px 48px color-mix(in srgb, #000 45%, transparent);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --max-narrow: 720px;
  --max-legal: 68ch;
}

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

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

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

  .animate-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--max-narrow));
}

.container--legal {
  width: min(100% - 2rem, var(--max-legal));
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__bars {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #042f2e;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #042f2e;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  color: var(--accent-hover);
}

.btn--nav {
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.25rem;
    background: color-mix(in srgb, var(--bg) 96%, #000);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.65rem 0;
    font-size: 1rem;
  }

  .btn--nav {
    width: 100%;
  }
}

/* ----- Hero ----- */
.hero {
  padding-block: clamp(3rem, 8vw, 5rem);
  background: radial-gradient(ellipse 80% 60% at 70% 0%, var(--accent-dim), transparent 55%);
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero__sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 52ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.chip {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  padding: 1rem;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card__svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-card__caption {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ----- Sections ----- */
.section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.section__head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  letter-spacing: -0.02em;
}

.section__lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.policies-lede {
  margin-bottom: 1.25rem;
}

.section--intro {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.intro-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .intro-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 3rem;
  }
}

.intro-grid__text h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2rem);
}

.intro-grid__text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

.checklist li:last-child {
  margin-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.section--features {
  background: var(--bg);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.section--steps {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-block: 1px solid var(--border);
}

.steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

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

.step-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  border-radius: 50%;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.callout {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  background: var(--accent-dim);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius);
}

/* ----- FAQ ----- */
.section--faq {
  background: var(--bg);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-trigger::after {
  content: "";
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.faq-trigger:hover {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
}

.faq-panel {
  border-top: 1px solid var(--border);
}

.faq-panel__inner {
  padding: 0 1.25rem 1.25rem;
}

.faq-panel__inner p {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.faq-panel__inner a {
  font-weight: 600;
}

/* ----- Legal ----- */
.section--legal {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.section--legal-alt {
  background: var(--bg);
}

.section--legal h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-disclaimer {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  background: color-mix(in srgb, #fbbf24 12%, var(--bg-card));
  border: 1px solid color-mix(in srgb, #fbbf24 35%, transparent);
  border-radius: var(--radius-sm);
}

.legal-body {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-body p {
  margin: 0 0 1rem;
}

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

/* Standalone legal pages (privacy.html, terms.html) */
.legal-doc-page {
  padding-block: clamp(2rem, 5vw, 3rem) clamp(3rem, 6vw, 4rem);
  background: var(--bg);
}

.legal-doc-page .legal-doc {
  max-width: var(--max-legal);
  margin-inline: auto;
  width: min(100% - 2rem, var(--max-legal));
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal-doc-page .legal-doc > h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal-doc__updated {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.legal-doc__updated strong {
  color: var(--text);
  font-weight: 600;
}

.legal-doc .legal-doc__intro {
  margin: 0 0 1.5rem;
}

.legal-doc h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.legal-doc h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

.legal-doc p {
  margin: 0 0 1rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin-bottom: 0.4rem;
}

.legal-doc li:last-child {
  margin-bottom: 0;
}

.legal-doc a {
  font-weight: 600;
}

.nav-list a[aria-current="page"] {
  color: var(--accent);
}

/* ----- Footer ----- */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .footer__grid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer__contact {
  margin: 0;
  font-size: 0.875rem;
}

.footer__contact a {
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

/* ----- Motion ----- */
.animate-in {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease forwards;
}

.animate-in--delay {
  animation-delay: 0.12s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-trigger::after {
    transition: none;
  }
}
