/* ============================================================
   Praxis product themes. Loaded last on the Praxis page and each Praxis product page,
   after page-atmosphere.css, so the header rules here deliberately win over its
   generic header glow.
     Praxis      soft light wash: baby blue → cream gold → sand → lavender
     FyneX       dark grey + baby blue
     Memory MCP  cool blue-grey and blush pink
     Conflux     light sand + orange
     ThermPress  light lavender + purple
   ============================================================ */

/* ── shared: light-page header ───────────────────────────────
   Each light theme sets --hd-* and gets a frosted header in its own tint that fades into the page. */
body.praxis-page header.site-head,
body.theme-conflux header.site-head,
body.theme-thermpress header.site-head {
  background: linear-gradient(180deg, var(--hd-top) 0%, var(--hd-mid) 62%, var(--hd-end) 100%) !important;
  border-bottom: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: blur(18px) saturate(108%); backdrop-filter: blur(18px) saturate(108%);
}
body.praxis-page header.site-head.is-scrolled,
body.theme-conflux header.site-head.is-scrolled,
body.theme-thermpress header.site-head.is-scrolled {
  background: var(--hd-scrolled) !important;
  -webkit-backdrop-filter: blur(24px) saturate(110%); backdrop-filter: blur(24px) saturate(110%);
}
body.praxis-page header.site-head :is(.brand, .brand-suite, .tab, .nav-link, .menu-toggle),
body.theme-conflux header.site-head :is(.brand, .tab, .menu-toggle),
body.theme-thermpress header.site-head :is(.brand, .tab, .menu-toggle) {
  color: var(--hd-ink) !important; text-shadow: none !important;
}
body.praxis-page header.site-head .praxis-nav .menu-btn {
  color: var(--hd-ink-2) !important;
  text-shadow: none !important;
}
body.praxis-page header.site-head .praxis-nav .menu-btn:hover,
body.praxis-page header.site-head .praxis-nav .has-menu.open .menu-btn {
  color: var(--hd-accent) !important;
}
body.praxis-page header.site-head .tab:not([aria-current]),
body.theme-conflux header.site-head .tab:not([aria-current]),
body.theme-thermpress header.site-head .tab:not([aria-current]) { color: var(--hd-ink-2) !important; }
body.praxis-page header.site-head :is(.tab:hover, .brand:hover, .brand-suite:hover),
body.theme-conflux header.site-head :is(.tab:hover, .brand:hover),
body.theme-thermpress header.site-head :is(.tab:hover, .brand:hover) { color: var(--hd-accent) !important; }
body.praxis-page .site-head .tab[aria-current="page"]::after,
body.theme-conflux .site-head .tab[aria-current="page"]::after,
body.theme-thermpress .site-head .tab[aria-current="page"]::after { background: var(--hd-accent); }
body.praxis-page header.site-head .menu-toggle,
body.theme-conflux header.site-head .menu-toggle,
body.theme-thermpress header.site-head .menu-toggle { border-color: var(--line); }
body.praxis-page header.site-head::after,
body.theme-conflux header.site-head::after,
body.theme-thermpress header.site-head::after {
  background: linear-gradient(180deg, var(--hd-end) 0%, transparent 100%); filter: blur(20px);
}
body.praxis-page header.site-head + main > :first-child::after,
body.theme-conflux header.site-head + main > :first-child::after,
body.theme-thermpress header.site-head + main > :first-child::after { background: none; filter: none; }
@media (max-width: 760px) {
  body.praxis-page .tabs, body.theme-conflux .tabs, body.theme-thermpress .tabs {
    background: var(--hd-solid); border-bottom-color: var(--line);
  }
  body.praxis-page .tab, body.theme-conflux .tab, body.theme-thermpress .tab { border-bottom-color: var(--line); }
}

/* light pages: buttons and mockup shadows tuned for a pale ground */
body.praxis-page .btn, body.theme-conflux .btn, body.theme-thermpress .btn { color: var(--text); }
body.praxis-page :is(.fx, .conflux, .mem, .tp-receipt),
body.theme-conflux .conflux,
body.theme-thermpress .tp-receipt { box-shadow: 0 28px 60px -22px rgba(52,58,72,.32), 0 2px 6px rgba(52,58,72,.06); }

/* ── Praxis ──────────────────────────────────────────────────
   One continuous wash on <main>, sections transparent, so nothing ever meets at a seam.
   Each tint sits only slightly off white and is held over a long span before it hands over. */
body.praxis-page {
  --char: #E4E6EA; --line: rgba(44,52,64,.12);
  --text: #23272D; --dim: #5C646E; --steel: #557089; --steel-2: #3D566D;
  --hd-top: rgba(238,242,246,.88); --hd-mid: rgba(238,242,246,.66); --hd-end: rgba(238,242,246,0);
  --hd-scrolled: rgba(240,242,245,.80); --hd-solid: #EEF1F4;
  --hd-ink: #23272D; --hd-ink-2: #545C66; --hd-accent: #557089;
  background: #E4E6EA; color: var(--text);
}
body.praxis-page main {
  background: linear-gradient(180deg,
    #EEF1F5 0%, #E9EFF5 14%, #E3ECF4 26%, #E7EDF2 34%,
    #EFEBE0 44%, #F1E9D8 52%, #F0E6D9 60%, #EFE2D5 66%,
    #EBE4EC 76%, #E8E1EE 84%, #E6E5EA 93%, #E4E6EA 100%);
  background: linear-gradient(in oklab 180deg,
    #EEF1F5 0%, #E9EFF5 14%, #E3ECF4 26%, #E7EDF2 34%,
    #EFEBE0 44%, #F1E9D8 52%, #F0E6D9 60%, #EFE2D5 66%,
    #EBE4EC 76%, #E8E1EE 84%, #E6E5EA 93%, #E4E6EA 100%);
}
body.praxis-page main > section.opening {
  background: transparent !important;
}
body.praxis-page main > section.opening::before,
body.praxis-page main > section.opening::after { display: none !important; }
body.praxis-page main > section#apps { background: transparent; }
body.praxis-page .praxis-hero-brand .t-display { color: #1F2329; }
body.praxis-page .praxis-logo-spin { filter: drop-shadow(0 26px 40px rgba(60,80,110,.18)); }
body.praxis-page .site-foot { background: #E4E6EA; border-top-color: rgba(44,52,64,.10); }
body.praxis-page #apps > .wrap {
  --product-gap: calc(clamp(5.5rem, 12vw, 9rem) + 3rem);
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--product-gap);
}
body.praxis-page #apps .product + .product { margin-top: 0; }
body.praxis-page #apps { overflow-x: clip; }
body.praxis-page #apps .product {
  position: relative;
  isolation: isolate;
  align-content: center;
  box-sizing: border-box;
  min-height: 90svh;
  padding-block: clamp(4rem, 8vw, 7rem);
}
body.praxis-page #apps .product::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: calc((100% - 100vw) / 2);
  width: 100vw;
  top: 0;
  bottom: calc(-1 * var(--product-gap));
  background: linear-gradient(180deg, var(--product-wash) 0%, var(--product-wash) 55%, var(--next-wash) 100%);
}
body.praxis-page #apps .product:nth-child(1) { --product-wash: #8793A3; --next-wash: #E1E9F5; --dim: #25303E; --steel: #243E59; }
body.praxis-page #apps .product:nth-child(1)::before {
  top: -10rem;
  background: linear-gradient(180deg, transparent 0%, var(--product-wash) 18%, var(--product-wash) 90%, var(--next-wash) 100%);
}
body.praxis-page #apps .product:nth-child(2) { --product-wash: #E1E9F5; --next-wash: #F3EBD9; }
body.praxis-page #apps .product:nth-child(2)::before {
  background: linear-gradient(180deg, var(--product-wash) 0%, #EADDED 30%, var(--product-wash) 55%, var(--next-wash) 100%);
}
body.praxis-page #apps .product:nth-child(3) { --product-wash: #F3EBD9; --next-wash: #D6C5E9; }
body.praxis-page #apps .product:nth-child(4) { --product-wash: #D6C5E9; --next-wash: #E4E6EA; }
body.praxis-page #apps .product:nth-child(4)::before {
  background: linear-gradient(180deg, var(--product-wash) 0%, var(--product-wash) 35%, var(--next-wash) 85%, var(--next-wash) 100%);
}

/* the four product tiles each pick up their own tint on the wash */
body.praxis-page #apps .product__name img { box-shadow: none; }

/* Memory MCP's record: warm espresso card with golden keys, to match its page */
body.praxis-page .mem, body.mm .mem { background: #2A241E; border-color: #3A3129; color: #E2D6C4; }
body.praxis-page .mem__head { border-bottom-color: #3A3129; color: #BFAE95; }
body.praxis-page .mem .k { color: #D4AE6A; }
body.praxis-page .mem .s { color: #F0E4D0; }
body.praxis-page .mem .n { color: #E7C48A; }
body.praxis-page .mem .c { color: #8C7D6A; }

/* ── Conflux mockup: sand and orange wherever it appears ─────── */
body.praxis-page .conflux, body.theme-conflux .conflux {
  --cf-bg: #F2E9DD; --cf-surface: #FFFCF8; --cf-line: #E6D8C6;
  --cf-ink: #2B2118; --cf-ink-2: #6E5D4B; --cf-ink-3: #9D8B77; --cf-accent: #D2702F;
}
body.praxis-page .conflux__task, body.theme-conflux .conflux__task { border-top-color: #F1E6D8; }
body.praxis-page .conflux__check, body.theme-conflux .conflux__check { border-color: #CDB79C; }
body.praxis-page .conflux__event, body.theme-conflux .conflux__event { background: #FBEBDC; }
body.praxis-page .conflux__event--soft, body.theme-conflux .conflux__event--soft { background: #F7F0E7; border-left-color: #D9C2A5; }

/* ── FyneX: dark grey and baby blue ───────────────────────── */
body.theme-fynex {
  --char: #1B1D21; --line: #2D3137;
  --text: #EDF0F4; --dim: #A6ADB7; --steel: #A8CDED; --steel-2: #CFE4F7;
  background-color: #1B1D21;
  background-image:
    radial-gradient(ellipse 75% 50% at 78% 4%, rgba(168,205,237,.17), transparent 72%),
    radial-gradient(ellipse 60% 40% at 10% 60%, rgba(168,205,237,.06), transparent 75%),
    linear-gradient(180deg, #1D2024 0%, #1B1D21 40%, #18191C 100%);
  background-repeat: no-repeat;
}
body.theme-fynex .btn--primary { background: #A8CDED; border-color: #A8CDED; color: #15181C; }
body.theme-fynex .btn--primary:hover { background: #CFE4F7; border-color: #CFE4F7; }
body.theme-fynex .btn:hover { border-color: #A8CDED; }
body.theme-fynex .app-mark { box-shadow: none; }
body.theme-fynex .fx { box-shadow: 0 30px 80px -12px rgba(0,0,0,.55), 0 0 0 1px rgba(168,205,237,.16), 0 0 60px -12px rgba(168,205,237,.22); }
body.theme-fynex .steps li { border-top-color: #2D3137; }
body.theme-fynex header.site-head {
  background: linear-gradient(180deg, rgba(29,31,35,.94) 0%, rgba(27,29,33,.86) 62%, rgba(27,29,33,.62) 100%);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
body.theme-fynex .site-head .tab[aria-current="page"]::after { background: #A8CDED; }
body.theme-fynex header.site-head .brand-logo { filter: none; }
body.theme-fynex .site-head .tab:hover { color: #CFE4F7; }
body.theme-fynex .t-display { color: #F2F6FA; }
body.theme-fynex .link { color: #A8CDED; }
body.theme-fynex header.site-head::after { background: linear-gradient(180deg, rgba(27,29,33,.7) 0%, rgba(27,29,33,0) 100%); }
body.theme-fynex header.site-head + main > :first-child::after {
  background: linear-gradient(180deg, rgba(168,205,237,0) 0%, rgba(168,205,237,.05) 55%, rgba(168,205,237,0) 100%);
}

/* ── Memory MCP: cool blue and blush header over the light page ── */
body.mm header.site-head {
  background: linear-gradient(180deg, rgba(198,216,235,.84) 0%, rgba(198,216,235,.58) 58%, rgba(198,216,235,.18) 100%) !important;
}
body.mm header.site-head.is-scrolled { background: rgba(198,216,235,.78) !important; }
body.mm header.site-head :is(.brand, .brand-suite, .tab, .menu-toggle) { color: #344253 !important; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
body.mm header.site-head .tab:not([aria-current]) { color: #596879 !important; }
body.mm header.site-head :is(.tab:hover, .tab:focus-visible, .brand:hover, .brand-suite:hover) { color: #3F668C !important; }
body.mm .site-head .tab[aria-current="page"]::after { background: #547A9F; }
body.mm header.site-head::after {
  background: linear-gradient(180deg, rgba(198,216,235,.42) 0%, rgba(198,216,235,.16) 52%, rgba(198,216,235,0) 100%);
}
body.mm header.site-head + main > :first-child::after {
  background: linear-gradient(180deg, rgba(198,216,235,0) 0%, rgba(198,216,235,.18) 36%, rgba(198,216,235,.12) 66%, rgba(229,233,240,0) 100%);
}
@media (max-width: 760px) { body.mm .tabs { background: rgba(198,216,235,.94); border-bottom-color: rgba(73,91,114,.2); } }

/* ── Conflux: light sand and orange ───────────────────────── */
body.theme-conflux {
  --char: #EFE5D7; --line: rgba(96,66,34,.14);
  --text: #2B2118; --dim: #6B5A48; --steel: #A9511D; --steel-2: #87400F;
  --hd-top: rgba(241,230,214,.92); --hd-mid: rgba(241,230,214,.72); --hd-end: rgba(241,230,214,0);
  --hd-scrolled: rgba(240,228,211,.82); --hd-solid: #F1E6D6;
  --hd-ink: #2B2118; --hd-ink-2: #6B5A48; --hd-accent: #C9662A;
  color: var(--text);
  background-color: #EFE5D7;
  background-image: linear-gradient(in oklab 180deg, #F3EADD 0%, #F1E3D0 38%, #EEDCC6 70%, #EADCCB 100%);
}
body.theme-conflux main > section.opening {
  background: radial-gradient(ellipse 60% 70% at 80% 40%, rgba(234,150,86,.16) 0%, rgba(234,150,86,0) 70%);
}
body.theme-conflux .app-mark { background: transparent; box-shadow: none; }
body.theme-conflux .btn--primary { background: #B85A22; border-color: #B85A22; color: #FFF8F0; }
body.theme-conflux .btn--primary:hover { background: #9C4A18; border-color: #9C4A18; }
body.theme-conflux main > section + section { border-top-color: rgba(96,66,34,.12); }

/* ── ThermPress: light lavender and purple ────────────────── */
body.theme-thermpress {
  --char: #ECE8F2; --line: rgba(70,50,110,.14);
  --text: #241E2E; --dim: #615871; --steel: #6A4FA3; --steel-2: #4F3786;
  --hd-top: rgba(238,233,246,.92); --hd-mid: rgba(238,233,246,.72); --hd-end: rgba(238,233,246,0);
  --hd-scrolled: rgba(236,231,244,.82); --hd-solid: #EEE9F6;
  --hd-ink: #241E2E; --hd-ink-2: #615871; --hd-accent: #7A5CC0;
  color: var(--text);
  background-color: #ECE8F2;
  background-image: linear-gradient(in oklab 180deg, #F1EDF7 0%, #ECE5F5 36%, #E8E1F1 68%, #E9E6EF 100%);
}
body.theme-thermpress main > section.opening {
  background: radial-gradient(ellipse 60% 70% at 78% 42%, rgba(150,118,214,.16) 0%, rgba(150,118,214,0) 70%);
}
body.theme-thermpress .app-mark { background: transparent; box-shadow: none; }
body.theme-thermpress .btn--primary { background: #6A4FA3; border-color: #6A4FA3; color: #FBF9FE; }
body.theme-thermpress .btn--primary:hover { background: #563C8C; border-color: #563C8C; }
body.theme-thermpress main > section + section { border-top-color: rgba(70,50,110,.10); }
body.theme-thermpress .steps li::before { color: #6A4FA3; }

/* ThermPress artefact: a receipt coming off the roll, beside the editor that made it */
.tp { display: grid; grid-template-columns: 1fr 230px; gap: 14px; align-items: start;
  background: #F6F3FB; border: 1px solid #DDD3EE; border-radius: 12px; padding: 12px;
  font: 13px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; color: #2A2338;
  box-shadow: 0 28px 60px -22px rgba(52,40,80,.34), 0 2px 6px rgba(52,40,80,.06); }
.tp__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 2px 4px 8px; border-bottom: 1px solid #E4DCF2; }
.tp__bar img { width: 22px; height: 22px; border-radius: 6px; }
.tp__bar b { font-weight: 650; }
.tp__bar span { color: #7A7088; }
.tp__bar .tp__printer { margin-left: auto; font-size: 12px; color: #6A4FA3; background: #EEE7FA; border: 1px solid #DCCFF3; border-radius: 999px; padding: 2px 10px; }
.tp__fields { background: #fff; border: 1px solid #E4DCF2; border-radius: 10px; overflow: hidden; }
.tp__label { padding: 8px 11px 6px; color: #8E84A0; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.tp__field { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 8px 11px; border-top: 1px solid #F1ECF8; }
.tp__field span { color: #8E84A0; }
.tp__field code { font: 12px var(--mono); color: #5B3F99; overflow-wrap: anywhere; }
.tp-receipt { background: #FFFFFE; color: #1A1A1A; font: 11.5px/1.5 var(--mono); padding: 14px 14px 18px; border-radius: 2px;
  -webkit-mask-image: linear-gradient(180deg, #000 88%, rgba(0,0,0,.4) 100%); mask-image: linear-gradient(180deg, #000 88%, rgba(0,0,0,.4) 100%);
  box-shadow: 0 10px 24px -10px rgba(52,40,80,.30); }
.tp-receipt__head { text-align: center; font-weight: 600; letter-spacing: .06em; }
.tp-receipt__sub { text-align: center; color: #555; margin-bottom: 8px; }
.tp-receipt__rule { border-top: 1px dashed #999; margin: 7px 0; }
.tp-receipt__row { display: flex; justify-content: space-between; gap: 10px; }
.tp-receipt__row--total { font-weight: 600; }
.tp-receipt__foot { text-align: center; color: #555; margin-top: 8px; }
.tp-receipt__code { display: block; margin: 9px auto 0; width: 150px; height: 34px;
  background: repeating-linear-gradient(90deg, #1A1A1A 0 2px, transparent 2px 3px, #1A1A1A 3px 4px, transparent 4px 7px, #1A1A1A 7px 10px, transparent 10px 11px, #1A1A1A 11px 12px, transparent 12px 15px); }
@media (max-width: 560px) { .tp { grid-template-columns: 1fr; } .tp-receipt { max-width: 240px; margin: 0 auto; } }

/* Solvix — local finance planner mock (Praxis card) */
.sol { width: 100%; max-width: 420px; margin: 0 auto; background: #FFFFFF; border: 1px solid #E4EAE6; border-radius: 16px; overflow: hidden; box-shadow: 0 28px 60px -22px rgba(46,84,66,.28), 0 2px 6px rgba(46,84,66,.06); font-variant-numeric: tabular-nums; }
.sol__bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; background: linear-gradient(180deg,#F3F8F4,#ECF3EE); border-bottom: 1px solid #E4EAE6; }
.sol__bar img { width: 22px; height: 22px; object-fit: contain; }
.sol__bar b { font-weight: 600; color: #1E2328; }
.sol__bar > span { font-size: .82rem; color: #68756E; }
.sol__bar .sol__cycle { margin-left: auto; color: #3E9E68; font-weight: 500; }
.sol__body { padding: 1rem .95rem 1.1rem; }
.sol__headline { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .6rem; }
.sol__label { font-size: .85rem; color: #68756E; }
.sol__big { font-size: 1.95rem; font-weight: 600; color: #2E8452; letter-spacing: -.01em; }
.sol__rows { display: grid; gap: 0; }
.sol__row { display: flex; justify-content: space-between; padding: .5rem .1rem; border-top: 1px solid #EEF2EF; font-size: .92rem; }
.sol__row:first-child { border-top: 0; }
.sol__k { color: #3B4249; }
.sol__v { color: #1E2328; font-weight: 500; }
.sol__v--in { color: #3E9E68; }
.sol__row--limit .sol__k::after { content: " · flexible"; color: #9AA6A0; font-size: .82em; }
.sol__plan { display: flex; align-items: center; gap: .55rem; margin-top: .85rem; padding: .6rem .7rem; background: #EAF4EE; border-radius: 10px; color: #2E6A48; font-size: .86rem; }
.sol__dot { width: 8px; height: 8px; border-radius: 50%; background: #3E9E68; flex: none; box-shadow: 0 0 0 4px rgba(62,158,104,.18); }
