/* Lumen Domus Schola — marketing site styles.
   Palette + type mirror the app's design system (src/theme/index.ts):
   teal #2A6A5E · tealDark #1E5048 · tealLight #E8F2EF · gold #F4D88C ·
   goldDark #C49A2A · beige #F5EDE4 · parchment #FAF6EF · terracotta #E07A5F ·
   charcoal #2C2C2C · mutedForeground #8A7A6A · radius 14px. */

:root {
  --teal: #2A6A5E;
  --teal-dark: #1E5048;
  --teal-light: #E8F2EF;
  --gold: #F4D88C;
  --gold-dark: #C49A2A;
  --beige: #F5EDE4;
  --parchment: #FAF6EF;
  --terracotta: #E07A5F;
  --charcoal: #2C2C2C;
  --muted: #EDE4D5;
  --muted-fg: #8A7A6A;
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--parchment);
  line-height: 1.6;
}

img { max-width: 100%; }

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--teal);
  color: var(--parchment);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--parchment);
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FBF4EB; /* matches the logo art's baked-in background */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-badge img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

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

.nav-links a {
  color: var(--teal-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  background: var(--teal);
  color: var(--parchment);
  text-align: center;
  padding: 72px 0 88px;
}

.hero-seal {
  width: 228px;
  height: 228px;
  border-radius: 50%;
  background: #FBF4EB; /* matches the logo art's baked-in background */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.hero-seal img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 10px;
}

.hero .tagline {
  color: var(--gold);
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero p.lede {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--teal-light);
  font-size: 1.12rem;
}

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--teal-dark);
}

.btn-outline {
  background: transparent;
  color: var(--parchment);
  border: 2px solid rgba(250, 246, 239, 0.55);
}

.coming-soon-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(232, 242, 239, 0.75);
}

/* ---------- Sections ---------- */

.section { padding: 76px 0; }

.section-alt { background: var(--beige); }

.kicker {
  color: var(--gold-dark);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  text-align: center;
  margin-bottom: 14px;
}

.section-lede {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--muted-fg);
  font-size: 1.05rem;
}

/* ---------- Feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid rgba(42, 106, 94, 0.14);
  border-radius: var(--radius);
  padding: 26px;
}

.card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--teal-light);
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

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

.pill {
  display: inline-block;
  background: var(--gold);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid rgba(42, 106, 94, 0.14);
  border-radius: var(--radius);
  padding: 26px;
  border-left: 5px solid var(--teal);
}

.step:nth-child(2) { border-left-color: var(--gold-dark); }
.step:nth-child(3) { border-left-color: var(--terracotta); }

.step .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--teal);
  display: block;
  margin-bottom: 6px;
}

.step:nth-child(2) .num { color: var(--gold-dark); }
.step:nth-child(3) .num { color: var(--terracotta); }

.step h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

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

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

.price-card {
  background: #fff;
  border: 1px solid rgba(42, 106, 94, 0.14);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.price-card.featured {
  border: 2px solid var(--teal);
  position: relative;
}

.price-card.featured .flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--parchment);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--teal);
}

.price small {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted-fg);
}

.price-alt {
  color: var(--muted-fg);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.price-card ul {
  list-style: none;
  text-align: left;
  margin: 18px 0 0;
}

.price-card li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A6A5E' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}

.pricing-note {
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.85rem;
  margin-top: 26px;
}

/* ---------- Signup band ---------- */

.signup {
  background: var(--teal);
  color: var(--parchment);
  text-align: center;
  padding: 64px 0;
}

.signup h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin-bottom: 10px;
}

.signup p {
  color: var(--teal-light);
  max-width: 540px;
  margin: 0 auto 28px;
}

.signup-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.signup-form input {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 20px;
  border-radius: 999px;
  border: 2px solid rgba(250, 246, 239, 0.4);
  background: rgba(250, 246, 239, 0.1);
  color: var(--parchment);
  min-width: 280px;
}

.signup-form input::placeholder { color: rgba(232, 242, 239, 0.7); }

.signup-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.signup-confirm {
  margin-top: 18px;
  color: var(--gold);
  font-weight: 500;
  display: none;
}

.signup-msg {
  flex-basis: 100%;
  margin: 10px 0 0;
  font-weight: 500;
  min-height: 1.4em;
}

.signup .signup-msg { color: var(--gold); }

/* Light variant for the form on cream/teal-light cards (blog post CTA) */
.signup-form-light {
  justify-content: flex-start;
  margin-top: 16px;
}

.signup-form-light input {
  background: var(--parchment);
  border-color: rgba(42, 106, 94, 0.35);
  color: var(--charcoal);
}

.signup-form-light input::placeholder { color: rgba(42, 62, 58, 0.5); }

.signup-form-light .signup-msg { color: var(--teal); }

/* ---------- Illustration bands ---------- */

.img-band {
  display: block;
  line-height: 0;
}

.img-band img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}

/* Keep the top of the artwork in frame when the band crops it (faces up top) */
.img-band img.img-align-top { object-position: center top; }

.post-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 26px 0 6px;
}

.post-card-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-dark);
  color: var(--teal-light);
  padding: 36px 0;
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--teal-light);
  text-decoration: none;
  margin-left: 20px;
}

.site-footer a:first-child { margin-left: 0; }

.site-footer a:hover { color: var(--gold); }

/* ---------- Inner pages (privacy / support) ---------- */

.page-header {
  background: var(--teal);
  color: var(--parchment);
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.page-header p {
  color: var(--teal-light);
  margin-top: 6px;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 76px;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 38px 0 12px;
  text-align: left;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li { color: #4a4038; margin-bottom: 12px; }

.prose ul { padding-left: 24px; margin-bottom: 12px; }

.prose .notice {
  background: var(--beige);
  border-left: 5px solid var(--gold-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.prose a { color: var(--teal); font-weight: 500; }

.faq-item {
  background: #fff;
  border: 1px solid rgba(42, 106, 94, 0.14);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
}

.faq-item h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.faq-item p { margin-bottom: 0; }

/* ---------- Blog ---------- */

.post-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 76px;
}

.post-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(42, 106, 94, 0.14);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--charcoal);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(42, 106, 94, 0.12);
}

.post-card h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.post-card .post-meta { margin-bottom: 10px; }

.post-card p { color: var(--muted-fg); font-size: 0.98rem; }

.post-card .read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.92rem;
}

.post-meta {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose .post-lede {
  font-size: 1.15rem;
  color: #4a4038;
}

.prose h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 26px 0 8px;
}

.prose blockquote {
  border-left: 5px solid var(--gold);
  background: var(--beige);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 20px;
  margin: 18px 0;
  font-style: italic;
  color: #4a4038;
}

.prose figure {
  margin: 26px 0;
}

.prose figure img,
.section-figure img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.prose figcaption {
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-top: 8px;
  text-align: center;
}

.post-cta {
  background: var(--teal-light);
  border: 1px solid rgba(42, 106, 94, 0.2);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 36px;
}

.post-cta h2 { margin-top: 0; }

@media (max-width: 560px) {
  .nav { flex-wrap: wrap; justify-content: center; }
  .brand-name { font-size: 1.1rem; white-space: nowrap; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.85rem; }
  .hero { padding: 52px 0 64px; }
}
