:root {
  --paper: #fbf7ef;
  --paper-raised: #ffffff;
  --ink: #1f2a24;
  --ink-soft: #5c6b62;
  --line: #ded4c1;
  --ledger-green: #1f6f4a;
  --stamp-gold: #c9932f;
  --stamp-gold-soft: #f6ecd8;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  line-height: 1.6;
}

a {
  color: var(--ledger-green);
}

:focus-visible {
  outline: 2px solid var(--stamp-gold);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 247, 239, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ledger-green);
  color: #fff;
}

.btn--primary:hover {
  background: #185c3d;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink-soft);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Hero */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slogan-rotator {
  font-family: var(--font-mono);
  color: var(--stamp-gold);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  min-height: 1.4em;
  margin-bottom: 18px;
  transition: opacity 0.4s ease;
}

.slogan-rotator.is-fading {
  opacity: 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__sub {
  max-width: 56ch;
  font-size: 1.1rem;
  margin: 20px auto 32px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  padding: 0;
  margin: 0;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.badge__mark {
  color: var(--ledger-green);
  font-weight: 700;
}

/* Sections */

.section {
  padding: 64px 0;
}

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

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
}

.section__sub {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 40px;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.feature__icon {
  width: 40px;
  height: 40px;
  color: var(--ledger-green);
  margin-bottom: 14px;
}

.feature__icon svg {
  width: 100%;
  height: 100%;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.92rem;
  margin: 0;
}

/* Phone mockups */

.phone-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.phone {
  width: 240px;
  background: var(--ink);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 20px 40px -20px rgba(31, 42, 36, 0.35);
}

.phone__notch {
  width: 60px;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  margin: 4px auto 8px;
}

.phone__screen {
  border-radius: 22px;
  overflow: hidden;
  line-height: 0;
}

.phone__screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* Value grid */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.value-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--stamp-gold);
  border-radius: 10px;
  padding: 24px;
}

.value-card h3 {
  font-size: 1.05rem;
}

.value-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer__inner nav {
  display: flex;
  gap: 18px;
}

.site-footer__inner a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

@media (max-width: 640px) {
  .site-nav a:not(.btn) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
