@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f8f8;
  --card: #ffffff;
  --card-hover: #f5f7f6;
  --ink: #1f1f1f;
  --muted: #5f6368;
  --line: #e2e2df;
  --accent: #2f5f56;
  --button: #404744;
  --button-hover: #1f2422;
  --danger: #8a3d28;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

body {
  margin: 0;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

p, h1, h2, h3 { margin: 0; }

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(30, 37, 35, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: grid;
  gap: 2px;
  font-weight: 760;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a {
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.nav-links a:hover { background: var(--surface-2); }

.hero,
.article-hero {
  padding: 74px 0 58px;
  border-bottom: 1px solid var(--line);
}

.article-hero .hero-copy { max-width: 860px; }

.kicker {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(36px, 4.2vw, 56px);
}

h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 22px; }

.hero-copy {
  max-width: 760px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-copy p + p { margin-top: 14px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.hero-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--button);
  border-radius: 7px;
  padding: 10px 17px;
  background: var(--button);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.button.is-secondary,
.hero-actions a + a {
  background: transparent;
  color: var(--button-hover);
}

.button:hover,
.hero-actions a:hover {
  border-color: var(--button-hover);
  background: var(--button-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.band {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.section {
  padding: 66px 0;
}

.compact-section { padding-top: 34px; }

.section-title {
  margin-bottom: 34px;
}

.section-title h2 { max-width: 960px; }

.section-copy {
  max-width: 860px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  padding: 68px 0;
}

.copy-stack {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
}

.copy-stack strong { color: var(--ink); }

.statement-list {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 17px;
}

.statement-list p {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.statement-list p:last-child { border-bottom: 0; }

.question-strip,
.need-list,
.road-list,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.question-strip article,
.need-list article,
.road-list article,
.team-grid article,
.worked-example article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 22px;
}

.question-strip span,
.need-list span,
.road-list span,
.team-grid span,
.worked-example span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-strip p,
.need-list p,
.road-list p,
.team-grid p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

.team-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
}

.team-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.analysis-table,
.plan-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.analysis-row,
.plan-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.plan-row {
  grid-template-columns: 100px minmax(0, 1fr) minmax(0, 0.8fr);
}

.analysis-head,
.plan-head {
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analysis-row p,
.plan-row p {
  color: var(--muted);
  font-size: 16px;
}

.analysis-row strong,
.plan-row strong {
  color: var(--ink);
}

.plan-row > span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 780;
}

.worked-example {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.worked-example article {
  display: grid;
  align-content: start;
  gap: 14px;
}

.worked-example p,
.worked-example li,
.worked-example blockquote {
  color: var(--muted);
  font-size: 15.5px;
}

.worked-example ul,
.worked-example ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.worked-example blockquote {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "Segoe UI Mono", Consolas, monospace;
  font-size: 0.92em;
}

.app-demo {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.app-tabs {
  display: grid;
  gap: 10px;
}

.app-tabs button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.app-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  background: #f4f8f6;
}

.app-tabs span {
  grid-row: span 2;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
}

.app-tabs strong {
  font-size: 17px;
}

.app-tabs em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.mock-browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(31, 31, 31, 0.08);
}

.mock-bar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  background: #f6f7f6;
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #b9c1bd;
}

.mock-bar strong {
  margin-left: 8px;
  font-size: 14px;
}

.mock-content {
  min-height: 520px;
  padding: 18px;
}

.ask-layout,
.document-view {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
}

.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.mock-sidebar strong {
  margin-bottom: 10px;
}

.mock-sidebar a {
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}

.mock-sidebar a.active {
  background: #eef5f1;
  color: var(--ink);
  font-weight: 650;
}

.answer-panel,
.document-meta,
.paper-preview {
  display: grid;
  align-content: start;
  gap: 12px;
}

.answer-panel label,
.document-meta span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-box,
.answer-card,
.source-list,
.document-meta,
.paper-preview,
.admin-grid article,
.access-list article,
.log-table div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.answer-card p,
.source-list p,
.document-meta,
.paper-preview p,
.admin-grid p,
.access-list p,
.log-table span,
.log-table em {
  color: var(--muted);
  font-size: 14px;
}

.answer-card sup {
  color: var(--accent);
  font-weight: 780;
}

.source-list {
  display: grid;
  gap: 8px;
}

.document-meta button {
  width: fit-content;
  border: 1px solid var(--button);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--button);
  color: #ffffff;
}

.paper-preview {
  min-height: 430px;
  padding: 28px;
}

.paper-preview .highlight {
  background: #fff4c2;
  color: var(--ink);
  padding: 8px;
}

.admin-grid,
.access-list,
.log-table {
  display: grid;
  gap: 12px;
}

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

.admin-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.log-table div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.executive-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1120px;
  margin-top: 36px;
}

.executive-summary div,
.card,
.solution-map article,
.flow-steps article,
.deliverable-list article,
.risk-grid article,
.offer-block article,
.offer-total,
.page-grid a,
.faq-list details {
  border: 0;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.executive-summary div:hover,
.card:hover,
.solution-map article:hover,
.flow-steps article:hover,
.deliverable-list article:hover,
.risk-grid article:hover,
.offer-block article:hover,
.page-grid a:hover,
.faq-list details:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.055);
  background: var(--card-hover);
}

.executive-summary div {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: 22px;
  border-top: 3px solid var(--accent);
}

.executive-summary span,
.solution-map span,
.flow-steps span,
.deliverable-list span,
.risk-grid span,
.offer-block span,
.timeline span,
.note-card strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.executive-summary strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.problem-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 54px;
  align-items: stretch;
  border-block: 1px solid var(--line);
  padding: 34px 0;
}

.problem-panel p {
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
}

.problem-panel p + p { margin-top: 18px; }

.problem-panel aside {
  display: grid;
  gap: 12px;
  border-left: 4px solid var(--accent);
  padding-left: 24px;
}

.problem-panel aside span {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: var(--ink);
  font-weight: 680;
}

.solution-map {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
}

.solution-map article {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
}

.card {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.solution-map p,
.card p,
.flow-steps p,
.deliverable-list p,
.risk-grid p,
.offer-block p,
.timeline p,
.note-card p {
  color: var(--muted);
  font-size: 15.5px;
}

.flow-steps,
.deliverable-list,
.risk-grid,
.offer-block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

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

.flow-steps article,
.deliverable-list article,
.risk-grid article,
.offer-block article {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 24px;
}

.flow-steps span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.flow-steps article:hover span {
  border-color: var(--button-hover);
  background: var(--button-hover);
  color: #ffffff;
}

.insight-rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.insight-rail article {
  display: grid;
  grid-template-columns: 72px minmax(240px, 0.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.insight-rail strong {
  font-size: 25px;
  font-weight: 560;
  line-height: 1.12;
}

.insight-rail p {
  color: var(--muted);
  font-size: 17px;
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) minmax(0, 0.72fr);
  column-gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-copy {
  display: grid;
  gap: 10px;
}

.timeline-result {
  color: var(--ink);
  font-weight: 560;
}

.offer-total {
  margin-bottom: 18px;
  padding: 34px;
  border-left: 4px solid var(--accent);
}

.offer-total h2 {
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 780;
  line-height: 0.98;
}

.offer-total h2.price-placeholder {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.offer-total p:last-child {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
}

.offer-block {
  margin-top: 18px;
}

.offer-block dl {
  display: grid;
  gap: 8px;
  margin: 28px 0 0;
}

.offer-block div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}

.offer-block dt { color: var(--muted); }

.offer-block dd {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 780;
  text-align: right;
}

.payment-note,
.warning-note {
  margin-top: 22px;
  border-left: 4px solid var(--accent);
  padding: 16px 0 16px 22px;
  color: var(--muted);
  font-size: 18px;
}

.warning-note {
  border-left-color: var(--accent);
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  max-width: 860px;
}

.faq-list details {
  padding: 20px;
}

.faq-list summary {
  position: relative;
  display: block;
  cursor: pointer;
  padding-right: 34px;
  list-style: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--button-hover);
  font-size: 16px;
}

.faq-list details[open] summary::after {
  content: "-";
  background: var(--button-hover);
  color: #ffffff;
}

.faq-list p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-block: 58px;
}

.page-grid a {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  text-align: center;
}

.page-grid span {
  color: var(--accent);
  font-weight: 650;
}

.page-grid strong {
  max-width: 220px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  border-top: 1px solid var(--line);
  padding: 0 0 56px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer strong,
.site-footer span {
  color: var(--ink);
  font-weight: 560;
}

@media (max-width: 900px) {
  .shell { width: min(var(--max), calc(100% - 32px)); }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .hero,
  .article-hero {
    padding: 44px 0 38px;
  }

  h1 { font-size: clamp(31px, 8vw, 44px); }

  .split,
  .executive-summary,
  .problem-panel,
  .solution-map,
  .flow-steps,
  .deliverable-list,
  .risk-grid,
  .offer-block,
  .faq-list,
  .question-strip,
  .need-list,
  .road-list,
  .team-grid,
  .worked-example,
  .app-demo,
  .ask-layout,
  .document-view,
  .admin-grid,
  .timeline article,
  .insight-rail article {
    grid-template-columns: 1fr;
  }

  .analysis-row,
  .plan-row,
  .log-table div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .split { gap: 26px; padding: 52px 0; }
  .problem-panel { gap: 28px; }

  .timeline article,
  .insight-rail article {
    gap: 12px;
  }

  .offer-block div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .offer-block dd { text-align: left; }
}

@media (min-width: 700px) and (max-width: 900px) {
  .executive-summary,
  .deliverable-list,
  .risk-grid,
  .offer-block,
  .question-strip,
  .need-list,
  .road-list,
  .team-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .shell { width: min(var(--max), calc(100% - 24px)); }
  .brand { font-size: 15px; }
  .nav-links a { white-space: nowrap; }
  h1 { font-size: 31px; }
  h2 { font-size: 27px; }
  h3 { font-size: 20px; }

  .hero-copy,
  .copy-stack,
  .payment-note,
  .warning-note {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions a {
    width: 100%;
  }

  .executive-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
  }

  .executive-summary div {
    min-height: auto;
    gap: 10px;
    padding: 14px;
  }

  .executive-summary span {
    font-size: 11px;
  }

  .executive-summary strong {
    font-size: 12.5px;
  }

  .solution-map article,
  .flow-steps article,
  .deliverable-list article,
  .risk-grid article,
  .offer-block article,
  .question-strip article,
  .need-list article,
  .road-list article,
  .team-grid article,
  .worked-example article,
  .offer-total,
  .page-grid a,
  .executive-summary div,
  .faq-list details,
  .card {
    padding: 20px;
  }

  .app-tabs button {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 14px;
  }

  .mock-content {
    min-height: auto;
    padding: 12px;
  }

  .mock-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
  }

  .paper-preview {
    min-height: 0;
    padding: 18px;
  }

  .offer-total h2 {
    font-size: 38px;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
  }
}
