/* ════════════════════════════════════════════════════════════
   Elementyl theme: dark and atmospheric, in the family of
   voiceofai.io and annecantera.com. Loaded after each page's own
   styles so every page shares one look.
   Impeccable craft floor: contrast >= 4.5:1, soft offset shadows,
   one moving element (the logo mark), themed browser surfaces.
   ════════════════════════════════════════════════════════════ */

:root {
  --ink: #0d060c;
  --ink-lift: rgba(255, 255, 255, 0.03);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  --hairline: rgba(232, 217, 206, 0.13);
  --text: #FAF8F6;
  --text-soft: #E8D9CE;
  --text-quiet: #CDBDB2;
  --coral: #E06A3A;
  --marigold: #FFAE0B;
  --berry: #692746;
  --action: #C2481F;

  /* remap the older page variables onto the dark theme */
  --text-primary: #FAF8F6;
  --text-secondary: #E8D9CE;
  --text-muted: #CDBDB2;
  --plum-deep: #FAF8F6;
  --plum: #FAF8F6;
  --plum-medium: #E8D9CE;
  --cream-dark: rgba(255, 255, 255, 0.03);
  --card-border: rgba(232, 217, 206, 0.13);
  --amber: #FFAE0B;
}

html { background: var(--ink); scrollbar-color: #692746 #160a14; }
body { background: transparent; color: var(--text); font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif; font-weight: 300; }

/* ── Atmosphere: fixed glows and stars behind everything (drawn by site.js) ── */
.atmosphere { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--ink); }
.atmosphere .glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.atmosphere .g1 { width: 940px; height: 940px; right: -220px; top: -280px; background: radial-gradient(circle, rgba(105, 39, 70, 0.55), transparent 70%); }
.atmosphere .g2 { width: 560px; height: 560px; left: -220px; top: 45%; background: radial-gradient(circle, rgba(224, 106, 58, 0.16), transparent 70%); }
.atmosphere .g3 { width: 520px; height: 520px; right: 8%; bottom: -220px; background: radial-gradient(circle, rgba(255, 174, 11, 0.09), transparent 70%); }
.atmosphere canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── The logo mark: the one moving element ── */
.mark {
  display: inline-block;
  background: linear-gradient(180deg, #692746 0%, #E06A3A 30%, #FFAE0B 52%, #E8D9CE 70%, #FFAE0B 85%, #E06A3A 100%);
  background-size: 100% 240%;
  -webkit-mask: url('/Frame%202.png') center / contain no-repeat;
  mask: url('/Frame%202.png') center / contain no-repeat;
  animation: markBreathe 14s ease-in-out infinite alternate;
}
@keyframes markBreathe { from { background-position: 50% 0%; } to { background-position: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { .mark { animation: none; } }

/* ── Header and footer ── */
.site-header { background: rgba(13, 6, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--hairline); }
.site-logo { gap: 12px; text-transform: none; letter-spacing: 0.01em; font-weight: 300; font-size: 21px; }
.site-logo .mark { width: 32px; height: 28px; flex: none; }
.site-header .button-primary,
.site-header .button-primary:visited { background: rgba(255, 255, 255, 0.04); border-color: rgba(250, 248, 246, 0.28); color: var(--text); }
.site-footer { background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--hairline); }
.site-footer-bottom { border-top-color: var(--hairline); }

/* ── Type ── */
h1, .page-title {
  font-weight: 200 !important;
  font-size: clamp(38px, 6.2vw, 84px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
  color: var(--text) !important;
  max-width: 15ch;
}
h1 b, .page-title b { font-weight: 500; }
.section h2, .page-content h2, .section > .container > h2 {
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  border-bottom: 0;
}
h3 { color: var(--text); font-weight: 500; }
p { color: var(--text-soft); }
.hero-subhead, .section-intro { color: var(--text-soft) !important; font-weight: 300; }

/* ── Buttons on dark ── */
.button-secondary,
.button-secondary:visited { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(250, 248, 246, 0.28); color: var(--text); backdrop-filter: blur(8px); }
.button-secondary:hover { background: var(--text); color: var(--ink); }
.button:focus-visible, .text-link:focus-visible, a:focus-visible { outline: 3px solid var(--marigold) !important; outline-offset: 3px; box-shadow: none; }

/* ── Sections ── */
.section, .page-hero, .cta { background: transparent !important; }
.section-alt { background: var(--ink-lift) !important; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.page-hero { padding: 168px 40px 72px !important; text-align: left !important; max-width: 1280px; margin: 0 auto; }
.page-hero .container { padding: 0; }
.last-updated, .page-meta { color: var(--text-quiet) !important; }
.page-subtitle { color: var(--text-soft) !important; }

/* ── Glass surfaces: cards, offers, callouts ── */
.card, .offer, .direct-answer, .principle-card, .steps li, .chips li {
  background: var(--glass) !important;
  border: 1px solid var(--hairline) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card, .offer, .direct-answer, .principle-card, .steps li { border-radius: 18px !important; }
.card p, .card-desc, .card-for, .offer p, .direct-answer p, .principle-body { color: var(--text-soft) !important; }
.direct-answer p { color: var(--text) !important; }
.card h3, .offer h3, .principle-card h3 { color: var(--text) !important; }
.card .card-when { color: var(--text) !important; }
.card .card-name { color: var(--text-quiet) !important; border-color: var(--hairline) !important; }
.card-price, .price-line, .offer-price, .card p.card-price { color: var(--text) !important; border-color: var(--hairline) !important; }
.offer-price-lg span { color: var(--text-soft) !important; }
.inclusions li { color: var(--text-soft) !important; }
.inclusions li::before, .check-list li::before { background: var(--coral) !important; }
.check-list li { color: var(--text) !important; border-color: var(--hairline) !important; }
.class-list li { border-color: var(--hairline) !important; }
.class-list h3 { color: var(--text) !important; }
.class-list p { color: var(--text-soft) !important; }
.steps li { color: var(--text-soft) !important; }
.steps strong { color: var(--text) !important; }
.steps li::before { background: transparent !important; border: 1px solid var(--coral); color: var(--text) !important; }
.question h3 { color: var(--text) !important; }
.question p, .fine-print, .cta-note { color: var(--text-soft) !important; }

/* ── Links ── */
.text-link { color: var(--text) !important; text-decoration-color: var(--marigold) !important; }
.text-link:hover { text-decoration-color: var(--text) !important; }
.page-content a, .cta-note a { color: var(--text) !important; text-decoration-color: var(--coral) !important; }

/* ── Long-form pages (FAQ, articles, legal) ── */
.page-content p, .page-content li, .faq-a, .intro-para, .section p, .section ul li { color: var(--text-soft) !important; }
.page-content h2 { padding-bottom: 0; margin-top: 64px; }
.faq-q { color: var(--text) !important; }
.faq-item { border-color: var(--hairline) !important; }
.section ul li::before { background: var(--coral) !important; }
.version-table th, .version-table td { color: var(--text-soft) !important; border-color: var(--hairline) !important; }
.version-table th { color: var(--text) !important; }
.principle-num { color: var(--marigold) !important; }
.closing-statement, .prohibited { background: var(--ink-lift) !important; border-color: var(--hairline) !important; color: var(--text-soft) !important; }

/* ── About page details ── */
.cred-tag { color: var(--text-soft) !important; border-color: var(--hairline) !important; }
.cred-role { color: var(--marigold) !important; }
.btn-linkedin { color: var(--text) !important; border-color: rgba(250, 248, 246, 0.28) !important; border-radius: 50px !important; }

@media (max-width: 900px) {
  .page-hero { padding: 120px 20px 48px !important; }
  .site-logo { font-size: 18px; }
  .site-logo .mark { width: 26px; height: 23px; }
}

/* Narrow reading sections keep their short line length but share the page's left edge */
.section:not(.cta):not(.contact) > .container.narrow { max-width: 1200px; }
.section:not(.cta):not(.contact) > .container.narrow > * { max-width: 820px; }

/* ── One left edge on every page ──
   Every page uses the same 1200px grid. Reading pages keep a shorter
   line length, but start on the same left edge as everything else. */
.page-hero { max-width: 1280px !important; padding-left: 40px !important; padding-right: 40px !important; }
.page-hero > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.page-hero > .page-title, .page-hero > p { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: 0 !important; }
.wrapper { max-width: 1280px !important; padding: 0 40px !important; margin: 0 auto !important; }
.wrapper > * { max-width: 780px; }
.page-content { max-width: 1280px !important; margin: 0 auto !important; padding-left: 40px !important; padding-right: 40px !important; }
.page-content > * { max-width: 780px; }
.wrapper .page-content { padding-left: 0 !important; padding-right: 0 !important; }

/* Closing sections line up left too */
.cta, .contact { text-align: left !important; }
.cta .button-row, .contact .button-row { justify-content: flex-start !important; }
.cta .cta-note, .contact p { margin-left: 0 !important; margin-right: 0 !important; }
.cta .container, .contact .container { max-width: 1200px !important; }

@media (max-width: 900px) {
  .page-hero, .wrapper, .page-content, main > section.section { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ── Phone spacing scale ──
   One rhythm on every page: 24px under a section heading, 32px under its
   intro line, 24px inside every card, 16px between stacked cards,
   48px between clauses on long reading pages. */
@media (max-width: 900px) {
  main > section h2, .page-content h2 { margin-bottom: 24px !important; }
  main > section h2 + .section-intro, main > section h2 + p { margin-top: -8px !important; margin-bottom: 32px !important; }
  .card, .offer, .principle-card, .direct-answer, .steps li { padding: 24px !important; }
  .card-grid, .ways, .audience-detail, .steps { gap: 16px !important; }
  .principle-card { margin-bottom: 16px !important; }
  .page-content h2 { margin-top: 48px !important; }
  .page-content .section h2 { margin-top: 0 !important; }
  .page-content .section { margin-bottom: 48px !important; }
}
