/* Cerenos brand system: Deep Ionite / Smoked Ochre / Alabaster Silk,
   Cormorant Garamond + Inter. Matches cerenos-policy/avalon-mod-bot's shared
   palette so every Cerenos surface (public site, product dashboards,
   compliance hub) reads as one family. Ornamentation echoes the real Cerenos
   mark (a flowing gold/silk ribbon on Ionite) - static hairline linework,
   not floating gradient blobs or hover-lift cards. */
:root {
  color-scheme: light;
  --ionite: #2E2A47;
  --ionite-2: #3E3A5E;
  --ionite-3: #211D36;
  --ochre: #C39B62;
  --ochre-2: #AD814A;
  --ochre-tint: #F1E3CD;
  --silk: #F7F4EF;
  --card: #FFFDF9;
  --ink: #241F38;
  --text-muted: #6B6580;
  --border: #E7E1D5;
  --on-ionite: #F7F4EF;
  --on-ionite-muted: #B9B3CE;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--silk);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, .brand-word { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; color: var(--ionite); margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, select, input, textarea { font-family: inherit; }

/* Static ornamental linework - fixed, full-viewport, pure SVG, no motion.
   Echoes the real logo's flowing ribbon curves at very low opacity; a quiet
   backdrop rather than decoration that competes with the content. */
.site-backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.site-backdrop svg { width: 100%; height: 100%; }

header.topbar, main, footer.site-footer { position: relative; z-index: 1; }

/* Reusable ornaments */
.ornament-divider { display: block; width: 100%; max-width: 320px; height: 22px; margin: 0 auto; color: var(--ochre); }
.ornament-corner { width: 40px; height: 40px; }

/* Nav */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 40px; background: var(--ionite); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 40px; width: 40px; object-fit: contain; }
.topbar .brand-word { color: var(--on-ionite); font-size: 23px; letter-spacing: .3px; }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--on-ionite-muted); text-decoration: none; font-size: 14px; letter-spacing: .2px; font-weight: 500; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.nav a:hover { color: var(--ochre); border-bottom-color: var(--ochre); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-actions a.login-link { color: var(--on-ionite-muted); text-decoration: none; font-size: 14px; }
.nav-actions a.login-link:hover { color: var(--ochre); }

/* Buttons - Iolite + Ochre, flat, no glow/lift */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px;
  border-radius: 7px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease; font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--ionite); color: var(--silk); }
.btn-primary:hover { background: var(--ionite-2); }
.btn-ochre { background: var(--ochre); color: #2A1D0E; }
.btn-ochre:hover { background: var(--ochre-2); color: #fff; }
.btn-outline { background: transparent; color: var(--ionite); border-color: var(--ionite); }
.btn-outline:hover { background: var(--ionite); color: var(--silk); }

main { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* Hero - ornamental frame around the headline, echoing a period poster */
.hero { text-align: center; padding: 96px 20px 70px; }
.hero-frame { max-width: 780px; margin: 0 auto; padding: 8px 36px 30px; border-top: 1px solid var(--ochre); border-bottom: 1px solid var(--ochre); position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 700; color: var(--ochre-2); margin: 0 0 16px; }
.hero h1 { font-size: 54px; line-height: 1.15; }
.hero-sub { max-width: 600px; margin: 24px auto 0; font-size: 17.5px; color: var(--text-muted); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 20px; }
.section-head h2 { font-size: 34px; margin-top: 8px; }
section.block { padding: 64px 0; }

/* Audience toggle */
.audience-toggle { display: flex; justify-content: center; gap: 6px; margin: 30px 0 6px; }
.audience-toggle button {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 9px 22px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; letter-spacing: .2px;
}
.audience-toggle button.active { background: var(--ionite); color: var(--silk); border-color: var(--ionite); }
.audience-view { display: none; }
.audience-view.show { display: block; }

/* Trust / architecture / steps */
.trust-grid, .step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.trust-card, .step-card { background: var(--card); padding: 30px 28px; }
.trust-index, .step-index {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid var(--ochre); color: var(--ochre-2); font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: 16px; margin-bottom: 16px; border-radius: 50%;
}
.trust-card h3, .step-card h3 { font-size: 20px; margin-bottom: 10px; }
.trust-card p, .step-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* Free tools callout */
.callout { border: 1px solid var(--border); padding: 34px 36px; text-align: center; background: var(--card); }
.callout h3 { font-size: 24px; margin-bottom: 10px; }
.callout p { color: var(--text-muted); max-width: 480px; margin: 0 auto 18px; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-toggle {
  width: 100%; text-align: left; background: none; border: 0; padding: 20px 4px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 16.5px; font-weight: 600; color: var(--ionite); font-family: 'Cormorant Garamond', serif;
}
.faq-toggle .sign { color: var(--ochre); font-size: 20px; font-family: 'Inter', sans-serif; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer p { padding: 0 4px 18px; color: var(--text-muted); font-size: 15px; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 0 auto; }
.about-grid p { color: var(--text-muted); font-size: 15.5px; }

/* Business / pricing */
.currency-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 40px; font-size: 13.5px; color: var(--text-muted); }
.currency-bar select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--ink); font-size: 13.5px; }

.product-tabs { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.product-tab {
  background: none; border: 0; padding: 12px 18px; cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 8px;
}
.product-tab.active { color: var(--ionite); border-bottom-color: var(--ochre); }
.product-tab .tab-badge { width: 22px; height: 22px; border-radius: 50%; background: var(--ochre-tint); border: 1px solid var(--ochre); display: inline-flex; align-items: center; justify-content: center; padding: 3px; }
.product-tab .tab-badge img { width: 100%; height: 100%; object-fit: contain; }
.tab-panel { display: none; }
.tab-panel.show { display: block; }
.tab-intro { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 32px; font-size: 15px; }

.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.package-card { border: 1px solid var(--border); background: var(--card); padding: 28px 26px; position: relative; }
.package-card.featured { border-color: var(--ochre); }
.popular-ribbon { position: absolute; top: -12px; left: 26px; background: var(--ochre); color: #2A1D0E; font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 4px 12px; text-transform: uppercase; }
.package-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--ochre-2); margin-bottom: 6px; }
.package-card h3 { font-size: 23px; margin-bottom: 8px; }
.package-card .muted { color: var(--text-muted); font-size: 14px; }
.price-stack { margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.price-row strong { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--ionite); }
.price-label { font-size: 12px; color: var(--text-muted); margin: 0; }
.price-note { font-size: 11.5px; color: var(--text-muted); margin: 0; }
.price-row.bundle-highlight { background: var(--ochre-tint); margin: 0 -26px; padding: 8px 26px; }
.feature-list { list-style: none; margin: 18px 0; padding: 0; font-size: 14px; color: var(--ink); }
.feature-list li { padding: 5px 0; }
.feature-list li::before { content: '\2713'; color: var(--ochre-2); font-weight: 700; margin-right: 8px; }
.package-cta { display: block; text-align: center; padding: 11px; border: 1.5px solid var(--ionite); color: var(--ionite); text-decoration: none; font-size: 13.5px; font-weight: 600; margin-top: 8px; }
.package-cta:hover { background: var(--ionite); color: var(--silk); }
.package-cta.primary-cta { background: var(--ionite); color: var(--silk); border-color: var(--ionite); }

.duluxe-hero { border: 1.5px solid var(--ochre); background: var(--card); padding: 40px; position: relative; margin-bottom: 40px; }
.duluxe-header { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.duluxe-title { font-size: 30px; }
.duluxe-price-block { text-align: right; }
.duluxe-price { font-family: 'Cormorant Garamond', serif; font-size: 40px; color: var(--ionite); }
.duluxe-equiv { font-size: 13px; color: var(--text-muted); }
.duluxe-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin: 26px 0; }
.duluxe-feat { font-size: 14px; }
.duluxe-feat .feat-check { color: var(--ochre-2); font-weight: 700; margin-right: 8px; }
.duluxe-cta { max-width: 320px; margin: 0 auto; }

.registration-note { text-align: center; font-size: 13.5px; color: var(--text-muted); border: 1px dashed var(--border); padding: 14px; margin-top: 36px; }

.table-scroll { width: 100%; overflow-x: auto; margin-top: 30px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.compare-table th, .compare-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.compare-table th { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--ionite); font-weight: 600; }
.compare-table td.bundle-cell { background: var(--ochre-tint); }

/* CTA banner - solid Ionite, Ochre rule + accents (no gradient bloom) */
.cta-banner { margin: 0 0 90px; padding: 56px 40px; text-align: center; color: var(--silk); background: var(--ionite); border-top: 3px solid var(--ochre); border-bottom: 3px solid var(--ochre); }
.cta-banner h2 { color: var(--silk); font-size: 32px; }
.cta-banner p { color: var(--on-ionite-muted); margin: 12px 0 26px; }
.cta-banner .hero-actions { margin-top: 0; }

/* Simple centered message panel (checkout/onboarding placeholders) */
.message-panel { text-align: center; padding: 120px 20px 140px; }
.message-panel h1 { font-size: 38px; }
.message-panel p { max-width: 520px; margin: 20px auto 30px; color: var(--text-muted); font-size: 17px; }

/* Footer */
.site-footer { background: var(--ionite-3); color: var(--on-ionite-muted); padding: 48px 32px 30px; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.footer-brand img { height: 30px; width: 30px; object-fit: contain; }
.footer-brand .brand-word { color: var(--silk); font-size: 21px; }
.footer-products { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.footer-products a { display: flex; align-items: center; gap: 8px; color: var(--on-ionite-muted); text-decoration: none; font-size: 13px; border: 1px solid rgba(247,244,239,0.18); padding: 7px 14px 7px 7px; border-radius: 999px; }
.footer-products a:hover { border-color: var(--ochre); color: var(--ochre); }
.footer-products .badge { width: 26px; height: 26px; border-radius: 50%; background: var(--silk); display: flex; align-items: center; justify-content: center; padding: 4px; }
.footer-products .badge img { width: 100%; height: 100%; object-fit: contain; }
.site-footer nav { display: flex; gap: 20px; justify-content: center; margin: 4px 0 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--on-ionite-muted); text-decoration: none; font-size: 13px; }
.site-footer nav a:hover { color: var(--ochre); }
.site-footer p { font-size: 12.5px; margin: 0; color: var(--on-ionite-muted); }

@media (max-width: 900px) {
  .trust-grid, .step-grid, .package-grid, .about-grid, .duluxe-features { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  .topbar { padding: 14px 20px; }
  .nav { display: none; }
  main { padding: 0 20px; }
  .hero { padding: 70px 10px 50px; }
  .hero-frame { padding: 8px 18px 24px; }
  .trust-grid, .step-grid, .package-grid, .about-grid, .duluxe-features { grid-template-columns: 1fr; }
  .duluxe-header { flex-direction: column; }
  .duluxe-price-block { text-align: left; }
  .section-head h2 { font-size: 27px; }
}
