/* Crosstask marketing site — Indigo design tokens.
   Mirrors design/colors_and_type.css with site-only additions. */

:root {
  /* Brand — Indigo */
  --c-accent:        #4F46E5;
  --c-accent-soft:   #EEECFE;
  --c-accent-text:   #FFFFFF;
  --c-accent-hover:  #4338CA;

  /* Neutrals (indigo-tinted) */
  --c-ink:    #0E0C2B;
  --c-ink-2:  #2C2951;
  --c-muted:  #6C6A8B;
  --c-faint:  #C6C4DB;

  /* Lines + surfaces */
  --c-line:   #D5D3E6;
  --c-hair:   #E7E5F3;
  --c-paper:  #FFFFFF;
  --c-chrome: #F6F5FB;
  --c-screen: #F2F0F9;

  /* Semantic */
  --c-red:    #DC2626;
  --c-green:  #10B981;
  --c-amber:  #F59E0B;

  /* Type */
  --f-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Geometry */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Layout */
  --w-page: 1120px;
  --w-prose: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-accent:       #8B82FF;
    --c-accent-soft:  #2A2560;
    --c-accent-text:  #FFFFFF;
    --c-accent-hover: #A29CFF;

    --c-ink:    #F5F3FF;
    --c-ink-2:  #D8D4F0;
    --c-muted:  #8682A8;
    --c-faint:  #3F3A60;

    --c-line:   #332E52;
    --c-hair:   #262143;
    --c-paper:  #181432;
    --c-chrome: #100D24;
    --c-screen: #0B0818;

    --c-red:    #F87171;
    --c-green:  #34D399;
    --c-amber:  #FBBF24;
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-screen);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--c-hair); margin: 32px 0; }
h1, h2, h3, h4 { color: var(--c-ink); margin: 0 0 0.5em; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; color: var(--c-ink-2); }
p { margin: 0 0 1em; color: var(--c-ink-2); }
strong { color: var(--c-ink); font-weight: 600; }
code {
  font-family: var(--f-mono);
  font-size: 0.9em;
  background: var(--c-chrome);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--c-hair);
}
ul, ol { padding-left: 1.4em; margin: 0 0 1em; color: var(--c-ink-2); }
li { margin-bottom: 0.4em; }
blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--c-accent);
  background: var(--c-accent-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--c-ink);
}
blockquote p:last-child { margin-bottom: 0; }

/* Layout helpers */
.container {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 24px;
}
.prose {
  max-width: var(--w-prose);
  margin: 0 auto;
}
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-screen) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-hair);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 2px 8px rgba(79,70,229,0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--c-ink-2);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--c-ink); text-decoration: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--c-ink);
  color: var(--c-paper);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--c-ink-2); color: var(--c-paper); text-decoration: none; }
@media (max-width: 700px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease, border-color 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--c-accent);
  color: var(--c-accent-text);
}
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn--ghost:hover { background: var(--c-paper); }
.btn--ink {
  background: var(--c-ink);
  color: var(--c-paper);
}
.btn--ink:hover { background: var(--c-ink-2); color: var(--c-paper); }

/* Hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.hero .lede {
  max-width: 56ch;
  margin: 18px auto 32px;
  font-size: 19px;
  color: var(--c-ink-2);
}
.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-meta {
  margin-top: 28px;
  font-size: 14px;
  color: var(--c-muted);
}

/* Phone mock */
.hero-art {
  margin: 56px auto 0;
  max-width: 920px;
  background: linear-gradient(135deg, var(--c-accent-soft) 0%, var(--c-chrome) 100%);
  border: 1px solid var(--c-hair);
  border-radius: var(--r-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(79,70,229,0.18), transparent 60%);
  pointer-events: none;
}
.phone-mock {
  width: 280px;
  margin: 0 auto;
  background: var(--c-paper);
  border-radius: 36px;
  border: 1px solid var(--c-line);
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(14,12,43,0.35), 0 12px 24px -8px rgba(14,12,43,0.18);
  position: relative;
  z-index: 1;
}
.phone-screen {
  background: var(--c-screen);
  border-radius: 24px;
  padding: 16px;
  min-height: 480px;
}
.phone-title {
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0 16px;
  color: var(--c-ink);
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--c-paper);
  border: 1px solid var(--c-hair);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  font-size: 15px;
}
.task-check {
  width: 20px; height: 20px;
  border-radius: 999px;
  border: 1.5px solid var(--c-faint);
  flex: 0 0 auto;
}
.task-check.done {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.task-row.done .task-label { color: var(--c-muted); text-decoration: line-through; }
.task-label { flex: 1; color: var(--c-ink); }
.task-meta { font-size: 12px; color: var(--c-muted); }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
}
.feature {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: 15px; color: var(--c-muted); }

/* Section heading */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--c-muted);
  font-size: 17px;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; }
}
.plan {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent);
  position: relative;
}
.plan--featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: var(--c-accent-text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan-tag { color: var(--c-muted); font-size: 14px; margin-bottom: 16px; }
.plan-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.plan-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0;
}
.plan-cta { margin: 20px 0 24px; }
.plan ul { padding-left: 0; list-style: none; margin: 0; }
.plan li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--c-ink-2);
  border-top: 1px solid var(--c-hair);
  display: flex; gap: 10px; align-items: flex-start;
}
.plan li::before {
  content: "✓";
  color: var(--c-accent);
  font-weight: 700;
  flex: 0 0 auto;
}
.plan li:first-of-type { border-top: 0; }

/* Privacy strip / quote */
.quote-strip {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
}
.quote-strip h2 { text-align: center; margin-bottom: 24px; }

/* Page header (sub-page heroes) */
.page-head {
  padding: 64px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--c-hair);
  margin-bottom: 48px;
}
.page-head h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.page-head p { color: var(--c-muted); margin: 0; }

/* Article meta */
.article-meta {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-hair);
}

/* FAQ */
.faq details {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  padding: 0;
}
.faq summary {
  padding: 18px 20px;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--c-muted);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div {
  padding: 0 20px 20px;
  color: var(--c-ink-2);
}
.faq details > div p:last-child { margin-bottom: 0; }

/* Cards/grid (security page) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 24px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 15px; color: var(--c-muted); }

/* Footer */
.site-footer {
  background: var(--c-chrome);
  border-top: 1px solid var(--c-hair);
  padding: 56px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--c-ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--c-accent); text-decoration: none; }
.footer-tag { color: var(--c-muted); font-size: 14px; margin-top: 10px; max-width: 32ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--c-hair);
  font-size: 13px;
  color: var(--c-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 32px; }

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  padding-top: 8px;
  padding-bottom: 24px;
  border-left: 2px solid var(--c-hair);
  margin-left: 16px;
  color: var(--c-ink-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: 0;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps strong { display: block; margin-bottom: 4px; color: var(--c-ink); font-size: 16px; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-hair);
  color: var(--c-ink-2);
  vertical-align: top;
}
th {
  font-weight: 600;
  color: var(--c-ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Inline subtle blockquote (for canonical privacy paragraphs) */
.privacy-canonical {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin: 24px 0;
}
.privacy-canonical p { color: var(--c-ink); font-size: 17px; line-height: 1.6; }
.privacy-canonical p:last-child { margin-bottom: 0; }

/* Focus state */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
