:root {
  --bg: #f7f8f5;
  --bg-alt: #dfe8df;
  --bg-strong: #234335;
  --alt-text: #1f2d24;
  --alt-muted: #516357;
  --strong-text: #f8fbf6;
  --strong-muted: #d9e5dc;
  --surface: #fff;
  --surface-muted: #f1f3ef;
  --text: #1c211d;
  --muted: #616b62;
  --subtle: #8b928a;
  --line: #d9ded6;
  --accent: #1f5d49;
  --accent-dark: #174535;
  --accent-soft: #e5f0ea;
  --warn: #8a5a12;
  --warn-soft: #fff1d2;
  --info: #385a72;
  --info-soft: #e6eef4;
  --shadow: 0 24px 70px rgb(31 46 38 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Geneva, Tahoma, Verdana, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 76px;
  padding: 0 28px;
}

.brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0;
}

.brand img {
  border-radius: 8px;
  display: block;
  flex: 0 0 auto;
  height: 32px;
  width: 32px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
}

.nav-links a:hover,
.brand:hover {
  color: var(--accent);
}

.nav-cta {
  place-self: center end;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
}

.nav-cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.hero {
  align-items: center;
  background: var(--bg);
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 76px);
  padding: 44px 28px 72px;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 18px;
}

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

h1 {
  color: var(--text);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.03;
  margin-bottom: 24px;
  max-width: 760px;
}

.hero-title-line {
  white-space: nowrap;
}

.hero-text {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 14px;
  max-width: 620px;
}

.target-line {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 30px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

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

.button-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.reassurance {
  color: var(--subtle);
  font-size: 13px;
  margin: 0;
  max-width: 520px;
}

.product-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.preview-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-kicker {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.preview-header h2 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.status-pill {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}

.today-action {
  background: var(--bg-strong);
  border-radius: 8px;
  color: var(--strong-text);
  margin-bottom: 16px;
  padding: 18px;
}

.today-label {
  color: var(--strong-muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.today-action strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 7px;
}

.today-action span {
  color: var(--strong-muted);
  display: block;
  font-size: 13px;
}

.invoice-table {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.table-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1.25fr 0.85fr 0.8fr 1.1fr;
  min-height: 54px;
  padding: 12px 14px;
}

.table-row:first-child {
  border-top: 0;
}

.table-head {
  background: var(--surface-muted);
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  min-height: 38px;
  text-transform: uppercase;
}

.table-row:not(.table-head) {
  font-size: 13px;
}

.tag {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  justify-content: center;
  padding: 6px 8px;
  text-align: center;
}

.tag-action {
  background: var(--warn-soft);
  color: var(--warn);
}

.tag-done {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag-watch {
  background: var(--info-soft);
  color: var(--info);
}

.preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.metric {
  background: var(--surface-muted);
  border-radius: 6px;
  padding: 14px;
}

.metric span {
  color: var(--subtle);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.metric strong {
  color: var(--text);
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.message-preview {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 14px;
  padding: 15px;
}

.message-title {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.message-copy {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

.invoice-import,
.reminder-example {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px 28px;
}

.invoice-import {
  background: var(--bg-alt);
  box-shadow: 0 0 0 100vmax var(--bg-alt);
  clip-path: inset(0 -100vmax);
  color: var(--alt-text);
  gap: 28px;
  grid-template-columns: 1fr;
}

.reminder-example {
  background: var(--bg);
}

.invoice-import .eyebrow {
  color: var(--accent);
}

.section-copy {
  max-width: 440px;
}

.invoice-import .section-copy {
  max-width: 720px;
}

.section-copy h2 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-description {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 0;
}

.invoice-import .section-description {
  color: var(--alt-muted);
}

.example-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgb(31 46 38 / 8%);
  padding: 22px;
}

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

.example-meta span {
  background: var(--surface-muted);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  min-height: 40px;
  padding: 10px 12px;
}

.email-example {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}

.email-example p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.import-panel {
  display: grid;
  gap: 16px;
}

.import-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.import-steps li,
.import-fields {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgb(31 46 38 / 8%);
  min-height: 220px;
  padding: 20px;
}

.step-icon {
  align-items: center;
  background: rgb(31 93 73 / 10%);
  border-radius: 6px;
  color: var(--accent);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-bottom: 12px;
  width: 42px;
}

.step-icon svg {
  fill: none;
  height: 22px;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.import-steps strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.import-steps p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.step-highlight {
  background: linear-gradient(180deg, #fff 0%, #f4f8f5 100%);
  border-color: #c8d7cc;
}

.section-cta {
  align-items: center;
  background: rgb(255 255 255 / 70%);
  border: 1px solid #cfd9cf;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px;
}

.section-cta p {
  color: var(--alt-text);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0;
}

.section-cta .button {
  flex: 0 0 auto;
}

.import-fields h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.import-fields dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.import-fields div {
  align-items: center;
  background: var(--surface-muted);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1.15fr);
  padding: 10px 12px;
}

.import-fields dt {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}

.import-fields dd {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.analytics-consent {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 50%;
  max-width: min(920px, calc(100vw - 36px));
  padding: 18px;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 20;
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent strong {
  color: var(--text);
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.analytics-consent p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.analytics-consent-actions .button {
  border: 1px solid var(--line);
  cursor: pointer;
  min-height: 40px;
}

.site-footer p {
  font-size: 12px;
  margin-bottom: 8px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.email-example p:first-child {
  color: var(--text);
  font-weight: 700;
}

.email-example p:last-child {
  margin-bottom: 0;
}

.custom-note {
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 0;
  padding: 13px 14px;
}

.below-fold {
  background: var(--bg-alt);
  box-shadow: 0 0 0 100vmax var(--bg-alt);
  clip-path: inset(0 -100vmax);
  color: var(--alt-text);
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px 28px 54px;
}

.below-fold h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.below-fold-copy {
  color: var(--alt-muted);
  font-size: 14px;
  margin-bottom: 0;
}

.pricing-section {
  display: grid;
  gap: 24px;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}

.pricing-copy {
  max-width: 760px;
}

.pricing-copy .eyebrow {
  color: var(--accent);
}

.pricing-copy h2 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 14px;
}

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

.pricing-card,
.pricing-included {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgb(31 46 38 / 8%);
}

.pricing-card {
  padding: 22px;
}

.pricing-badge {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  padding: 7px 10px;
}

.pricing-kicker {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-free {
  color: var(--text);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 8px;
}

.pricing-then {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-note {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.pricing-included {
  padding: 22px;
}

.pricing-included h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.pricing-included ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.pricing-included li {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  padding-left: 24px;
  position: relative;
}

.pricing-included li::before {
  color: var(--accent);
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
  top: 0;
}

.pricing-reassurance {
  background: var(--surface-muted);
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
  padding: 13px 14px;
}

.beta-section {
  align-items: start;
  background: var(--bg-strong);
  box-shadow: 0 0 0 100vmax var(--bg-strong);
  clip-path: inset(0 -100vmax);
  color: var(--strong-text);
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px 28px 84px;
}

.beta-section .eyebrow {
  color: #b9dac8;
}

.beta-section .section-description {
  color: var(--strong-muted);
}

.beta-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgb(31 46 38 / 8%);
  padding: 22px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.spam-field {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.field span:first-child {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.field strong,
.field em {
  color: var(--subtle);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  margin-left: 4px;
  text-transform: uppercase;
}

input,
select,
textarea {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 106px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.field-error {
  color: #a63c21;
  font-size: 12px;
  min-height: 18px;
}

.field-invalid input,
.field-invalid select {
  border-color: #a63c21;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.form-actions .button {
  border: 0;
  cursor: pointer;
}

.form-note {
  color: var(--subtle);
  font-size: 13px;
  margin: 0;
}

.form-message {
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 0;
  min-height: 0;
  padding: 0;
}

.form-message-success {
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 13px 14px;
}

.form-message-loading {
  background: var(--info-soft);
  color: var(--info);
  padding: 13px 14px;
}

.form-message-error {
  background: var(--warn-soft);
  color: var(--warn);
  padding: 13px 14px;
}

.site-footer {
  background: var(--bg-strong);
  box-shadow: 0 0 0 100vmax var(--bg-strong);
  clip-path: inset(0 -100vmax);
  color: var(--strong-muted);
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 28px 32px;
}

@media (width <= 1120px) {
  .hero {
    align-items: start;
    gap: 36px;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    font-size: 48px;
  }

  .product-preview {
    max-width: 640px;
    width: 100%;
  }
}

@media (width <= 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 44px;
  }

  .hero-text {
    font-size: 17px;
  }

  .invoice-import,
  .reminder-example {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .import-steps {
    grid-template-columns: 1fr;
  }

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

  .beta-section {
    gap: 28px;
    grid-template-columns: 1fr;
  }

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

  .analytics-consent {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .analytics-consent-actions {
    justify-content: flex-start;
  }

  .import-panel {
    order: 0;
  }

  .section-copy {
    max-width: 620px;
  }
}

@media (width <= 640px) {
  .site-header {
    gap: 16px;
    min-height: 66px;
    padding: 0 18px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-cta {
    font-size: 12px;
    padding: 9px 11px;
  }

  .hero {
    gap: 34px;
    padding: 28px 18px 48px;
  }

  .hero-copy {
    max-width: none;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 47px;
    line-height: 1.2;
    margin-bottom: 18px;
    max-width: 19rem;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.52;
    margin-bottom: 12px;
  }

  .target-line {
    color: var(--alt-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 24px;
    max-width: 21rem;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 14px;
  }

  .reassurance {
    line-height: 1.45;
  }

  .button {
    width: 100%;
  }

  .product-preview {
    padding: 16px;
  }

  .preview-header {
    align-items: stretch;
    flex-direction: column;
  }

  .status-pill {
    align-self: flex-start;
  }

  .table-row {
    gap: 6px;
    grid-template-columns: 1fr 0.85fr;
  }

  .table-row span:nth-child(3),
  .table-row span:nth-child(4) {
    color: var(--muted);
  }

  .table-head {
    display: none;
  }

  .preview-grid,
  .example-meta,
  .form-grid,
  .pricing-layout,
  .below-fold {
    grid-template-columns: 1fr;
  }

  .invoice-import,
  .reminder-example,
  .below-fold,
  .beta-section,
  .site-footer {
    padding: 44px 18px;
  }

  .section-copy h2 {
    font-size: 28px;
  }

  .pricing-copy h2 {
    font-size: 28px;
  }

  .pricing-card,
  .pricing-included {
    padding: 16px;
  }

  .pricing-free {
    font-size: 34px;
  }

  .example-card {
    padding: 16px;
  }

  .email-example {
    padding: 15px;
  }

  .beta-form {
    padding: 16px;
  }
}
