/* Charterfile marketing site — neutral theme (see packages/theme) */
:root {
  --ink: #171a20;
  --ink-raised: #21252d;
  --text-secondary: #3f4550;
  --text-muted: #646b78;
  --label: #6a6f7a;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --hairline: #e6e6e2;
  --input-border: #d6d6d0;
  --accent: #2f5c9e;
  --success-ink: #1f7a4d;
  --success-tint: #e7f3ec;
  --warning-ink: #96731f;
  --warning-tint: #f6efdb;
  --info-tint: #e9eef6;
  --radius-card: 8px;
  --radius-control: 6px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { background: var(--ink); color: #fff; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: #fff; text-decoration: none; }
.wordmark span { color: #8fb0dd; }
.nav a.cta {
  color: var(--ink); background: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 9px 18px; border-radius: var(--radius-control);
}

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 72px 0 88px; }
.hero .eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  color: #8fb0dd; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; color: #fff; max-width: 720px; }
.hero p.sub { font-size: 19px; color: #b9bfc9; max-width: 620px; margin: 22px 0 34px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.badge {
  font-size: 12.5px; font-weight: 600; color: #b9bfc9; border: 1px solid #3a4150;
  padding: 6px 12px; border-radius: 100px;
}

/* Waitlist form */
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.waitlist input[type="email"] {
  flex: 1; min-width: 240px; height: 48px; padding: 0 16px; font: inherit; font-size: 15px;
  border: 1.5px solid #3a4150; border-radius: var(--radius-control);
  background: var(--ink-raised); color: #fff; outline: none;
}
.waitlist input[type="email"]:focus { border-color: #8fb0dd; box-shadow: 0 0 0 3px rgba(143, 176, 221, 0.2); }
.waitlist button {
  height: 48px; padding: 0 24px; font: inherit; font-size: 15px; font-weight: 600;
  background: #fff; color: var(--ink); border: 0; border-radius: var(--radius-control); cursor: pointer;
}
.waitlist button:hover { background: #e8e8e8; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-ok {
  background: var(--success-tint); color: var(--success-ink); font-weight: 600; font-size: 14.5px;
  padding: 12px 16px; border-radius: var(--radius-control); max-width: 520px; margin-bottom: 16px;
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 10px; }
.lede { font-size: 17px; color: var(--text-muted); max-width: 640px; margin-bottom: 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 24px; box-shadow: 0 1px 2px rgba(23, 26, 32, 0.05);
}
section.alt .card { background: var(--bg); }
.card .k {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--label); margin-bottom: 10px;
}
.card h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-muted); }
.card.soon { border-style: dashed; }
.card.soon .k { color: var(--warning-ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px;
}
.step h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--text-muted); }

/* Pricing */
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.price-row-3 { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
@media (max-width: 860px) { .price-row-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .price-row { grid-template-columns: 1fr; } }
.price { font-size: 34px; font-weight: 700; color: var(--ink); font-feature-settings: "tnum" 1; }
.price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.tick { list-style: none; margin-top: 14px; }
.tick li { font-size: 14.5px; padding: 5px 0 5px 24px; position: relative; }
.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--success-ink); font-weight: 700; }

/* Final CTA */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band .waitlist { margin: 26px auto 0; justify-content: center; }

/* Footer */
footer { padding: 36px 0 48px; font-size: 13.5px; color: var(--text-muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-muted); text-decoration: none; margin-left: 18px; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px; }
.legal h1 { font-size: 28px; color: var(--ink); margin-bottom: 24px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 15px; margin-bottom: 10px; }
.legal a { color: var(--accent); }

/* Language switcher in nav */
.nav .nav-right { display: flex; align-items: center; gap: 20px; }
.nav .lang {
  color: #b7c3d4; text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; padding: 4px 8px; border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-control); line-height: 1;
}
.nav .lang:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.legal .lang-note { font-size: 13px; color: var(--text-muted); border-left: 3px solid var(--accent); padding-left: 12px; margin: 0 0 20px; }

/* Long German compound words must not overflow on narrow phones */
.legal h1, .legal h2, .legal p, .legal li { overflow-wrap: break-word; hyphens: auto; }

/* Keep the nav from crowding on small phones */
@media (max-width: 430px) {
  .nav .nav-right { gap: 12px; }
  .nav a.cta { padding: 8px 13px; font-size: 13px; }
  .nav .lang { padding: 4px 7px; }
}
