:root {
  --ink: #1f2a44;
  --ink-soft: #4a5570;
  --bg: #faf7f2;
  --surface: #ffffff;
  --line: #e7e1d6;
  --accent: #d9694a;
  --accent-dark: #b8533a;
  --accent-soft: #fbe9e3;
  --sage: #e6efe9;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 42, 68, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--accent-dark); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Demo banner */
.demo-banner {
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
}
.demo-banner a { color: #ffd2c4; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.logo-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 2px dashed var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.1;
}
.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
}
.brand-name small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover, .nav a.active { background: var(--accent-soft); color: var(--accent-dark); }
.nav a.btn { color: #fff; margin-left: 8px; }
.nav a.btn:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 7px 14px; font-size: 0.85rem; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 80px 0 72px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--accent-soft), var(--sage));
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
  padding: 24px;
  border: 1px solid var(--line);
}
.trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.trust strong { display: block; font-size: 1.5rem; color: var(--ink); font-family: "Fraunces", serif; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .photo-placeholder { aspect-ratio: 16 / 10; }
}

/* Page header */
.page-head {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--accent-soft), var(--bg));
}
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; }
.breadcrumb a { color: var(--ink-soft); }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

a.card {
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(31, 42, 68, 0.12); }
.card-link { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--accent-dark); }

.tag {
  display: inline-block;
  background: var(--sage);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}
.tag-accent { background: var(--accent-soft); color: var(--accent-dark); }

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: "Fraunces", serif;
}

/* Testimonials */
.quote { font-family: "Fraunces", serif; font-size: 1.1rem; font-style: italic; }
.quote-by { margin-top: 16px; font-size: 0.9rem; color: var(--ink-soft); font-style: normal; font-family: "Inter", sans-serif; }

/* Pricing */
.price { font-family: "Fraunces", serif; font-size: 2.4rem; font-weight: 600; }
.price span { font-size: 1rem; font-family: "Inter", sans-serif; color: var(--ink-soft); font-weight: 500; }
.card.featured { border: 2px solid var(--accent); position: relative; }
.featured-label {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.checklist { list-style: none; padding: 0; margin: 16px 0 24px; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 600; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Exam page */
.exam-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .exam-layout { grid-template-columns: 1fr; } }
.exam-layout aside { position: sticky; top: 96px; }
@media (max-width: 900px) { .exam-layout aside { position: static; } }
.paper {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.paper h4 { font-family: "Inter", sans-serif; font-size: 1rem; margin-bottom: 4px; }
.paper p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.facts li:last-child { border-bottom: none; }
.facts span:first-child { color: var(--ink-soft); }
.facts span:last-child { font-weight: 600; text-align: right; }

/* Blog */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  margin: -8px -8px 18px;
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  color: var(--ink);
  padding: 16px;
  text-align: center;
}
.post-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 8px; }
.article { max-width: 720px; margin: 0 auto; }
.article h2 { margin-top: 1.6em; font-size: 1.5rem; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 6px; }
.article .post-thumb { margin: 0 0 32px; aspect-ratio: 21 / 9; font-size: 1.5rem; }

/* Forms */
.form-row { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.success {
  background: var(--sage);
  border-radius: 12px;
  padding: 20px;
  display: none;
}
.success.show { display: block; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}
.cta-band .lead { color: #cdd3e0; margin: 0 auto 24px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cdd3e0;
  padding: 56px 0 32px;
  margin-top: 72px;
  font-size: 0.92rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { color: #fff; font-family: "Inter", sans-serif; font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 40px; padding-top: 20px; font-size: 0.82rem; }

/* Admin (CMS mock) */
.admin-body { background: #f1f2f6; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 37px); }
.admin-side { background: #1b2236; color: #cdd3e0; padding: 24px 16px; }
.admin-side h3 { color: #fff; font-family: "Inter", sans-serif; font-size: 1rem; margin-bottom: 24px; }
.admin-side a { display: block; color: #cdd3e0; text-decoration: none; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; font-size: 0.95rem; }
.admin-side a.active, .admin-side a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.admin-main { padding: 32px; }
.admin-panel { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #e3e5ec; margin-bottom: 24px; }
.admin-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #eceef3; vertical-align: middle; }
.admin-table th { color: var(--ink-soft); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.status { font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status-published { background: #dff3e6; color: #1e6b3a; }
.status-draft { background: #eceef3; color: #4a5570; }
.status-scheduled { background: #fff1d6; color: #8a5a00; }
.link-btn { background: none; border: none; color: var(--accent-dark); cursor: pointer; font-family: inherit; font-size: 0.9rem; padding: 0 6px; }
.toolbar { display: flex; gap: 4px; border: 1px solid var(--line); border-bottom: none; border-radius: 10px 10px 0 0; padding: 6px; background: #fafbfc; }
.toolbar button { background: none; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-family: inherit; color: var(--ink); }
.toolbar button:hover { background: #eceef3; }
.toolbar + textarea { border-radius: 0 0 10px 10px; min-height: 260px; }
.admin-tip { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; font-size: 0.9rem; margin-bottom: 20px; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-main { padding: 20px 16px; }
  .admin-table .hide-sm { display: none; }
}
