
:root {
  color-scheme: light;
  --ink: #142132;
  --muted: #657387;
  --line: #d9dfdf;
  --paper: #fffdf8;
  --canvas: #f6f3ea;
  --navy: #17324d;
  --teal: #1c7c7d;
  --mint: #d8f2ea;
  --amber: #c99734;
  --rose: #b64255;
  --shadow: 0 22px 60px rgba(20, 33, 50, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 28px;
  background: rgba(255, 253, 248, .92);
  border-bottom: 1px solid rgba(20, 33, 50, .09);
  backdrop-filter: blur(18px);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.nav-logo svg { width: 34px; height: 34px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn-primary, .btn-secondary, .btn-ghost, .text-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 800;
  line-height: 1;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 50, 77, .18);
}
.btn-primary:hover { background: #0f253c; }
.btn-mirofish {
  background: linear-gradient(135deg, #1c7c7d 0%, #c99734 58%, #b64255 100%);
  color: #fff;
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 16px 34px rgba(28, 124, 125, .22), 0 8px 18px rgba(182, 66, 85, .18);
}
.btn-mirofish:hover {
  background: linear-gradient(135deg, #176b6c 0%, #b8862c 58%, #9f3748 100%);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost {
  color: var(--muted);
  padding-inline: 10px;
}
.text-button {
  background: transparent;
  color: var(--teal);
  padding-inline: 8px;
}
.btn-large { min-height: 48px; padding-inline: 20px; }
.hero {
  min-height: calc(100svh - 64px);
  max-width: 1360px;
  margin: 0 auto;
  padding: 56px 28px 30px;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(520px, 1.08fr);
  gap: 28px;
  align-items: center;
}
.hero-copy h1,
.resource-hero h1,
.page-hero h1,
.checkout-page h1 {
  margin: 10px 0 14px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: .98;
}
.hero-copy h1 {
  max-width: 100%;
  font-size: clamp(40px, 4vw, 56px);
  overflow-wrap: anywhere;
}
.hero-kicker {
  margin: 18px 0 0;
  color: var(--teal);
  font-weight: 800;
}
.hero-desc {
  max-width: 640px;
  margin: 0 0 20px;
  color: #405066;
  font-size: 18px;
  line-height: 1.55;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}
.tag-primary { background: var(--mint); color: #0f5d5d; }
.tag-outline { border: 1px solid var(--line); background: rgba(255,255,255,.55); color: var(--muted); }
.mini-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.mini-proof span {
  padding: 7px 9px;
  background: rgba(255, 253, 248, .72);
  border: 1px solid rgba(20, 33, 50, .08);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.move-console {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 253, 248, .86);
  border: 1px solid rgba(20, 33, 50, .1);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(20, 33, 50, .08);
}
.move-console label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.move-console input, .move-console select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}
.console-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace-panel {
  background: #fffdf8;
  border: 1px solid rgba(20, 33, 50, .12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  overflow: hidden;
}
.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 12px 16px;
  border-bottom: 1px solid rgba(20, 33, 50, .08);
}
.workspace-topbar strong { display: block; margin-top: 4px; font-size: 18px; }
.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f4e6c0;
  color: #73520d;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}
.scenario-tree { padding: 16px 8px 10px; }
.tree-root {
  max-width: 420px;
  margin: 0 auto 14px;
  padding: 14px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
}
.tree-root span,
.branch span,
.sample-label {
  display: block;
  margin-bottom: 5px;
  color: inherit;
  opacity: .76;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.tree-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
}
.branch {
  min-height: 148px;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.branch strong { display: block; min-height: 58px; line-height: 1.35; }
.branch small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.4; }
.branch-best { border-top: 4px solid var(--teal); }
.branch-base { border-top: 4px solid var(--amber); }
.branch-worst { border-top: 4px solid var(--rose); }
.panel-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 12px;
  margin-top: 10px;
}
.agent-strip,
.decision-matrix,
.memo-preview {
  background: #f8faf6;
  border: 1px solid rgba(20, 33, 50, .09);
  border-radius: 8px;
  padding: 13px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.section-heading button {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}
.agent-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.agent-list span {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px;
  font-size: 13px;
  font-weight: 800;
}
.matrix-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(20, 33, 50, .08);
}
.matrix-row:first-of-type { border-top: 0; }
.matrix-row span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.matrix-row strong { font-size: 13px; line-height: 1.4; }
.memo-preview { margin-top: 12px; }
.memo-paper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.memo-header { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.memo-header strong { color: var(--ink); text-transform: none; }
.memo-paper p { margin: 12px 0; line-height: 1.45; }
.memo-lines { display: grid; gap: 6px; }
.memo-lines span { height: 8px; border-radius: 999px; background: #e8ece7; }
.memo-lines span:nth-child(2) { width: 86%; }
.memo-lines span:nth-child(3) { width: 68%; }
.stats-bar {
  max-width: 1180px;
  margin: 6px auto 0;
  padding: 16px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stats-bar div {
  background: rgba(255, 253, 248, .74);
  border: 1px solid rgba(20, 33, 50, .08);
  border-radius: 8px;
  padding: 14px;
}
.stats-bar strong { display: block; font-size: 24px; }
.stats-bar span { color: var(--muted); font-size: 13px; font-weight: 700; }
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px;
}
.split { display: grid; grid-template-columns: .86fr 1.14fr; gap: 40px; align-items: start; }
.section h2,
.resource-page h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
}
.section p,
.resource-page p,
.legal-page p { color: #4e5e72; line-height: 1.65; }
.steps { display: grid; gap: 12px; }
.steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  background: #fffdf8;
  border: 1px solid rgba(20, 33, 50, .1);
  border-radius: 8px;
  padding: 16px;
}
.steps article span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal);
  font-weight: 900;
}
.steps article strong { font-size: 18px; }
.steps article p { grid-column: 2; margin: -4px 0 0; }
.pricing-section { scroll-margin-top: 82px; }
.pricing-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.pricing-header h2 { max-width: 720px; }
.pricing-actions { display: grid; justify-items: end; gap: 10px; }
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.billing-toggle button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 900;
}
.billing-toggle button.active { background: var(--navy); color: #fff; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: #fffdf8;
  border: 1px solid rgba(20, 33, 50, .11);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}
.plan-top span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.plan-top h3 { margin: 8px 0 4px; font-size: 25px; }
.plan-top p { min-height: 44px; margin: 0; color: var(--muted); line-height: 1.45; }
.price-line { display: flex; align-items: end; gap: 6px; }
.price-line strong { font-size: 40px; line-height: 1; }
.price-line span { color: var(--muted); font-weight: 800; }
.billing-note { min-height: 22px; margin: -2px 0 0; color: var(--muted); font-size: 13px; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price-card li {
  position: relative;
  padding-left: 18px;
  color: #47586d;
  line-height: 1.45;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--teal);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.guide-card {
  display: block;
  min-height: 190px;
  background: #fffdf8;
  border: 1px solid rgba(20, 33, 50, .1);
  border-radius: 8px;
  padding: 16px;
}
.guide-card span { color: var(--teal); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.guide-card strong { display: block; margin: 10px 0; line-height: 1.25; }
.guide-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.resource-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 28px 72px;
}
.resource-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: end;
  padding: 24px 0 34px;
}
.resource-hero h1 { max-width: 860px; font-size: clamp(40px, 5vw, 70px); }
.resource-hero p { max-width: 760px; font-size: 18px; }
.resource-aside,
.resource-section,
.resource-cta,
.legal-page,
.checkout-card {
  background: #fffdf8;
  border: 1px solid rgba(20, 33, 50, .1);
  border-radius: 8px;
  padding: 22px;
}
.resource-aside strong { display: block; margin-bottom: 8px; }
.resource-section { margin-top: 14px; }
.resource-section h2 { font-size: 30px; }
.resource-section ul,
.resource-section ol { color: #4e5e72; line-height: 1.7; padding-left: 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.resource-cta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  color: #fff;
}
.resource-cta p { color: rgba(255,255,255,.78); }
.resource-cta .btn-secondary { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; }
.page-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 62px 28px 6px;
}
.compact-page h1 { font-size: clamp(40px, 5vw, 68px); }
.checkout-page {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 60px 28px;
}
.checkout-card {
  max-width: 620px;
  box-shadow: var(--shadow);
}
.checkout-card p { font-size: 17px; }
.legal-page {
  max-width: 920px;
  margin: 52px auto 72px;
}
.legal-page h1 { margin-top: 0; font-size: 44px; }
.legal-page h2 { margin-top: 30px; }
.footer {
  padding: 46px 28px 28px;
  background: #111d2c;
  color: #fff;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr .8fr;
  gap: 32px;
}
.footer svg { filter: brightness(1.1); }
.footer h2 { margin: 0 0 12px; font-size: 15px; }
.footer a,
.footer button {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: rgba(255,255,255,.75);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
}
.footer p { color: rgba(255,255,255,.72); line-height: 1.6; }
.footer .muted { color: rgba(255,255,255,.62); }
.fineprint {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 29, 44, .32);
  backdrop-filter: blur(10px);
}
.checkout-overlay[hidden] { display: none; }
.checkout-dialog {
  width: min(520px, 100%);
  background: #fffdf8;
  border: 1px solid rgba(20, 33, 50, .12);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
  padding: 22px;
  position: relative;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: #f0eee7;
  color: var(--muted);
  border-radius: 8px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}
.checkout-dialog h2 { margin: 8px 0 10px; font-size: 30px; }
.dialog-price {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--mint);
}
.dialog-price strong { color: var(--teal); font-size: 30px; }
.dialog-price span { color: #315c5d; font-weight: 700; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.payment-status { min-height: 22px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.reopen-link { margin-top: 10px; color: var(--teal); font-weight: 900; }
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .workspace-panel { max-width: 920px; width: 100%; }
  .move-console { grid-template-columns: 1fr; }
  .stats-bar, .pricing-grid, .guide-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .resource-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { height: auto; min-height: 62px; padding: 10px 14px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-logo span { max-width: 168px; overflow: hidden; text-overflow: ellipsis; }
  .hero { padding: 24px 16px 22px; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 42px); }
  .hero-actions, .console-actions, .pricing-header, .resource-cta { align-items: stretch; flex-direction: column; }
  .btn-primary, .btn-secondary, .btn-ghost, .text-button { width: 100%; }
  .tree-branches, .panel-grid, .stats-bar, .pricing-grid, .guide-grid, .footer-grid, .two-col { grid-template-columns: 1fr; }
  .agent-list { grid-template-columns: 1fr; }
  .pricing-header { display: grid; }
  .pricing-actions { justify-items: stretch; }
  .billing-toggle { width: 100%; }
  .billing-toggle button { flex: 1; }
  .section, .resource-page, .page-hero { padding-left: 16px; padding-right: 16px; }
}
@media (max-height: 760px) and (min-width: 900px) {
  .hero { padding-top: 30px; gap: 18px; }
  .hero-copy h1 { font-size: 50px; }
  .hero-desc { font-size: 16px; margin-bottom: 14px; }
  .mini-proof { margin-bottom: 12px; }
  .branch { min-height: 126px; }
  .branch strong { min-height: 44px; }
}
