:root {
  color-scheme: light;
  --navy: #1a2332;
  --navy-2: #111927;
  --paper: #f8f7f4;
  --paper-2: #eeece5;
  --ink: #0f0f0f;
  --muted: #646862;
  --line: rgba(15, 15, 15, 0.12);
  --line-soft: rgba(15, 15, 15, 0.08);
  --surface: #ffffff;
  --surface-soft: #f0eee7;
  --green: #3a9e75;
  --green-hover: #2f8060;
  --amber: #e8b84b;
  --red: #a8453f;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-dark: rgba(255, 255, 255, 0.11);
  --glass-line: rgba(255, 255, 255, 0.24);
  --shadow: 0 24px 80px rgba(17, 25, 39, 0.18);
  --shadow-dark: 0 24px 90px rgba(0, 0, 0, 0.28);
  --small-shadow: 0 1px 2px rgba(26, 35, 50, 0.06);
  --action-shadow: 0 18px 40px rgba(58, 158, 117, 0.25);
  font-family: Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(15, 15, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: var(--font-family, Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(58, 158, 117, 0.32);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 5vw, 64px);
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(248, 247, 244, 0.78);
  backdrop-filter: blur(28px) saturate(1.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.brand span {
  display: block;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.brand-logo,
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(26, 35, 50, 0.18);
}

.brand-mark {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent url("/assets/PayNudge-app-icon-180.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  color: #414540;
  font-size: 14px;
}

.nav-links a,
.nav-cta {
  border-radius: 8px;
  font-weight: 820;
  text-decoration: none;
}

.nav-links a {
  padding: 10px 12px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  justify-content: center;
  padding: 11px 14px;
  background: var(--navy);
  color: #ffffff;
  font-size: 14px;
}

.hero,
.section,
.footer {
  padding: clamp(54px, 7vw, 94px) clamp(18px, 5vw, 64px);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding-top: clamp(54px, 8vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    var(--navy);
  background-size: 72px 72px;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 54px;
  background: var(--paper);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy,
.section-inner,
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  margin: 0;
}

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

.hero .eyebrow,
.dark .eyebrow {
  color: var(--amber);
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 830;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 820;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.16;
}

.lede,
.answer-block {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.58;
}

.hero .lede,
.hero .pricing-note,
.hero .proof-note,
.hero .support-note {
  color: rgba(255, 255, 255, 0.76);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: var(--action-shadow);
}

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

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px);
}

.section .button.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.pricing-note,
.proof-note,
.support-note,
.safety-note,
.payment-note,
.footer {
  color: var(--muted);
}

.pricing-note,
.support-note {
  font-weight: 750;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 24px 0 0;
}

.trust-strip span {
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: var(--glass-dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 760;
  backdrop-filter: blur(22px) saturate(1.25);
}

.visual-panel,
.card,
.template-block,
.generator,
.output-panel,
.safety-box,
.fact-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--small-shadow);
}

.hero .visual-panel {
  overflow: hidden;
  align-self: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--glass-line);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(30px) saturate(1.34);
}

.nudge-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.preview-line,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero .preview-line,
.hero .metric-card {
  border-color: rgba(255, 255, 255, 0.26);
  background: var(--glass-strong);
  color: var(--ink);
  backdrop-filter: blur(28px) saturate(1.2);
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: transparent !important;
  color: #ffffff !important;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 820;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.preview-top,
.invoice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
}

.preview-top strong,
.invoice-row strong {
  display: block;
  margin-bottom: 4px;
}

.preview-top span,
.invoice-row span,
.draft-card small,
.draft-card span,
.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.stage-pill {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(58, 158, 117, 0.14);
  color: var(--green-hover) !important;
  font-size: 12px !important;
  font-weight: 860 !important;
}

.tone-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}

.tone-pill {
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 820;
  text-align: center;
}

.tone-pill.active {
  background: #ffffff;
  color: var(--navy);
}

.draft-card {
  padding: 15px;
}

.draft-card small,
.draft-card strong {
  display: block;
}

.draft-card strong {
  margin-top: 4px;
}

.draft-card p {
  margin: 10px 0 0;
  color: #252925;
  line-height: 1.55;
}

.guardrail {
  color: var(--muted);
  background: var(--surface-soft) !important;
  border-left: 5px solid var(--amber) !important;
  font-weight: 750;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-card {
  padding: 12px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
}

.section {
  background: #ffffff;
}

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

.section.dark {
  background: var(--navy-2);
  color: #ffffff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.58fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.dark .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

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

.bento-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 14px;
}

.card,
.generator,
.output-panel,
.safety-box {
  padding: 20px;
}

.card {
  min-height: 160px;
}

.card p,
.pricing-card p,
.safety-box p {
  color: var(--muted);
  line-height: 1.58;
}

.card a,
.footer-links a {
  color: var(--green-hover);
  font-weight: 800;
  text-decoration: none;
}

.card a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.feature-card {
  grid-row: span 2;
  background: var(--navy);
  color: #ffffff;
  border-color: transparent;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.72);
}

.mini-form {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.mini-form div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 760;
}

.safety-box {
  min-height: 138px;
  background: #ffffff;
}

.safety-box p {
  color: var(--muted);
}

.dark .safety-box {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
}

.dark .safety-box p {
  color: rgba(255, 255, 255, 0.68);
}

.pricing-card {
  display: grid;
  align-content: start;
  min-height: 250px;
}

.pricing-card.highlighted {
  border-color: rgba(58, 158, 117, 0.38);
  box-shadow: 0 26px 80px rgba(58, 158, 117, 0.14);
}

.payment-note {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.price {
  margin: 8px 0 16px;
  color: var(--ink) !important;
  font-size: 36px;
  font-weight: 880;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

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

.generator-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
}

.generator {
  display: grid;
  gap: 14px;
}

.generator label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.generator input,
.generator select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.output-panel pre {
  min-height: 190px;
  margin: 0;
  color: var(--ink);
  font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

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

.post-copy-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(58, 158, 117, 0.22);
  border-radius: 8px;
  background: #f5fbf7;
}

.post-copy-panel h3 {
  margin: 6px 0;
  font-size: 22px;
}

.post-copy-panel .action-row {
  margin: 14px 0 10px;
}

.template-block {
  margin: 10px 0 18px;
  padding: 18px;
  background: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  white-space: pre-wrap;
}

.table-scroll {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 13px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--surface-soft);
}

.fact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding: 14px;
}

.list {
  margin: 0;
  padding-left: 20px;
}

.list li {
  margin-bottom: 8px;
}

.answer-block {
  padding: 18px;
  border-left: 5px solid var(--green);
  background: var(--surface);
  box-shadow: var(--small-shadow);
}

.footer {
  background: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer p {
  max-width: 760px;
  margin-bottom: 0;
}

.footer-links a {
  color: #ffffff;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .trust-strip,
  .bento-grid,
  .grid,
  .safety-grid,
  .pricing-grid,
  .two-col,
  .generator-layout {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .visual-panel {
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .topbar {
    display: block;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 12px;
  }

  .nav-links {
    margin-top: 10px;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .hero,
  .section,
  .footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 32px;
  }

  .lede {
    font-size: 17px;
    line-height: 1.5;
  }

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

  .hero-actions {
    margin: 22px 0 14px;
  }

  .pricing-note {
    margin-bottom: 18px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .trust-strip span {
    min-height: auto;
  }

  .nudge-preview {
    padding: 10px;
  }

  .preview-top,
  .invoice-row,
  .tone-rail,
  .metric-grid,
  .bento-grid,
  .grid,
  .safety-grid,
  .pricing-grid,
  .two-col,
  .generator-layout {
    grid-template-columns: 1fr;
  }

  .preview-top,
  .draft-card,
  .metric-card,
  .card,
  .generator,
  .output-panel,
  .safety-box {
    padding: 14px;
  }

  .footer-inner {
    display: block;
  }

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

body:not(.home) .hero,
body:not(.home) .section,
body:not(.home) .footer {
  padding: clamp(30px, 5vw, 58px) clamp(18px, 4vw, 56px);
}

body:not(.home) .hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.94fr);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    var(--navy);
  background-size: 72px 72px;
}

body:not(.home) .hero::after {
  display: none;
}

body:not(.home) h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

body:not(.home) h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

body:not(.home) .hero .visual-panel {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

body:not(.home) .hero .preview-line {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

body:not(.home) .footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

body:not(.home) .footer-links a {
  color: var(--green-hover);
}

@media (max-width: 980px) {
  body:not(.home) .hero {
    display: block;
  }
}
