:root {
  --ink: #0f172a;
  --muted: #5b6475;
  --line: #e6e8ee;
  --accent: #0a66ff;
  --bg: #fff;
  --soft: #f6f7fb;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
  color: var(--ink);
}
.logo span {
  color: var(--accent);
}
nav a {
  margin-left: 22px;
  color: var(--ink);
  font-size: 15px;
}
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.btn:hover {
  text-decoration: none;
  opacity: 0.92;
}
.btn.primary {
  background: var(--accent);
}
.hero {
  padding: 88px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.hero p {
  font-size: 20px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 28px;
}
.pill {
  display: inline-block;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}
section {
  padding: 56px 0;
}
h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
h3 {
  font-size: 19px;
  margin: 0 0 6px;
}
.sub {
  color: var(--muted);
  margin: 0 0 28px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: #fff;
}
.card p {
  color: var(--muted);
  margin: 0;
}
.steps {
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.steps div {
  position: relative;
  padding-top: 44px;
}
.steps div::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.plan {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.plan.hi {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(10, 102, 255, 0.08);
}
.plan .price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan .price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.plan ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 12px 0 0;
}
.plan li {
  margin: 4px 0;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq p {
  color: var(--muted);
  margin: 8px 0 0;
}
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 22px;
  margin-top: 36px;
}
.prose h3 {
  margin-top: 24px;
}
.prose p,
.prose li {
  color: #2b3340;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
@media (max-width: 640px) {
  .hero h1 {
    font-size: 38px;
  }
  .hero {
    padding: 56px 0 36px;
  }
  nav a {
    margin-left: 14px;
  }
}

/* Keep navigation and content usable within narrow viewports. */
header .wrap {
  height: auto;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo {
  white-space: nowrap;
}
nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  min-width: 0;
}
nav a {
  margin: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
header .btn {
  white-space: nowrap;
}
.grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.plans,
.steps {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.card,
.plan,
.steps > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.prose {
  overflow-wrap: anywhere;
}
.prose table {
  table-layout: fixed;
}
.btn {
  max-width: 100%;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}
section[id] {
  scroll-margin-top: 96px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 640px) {
  header .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  header .logo {
    grid-column: 1;
    grid-row: 1;
  }
  header > .wrap > .btn {
    grid-column: 2;
    grid-row: 1;
  }
  header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 4px 12px;
  }
  header nav a {
    margin: 0;
  }
  section[id] {
    scroll-margin-top: 144px;
  }
  .hero .btn {
    margin-bottom: 8px;
  }
  footer .wrap {
    overflow-wrap: anywhere;
  }
}
