:root {
  --primary: #2E4F6B;
  --primary-dark: #1f3a52;
  --accent: #D9C7A7;
  --bg: #F5EFE3;
  --bg-dark: #1B1F24;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-on-blue: #F1ECE0;
  --muted: #6B6B6B;
  --hairline: rgba(46, 79, 107, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

/* ------------------------------------------------------------------
   Top bar
------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: saturate(180%) blur(20px);
}

.topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary);
  font-size: 18px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background-color: var(--primary);
  background-image: url("/logo.png");
  background-size: cover;
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.topbar nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.topbar nav a:hover { color: var(--primary); text-decoration: none; }

/* ------------------------------------------------------------------
   Hero (used on the home page)
------------------------------------------------------------------ */

.hero {
  background: var(--primary);
  color: var(--text-on-blue);
  padding: 72px 20px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  /* subtle grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(217, 199, 167, 0.08) 0, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(217, 199, 167, 0.06) 0, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 28px;
  border-radius: 28px;
  background-color: var(--primary);
  background-image: url("/logo.png");
  background-size: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  font-size: 48px;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.1;
}

.hero p.lead {
  font-size: 19px;
  margin: 0 auto 32px;
  color: rgba(241, 236, 224, 0.8);
  max-width: 540px;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: transform 120ms ease, background 120ms ease;
}
.cta:hover { background: #e6d8bb; text-decoration: none; transform: translateY(-1px); }

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------ */

.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px;
}

.page-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

h1.page-title {
  font-size: 38px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.15;
}

h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
  color: var(--primary);
}

p, li { color: var(--text); }
.lead { color: var(--muted); font-size: 18px; margin-top: 8px; }

ul, ol { padding-left: 22px; }
li + li { margin-top: 4px; }

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 24px 4px;
  margin: 20px 0;
  border: 1px solid var(--hairline);
}

.card.compact { padding: 18px 22px; }

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-on-blue);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

details > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 8px; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */

footer {
  background: var(--primary);
  color: rgba(241, 236, 224, 0.75);
  padding: 32px 20px;
  margin-top: 64px;
  font-size: 14px;
}

footer .footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

footer a { color: rgba(241, 236, 224, 0.85); }
footer a:hover { color: white; text-decoration: none; }

footer .copyright {
  margin-right: auto;
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */

@media (max-width: 600px) {
  .hero { padding: 56px 20px 72px; }
  .hero h1 { font-size: 36px; }
  .hero p.lead { font-size: 17px; }
  .hero-icon { width: 104px; height: 104px; }
  h1.page-title { font-size: 30px; }
  .topbar nav { gap: 14px; }
  .topbar nav a { font-size: 14px; }
}
