:root {
  --ink: #1f140b;
  --paper: #fffaf4;
  --muted: #8a7563;

  --amber-100: #ffe8cf;
  --amber-300: #ffb066;
  --amber-500: #f2790c;
  --amber-600: #d95f04;
  --amber-700: #a6420a;

  --teal-500: #0f7a6b;
  --teal-600: #0b5d52;
  --teal-100: #d9f2ee;

  --dark: #1a1108;
  --dark-2: #2a1a0d;

  --border: #f0ddc8;
  --card: #ffffff;

  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(46, 28, 10, 0.25);
}

* { box-sizing: border-box; }

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

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--amber-600); }
a:hover { color: var(--amber-700); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-600);
  background: var(--teal-100);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 244, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: radial-gradient(circle at 32% 28%, var(--amber-300), var(--amber-600) 70%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px -4px rgba(217, 95, 4, 0.6);
  flex-shrink: 0;
}

.nav .links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav .links a { text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.nav .links a:hover { color: var(--amber-600); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(217, 95, 4, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(217, 95, 4, 0.7); color: #fff; }

.btn.secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  box-shadow: none;
}
.btn.secondary:hover { background: rgba(255,255,255,0.16); color: #fff; }

.btn.small { padding: 8px 16px; font-size: 0.88rem; }
.btn.danger { background: linear-gradient(135deg, #e5484d, #b3261e); box-shadow: 0 8px 20px -8px rgba(179,38,30,0.6); }

/* ---------- layout helpers ---------- */
.section { padding: 64px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-narrow { max-width: 720px; margin: 0 auto; }
.section-tint { background: var(--amber-100); }

.flash-wrap { max-width: 1080px; margin: 20px auto 0; padding: 0 24px; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; font-weight: 500; }
.flash.error { background: #fdecea; color: #b3261e; }
.flash.success { background: #e2f5ea; color: #1e7d32; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,176,102,0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(15,122,107,0.35), transparent 40%),
    linear-gradient(160deg, var(--dark-2), var(--dark));
  color: #fff;
  text-align: center;
  padding: 88px 24px 80px;
  overflow: hidden;
}

.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.hero .icon-badge {
  width: 104px;
  height: 104px;
  margin: 0 auto 28px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 50px -14px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
}
.hero .icon-badge img { width: 100%; height: 100%; display: block; object-fit: cover; }

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 16px; color: #fff; }
.hero .accent { color: var(--amber-300); }

.hero p.sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- feature / step grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.feature-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- post cards (recently published + blog list) ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(46,28,10,0.35); color: var(--ink); }

.post-card h3 { margin: 0; font-size: 1.15rem; }
.post-card .snippet { color: var(--muted); font-size: 0.92rem; margin: 0; flex-grow: 1; }
.post-card .meta-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--teal-100);
  color: var(--teal-600);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.empty-state {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--muted);
  margin-top: 24px;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--amber-600); font-weight: 700; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list p { margin: 0 0 16px; color: var(--muted); }

/* ---------- generic card / forms (account, purchase, login, etc.) ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.auth-shell {
  min-height: calc(100vh - 200px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 800px) { .auth-shell { grid-template-columns: 1fr; } }

.auth-visual {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,176,102,0.25), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(15,122,107,0.35), transparent 45%),
    linear-gradient(160deg, var(--dark-2), var(--dark));
  color: #fff;
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-visual .icon-badge { width: 72px; height: 72px; border-radius: 20px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6); }
.auth-visual .icon-badge img { width: 100%; height: 100%; display: block; }
.auth-visual h2 { color: #fff; font-size: 1.8rem; margin: 0 0 12px; }
.auth-visual p { color: rgba(255,255,255,0.75); max-width: 360px; }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-form-side .card { width: 100%; max-width: 380px; box-shadow: none; border: none; }

form.stack { display: flex; flex-direction: column; gap: 14px; }

label.field-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: -6px; }

input, select {
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  background: var(--paper);
}
input:focus, select:focus { outline: none; border-color: var(--amber-500); }

.post-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.post-item h3 { margin: 0 0 4px; }
.post-item .meta { color: var(--muted); font-size: 0.9rem; }

/* ---------- pack cards (purchase page) ---------- */
.pack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.pack-row:last-child { border-bottom: none; }
.pack-row h3 { margin: 0; }
.pack-row .price { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 320px; }
.footer-brand strong { color: #fff; }
.footer-brand p { margin: 4px 0 0; font-size: 0.9rem; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.footer-links a { display: block; color: rgba(255,255,255,0.65); text-decoration: none; margin-bottom: 8px; font-size: 0.92rem; }
.footer-links a:hover { color: var(--amber-300); }

article .post-body { white-space: pre-wrap; font-size: 1.08rem; line-height: 1.75; }
