:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6878;
  --line: #dbe3ee;
  --bg: #f7fafc;
  --panel: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --green: #0f766e;
  --warn: #b45309;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px min(6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  padding: 70px min(6vw, 72px);
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.10), transparent 44%),
    linear-gradient(0deg, #ffffff, #f4f8fd);
}

.hero-inner,
.section,
.article {
  max-width: 1080px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: 62px;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.calculator {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.14);
  overflow: hidden;
}

.calculator-head {
  padding: 16px;
  background: #1f2a44;
  color: white;
  font-weight: 800;
}

.calc-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: white;
}

textarea {
  resize: vertical;
}

.output-text {
  min-height: 340px;
  font-size: 14px;
  line-height: 1.7;
}

.result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #f8fbff;
}

.result strong {
  display: block;
  color: var(--accent);
  font-size: 24px;
}

.section,
.article {
  padding: 68px min(6vw, 72px);
}

.muted {
  max-width: none;
  background: #eef4fb;
}

.muted > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: 28px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.article-list a,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 22px;
}

.panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef4fb;
  font-size: 13px;
}

.sample-code {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
  line-height: 1.6;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form .button {
  width: 100%;
}

.hidden-field {
  display: none;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-error {
  min-height: 1.4em;
  margin: 0;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

table {
  width: 100%;
  margin: 18px 0 30px;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

td:last-child {
  width: 120px;
  text-align: right;
  font-weight: 800;
}

.price {
  margin: 0 0 8px;
  color: var(--warn);
  font-size: 34px;
  font-weight: 900;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-list a {
  display: block;
  font-weight: 800;
  text-decoration: none;
}

details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.article {
  max-width: 840px;
  background: white;
}

.article h1 {
  font-size: 44px;
}

.article p,
.article li {
  color: #2f3b4d;
}

.footer {
  padding: 30px min(6vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 6px 0 0;
}

.footer-links a {
  color: var(--muted);
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.trust-links a {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-inner,
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .article h1 {
    font-size: 34px;
  }

  .result {
    grid-template-columns: 1fr;
  }
}
