:root {
  --paper: #f4f0e6;
  --paper-strong: #fffaf0;
  --ink: #172425;
  --muted: #566665;
  --line: #d8ded6;
  --teal: #0f7c79;
  --teal-dark: #0a5553;
  --coral: #d85c4a;
  --gold: #d8b44a;
  --green: #2f9b79;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(23, 36, 37, 0.14);
}

* {
  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;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(244, 240, 230, 0.84);
  border-bottom: 1px solid rgba(216, 222, 214, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a,
.header-buy {
  text-decoration: none;
}

.nav-links a:hover,
.header-buy:hover {
  color: var(--teal-dark);
}

.header-buy {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.hero {
  min-height: 78svh;
  display: flex;
  align-items: center;
  padding: 108px clamp(20px, 6vw, 92px) 54px;
  background-image:
    linear-gradient(90deg, rgba(244, 240, 230, 0.96) 0%, rgba(244, 240, 230, 0.82) 38%, rgba(244, 240, 230, 0.2) 78%),
    url("assets/preview-auto-save-hero.png");
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-content {
  width: min(100%, 680px);
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 4.4rem, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 2.75rem, 2.75rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: #263a3b;
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(15, 124, 121, 0.24);
}

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

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(23, 36, 37, 0.16);
}

.button.full {
  width: 100%;
}

.microcopy,
.fine-print {
  color: var(--muted);
  font-size: 0.95rem;
}

.proof-band {
  background: var(--ink);
  color: var(--white);
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

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

.proof-grid div {
  min-width: 0;
  min-height: 126px;
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.05);
}

.proof-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.proof-grid span {
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: clamp(72px, 9vw, 116px) 0;
  background: var(--paper-strong);
}

.section.alt {
  background: #e8f0e8;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.feature {
  min-height: 230px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 36, 37, 0.05);
}

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

.feature-mark {
  width: 38px;
  height: 12px;
  margin-bottom: 24px;
  background: var(--teal);
  border-radius: 6px;
}

.feature-mark.coral {
  background: var(--coral);
}

.feature-mark.gold {
  background: var(--gold);
}

.feature-mark.ink {
  background: var(--ink);
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

.workflow .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(23, 36, 37, 0.14);
}

.steps p {
  margin-bottom: 0;
  color: #2a3d3f;
  font-size: 1.1rem;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border-radius: 8px;
  font-weight: 900;
}

.terminal {
  display: grid;
  gap: 10px;
  padding: 24px;
  color: #dceee9;
  background: #172425;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.93rem;
  overflow: hidden;
}

.terminal span {
  overflow-wrap: anywhere;
}

.delivery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
}

.delivery p {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.08rem;
}

.search-copy {
  background: var(--paper);
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 7vw, 84px);
}

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

.purchase-panel {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.purchase-panel p {
  font-size: 1rem;
}

.price {
  margin-bottom: 0;
  color: var(--ink) !important;
  font-size: 4rem !important;
  line-height: 1;
  font-weight: 950;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--ink);
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

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

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: var(--white);
  text-decoration: none;
}

.checkout-dialog {
  width: min(520px, calc(100% - 40px));
  padding: 28px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.checkout-dialog::backdrop {
  background: rgba(23, 36, 37, 0.46);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 46%, var(--ink) 47%, var(--ink) 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--ink) 47%, var(--ink) 53%, transparent 54%);
  opacity: 0.75;
}

.dialog-close:hover {
  opacity: 1;
}

code {
  padding: 0.12em 0.34em;
  background: rgba(15, 124, 121, 0.12);
  border-radius: 5px;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 76svh;
    align-items: end;
    padding-top: 72px;
    background-image:
      linear-gradient(180deg, rgba(244, 240, 230, 0.2) 0%, rgba(244, 240, 230, 0.92) 52%, rgba(244, 240, 230, 0.98) 100%),
      url("assets/preview-auto-save-hero.png");
    background-position: 58% top;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.55rem, 3.05rem, 3.05rem);
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .proof-grid,
  .feature-grid,
  .workflow,
  .delivery,
  .search-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 14px;
    gap: 12px;
  }

  .brand span {
    max-width: 142px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-buy {
    min-height: 36px;
    padding-inline: 14px;
  }

  .hero {
    min-height: 80svh;
    padding-inline: 18px;
    padding-bottom: 36px;
  }

  .hero-content {
    width: min(100%, 330px);
    max-width: 330px;
  }

  .hero-copy,
  .microcopy {
    max-width: 100%;
  }

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

  .section-inner {
    width: min(330px, calc(100% - 32px));
  }

  .proof-grid div,
  .feature,
  .purchase-panel,
  .terminal {
    padding: 22px;
  }

  .price {
    font-size: 3.3rem !important;
  }
}
