/* Shared styles for the bitedraft.com marketing site (homepage, terms,
   privacy). Light theme with a purple gradient accent, separate from the
   dark in-app prototype in demo/public. */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f4fd;
  --card: #ffffff;
  --text: #201c2c;
  --muted: #6b6478;
  --border: #e6e1f0;
  --accent: #7c3aed;
  --accent-2: #d946ef;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #d946ef 100%);
  --accent-soft: #efe6fd;
  --tone-bg: #ede9fe;
  --tone-text: #6d28d9;
  --persona-bg: #fae8ff;
  --persona-text: #a21caf;
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ---- Gradient text helper ---- */

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Nav ---- */

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.site-nav nav {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
}

.site-nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 100%;
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 100%;
}

/* ---- Hero ---- */

.hero {
  padding-top: 72px;
  padding-bottom: 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.15rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 10px 24px -8px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---- Chip strip (visual flavor, mirrors the in-app chip grid) ---- */

.chip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 36px 0 8px;
}

.chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--tone-text);
  background: var(--tone-bg);
}

.chip-pill.persona {
  color: var(--persona-text);
  background: var(--persona-bg);
}

.chip-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

/* ---- Feature grid ---- */

.features {
  padding-top: 56px;
  padding-bottom: 56px;
  background: var(--bg-soft);
}

.section-title {
  text-align: center;
  margin: 0 0 40px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 8px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 20px -14px rgba(80, 40, 140, 0.18);
}

.feature-card .icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

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

/* ---- How it works ---- */

.steps {
  padding-top: 56px;
  padding-bottom: 56px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 44px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

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

/* ---- Closing CTA ---- */

.closing {
  padding-top: 56px;
  padding-bottom: 72px;
  text-align: center;
  background: var(--bg-soft);
}

.closing h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.closing p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 24px;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--accent);
}

/* ---- Legal pages (terms / privacy) ---- */

.legal {
  padding-top: 48px;
  padding-bottom: 80px;
}

.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
}

.legal .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 36px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 34px 0 10px;
  color: var(--text);
}

.legal p, .legal li {
  color: #453f52;
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal ul {
  padding-left: 22px;
}

.legal a { text-decoration: underline; }

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

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

/* ---- Mobile nav ---- */

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

  .site-nav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 28px -18px rgba(40, 20, 70, 0.25);
    padding: 4px 24px 12px;
  }

  .site-nav nav.open {
    display: flex;
  }

  .site-nav nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav nav a:last-child {
    border-bottom: none;
  }

  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .features, .steps {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .closing {
    padding-top: 40px;
    padding-bottom: 56px;
  }
}
