
:root {
  --ink: #111a20;
  --muted: #5e6b61;
  --line: #d8e2da;
  --paper: #fbfdf9;
  --soft: #eef6f0;
  --teal: #0f766e;
  --mint: #8bd3c7;
  --amber: #f6b64b;
  --coral: #df604c;
  --green: #1d8b56;
  --shadow: 0 18px 60px rgba(17, 26, 32, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 42px);
  background: rgba(251, 253, 249, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #34443a;
  font-size: 14px;
}
nav a:hover { color: var(--teal); }
.header-cta, .primary, .secondary, .link-button, .plan-button, .site-footer button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 760;
  line-height: 1.1;
}
.primary, .header-cta, .link-button {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .24);
}
.primary:hover, .header-cta:hover, .link-button:hover { background: #0b5f58; }
.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.secondary:hover { border-color: var(--teal); color: var(--teal); }
.hero-tool {
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(520px, 1.18fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  padding: 24px clamp(16px, 4vw, 42px) 28px;
  max-width: 1480px;
  margin: 0 auto;
}
.hero-copy { padding-top: min(5vh, 38px); }
.hero-copy h1, .page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: .96;
  max-width: 780px;
}
.hero-lede, .page-hero p {
  color: #3f5148;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.58;
  max-width: 720px;
}
.eyebrow {
  margin: 0;
  color: var(--teal);
  font-weight: 820;
  text-transform: uppercase;
  font-size: 12px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 16px;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 650px;
}
.trust-strip span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #384940;
}
.skill-console {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.console-bar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}
.console-bar strong { color: var(--mint); }
.sim-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 10px;
  padding: 14px;
}
.field, .boundary-set {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 10px;
}
.field span, .boundary-set legend {
  font-size: 12px;
  font-weight: 800;
  color: #34443a;
}
.wide { grid-column: 1 / -1; }
textarea, input, select {
  width: 100%;
  border: 1px solid #cddbd3;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 96px; }
input[type="file"] { padding: 8px; }
.field small { color: var(--muted); }
.boundary-set {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.boundary-set legend { grid-column: 1 / -1; }
.boundary-set label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.result-panel {
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
  display: grid;
  gap: 10px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.metric-row div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.metric-row span {
  display: block;
  font-size: 26px;
  font-weight: 860;
}
.metric-row small { color: var(--muted); }
.curve-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f3f8f4);
  padding: 8px;
}
.curve-card svg { width: 100%; display: block; }
.risk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.risk-list li {
  border-left: 4px solid var(--amber);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  color: #34443a;
}
.section {
  padding: 70px clamp(16px, 4vw, 42px);
  max-width: 1280px;
  margin: 0 auto;
}
.section.compact { padding-top: 46px; padding-bottom: 46px; }
.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}
.section-heading h2, .pricing-top h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05;
  margin: 8px 0 12px;
}
.section-heading p, .pricing-top p { color: #45574d; line-height: 1.65; }
.feature-grid, .plans, .resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature-grid article, .resource-card, .plan-card, .resource-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}
.feature-grid h3, .resource-card strong, .plan-card h3 { margin: 0 0 10px; }
.feature-grid p, .resource-card span, .plan-card p, .plan-card li, .resource-aside p { color: #46584e; line-height: 1.58; }
.rank-board {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.rank-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.rank-row span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--soft);
  font-weight: 900;
}
.rank-row.top { border-color: rgba(15, 118, 110, .45); background: #f1fbf5; }
.rank-row em { color: var(--teal); font-style: normal; font-weight: 800; }
.pricing-section {
  scroll-margin-top: 88px;
}
.pricing-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}
.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}
.billing-toggle button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
}
.billing-toggle button.active { background: var(--ink); color: #fff; }
.plans { grid-template-columns: repeat(3, 1fr); }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.plan-card.featured {
  border-color: rgba(15, 118, 110, .55);
  box-shadow: var(--shadow);
}
.plan-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  background: var(--amber);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}
.price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price span {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}
.price-note, .plan-volume { min-height: 42px; }
.plan-button { width: 100%; margin: 6px 0 10px; }
.plan-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.page-hero {
  padding: 78px clamp(16px, 4vw, 42px) 44px;
  max-width: 1180px;
  margin: 0 auto;
}
.pricing-page, .checkout-page, .resource-hero {
  border-bottom: 1px solid var(--line);
}
.resource-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 42px) 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}
.resource-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
}
.resource-main h2 { margin-top: 0; }
.resource-main li { margin: 10px 0; line-height: 1.65; color: #405148; }
.resource-aside {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 12px;
}
.aside-link { width: 100%; }
.checkout-summary {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: #34443a;
}
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px clamp(16px, 4vw, 42px);
}
.legal-page h1 { font-size: clamp(40px, 5vw, 64px); margin: 10px 0; }
.legal-page h2 { margin-top: 28px; }
.legal-page p { color: #405148; line-height: 1.7; }
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 48px clamp(16px, 4vw, 42px) 28px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr .7fr 1fr .7fr;
  gap: 24px;
}
.site-footer h2 { font-size: 14px; margin: 0 0 12px; color: var(--mint); }
.site-footer a, .site-footer button {
  display: flex;
  width: fit-content;
  margin: 8px 0;
  color: #fff;
}
.site-footer button {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
}
.site-footer p { color: #c7d5cf; line-height: 1.6; }
.footer-brand .brand-mark { background: #fff; color: var(--ink); }
.muted { color: var(--muted); }
.fineprint {
  max-width: 1280px;
  border-top: 1px solid rgba(255,255,255,.14);
  margin: 28px auto 0;
  padding-top: 16px;
  font-size: 13px;
}
.checkout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(17, 26, 32, .42);
  padding: 18px;
}
.checkout-backdrop[hidden] { display: none; }
.checkout-modal {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  position: relative;
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
}
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
body.checkout-active > *:not(.checkout-backdrop) {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}
@media (max-width: 1080px) {
  .hero-tool { grid-template-columns: 1fr; min-height: auto; }
  .feature-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .resource-layout { grid-template-columns: 1fr; }
  .resource-aside { position: static; }
}
@media (max-width: 720px) {
  .site-header { height: 62px; }
  nav { display: none; }
  .header-cta { display: none; }
  .hero-tool { padding-top: 22px; }
  .hero-copy h1, .page-hero h1 { font-size: 40px; }
  .hero-actions > * { width: 100%; }
  .sim-grid, .metric-row, .boundary-set, .resource-grid, .feature-grid, .footer-grid, .pricing-top, .checkout-summary { grid-template-columns: 1fr; }
  .billing-toggle { width: 100%; }
  .billing-toggle button { flex: 1; }
  .rank-row { grid-template-columns: 40px 1fr; }
  .rank-row em { grid-column: 2; }
}
