/* ==========================================================
   Hypatian theme layer
   Loaded AFTER main.css. Overrides the OnePage template's
   colors and fonts without editing main.css itself.
   ========================================================== */

:root {
  --default-font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --heading-font: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --nav-font: "Source Sans 3", system-ui, sans-serif;

  --ink-0: #070a12;
  --ink-1: #0b1020;
  --ink-2: #111830;
  --ink-3: #1a2340;
  --gold: #c9a24a;
  --gold-soft: #e2c77f;
  --parchment: #e8e1cf;

  --background-color: var(--ink-1);
  --default-color: #cfc8b6;
  --heading-color: #f3ead3;
  --accent-color: var(--gold);
  --surface-color: var(--ink-2);
  --contrast-color: #0b1020;

  --nav-color: #e8e1cf;
  --nav-hover-color: var(--gold-soft);
  --nav-mobile-background-color: var(--ink-2);
  --nav-dropdown-background-color: var(--ink-2);
  --nav-dropdown-color: #e8e1cf;
  --nav-dropdown-hover-color: var(--gold-soft);
}

.light-background {
  --background-color: #0e1528;
  --surface-color: #141d36;
}

.accent-background {
  --background-color: #15110a;
  --default-color: #e8e1cf;
  --heading-color: #f3ead3;
  --accent-color: var(--gold);
  --surface-color: #221b0f;
  --contrast-color: #0b1020;
}

body { background: var(--ink-1); font-size: 17px; }
::selection { background: var(--gold); color: var(--ink-1); }
a { color: var(--gold-soft); }
a:hover { color: #f5dfa0; }

h1, h2, h3, h4, h5, h6 { letter-spacing: .01em; }

/* ---------- Header ---------- */
.header {
  --background-color: rgba(7, 10, 18, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 74, .18);
}
.header .logo { gap: 12px; }
.header .logo svg { width: 38px; height: 38px; flex: none; }
.header .logo h1 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--parchment);
}
.header .btn-getstarted,
.header .btn-getstarted:focus {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  border-radius: 2px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 575px) { .header .btn-getstarted { display: none; } .header .logo h1 { font-size: 24px; } }
.header .btn-getstarted:hover { background: var(--gold); color: var(--ink-1); }
.navmenu a, .navmenu a:focus { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Section titles ---------- */
.section-title h2 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 44px;
  text-transform: none;
}
.section-title h2:after { background: var(--gold); }
.section-title h2:before { background: rgba(201, 162, 74, .35); }
.section-title p { color: #a9a293; max-width: 760px; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - 80px); background: radial-gradient(ellipse at 50% 30%, #17213f 0%, var(--ink-0) 70%); }
.hero:before { background: radial-gradient(ellipse at 50% 40%, rgba(11,16,32,.25) 0%, rgba(7,10,18,.85) 75%); }
.hero .conics {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  opacity: .55;
}
.hero h1 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 72px;
  line-height: 1.05;
  color: var(--parchment);
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p.lead-in { font-size: 21px; line-height: 1.55; color: #bfb8a6; max-width: 760px; margin: 22px auto 0; }
.hero .btn-get-started {
  background: var(--gold);
  color: var(--ink-1);
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 14px 34px;
  margin: 30px 8px 0;
}
.hero .btn-get-started:hover { background: var(--gold-soft); color: var(--ink-1); }
.hero .btn-ghost {
  display: inline-block;
  border: 1px solid rgba(232, 225, 207, .4);
  color: var(--parchment);
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 13px 30px;
  margin: 30px 8px 0;
  transition: .3s;
}
.hero .btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.hero .icon-box {
  background: rgba(17, 24, 48, .72);
  border: 1px solid rgba(201, 162, 74, .16);
  border-radius: 4px;
  box-shadow: none;
}
.hero .icon-box:hover { border-color: rgba(201, 162, 74, .55); transform: translateY(-4px); }
.hero .icon-box .icon i { color: var(--gold); }
.hero .icon-box .title { font-family: var(--heading-font); font-size: 24px; font-weight: 600; color: var(--parchment); }
.hero .icon-box .description { color: #aaa391; }
@media (max-width: 992px) { .hero h1 { font-size: 44px; line-height: 1.1; } .hero p.lead-in { font-size: 18px; } }

/* ---------- Stats ---------- */
.stats .stats-item { background: transparent; border: 1px solid rgba(201,162,74,.18); border-radius: 4px; padding: 30px 10px; }
.stats .stats-item span { font-family: var(--heading-font); font-size: 56px; font-weight: 600; color: var(--gold-soft); }
.stats .stats-item p { color: #a9a293; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }

/* ---------- Story timeline ---------- */
.timeline { position: relative; margin: 10px 0 0; padding-left: 34px; border-left: 1px solid rgba(201,162,74,.35); }
.timeline .t-item { position: relative; margin-bottom: 34px; }
.timeline .t-item:before {
  content: ""; position: absolute; left: -41px; top: 8px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink-1); border: 2px solid var(--gold);
}
.timeline .t-year { font-family: var(--heading-font); font-size: 30px; font-weight: 600; color: var(--gold-soft); line-height: 1; }
.timeline h4 { font-family: var(--heading-font); font-size: 24px; margin: 6px 0 6px; }
.timeline p { margin: 0; color: #bdb6a4; }

.hypatia-card {
  background: linear-gradient(160deg, #141d36, #0d1326);
  border: 1px solid rgba(201,162,74,.25);
  border-radius: 4px;
  padding: 38px 36px;
}
.hypatia-card blockquote {
  font-family: var(--heading-font);
  font-size: 28px;
  font-style: italic;
  line-height: 1.3;
  color: var(--parchment);
  margin: 18px 0 18px;
}
.hypatia-card .small { color: #918a7a; }

/* ---------- Exam / about-alt ---------- */
.about-alt .content h3 { font-family: var(--heading-font); font-size: 34px; }
.about-alt .content ul i { color: var(--gold); }
.exam-layer {
  border: 1px solid rgba(201,162,74,.18);
  border-radius: 4px;
  padding: 26px 24px;
  height: 100%;
  background: var(--surface-color);
}
.exam-layer .num { font-family: var(--heading-font); font-size: 46px; color: var(--gold); line-height: 1; }
.exam-layer h4 { font-family: var(--heading-font); font-size: 26px; margin: 8px 0 10px; }
.exam-layer ul { padding-left: 0; list-style: none; margin: 0; }
.exam-layer li { padding: 6px 0 6px 26px; position: relative; color: #bdb6a4; }
.exam-layer li i { position: absolute; left: 0; top: 7px; color: var(--gold); }
.promise {
  margin-top: 34px;
  border-left: 3px solid var(--gold);
  padding: 14px 22px;
  background: rgba(201,162,74,.06);
  color: #d9d2c0;
}

/* ---------- Services ---------- */
.services .service-item {
  background: var(--surface-color);
  border: 1px solid rgba(201,162,74,.14);
  border-radius: 4px;
  box-shadow: none;
}
.services .service-item:hover { border-color: rgba(201,162,74,.55); }
.services .service-item .icon i { color: var(--gold) !important; font-size: 40px; }
.services .service-item .icon svg path { fill: rgba(201,162,74,.10) !important; }
.services .service-item:hover .icon svg path { fill: rgba(201,162,74,.22) !important; }
.services .service-item h3 { font-family: var(--heading-font); font-size: 26px; color: var(--parchment); }

/* ---------- Calibration Challenge ---------- */
.challenge-shell {
  background: linear-gradient(180deg, #121a31, #0c1224);
  border: 1px solid rgba(201,162,74,.3);
  border-radius: 6px;
  padding: 28px;
  min-height: 520px;
  position: relative;
  scroll-margin-top: 90px;
}
.ch-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ch-steps { display: flex; gap: 8px; }
.ch-steps span {
  width: 34px; height: 4px; border-radius: 2px; background: rgba(232,225,207,.15);
}
.ch-steps span.on { background: var(--gold); }
.ch-steps span.done { background: rgba(201,162,74,.5); }
.ch-timer { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--gold-soft); font-size: 15px; letter-spacing: .05em; }
.ch-timer.low { color: #ff8f7a; }
.ch-title { font-family: var(--heading-font); font-size: 30px; color: var(--parchment); margin: 0 0 4px; }
.ch-sub { color: #a9a293; margin: 0 0 20px; }
.ch-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ch-btn {
  background: var(--gold); color: var(--ink-1); border: 0; border-radius: 2px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px;
  padding: 13px 30px; cursor: pointer; transition: .2s;
}
.ch-btn:hover { background: var(--gold-soft); }
.ch-btn.ghost { background: transparent; color: var(--parchment); border: 1px solid rgba(232,225,207,.35); }
.ch-btn.ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.ch-btn:disabled { opacity: .4; cursor: default; }

.matrix-grid { display: grid; grid-template-columns: repeat(3, 96px); gap: 8px; }
.matrix-grid .cell {
  width: 96px; height: 96px; background: #0a0f1e; border: 1px solid rgba(232,225,207,.14);
  display: flex; align-items: center; justify-content: center; border-radius: 3px;
}
.matrix-grid .cell.missing { border: 1px dashed var(--gold); color: var(--gold); font-family: var(--heading-font); font-size: 44px; }
.choice-row { display: grid; grid-template-columns: repeat(6, 84px); gap: 10px; }
.choice-row.four { grid-template-columns: repeat(4, 120px); }
.choice {
  background: #0a0f1e; border: 1px solid rgba(232,225,207,.18); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  aspect-ratio: 1; transition: border-color .15s, transform .15s; padding: 4px; position: relative;
}
.choice:hover { border-color: var(--gold); transform: translateY(-2px); }
.choice .lbl { position: absolute; top: 3px; left: 6px; font-size: 11px; color: #7f7969; }
.choice:focus-visible, .mem-cell:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }

.rot-target {
  background: #0a0f1e; border: 1px solid rgba(201,162,74,.4); border-radius: 3px;
  width: 150px; height: 150px; display: flex; align-items: center; justify-content: center;
}
.mem-grid { display: grid; grid-template-columns: repeat(4, 74px); gap: 8px; }
.mem-cell {
  width: 74px; height: 74px; background: #0a0f1e; border: 1px solid rgba(232,225,207,.16);
  border-radius: 3px; cursor: pointer; transition: background .12s; position: relative;
  color: var(--ink-1); font-weight: 700; font-size: 18px;
}
.mem-cell.lit { background: var(--gold); box-shadow: 0 0 24px rgba(201,162,74,.6); }
.mem-cell.picked { background: rgba(201,162,74,.35); color: var(--parchment); }
.mem-cell.locked { cursor: default; }
.mem-status { color: #a9a293; min-height: 24px; }

.ch-result { text-align: center; max-width: 640px; margin: 0 auto; }
.ch-result .score { font-family: var(--heading-font); font-size: 76px; color: var(--gold-soft); line-height: 1; }
.ch-result .breakdown { display: flex; justify-content: center; gap: 22px; margin: 18px 0; flex-wrap: wrap; }
.ch-result .breakdown div { border: 1px solid rgba(201,162,74,.22); padding: 10px 16px; border-radius: 3px; min-width: 150px; }
.ch-result .breakdown b { display: block; font-family: var(--heading-font); font-size: 22px; color: var(--parchment); }
.ch-note { font-size: 14px; color: #8f8878; margin-top: 16px; }

@media (max-width: 640px) {
  .challenge-shell { padding: 18px 12px; }
  .matrix-grid { grid-template-columns: repeat(3, 78px); }
  .matrix-grid .cell { width: 78px; height: 78px; }
  .choice-row { grid-template-columns: repeat(3, 84px); }
  .choice-row.four { grid-template-columns: repeat(2, 120px); }
  .mem-grid { grid-template-columns: repeat(4, 62px); }
  .mem-cell { width: 62px; height: 62px; }
}

/* ---------- Pricing ---------- */
.pricing .pricing-item {
  background: var(--surface-color);
  border: 1px solid rgba(201,162,74,.16);
  border-radius: 4px;
  box-shadow: none;
}
.pricing .pricing-item h3 { font-family: var(--heading-font); font-size: 28px; color: var(--parchment); }
.pricing .pricing-item h4 { color: var(--gold-soft); font-family: var(--heading-font); }
.pricing .pricing-item ul li i { color: var(--gold); }
.pricing .featured .pricing-item { border-color: var(--gold); background: linear-gradient(170deg, #1d2240, #111830); }
.pricing .buy-btn { border-radius: 2px; border-color: var(--gold); color: var(--gold-soft); letter-spacing: .06em; text-transform: uppercase; font-size: 13px; font-weight: 600; }
.pricing .buy-btn:hover, .pricing .featured .buy-btn { background: var(--gold); color: var(--ink-1); }
.legacy-note { margin-top: 30px; text-align: center; color: #a9a293; }

/* ---------- FAQ ---------- */
.faq .faq-container .faq-item { background: var(--surface-color); border: 1px solid rgba(201,162,74,.12); box-shadow: none; }
.faq .faq-container .faq-item h3 { font-family: var(--heading-font); font-size: 22px; color: var(--parchment); }
.faq .faq-container .faq-active h3, .faq .faq-container .faq-item h3:hover { color: var(--gold-soft); }
.faq .faq-container .faq-item .faq-toggle { color: var(--gold); }

/* ---------- Contact ---------- */
.contact .info-item i { color: var(--gold); border-color: rgba(201,162,74,.35); background: transparent; }
.contact .info-item h3 { font-family: var(--heading-font); font-size: 22px; }
.contact .php-email-form { background: var(--surface-color); border: 1px solid rgba(201,162,74,.14); box-shadow: none; }
.contact .php-email-form input,
.contact .php-email-form textarea,
.contact .php-email-form select {
  background: #0a0f1e; color: var(--parchment); border-color: rgba(232,225,207,.18); border-radius: 2px;
}
.contact .php-email-form input::placeholder, .contact .php-email-form textarea::placeholder { color: #7f7969; }
.contact .php-email-form input:focus, .contact .php-email-form textarea:focus, .contact .php-email-form select:focus { border-color: var(--gold); }
.contact .php-email-form button[type=submit] { background: var(--gold); color: var(--ink-1); border-radius: 2px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contact .php-email-form button[type=submit]:hover { background: var(--gold-soft); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { --background-color: var(--ink-0); border-top: 1px solid rgba(201,162,74,.18); }
.footer .sitename { font-family: var(--heading-font); letter-spacing: .12em; text-transform: uppercase; color: var(--parchment); }
.footer .footer-links ul i, .footer .footer-links ul a:hover { color: var(--gold-soft); }
.footer .copyright, .footer .credits { color: #8a8373; }

#preloader { background: var(--ink-0); }
#preloader:before { border-color: var(--gold); border-top-color: transparent; }
.scroll-top { background: var(--gold); }
.scroll-top i { color: var(--ink-1); }
.footer .copyright { background: transparent; border-top: 1px solid rgba(201,162,74,.15); padding-top: 24px; padding-bottom: 24px; }
.footer .copyright p, .footer .copyright span { color: #8a8373; }
.footer .copyright .sitename { color: var(--parchment); }
