@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg: #f6f4f0;
  --bg-dark: #1c1917;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fff7ed;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --success: #166534;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 4px 6px rgba(28, 25, 23, 0.04), 0 24px 48px rgba(28, 25, 23, 0.08);
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Libre Baskerville", Georgia, serif;
  --header-h: 4.25rem;
  --container: min(1140px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: #fff;
}

.logo span {
  color: #fbbf24;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.logo-sketch-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
  line-height: 1;
  position: relative;
}

.logo-script {
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.logo-script--accent {
  color: var(--accent);
}

.logo-word::after {
  content: "";
  position: absolute;
  left: 0.1rem;
  right: 0.2rem;
  bottom: -0.15rem;
  height: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 6' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q30 1 60 3 T120 2' fill='none' stroke='%23fbbf24' stroke-width='1.8' stroke-linecap='round' opacity='0.85'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-links .nav-link--active {
  color: var(--text);
  font-weight: 600;
}

.site-header .btn-secondary {
  color: var(--text);
  border-color: var(--border-strong);
  background: transparent;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.site-header .btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg);
}

.site-header .btn-primary {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
}

.btn-dark {
  background: var(--bg-dark);
  color: #fff;
}

.btn-dark:hover {
  background: #2d2d2a;
  color: #fff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  background: var(--bg-dark);
  color: #f3f0ea;
  padding: 4.5rem 0 5rem;
}

.hero .container {
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a8a29e;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.15rem;
  color: #d6d0c4;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-note {
  font-size: 0.9rem;
  color: #78716c;
  margin-top: 1.25rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-num {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  background: var(--bg-dark);
  color: #fbbf24;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Steps */
.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  font-size: 1.1rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.price-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.price-card.featured {
  border-color: var(--accent);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.price-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
  letter-spacing: -0.03em;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  margin: 1.5rem 0;
}

.price-features li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.price-features li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

/* Quote block */
.quote-block {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.quote-block cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

/* CTA band */
.cta-band {
  background: var(--bg-dark);
  color: #f3f0ea;
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: #a8a29e;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: #141413;
  color: #78716c;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* App-specific */
.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  padding: 6rem 0 4rem;
}

body.app-page .site-header {
  position: sticky;
}

.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.form-section h2 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

input,
select,
textarea {
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

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

.tier-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #faf9f7;
}

.tier-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.tier-total {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.preview-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
  display: none;
}

.preview-panel.visible {
  display: block;
}

.preview-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.preview-tier {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.preview-tier:last-child {
  border-bottom: none;
}

.preview-tier h4 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.line-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  color: var(--text-muted);
}

.line-item.total {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    text-align: center;
  }
}