/* Kwassely public site. Mobile first; tokens from the brand guide. */
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/assets/nunito-400.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(/assets/nunito-700.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/assets/nunito-800.woff2) format("woff2"); }

:root {
  --brand: #075E54;
  --brand-dark: #054941;
  --ink-deep: #043832;
  --mint: #EDF7F5;
  --mint-line: #C4E5DF;
  --paper: #FAF9F6;
  --ink: #111827;
  --muted: #4B5563;
  --line: #E5E7EB;
  --accent: #D97706;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { display: block; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--ink-deep); font-weight: 800; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--mint); border-bottom: 1px solid var(--mint-line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; color: var(--brand); font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.topnav { display: flex; align-items: center; gap: 1.25rem; }
.topnav-help { display: none; font-weight: 700; text-decoration: none; }

/* Buttons: 12px radius, never pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.5rem 1.25rem;
  border: 1px solid var(--brand); border-radius: 12px;
  font: 700 1.0625rem/1.2 Nunito, system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand); }
.btn-secondary:hover { background: var(--mint); }
.btn-small { min-height: 2.5rem; padding: 0.25rem 1rem; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Hero */
.hero { background: var(--mint); border-bottom: 1px solid var(--mint-line); padding: 2.5rem 0 3rem; }
.hero h1 { font-size: 2.1rem; }
.lead { margin: 1rem 0 1.5rem; font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* Sections */
.section { padding: 2.5rem 0; }
.section-tint { background: var(--mint); border-block: 1px solid var(--mint-line); }
.section h2 { margin-bottom: 1.25rem; font-size: 1.6rem; }
.note { color: var(--muted); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.cards { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.cards h3 { margin: 0.75rem 0 0.25rem; font-size: 1.2rem; }
.cards p { margin: 0; color: var(--muted); }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--mint); }
.icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { display: grid; gap: 1rem; margin: 0 0 1.25rem; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 2.5rem; padding-left: 3.25rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 800;
}

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.plan { display: flex; flex-direction: column; gap: 1rem; }
.plan h3 { font-size: 1.4rem; }
.price { margin: 0; font-size: 2.25rem; font-weight: 800; color: var(--ink-deep); }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan .btn { margin-top: auto; }
.plan-desc { margin: -0.5rem 0 0; color: var(--muted); font-weight: bold; font-style: italic; font-size: 1rem; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0.25rem 0 0.25rem 1.75rem; }
.ticks li::before { content: ""; position: absolute; left: 0.25rem; top: 0.65rem; width: 0.45rem; height: 0.8rem; border: solid var(--brand); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.plans-note { margin-top: 1rem; }
.plans-intro { margin: 0 0 1.5rem; }

/* Plain pages */
.prose { max-width: 40rem; }
.prose h1 { margin-bottom: 0.5rem; font-size: 2rem; }
.prose h2 { margin: 2rem 0 0.5rem; font-size: 1.25rem; text-align: left; }
.prose .meta { margin-top: 0; color: var(--muted); font-size: 0.9rem; }
.prose ul { padding-left: 1.25rem; }
.prose h3 { margin: 1.25rem 0 0.25rem; font-size: 1.05rem; }
.prose .toc { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0; list-style: none; font-weight: 700; }
.prose .example { margin: 0.5rem 0; padding: 0.75rem 1rem; background: var(--mint); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; }

/* Footer */
.footer { background: var(--ink-deep); color: var(--mint); padding: 2rem 0; }
.footer a { color: var(--mint); }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; font-size: 1.2rem; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-weight: 700; }
.footer-small { margin: 0; font-size: 0.9rem; color: var(--mint-line); }

@media (min-width: 48rem) {
  .topnav-help { display: inline; }
  .hero { padding: 4.5rem 0 5rem; text-align: center; }
  .hero h1 { margin: 0 auto; max-width: 40rem; font-size: 3rem; }
  .lead { margin: 1.25rem auto 2rem; max-width: 34rem; font-size: 1.35rem; }
  .actions { flex-direction: row; justify-content: center; }
  .section { padding: 4rem 0; }
  .section h2 { font-size: 2rem; text-align: center; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .steps li { padding: 3.5rem 0 0; }
  .steps + .note, .steps + .note + p { text-align: center; }
  .plans { gap: 1.5rem; margin: 0 auto; max-width: 50rem; }
  .plans-note, .plans-intro { text-align: center; }
  #contact .wrap { text-align: center; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .footer-brand { margin: 0; }
  .footer-links { margin: 0; justify-content: flex-end; }
  .footer-small { grid-column: 1 / -1; margin-top: 1.5rem; }
}
