:root {
  --ink: #12233a;
  --muted: #5b6b7c;
  --line: #d7e3ee;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --teal: #0d6e6a;
  --teal-dark: #0a5552;
  --blue: #1f5fbf;
  --blue-soft: #e8f0fb;
  --teal-soft: #e7f5f3;
  --shadow: 0 18px 40px rgba(18, 35, 58, 0.08);
  --radius: 18px;
  --font: "Be Vietnam Pro", sans-serif;
  --display: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 0.6rem; }
p { margin: 0 0 0.9rem; }
.muted { color: var(--muted); }
.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; padding: 0.5rem 0.8rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: inherit; }
.brand-mark {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 12px;
  background: linear-gradient(145deg, var(--teal), var(--blue));
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 0.85rem;
}
.brand-text { display: grid; gap: 0.05rem; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: 0.78rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; justify-content: center; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; padding: 0.25rem 0; }
.site-nav a:hover { color: var(--teal); }
.header-cta { display: flex; gap: 0.45rem; align-items: center; }
.gate-logout { display: inline; margin: 0; }
.gate-logout button { cursor: pointer; font: inherit; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 0.45rem 0.7rem; font-weight: 600;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.35rem; min-height: 2.55rem; padding: 0.55rem 1rem;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); color: #fff; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.blue:hover { background: #184c9c; color: #fff; }
.btn.ghost { background: #fff; color: var(--teal-dark); border-color: #b9d8d5; }
.btn.ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn.wide { width: 100%; }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(13, 110, 106, 0.18), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(31, 95, 191, 0.16), transparent 32%),
    linear-gradient(180deg, #eef6f8 0%, #f7fafc 55%, #f4f8fb 100%);
  padding: 4.2rem 0 3.4rem;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center;
}
.hero-kicker {
  display: inline-block; margin-bottom: 0.8rem; color: var(--teal-dark);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem); margin-bottom: 0.85rem; max-width: 14ch;
}
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.hero-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(215, 227, 238, 0.9);
  border-radius: 28px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
  animation: rise 0.7s ease both;
}
.hero-visual {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(13, 110, 106, 0.92), rgba(31, 95, 191, 0.88)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 28px);
  color: #fff; padding: 1.3rem; display: grid; align-content: end; gap: 0.4rem;
}
.hero-visual strong { font-size: 1.35rem; font-family: var(--display); }

.section { padding: 3.4rem 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
.eyebrow { color: var(--teal); font-weight: 700; font-size: 0.84rem; margin-bottom: 0.45rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #b9d5e8; }
.card h3 { font-size: 1.15rem; }
.icon-badge {
  width: 3rem; height: 3rem; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 0.85rem;
  background: var(--teal-soft); color: var(--teal-dark);
}
.icon-badge svg { width: 1.55rem; height: 1.55rem; }
.pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 0.18rem 0.55rem; font-size: 0.78rem; font-weight: 600;
  background: var(--blue-soft); color: var(--blue);
}
.pill.warn { background: #fff4e8; color: #9a5b10; }
.pill.ok { background: var(--teal-soft); color: var(--teal-dark); }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.plan {
  border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 1.35rem;
  display: grid; gap: 0.7rem; align-content: start;
}
.plan.featured {
  border-color: #9ec9c5;
  background: linear-gradient(180deg, #f3fbfa 0%, #ffffff 48%);
}
.plan h3 { margin: 0; }
.price { font-size: 1.45rem; font-family: var(--display); font-weight: 800; color: var(--teal-dark); }
.plan ul { margin: 0; padding-left: 1.1rem; }
.plan li { margin: 0.25rem 0; }

.feature-list { display: grid; gap: 0.75rem; }
.feature-item {
  display: grid; grid-template-columns: auto 1fr; gap: 0.8rem;
  padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}

.article-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.prose { max-width: 46rem; }
.prose h2, .prose h3 { margin-top: 1.4rem; }
.prose ul { padding-left: 1.2rem; }

.page-hero {
  padding: 2.6rem 0 1.4rem;
  background: linear-gradient(180deg, #eef6f8, transparent);
}
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.2rem; display: grid; gap: 0.8rem; max-width: 36rem;
}
.form-card label { display: grid; gap: 0.3rem; font-weight: 600; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.7rem 0.8rem; font: inherit; background: #fff;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: 2px solid #9fd4d0; border-color: var(--teal);
}
.errorlist { color: #8d1d1d; margin: 0; padding-left: 1rem; font-size: 0.92rem; }

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0.85rem 1rem; margin-bottom: 0.6rem;
}
.faq summary { cursor: pointer; font-weight: 600; }

.site-footer {
  background: #10263d; color: #dce7f2; padding: 2.6rem 0 1.4rem; margin-top: 2rem;
}
.site-footer a { color: #dce7f2; display: block; margin: 0.25rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer h2 { font-size: 0.95rem; color: #9eb4cb; margin-bottom: 0.6rem; }
.footer-brand { font-family: var(--display); font-size: 1.4rem; font-weight: 800; margin-bottom: 0.35rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.4rem; }
.footer-bottom { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); color: #9eb4cb; font-size: 0.9rem; }

.flash-wrap { padding-top: 1rem; }
.flash { background: var(--teal-soft); border: 1px solid #b7ddd9; border-radius: 12px; padding: 0.75rem 1rem; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.4rem; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.filters a {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.75rem;
  background: #fff; color: var(--ink); font-weight: 500;
}
.filters a.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.reveal { animation: rise 0.55s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .header-row { grid-template-columns: auto auto 1fr; }
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .header-row.is-open .site-nav {
    display: grid; grid-column: 1 / -1; gap: 0.35rem; padding-bottom: 0.8rem;
  }
  .header-row.is-open .header-cta {
    display: flex; grid-column: 1 / -1; padding-bottom: 0.9rem;
  }
  .hero-grid, .card-grid, .plan-grid, .footer-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .reveal, .hero-panel { transition: none; animation: none; }
}
