:root {
  --bg: #f9f8f6;
  --surface: #ffffff;
  --surface-hover: #f0eeeb;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #e5e3df;
  --border-strong: #d1cdc7;
  --primary: #c25e3c;
  --primary-hover: #a34c2e;
  --success: #2e7d32;
  --error: #c62828;
  --radius: 8px;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.page-head { padding: 80px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.page-head h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 12px; }
.page-head .lede { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; }

section { padding: 60px 0; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
h2 { font-size: 1.8rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
p { margin-bottom: 16px; color: var(--text-muted); }
.lede { font-size: 1.15rem; color: var(--text-muted); }
.small { font-size: 0.88rem; color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.kicker { font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); display: block; margin-bottom: 8px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); display: block; margin-bottom: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--radius); font-weight: 500; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-block { width: 100%; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(249, 248, 246, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { padding: 10px 20px; font-size: 0.9rem; }

/* Hero */
.hero { padding: 80px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.max-prose { max-width: 600px; }

/* Receipt Visual */
.receipt { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 380px; margin-top: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.receipt-title { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 16px; }
.receipt-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.receipt-row:last-child { border-bottom: none; }
.receipt-row.total { font-weight: 600; color: var(--text); border-top: 2px solid var(--text); margin-top: 10px; padding-top: 12px; }
.receipt-row.total span { color: var(--success); }

/* Features & Grid */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
.feature { background: #fff; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); }
.feature .glyph { font-size: 1.5rem; display: block; margin-bottom: 16px; color: var(--primary); }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: 0.95rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.plan.featured { border: 2px solid var(--primary); position: relative; }
.plan.featured::before { content: "Recommended"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.plan .tag { display: inline-block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 12px; }
.plan .price { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; }
.plan .price small { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan ul { list-style: none; margin: 24px 0; }
.plan li { margin-bottom: 12px; font-size: 0.95rem; display: flex; gap: 10px; align-items: flex-start; }
.plan li .ok { color: var(--success); font-weight: bold; }
.duration-picker { margin-bottom: 20px; }
.duration-picker label { display: block; font-size: 0.85rem; margin-bottom: 8px; color: var(--text-muted); }
.duration-picker select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.95rem; }

/* Forms */
.stack { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: 0.9rem; }
.field input, .field select, .field textarea { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-sans); font-size: 1rem; background: #fff; transition: border-color 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.hint { font-size: 0.8rem; color: var(--text-muted); }
.form-msg { font-size: 0.9rem; padding: 12px; border-radius: var(--radius); display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e8f5e9; color: var(--success); border: 1px solid #c8e6c9; }
.form-msg.err { background: #ffebee; color: var(--error); border: 1px solid #ffcdd2; }

/* Order Summary */
.order-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.order-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; }
.order-summary .row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 600; font-size: 1.1rem; color: var(--primary); }

/* Misc Components */
.wa-box { background: #fff; border: 1px solid var(--border); padding: 20px; border-radius: var(--radius); display: flex; gap: 16px; align-items: flex-start; }
.wa-box .glyph { font-size: 1.5rem; color: var(--primary); }
.panel { background: #fff; border: 1px solid var(--border); padding: 24px; border-radius: var(--radius); }
.link-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.link-row:last-child { border-bottom: none; }
.link-row .glyph { color: var(--text-muted); }
.text-link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty-state .glyph { font-size: 2rem; color: var(--text-muted); margin-bottom: 16px; display: block; }

/* Two Column Layout */
.two-col { display: grid; grid-template-columns: 1fr; gap: 40px; }

/* Responsive */
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .nav-links { display: flex; }
}
