/* ═══════════════════════════════════════════════════════════════
   LUMINARY , Quarterly on Cream design system
   Single shared stylesheet for all marketing/utility pages.
   Trust pages (privacy, terms, about, contact) deliberately keep
   their dark contractual style and do NOT use this.
   ═══════════════════════════════════════════════════════════════ */

*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{overflow-x:hidden;-webkit-text-size-adjust:100%}
body{
  font-family:'Jost','Helvetica Neue',sans-serif;
  background:#f7f4ef; color:#1c2b3a;
  font-size:17px; line-height:1.62; letter-spacing:-.005em;
  min-height:100vh;
}
img{max-width:100%;height:auto;display:block}
a{color:#9a7423;text-decoration:none}
a:hover{filter:brightness(1.15)}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,select,textarea,button{font-size:16px}
input,select,textarea{font-family:inherit}

/* Section ground tones , subtle paper variations create rhythm */
.paper-warm{background:#f1ece2;color:#1c2b3a}
.paper-deep{background:#1c2b3a;color:#f7f4ef}
.paper-deep a{color:#c8963e}
.muted{color:rgba(28,43,58,.62)}

.wrap{max-width:1080px;margin:0 auto;padding:0 28px}
.wrap-narrow{max-width:680px;margin:0 auto;padding:0 28px}
.wrap-wide{max-width:1200px;margin:0 auto;padding:0 28px}

/* ── Logo bar (no nav , funnel rule) ───────────────────────── */
.logo-bar{padding:32px 28px 20px;text-align:center;background:#f7f4ef;border-bottom:1px solid rgba(28,43,58,.08)}
.logo{
  font-family:Georgia,serif; font-size:18px; font-weight:400;
  letter-spacing:.5px; color:#1c2b3a; display:inline-block;
}
.logo .spark{color:#c8963e;margin-right:6px;font-size:14px;display:inline-block;transform:translateY(-1px)}
.logo .small{font-size:9.5px; letter-spacing:4px; text-transform:uppercase; color:rgba(28,43,58,.5); display:block; margin-top:6px; font-family:'Jost',sans-serif}

/* ── Top chrome (sticky header for app screens) ─────────────── */
.chrome{
  position:sticky; top:0; z-index:100;
  background:#1c2b3a; color:#f7f4ef;
  border-bottom:1px solid rgba(247,244,239,.06);
}
.chrome-inner{
  max-width:1200px; margin:0 auto;
  padding:14px 28px; display:flex; align-items:center; gap:20px;
}
.brand{display:flex; flex-direction:column; line-height:1; flex-shrink:0}
.brand-name{font-family:Georgia,serif; font-size:18px; color:#f7f4ef; letter-spacing:.3px}
.brand-name .spark{color:#c8963e; margin-right:5px}
.brand-tag{font-size:8.5px; letter-spacing:3px; color:rgba(247,244,239,.4); text-transform:uppercase; margin-top:4px; font-family:'Jost',sans-serif}
.chrome a.brand-name{color:#f7f4ef}

/* ── Display headline (hero serif) ──────────────────────────── */
.display{
  font-family:Georgia,serif; font-weight:400;
  font-size:clamp(48px,8vw,96px); line-height:1.04;
  letter-spacing:-.025em;
  color:#1c2b3a;
}
.display em{color:#c8963e; font-style:italic; font-weight:400}
.display .line{display:block}
.display .small-cap{
  display:block; font-family:'Jost',sans-serif;
  font-size:clamp(12px,1.4vw,15px); letter-spacing:6px;
  text-transform:uppercase; color:rgba(28,43,58,.55);
  font-weight:500; margin-top:24px;
}
.paper-deep .display{color:#f7f4ef}
.paper-deep .display .small-cap{color:rgba(247,244,239,.5)}

.lede{
  font-family:Georgia,serif; font-style:italic;
  font-size:clamp(17px,1.9vw,21px);
  color:rgba(28,43,58,.78); line-height:1.6;
  max-width:600px; margin:32px auto 40px;
}
.lede strong{color:#1c2b3a; font-style:normal; font-weight:600}
.paper-deep .lede{color:rgba(247,244,239,.75)}
.paper-deep .lede strong{color:#f7f4ef}

/* ── Kicker (small-caps section label) ──────────────────────── */
.kicker{
  font-family:'Jost',sans-serif; font-size:10.5px;
  letter-spacing:5px; text-transform:uppercase;
  color:#c8963e; font-weight:600;
}

/* ── CTA primary ─────────────────────────────────────────────── */
.cta-primary{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:56px; padding:0 36px;
  background:#1c2b3a; color:#f7f4ef;
  font-family:'Jost',sans-serif;
  font-size:13.5px; font-weight:700; letter-spacing:1.5px;
  text-transform:uppercase;
  border-radius:14px;
  transition:background .12s, color .12s, transform .12s, box-shadow .12s;
  box-shadow:0 4px 16px rgba(28,43,58,.12);
}
.cta-primary:hover{background:#c8963e; color:#1c2b3a; transform:translateY(-2px); box-shadow:0 12px 32px rgba(200,150,62,.35)}
.paper-deep .cta-primary{background:#c8963e; color:#1c2b3a; box-shadow:0 10px 28px rgba(200,150,62,.3)}
.paper-deep .cta-primary:hover{background:#f7f4ef; color:#1c2b3a}

.cta-micro{
  font-family:Georgia,serif; font-style:italic;
  font-size:13.5px; color:rgba(28,43,58,.5);
  margin-top:18px;
}
.paper-deep .cta-micro{color:rgba(247,244,239,.5)}
.cta-micro .pipe{margin:0 8px; opacity:.4}

/* ── Editorial column (narrow body text) ────────────────────── */
.editorial{padding:104px 0; background:#f7f4ef}
.editorial-kicker{
  font-family:'Jost',sans-serif; font-size:10px;
  letter-spacing:4px; text-transform:uppercase; color:#c8963e;
  text-align:center; margin-bottom:32px; font-weight:600;
}
.editorial h2{
  font-family:Georgia,serif; font-weight:400;
  font-size:clamp(32px,4.6vw,46px); line-height:1.1;
  text-align:center; margin-bottom:32px; color:#1c2b3a; letter-spacing:-.02em;
}
.editorial h2 em{color:#c8963e; font-style:italic}
.editorial p.lead{
  font-family:Georgia,serif; font-style:italic;
  font-size:21px; line-height:1.55;
  margin-bottom:28px; color:#1c2b3a;
}
.editorial p{
  font-family:Georgia,serif;
  font-size:18px; line-height:1.72;
  margin-bottom:24px; color:rgba(28,43,58,.85);
}
.editorial p strong{color:#1c2b3a; font-weight:600}
.editorial p em{color:#9a7423; font-style:italic}
.editorial .signoff{
  font-family:Georgia,serif; font-style:italic;
  font-size:16px; color:rgba(28,43,58,.55);
  margin-top:48px; text-align:center;
}

/* ── Card (generic info panel on cream) ─────────────────────── */
.card{
  background:#fff; border-radius:14px; padding:32px;
  box-shadow:0 8px 24px rgba(28,43,58,.06);
  border:1px solid rgba(28,43,58,.06);
  margin-bottom:24px;
}
.card h3{
  font-family:Georgia,serif; font-weight:400;
  font-size:24px; color:#1c2b3a; margin-bottom:12px;
  letter-spacing:-.005em;
}
.card p{
  font-family:Georgia,serif;
  font-size:16px; line-height:1.65;
  color:rgba(28,43,58,.78);
  margin-bottom:14px;
}

/* ── Form fields ────────────────────────────────────────────── */
.field{margin-bottom:18px}
.field label{
  display:block; font-family:'Jost',sans-serif;
  font-size:11px; letter-spacing:1.5px; text-transform:uppercase;
  font-weight:600; color:rgba(28,43,58,.65);
  margin-bottom:8px;
}
.field input, .field select, .field textarea{
  width:100%; padding:14px 16px; min-height:48px;
  background:#fff; border:1px solid rgba(28,43,58,.14);
  border-radius:10px; color:#1c2b3a;
  font-family:Georgia,serif; font-size:16px; line-height:1.4;
  transition:border-color .12s, box-shadow .12s;
}
.field textarea{min-height:140px; resize:vertical; line-height:1.5}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:#c8963e;
  box-shadow:0 0 0 3px rgba(200,150,62,.15);
}
.field input::placeholder, .field textarea::placeholder{
  color:rgba(28,43,58,.4); font-style:italic;
}
.field-error{
  font-family:Georgia,serif; font-style:italic; font-size:14px;
  color:#a8341e; margin-top:6px;
}
.field-help{
  font-family:Georgia,serif; font-style:italic; font-size:14px;
  color:rgba(28,43,58,.55); margin-top:6px;
}

/* ── Buttons (secondary, ghost, danger) ─────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:48px; padding:0 24px;
  font-family:'Jost',sans-serif; font-weight:600;
  font-size:13px; letter-spacing:1.2px; text-transform:uppercase;
  border-radius:12px;
  transition:background .12s, color .12s, transform .12s;
  cursor:pointer;
}
.btn-primary{background:#1c2b3a; color:#f7f4ef}
.btn-primary:hover{background:#c8963e; color:#1c2b3a}
.btn-secondary{
  background:transparent; color:#1c2b3a;
  border:1px solid rgba(28,43,58,.18);
}
.btn-secondary:hover{border-color:#c8963e; color:#c8963e}
.btn-ghost{
  background:transparent; color:rgba(28,43,58,.6);
}
.btn-ghost:hover{color:#1c2b3a}
.btn-danger{
  background:transparent; color:#a8341e;
  border:1px solid rgba(168,52,30,.3);
}
.btn-danger:hover{background:#a8341e; color:#fff}
.btn-block{display:flex; width:100%}

/* ── Page heading (utility pages, smaller than .display) ────── */
.page-head{
  text-align:center; padding:64px 0 40px; background:#f7f4ef;
}
.page-head .kicker{margin-bottom:16px; display:inline-block}
.page-head h1{
  font-family:Georgia,serif; font-weight:400;
  font-size:clamp(36px,5.2vw,56px); line-height:1.06;
  color:#1c2b3a; letter-spacing:-.02em; margin-bottom:18px;
}
.page-head h1 em{color:#c8963e; font-style:italic}
.page-head p.sub{
  font-family:Georgia,serif; font-style:italic;
  font-size:18px; color:rgba(28,43,58,.7);
  max-width:560px; margin:0 auto;
}

/* ── Sticky mobile CTA ──────────────────────────────────────── */
.sticky-cta{
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:800;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));
  background:linear-gradient(180deg,rgba(247,244,239,.7),rgba(247,244,239,.98));
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-top:1px solid rgba(28,43,58,.1);
}
.sticky-cta .cta-primary{display:block; width:100%; min-height:52px; padding:0; font-size:14px}

/* ── Footer ─────────────────────────────────────────────────── */
footer{
  padding:56px 28px; text-align:center;
  background:#1c2b3a;
  border-top:1px solid rgba(247,244,239,.06);
  font-size:11px; letter-spacing:2px; text-transform:uppercase;
  color:rgba(247,244,239,.45);
}
footer a{
  color:rgba(247,244,239,.6); margin:0 14px;
  letter-spacing:2px;
}
footer a:hover{color:#c8963e}
footer .copy{margin-top:14px; font-size:10px; color:rgba(247,244,239,.3); letter-spacing:1.5px}
footer .spark{color:#c8963e; margin-right:6px}

/* ── Plan-aware visibility ──────────────────────────────────── */
body.plan-practice .hide-on-practice,
body.plan-wisdom .hide-on-wisdom,
body.plan-lifetime .hide-on-lifetime{display:none !important}
body.plan-free .show-paid-only,
body.plan-free .hide-on-free{display:none !important}

body:not(.plan-practice):not(.plan-wisdom):not(.plan-lifetime) .show-paid-only{display:none !important}

/* Lifetime users: never show pricing/upsell on any page */
body.plan-lifetime .pricing,
body.plan-lifetime .upsell,
body.plan-lifetime .upgrade-banner,
body.plan-lifetime .sticky-cta{display:none !important}

/* ── Mobile breakpoints ─────────────────────────────────────── */
@media(max-width:760px){
  .sticky-cta{display:block}
  body.has-sticky-cta{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
  .editorial,.page-head{padding-left:0; padding-right:0}
  .card{padding:22px}
  .chrome-inner{padding:12px 16px; gap:10px}
  .brand-tag{display:none}
}

@media(max-width:480px){
  .display{font-size:42px}
  .lede{font-size:17px}
  .editorial p.lead{font-size:18px}
  .editorial p{font-size:16px}
}

@media (prefers-reduced-motion: reduce){
  *{transition:none!important; animation:none!important}
}

/* ── Print: clean, no chrome ────────────────────────────────── */
@media print{
  .chrome,.sticky-cta,footer{display:none}
  body{background:#fff; color:#000}
}
