* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#generator,
#paid-pack {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: #f7f4ee;
  color: #1e1b16;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5ded0;
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.nav-link {
  color: #1e1b16;
  text-decoration: none;
  font-weight: 650;
}

.hero {
  padding: 86px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #7a5a24;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 8vw, 5.25rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

h4 {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.hero-text {
  max-width: 660px;
  color: #5f584d;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

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

.button.primary {
  color: #fff;
  background: #1e1b16;
  box-shadow: 0 10px 24px rgba(30, 27, 22, 0.18);
}

.button.secondary {
  color: #1e1b16;
  background: #fff;
  border: 1px solid #d8cdbb;
}

.button.small,
.copy-single {
  min-height: 34px;
  padding: 0 12px;
  color: #1e1b16;
  background: #fff;
  border: 1px solid #d8cdbb;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.button.full {
  width: 100%;
  margin-top: 8px;
}

.small-note {
  color: #786f64;
  font-size: 0.9rem;
}

.card,
.mini-card {
  background: #fff;
  border: 1px solid #e5ded0;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(30, 27, 22, 0.08);
}

.hero-card {
  padding: 30px;
}

.card-label {
  margin-bottom: 8px;
  color: #7a5a24;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.check-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  margin: 10px 0;
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 900;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: #ede5d8;
}

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

.section-heading p {
  color: #5f584d;
}

.tool-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.form-card,
.output-card {
  padding: 24px;
}

label {
  display: block;
  margin-bottom: 16px;
  color: #3c352d;
  font-weight: 800;
}

.optional {
  color: #786f64;
  font-weight: 500;
}

input,
select {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d8cdbb;
  border-radius: 12px;
  background: #fbfaf7;
  color: #1e1b16;
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(122, 90, 36, 0.18);
  border-color: #7a5a24;
}

.output-header,
.output-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.output-block {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e5ded0;
  border-radius: 16px;
  background: #fbfaf7;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 12px 0 0;
  color: #3c352d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
}

.upgrade-box {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background: #1e1b16;
  color: #fff;
}

.upgrade-box p {
  color: #efe8dc;
}

.upgrade-box .button.secondary {
  border: 0;
}

.upgrade-box .small-note {
  margin: 12px 0 0;
  color: #cfc5b5;
}

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

.mini-card {
  padding: 24px;
  box-shadow: none;
}

.mini-card p,
.legal p {
  color: #5f584d;
}

.legal {
  max-width: 840px;
}

.legal h2 {
  margin-top: 28px;
  font-size: 1.7rem;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid #e5ded0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #786f64;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 56px;
  }

  .hero-grid,
  .tool-grid,
  .three-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .output-header {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  h1 {
    line-height: 1.02;
    letter-spacing: -0.05em;
  }

  .hero-text {
    font-size: 1.02rem;
  }

  .output-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-single {
    width: fit-content;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .nav-link {
    display: none;
  }

  .form-card,
  .output-card,
  .hero-card {
    padding: 18px;
    border-radius: 18px;
  }
}
