/* Landing page — standalone stylesheet (no framework, system fonts). */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #e0e7ff;
  --good: #16a34a;
  --good-soft: #dcfce7;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --info: #0369a1;
  --info-soft: #e0f2fe;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px rgb(15 23 42 / 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -0.01em; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(248 250 252 / 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 22px;
  height: 22px;
  flex: none;
  display: block;
}
.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch a {
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a.active { background: var(--accent-soft); color: var(--accent); }

/* Hero */
.hero { padding: 4.5rem 0 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.cta-note { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }

/* Mockups (inline SVG) */
.mockup {
  width: 100%;
  height: auto;
  display: block;
}
.mockup-hero {
  filter: drop-shadow(0 12px 32px rgb(15 23 42 / 0.12));
}
.mk-window { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.mk-card { fill: var(--bg); stroke: var(--border); stroke-width: 1; }
.mk-line { stroke: var(--border); stroke-width: 1.5; }
.mk-dot-r { fill: #fca5a5; }
.mk-dot-y { fill: #fcd34d; }
.mk-dot-g { fill: #86efac; }
.mk-accent { fill: var(--accent); }
.mk-soft { fill: var(--accent-soft); }
.mk-strong { fill: #cbd5e1; }
.mk-muted { fill: var(--border); }
.mk-good { fill: var(--good); }
.mk-warn { fill: var(--warn); }
.mk-bar { fill: var(--accent); }
.mk-bar-soft { fill: var(--accent-soft); }
.mk-pill-good { fill: var(--good-soft); }
.mk-pill-warn { fill: var(--warn-soft); }
.mk-pill-bad { fill: var(--bad-soft); }
.mk-digit { fill: var(--surface); stroke: var(--border); }
.mk-digit-accent { fill: var(--accent-soft); stroke: var(--accent); }
.mk-chip { fill: #f1f5f9; }
.mk-thead { fill: #f1f5f9; }
.mk-card-white { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.mk-pill-sky { fill: var(--info-soft); }
.mk-chevron { fill: var(--muted); }
.mk-arrow { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mk-envelope { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.mk-envelope-flap { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.mk-text, .mk-text-inverse {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-anchor: middle;
}
.mk-text { fill: var(--muted); }
.mk-text-inverse { fill: #fff; }
.mk-t {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}
.mk-t-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  text-anchor: end;
}
.mk-t-mid { text-anchor: middle; }
.mk-t-strong { fill: var(--text); }
.mk-t-muted { fill: var(--muted); }
.mk-t-good { fill: var(--good); }
.mk-t-bad { fill: var(--bad); }
.mk-t-sky { fill: var(--info); }
.mk-t-accent { fill: var(--accent); }
.mk-t-invert { fill: #fff; }

/* Sections */
section { padding: 3.5rem 0; }
.features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.25rem;
}
/* Four-per-row variant: keeps 8-card (4×2) and 4-card (4×1) grids balanced. */
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 64rem) { .feature-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .feature-grid-4 { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-card h3 { margin-bottom: 0.4rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* How it works */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
/* Six-step variant: keep rows balanced (3×2 → 2×3 → 1 column). */
.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 60rem) { .steps-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .steps-3 { grid-template-columns: 1fr; } }

/* Deep dives */
.deep-dives { background: var(--surface); border-top: 1px solid var(--border); }
.dive-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.25rem 0;
}
.dive-row + .dive-row { border-top: 1px solid var(--border); }
.dive-row:nth-child(even) .dive-copy { order: 2; }
.dive-row:nth-child(even) .dive-visual { order: 1; }
.dive-copy h3 { font-size: 1.35rem; }
.dive-copy p { color: var(--muted); margin: 0; }
.dive-visual .mockup { max-width: 26rem; margin: 0 auto; }

/* FAQ */
.faq .container { max-width: 46rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 0.75rem;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  /* Custom chevron instead of the native disclosure triangle. */
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-top: -0.2rem;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 0.2rem; }
.faq details p { margin: 0; padding: 0 1.5rem 1.25rem; color: var(--muted); }

/* Contact */
.contact .container { max-width: 46rem; }
.contact h2 { margin-bottom: 0.75rem; }
.contact-lead {
  text-align: center;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 2rem;
}
.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}
.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.contact-form .btn { justify-self: start; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-success {
  background: var(--good-soft);
  color: var(--good);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
ul.errorlist {
  color: var(--bad);
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  list-style: disc;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand { font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: start; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.copyright { margin: 1.5rem 0 0; font-size: 0.85rem; }

/* Header nav (How it works / Pricing) */
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--accent); }

/* Subpage intro (How it works / Pricing) */
.page-intro { padding: 3.5rem 0 0; text-align: center; }
.page-intro .lead { margin: 0 auto; }

/* Checklist (benefits, pricing inclusions) */
.checklist {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 40rem;
  display: grid;
  gap: 0.65rem;
}
.checklist li { padding-left: 1.75rem; position: relative; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

/* CTA panel (subpage closing call to action) */
.cta-panel { text-align: center; }
.cta-panel p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.5rem; }

/* Pricing card */
.pricing .container { max-width: 34rem; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
}
.price-plan {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.price-amount {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.price-period { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 0.35rem; }
.price-note { color: var(--good); font-weight: 700; margin-bottom: 1.75rem; }
.price-card .checklist { text-align: left; margin-bottom: 2rem; }
.price-card .cta-note { margin-top: 0.75rem; }

/* Responsive */
@media (max-width: 48rem) {
  .hero { padding: 2.5rem 0; }
  .hero-grid, .dive-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .dive-row:nth-child(even) .dive-copy { order: 0; }
  .dive-row:nth-child(even) .dive-visual { order: 0; }
  section { padding: 2.5rem 0; }
  .site-nav { display: none; }
}

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