:root {
  --ink: #17201c;
  --muted: #5d6962;
  --paper: #fbfbf7;
  --band: #eef4ef;
  --line: #d8ded8;
  --green: #176b4d;
  --green-dark: #0c4331;
  --gold: #b57925;
  --blue: #1f5d7a;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 32, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 251, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  display: block;
  width: 184px;
  height: 36px;
  color: transparent;
  background: url('/assets/brand/logo-horizontal.png') center / contain no-repeat;
  font-size: 0;
  letter-spacing: 0;
}

.brand > span:not(.brand-mark) {
  display: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(44px, 5.5vw, 68px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(251, 251, 247, 0.98) 0%, rgba(251, 251, 247, 0.9) 48%, rgba(238, 244, 239, 0.84) 100%),
    repeating-linear-gradient(90deg, rgba(23, 32, 28, 0.045) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(23, 32, 28, 0.035) 0 1px, transparent 1px 80px);
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

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

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

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.button-secondary:hover {
  background: var(--white);
}

.button-icon {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  font-size: 17px;
  white-space: nowrap;
}

.hero-visual {
  display: flex;
  align-items: center;
}

.audit-sheet {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.sheet-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.sheet-topline strong {
  color: var(--blue);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.metric-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8f2;
}

.metric-grid span,
.leak-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}

.leak-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.leak-list li {
  padding-left: 4px;
}

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

.section,
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 36px);
}

.split,
.two-column,
.interest-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.text-stack p,
.section-heading p,
.two-column p,
.interest-layout p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

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

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.sample-card,
.pattern-card,
.step,
.rule-panel,
.interest-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sample-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 20px;
}

.pattern-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 18px;
  text-align: center;
}

.pattern-card h3 {
  width: 100%;
  margin-top: 0;
  font-size: 17px;
}

.pattern-icon {
  display: grid;
  place-items: center;
  align-self: center;
  width: 56px;
  height: 56px;
  margin: 2px auto 14px;
  background: #f4f7f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pattern-icon img {
  display: block;
  width: 36px;
  height: 36px;
  margin: auto;
  object-fit: contain;
}

.pattern-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.sample-type {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sample-card p {
  color: var(--muted);
}

.sample-card a {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.sample-card a:hover {
  text-decoration: underline;
}

.body-copy {
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.pricing-card,
.answer-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 32, 28, 0.06);
}

.pricing-card p,
.answer-card p {
  margin: 0;
}

.pricing-card .check-list {
  margin-top: 0;
}

.pricing-card .button {
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  width: 100%;
}

.pricing-tier {
  display: grid;
  grid-template-rows: auto minmax(90px, auto) 38px minmax(78px, auto) 1fr auto;
  align-content: start;
  gap: 12px;
}

.pricing-tier h3,
.pricing-tier .price,
.pricing-tier .check-list {
  margin: 0;
}

.pricing-tier > p:last-child {
  align-self: end;
}

.featured-pricing {
  border-color: rgba(23, 107, 77, 0.42);
  box-shadow: 0 16px 36px rgba(23, 107, 77, 0.12);
}

.price {
  color: var(--ink);
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.inline-action {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.inline-action:hover {
  text-decoration: underline;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  padding: 20px;
}

.step span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 50%;
  font-weight: 800;
}

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

.rule-panel {
  padding: 24px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.interest-band {
  background: #f1f0e8;
}

.interest-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.field-trap {
  display: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #c8d0ca;
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

.beta-offer {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #f7faf7;
  border: 1px solid #bdd6c4;
  border-radius: 8px;
}

.beta-offer[hidden] {
  display: none;
}

.conditional-field[hidden] {
  display: none;
}

.conditional-field {
  padding: 14px;
  background: #f7faf7;
  border: 1px solid #bdd6c4;
  border-radius: 8px;
}

.beta-offer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.radio-line {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.radio-line input {
  width: auto;
  margin-top: 3px;
  padding: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 93, 122, 0.22);
  border-color: var(--blue);
}

.small-note,
.form-status {
  font-size: 14px;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
}

.consent-line {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.consent-line input {
  width: auto;
  margin-top: 3px;
  padding: 0;
}

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

.privacy-note a {
  color: var(--green-dark);
  font-weight: 800;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: var(--ink);
}

.footer strong,
.footer a {
  color: var(--white);
}

.footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.sample-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) clamp(18px, 4vw, 36px);
}

.sample-page h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.sample-page h2 {
  margin-top: 42px;
  font-size: clamp(24px, 3vw, 34px);
}

.sample-page p,
.sample-page li {
  color: var(--muted);
  font-size: 17px;
}

.sample-page .back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.sample-page .finding {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-reference {
  display: grid;
  gap: 10px;
  margin: 28px 0 34px;
}

.product-reference img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-reference figcaption {
  color: var(--muted);
  font-size: 14px;
}

.plain-note {
  padding: 22px;
  border-left: 4px solid var(--green);
  background: var(--band);
}

.plain-note h2 {
  margin-top: 0;
}

.plain-note p {
  margin-bottom: 0;
}

/* Profit Insights archive */
.insights-inner {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

.insights-page-hero {
  background: linear-gradient(135deg, #f9fbff, #eef7f5);
  border-bottom: 1px solid var(--line);
}

.insights-page-hero .insights-inner {
  padding: 76px 0 58px;
}

.insights-page-hero h1 {
  color: var(--green-dark);
  font-size: clamp(46px, 6vw, 78px);
  line-height: .98;
}

.insights-page-hero p {
  margin: 22px 0 0;
  color: var(--green-dark);
  font-size: clamp(18px, 2vw, 23px);
}

.insights-archive {
  padding: 54px 0 82px;
}

.insights-list {
  display: grid;
  gap: 24px;
}

.insight-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef8f6);
}

.insight-card-image {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.insight-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.insight-card-copy {
  padding: 8px 14px 8px 0;
}

.insight-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.insight-card-meta span + span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.insight-card h2 {
  margin-top: 12px;
  color: var(--green-dark);
  font-size: clamp(25px, 3vw, 36px);
}

.insight-card h2 a {
  text-decoration: none;
}

.insight-card h2 a:hover,
.insight-card-link:hover {
  color: var(--blue);
}

.insight-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.insight-card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.insights-bottom-cta {
  padding: 0 0 82px;
}

.insights-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef7f5, #f6f8fb);
}

.insights-cta h2 {
  max-width: 16em;
  color: var(--green-dark);
  font-size: clamp(26px, 3vw, 38px);
}

.insights-cta p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.source-list {
  padding-left: 22px;
}

.source-list a {
  color: var(--blue);
}

/* Profit Insights editorial pages */
.insight-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 78px) clamp(18px, 4vw, 36px) 96px;
}

.insight-hero {
  margin: 22px 0 48px;
}

.insight-hero-subrow {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 28px;
}

.insight-hero h1 {
  max-width: none;
  font-size: clamp(38px, 5vw, 62px);
  line-height: .96;
}

.article-dek {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
}

.insight-feature {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.insight-meta span + span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.insight-body {
  max-width: 1040px;
  margin: 0 auto;
}

.insight-body h2 {
  margin-top: 54px;
  font-size: clamp(26px, 2.6vw, 36px);
}

.insight-body h3 {
  margin-top: 32px;
  font-size: 22px;
}

.insight-body p,
.insight-body li {
  color: var(--muted);
  font-size: 18px;
}

.insight-body ul,
.insight-body ol {
  padding-left: 24px;
}

.insight-body li + li {
  margin-top: 8px;
}

.toc {
  display: grid;
  gap: 9px;
  margin: 34px 0 48px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--band);
}

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

.toc a,
.insight-body a {
  color: var(--green-dark);
  font-weight: 800;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 38px;
}

.comparison-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.comparison-card.product-a { border-top: 5px solid var(--green); }
.comparison-card.product-b { border-top: 5px solid #d26a4e; }

.comparison-card h3 { margin-top: 0; }

.comparison-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  margin: 16px 0 0;
}

.comparison-card dt { color: var(--muted); }
.comparison-card dd { margin: 0; font-weight: 800; }
.comparison-card .loss { color: #b4422b; }

.break-even-visual {
  display: grid;
  gap: 16px;
  margin: 30px 0 38px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(135deg, #f0f7f2, #fff);
}

.break-even-visual .bar {
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7e1;
}

.break-even-visual .bar span {
  display: block;
  width: 30%;
  height: 100%;
  background: var(--green);
}

.break-even-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.diagnosis-callout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0;
}

.diagnosis-callout > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f8f4;
}

.diagnosis-callout > div:last-child {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: var(--shadow);
}

.diagnosis-callout p { margin: 8px 0 0; }
.diagnosis-callout > div:last-child p { color: rgba(255,255,255,.86); }

.insight-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 60px;
  padding: 28px;
  border-radius: 10px;
  background: var(--ink);
}

.insight-cta h2,
.insight-cta p { color: var(--white); }
.insight-cta h2 { grid-column: 1 / -1; margin: 0; }
.insight-cta p { color: rgba(255,255,255,.78); }
.insight-cta .button { width: max-content; }

@media (max-width: 800px) {
  .insight-hero-subrow,
  .comparison-grid,
  .diagnosis-callout,
  .insight-cta { grid-template-columns: 1fr; }
  .insight-hero-subrow { margin-top: 18px; }
  .insight-cta h2 { grid-column: auto; }
  .insight-cta .button { width: 100%; }
}

@media (max-width: 960px) {
  .hero,
  .split,
  .two-column,
  .interest-layout {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .answer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .nav {
    justify-content: flex-start;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: 38px;
  }

  .pattern-grid,
  .sample-grid,
  .steps,
  .metric-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .insights-inner {
    width: min(100% - 36px, 1160px);
  }

  .insight-card {
    grid-template-columns: 1fr;
  }

  .insight-card-copy {
    padding: 4px 6px 10px;
  }

  .insights-cta {
    display: block;
    padding: 24px 20px;
  }

  .insights-cta .button {
    width: 100%;
    margin-top: 22px;
  }
}
