:root {
  color-scheme: only light;
  --ink: #1a2230;
  --muted: #5b6675;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --bg: #faf9f6;
  --card: #ffffff;
  --soft: #f5f7fa;
  --line: #e6eaf0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* Hero */
header {
  padding: 96px 0 72px;
  text-align: center;
}
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
h1 {
  font-size: 44px; line-height: 1.15; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.lede { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 14px 28px; border-radius: 10px; transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); }

/* Top nav */
.topnav {
  background: rgba(250, 249, 246, 0.9); -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; padding-bottom: 15px; }
.nav-brand { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 28px; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 22px;
  box-shadow: 0 1px 3px rgba(26, 34, 48, 0.04), 0 6px 16px rgba(26, 34, 48, 0.05);
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }

.about { max-width: 640px; margin: 0 auto; text-align: center; }
.about p { font-size: 17px; color: var(--muted); margin-bottom: 16px; }
.about p:last-child { margin-bottom: 0; }

/* Long-form story (about page + homepage teaser) — left-aligned, readable measure */
.story { max-width: 680px; margin: 0 auto; text-align: left; }
.story p { font-size: 17px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; }
.story p:last-child { margin-bottom: 0; }
.story em { color: var(--ink); font-style: italic; }
.read-more { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--accent); text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* About page header */
.about-hero { padding: 80px 0 8px; text-align: left; }
.about-hero .eyebrow a { color: var(--accent); text-decoration: none; }
.about-hero .eyebrow a:hover { text-decoration: underline; }
.about-hero h1 { font-size: 38px; }
.about-cta { text-align: left; }
.about-cta .wrap { max-width: 680px; }
.about-cta p { font-size: 18px; color: var(--muted); margin-bottom: 22px; }

/* Contact */
.contact { text-align: center; }
.contact > .wrap > p { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.contact-form {
  max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; text-align: left;
}
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa4b2; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { border: none; cursor: pointer; margin-top: 4px; }
.contact-form .btn:disabled { opacity: .6; cursor: default; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 15px; margin-top: 16px; min-height: 1.2em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
.contact-direct { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* Demo */
.demo { text-align: center; border-top: none; }
.demo .wrap {
  max-width: 700px;
  background: linear-gradient(180deg, #e4ecf7 0%, #d5e2f3 100%);
  border-radius: 20px; padding: 44px 36px;
  box-shadow: 0 10px 40px rgba(26, 34, 48, 0.10);
}
.demo h2 { color: var(--ink); }
.demo-intro { font-size: 18px; color: #3d4759; max-width: 600px; margin: 0 auto 24px; }
.demo-lead { font-size: 22px; font-weight: 700; color: var(--ink); max-width: 640px; margin: 0 auto 14px; line-height: 1.3; letter-spacing: -0.01em; }
.demo-examples { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 16px; }
.chip {
  font: inherit; font-size: 14px; color: var(--accent); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: background .15s ease;
}
.chip:hover { background: var(--soft); }
.demo-input {
  display: block; width: 100%; max-width: 600px; margin: 0 auto 16px; font: inherit;
  color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 15px; min-height: 90px; resize: vertical; text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.demo-input::placeholder { color: #9aa4b2; }
.demo-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.demo .btn { border: none; cursor: pointer; }
.demo .btn:disabled { opacity: .6; cursor: default; }
.demo-output {
  max-width: 600px; margin: 28px auto 0; text-align: left; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 22px; white-space: pre-wrap;
  line-height: 1.6; box-shadow: 0 1px 3px rgba(26, 34, 48, 0.04), 0 6px 16px rgba(26, 34, 48, 0.05);
}
.demo-output.err { color: #b91c1c; }
.demo-label {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.demo-note {
  max-width: 600px; margin: 28px auto 0; text-align: left;
  font-size: 15px; line-height: 1.65; color: #f4f1ea;
  background: linear-gradient(135deg, #2f4677 0%, #3f64a0 100%);
  border-radius: 14px; padding: 22px 26px;
  box-shadow: 0 12px 30px rgba(26, 34, 48, 0.22);
}
.demo-note strong { color: #ffffff; font-weight: 700; }

footer {
  text-align: center; padding: 40px 0; color: var(--muted);
  font-size: 14px; border-top: 1px solid var(--line);
}

/* Hero closer line */
.hero-tag { font-size: 17px; font-weight: 600; color: var(--ink); max-width: 560px; margin: 0 auto 30px; }

/* Tally banner */
.tally {
  max-width: 640px; margin: 28px auto 0; text-align: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 20px 26px;
  box-shadow: 0 1px 3px rgba(26, 34, 48, 0.04), 0 6px 16px rgba(26, 34, 48, 0.05);
}
.tally p { font-size: 16px; color: var(--muted); margin: 0; }
.tally strong { color: var(--ink); }

/* Pull-quote band */
.pullquote { text-align: center; background: var(--soft); }
.pullquote-main {
  font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--ink); max-width: 720px; margin: 0 auto 14px;
}
.pullquote-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto; }

@media (max-width: 680px) {
  header { padding: 64px 0 48px; }
  h1 { font-size: 34px; }
  .cards { grid-template-columns: 1fr; }
  .pullquote-main { font-size: 26px; }
  .about-hero { padding: 56px 0 8px; }
  .about-hero h1 { font-size: 30px; }
}
