:root {
  --ink: #132018;
  --mute: #4a5c52;
  --paper: #f3f6f1;
  --panel: #ffffff;
  --line: #d5e0d7;
  --accent: #0f6b4c;
  --accent-2: #c45c26;
  --wash: linear-gradient(145deg, #e8f2ec 0%, #f7f3eb 48%, #eef4f8 100%);
  --shadow: 0 18px 50px rgba(19, 32, 24, 0.08);
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --pad-x: clamp(0.85rem, 1.5vw, 1.5rem);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--wash);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem var(--pad-x); position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px); background: rgba(243,246,241,.86);
  border-bottom: 1px solid var(--line);
  max-width: var(--max); margin: 0; width: 100%;
}
.brand { font-weight: 700; letter-spacing: .04em; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand span { color: var(--accent); }
.top nav { display: flex; gap: 0.85rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--mute); font-size: .92rem; text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.25rem var(--pad-x) 1.5rem;
  max-width: var(--max);
  margin: 0;
  width: 100%;
}
.hero-intro {
  display: grid;
  gap: 0.4rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.1; margin: 0; max-width: none;
}
.hero .lead { font-size: 1rem; color: var(--mute); max-width: 52rem; margin: 0; line-height: 1.45; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: .85rem 1.25rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.tiny { padding: .45rem .85rem; font-size: .85rem; }
.btn.ghost, a.ghost { border: 1px solid var(--line); padding: .35rem .7rem; border-radius: 999px; color: var(--mute); }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.15rem 1.25rem;
}
.panel h2 { font-family: var(--display); font-weight: 400; margin: 0 0 0.85rem; font-size: 1.55rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .65rem; }
.field label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 12px; padding: .65rem .75rem;
  font: inherit; background: #fbfcfb; width: 100%;
}
.section { padding: 2.25rem var(--pad-x); max-width: var(--max); margin: 0; width: 100%; }
.section h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 0 0 0.85rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.card {
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--mute); line-height: 1.5; }
.steps { counter-reset: step; display: grid; gap: .75rem; padding: 0; margin: 0; }
.steps li {
  list-style: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.9rem 1rem 0.9rem 3rem; position: relative;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: .75rem; top: .85rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .8rem;
}
.foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem var(--pad-x); border-top: 1px solid var(--line); color: var(--mute); font-size: .9rem;
  max-width: var(--max); margin: 0; width: 100%;
}
.tag { display: inline-block; background: #e4f0e8; color: var(--accent); border-radius: 999px; padding: .2rem .6rem; font-size: .75rem; font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: .55rem .35rem; text-align: left; }
.muted { color: var(--mute); }
.flash { background: #e8f5ee; border: 1px solid #b7d9c5; padding: .75rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.warn { background: #fff4e8; border-color: #efd0b0; }
.money { font-variant-numeric: tabular-nums; font-weight: 700; }

/* —— Mobile addition / PWA —— */
.mobile-nav { display: none; }
.pwa-install {
  display: flex; justify-content: space-between; align-items: center; gap: 0.85rem;
  margin: 0.65rem var(--pad-x); padding: 0.75rem 0.9rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
}
.pwa-install[hidden] { display: none !important; }
.pwa-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.pwa-install p { margin: 0.15rem 0 0; }

@media (max-width: 960px) {
  .cards, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .desk-nav a:not(.btn):not(.ghost) { display: none; }
  .top { padding-right: 0.75rem; }
  body.has-mobile-nav { padding-bottom: 4.5rem; }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 0.45rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    text-align: center;
    color: var(--mute);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.35rem 0.2rem;
  }
  .mobile-nav a span { display: block; }
  .hero, .section, .foot { padding-left: 0.85rem; padding-right: 0.85rem; }
  .panel { padding: 1rem; }
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .btn { min-height: 44px; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 44px; }
  .pwa-install { flex-direction: column; align-items: stretch; }
  .pwa-actions { justify-content: stretch; }
  .pwa-actions .btn { flex: 1; }
}
@media (min-width: 961px) {
  .mobile-nav { display: none !important; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.hero > * { animation: rise .45s ease both; }
.hero .panel { animation-delay: .06s; }
