:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #231d18;
  --muted: #766c62;
  --line: #e5ded6;
  --accent: #b25b22;
  --accent-dark: #843d15;
  --green: #0b7a5c;
  --shadow: 0 22px 70px rgba(74, 48, 27, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

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

.brand,
footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 720;
  font-size: 14px;
}

.hero,
.tool-section,
.section,
.pricing {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.hero {
  display: grid;
  min-height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.74fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 850;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.lede,
.section-heading p,
.pricing > div > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
}

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

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

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

.invoice-card,
.generator,
.feature-grid article,
.price-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.invoice-card {
  padding: 30px;
}

.invoice-head,
.line-item,
.total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.invoice-head strong {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.total {
  border-bottom: 0;
  font-size: 24px;
}

.geo-banner {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid #efc9a9;
  border-radius: 8px;
  background: #fff4ea;
  color: var(--ink);
  font-weight: 740;
}

.geo-banner[hidden] {
  display: none;
}

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

.generator {
  display: grid;
  max-width: 960px;
  margin: 0 auto;
  gap: 14px;
  padding: 24px;
}

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

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

input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d4c9bd;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.result {
  display: block;
  min-height: 220px;
  padding: 18px;
  border: 1px solid #d4c9bd;
  border-radius: 8px;
  background: #fffdf9;
  white-space: pre-wrap;
  line-height: 1.6;
}

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

.feature-grid article,
.price-card,
.faq-list details {
  padding: 24px;
}

.feature-grid p,
.faq-list p,
.price-card li {
  color: var(--muted);
  line-height: 1.55;
}

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
  gap: 28px;
  align-items: start;
  background: #231d18;
  color: #fff;
}

.pricing p {
  color: rgba(255, 255, 255, 0.72);
}

.price-card {
  color: var(--ink);
}

.price {
  font-size: 42px;
  font-weight: 850;
}

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

.muted {
  background: #f4efe8;
}

.faq-list {
  display: grid;
  max-width: 860px;
  margin: 0 auto;
  gap: 12px;
}

summary {
  font-weight: 850;
  cursor: pointer;
}

footer {
  justify-content: space-between;
  padding: 30px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

@media (max-width: 860px) {
  nav {
    display: none;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 42px;
  }

  .actions,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
