:root {
  --bg: #f4f6f8;
  --ink: #0f1720;
  --muted: #5b6773;
  --line: #d7dee6;
  --blue: #2563eb;
  --navy: #152033;
  --paper: #ffffff;
  --sans: "Inter", "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
}
.skip-link:focus { top: 10px; }

.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.slim { width: min(680px, calc(100% - 40px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 248, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { font-weight: 700; letter-spacing: -0.04em; }

nav { display: flex; gap: 20px; }
nav a, .quiet { color: var(--muted); font-size: 0.92rem; }
nav a:hover { color: var(--ink); }

.actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.btn-line {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle::before { top: 15px; }
.nav-toggle::after { bottom: 15px; }

.mobile { display: none; flex-direction: column; gap: 12px; padding: 0 20px 16px; }
.mobile.is-open { display: flex; }

.hero { padding: 72px 0 56px; }

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
}

h1, h2 { letter-spacing: -0.04em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); margin-bottom: 16px; }
h2 { font-size: 1.25rem; margin-bottom: 8px; }

.lede { max-width: 52ch; color: var(--muted); font-size: 1.05rem; }

.hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-form input {
  flex: 1 1 240px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 11px 12px;
}

.hero-form input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }

.note { flex-basis: 100%; min-height: 1.2em; color: var(--blue); font-size: 0.88rem; }
.note.is-error { color: #b42318; }

.bento, .pricing, .cases, .faq, .cta { padding: 72px 0; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.grid .wide { grid-column: span 2; }
.grid p { color: var(--muted); }

.price-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.price-top h2 { font-size: 1.8rem; }

.toggle { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }

.toggle button {
  width: 44px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #d9e2ee;
  position: relative;
  cursor: pointer;
}

.toggle button::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.toggle button[aria-checked="true"] { background: var(--blue); }
.toggle button[aria-checked="true"]::after { transform: translateX(20px); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plans article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.plans article:nth-child(2) {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.plans article:nth-child(2) ul { color: #b8c4d4; }

.price { font-size: 2rem; font-weight: 700; margin: 8px 0 14px; }
.plans ul { list-style: none; color: var(--muted); display: grid; gap: 6px; margin-bottom: 16px; }

.cases blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 20px;
}

.cases p { font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.cases footer { color: var(--muted); font-size: 0.9rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin-top: 8px; }

.cta {
  background: var(--navy);
  color: #fff;
}

.cta h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }

.site-footer {
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 840px) {
  nav, .quiet { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid, .plans { grid-template-columns: 1fr; }
  .grid .wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
