:root {
  --ink: #1f2a44;
  --muted: #5d6679;
  --bg: #fbf8f3;
  --alt: #f3eee6;
  --card: #ffffff;
  --accent: #e8573c;
  --accent-dark: #c9432b;
  --line: #e7e1d7;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(31, 42, 68, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.container { width: min(1120px, 92vw); margin: 0 auto; }
.narrow { width: min(760px, 92vw); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8em 1.5em;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: rgba(232, 87, 60, 0.08); color: var(--accent-dark); }
.btn-small { padding: 0.45em 1.1em; font-size: 0.92rem; }
.btn-block { display: block; text-align: center; margin-top: auto; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 64px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 5rem 0 4rem; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1rem; }
.note { font-size: 0.92rem; color: var(--muted); }

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #f5a25d);
}
.stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.stats li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.stats strong { font-size: 1.2rem; }
.stats span { color: var(--muted); }

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--alt); }
.section-sub { color: var(--muted); max-width: 620px; margin: 0 auto 2.5rem; }
.about-text { font-size: 1.1rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.icon { font-size: 2rem; margin-bottom: 0.8rem; }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step p { color: var(--muted); }

/* Packages */
.package { display: flex; flex-direction: column; position: relative; }
.package:has(.badge:not(:empty)) { border: 2px solid var(--accent); transform: translateY(-6px); }
.badge {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25em 0.8em;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.badge:empty { display: none; }
.price { font-size: 2rem; font-weight: 700; margin: 0.3rem 0 0.5rem; color: var(--ink) !important; }
.price small { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.checks li { padding: 0.35rem 0 0.35rem 1.7rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 1rem; margin-top: 2rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.faq-item p { color: var(--muted); margin: 0; }

/* Contact */
.contact { background: var(--ink); color: #fff; }
.contact .lead, .contact .muted { color: #c5cbe0; }
.contact a:not(.btn) { color: #fff; font-weight: 600; font-size: 1.1rem; }
.contact-methods { display: flex; justify-content: center; gap: 3rem; margin: 2rem 0; flex-wrap: wrap; }

.footer { padding: 2rem 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* Edit mode */
.editbar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.edit-status { font-size: 0.85rem; color: var(--muted); padding: 0 0.5rem; }
.edit-status:empty { display: none; }

.edit-ctl { display: none; }
.editing .edit-ctl {
  display: inline-block;
  font: inherit;
  cursor: pointer;
  border: 1px dashed var(--accent);
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
}
.editing .edit-ctl.add { padding: 0.3em 1em; font-size: 0.85rem; justify-self: start; align-self: start; }
.editing .list-item { position: relative; }
.editing .edit-ctl.del {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  padding: 0;
  line-height: 1;
  z-index: 2;
}
.editing [contenteditable] {
  outline: 1px dashed rgba(232, 87, 60, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
  cursor: text;
}
.editing [contenteditable]:empty { display: inline-block; min-width: 3ch; min-height: 1em; }
.editing [contenteditable]:focus { outline: 2px solid var(--accent); background: rgba(232, 87, 60, 0.05); }
.editing .badge:empty { display: inline-block; min-width: 5ch; background: transparent; }
.editing .badge:empty::before { content: "badge"; color: var(--muted); opacity: 0.6; }

/* Mobile */
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding-top: 3rem; }
  .section { padding: 3.5rem 0; }
  .package:has(.badge:not(:empty)) { transform: none; }
}
