/*
 | platform.css — the platform's chrome and its own pages.
 |
 | Ported from the legacy mandhur/src/assets/css/style.css (header, drawer,
 | footer, page hero, cards) and home_layers.css (home page). Brand colours are
 | the core's tokens (Palette::css() on .mz-root), so the theme screen reaches
 | the chrome too; gradients and shadows keep their rgba tints. Mobile-first,
 | logical properties throughout so the page mirrors with dir="ltr|rtl".
 | No build step, no Bootstrap: the few layout utilities needed are below.
 */

/* ---------- Legacy names, mapped onto the core tokens ---------- */
.mz-root {
  --brand-dark: var(--brand-secondary);
  --brand-base: var(--brand-primary);
  --brand-teal: var(--brand-primary);
  --brand-yellow: var(--brand-accent);
  --brand-gold: var(--brand-accent);
  --pf-drawer-bg: color-mix(in srgb, var(--brand-secondary) 62%, #000);
  --pf-radius: 28px;
  --pf-shadow: 0 18px 60px rgba(15, 23, 42, .12);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body.pf-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  font-family: var(--mz-font-family, "Cairo"), system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
/* Nothing here styles a bare a/img/button globally: the tools style theirs in
   cascade layers, and an unlayered global rule would beat every one of them. */
.pf-page a, .pf-home a { color: var(--brand-secondary); }
.pf-page a:hover, .pf-home a:hover { color: var(--brand-primary); }
.pf-page img { max-width: 100%; height: auto; }
.pf-content { flex: 1 0 auto; outline: none; }
.pf-container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}
.pf-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.pf-md-only { display: none; }
@media (min-width: 768px) {
  .pf-md-only { display: inline; }
  .pf-sm-only { display: none !important; }
}
.pf-no-scroll { overflow: hidden; }
.pf-body :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.pf-skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -60px;
  z-index: 2000;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--brand-secondary);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}
.pf-skip:focus { top: 8px; }

/* ---------- Welcome bar (legacy .mh-announce) ---------- */
.pf-announce {
  background: linear-gradient(90deg, rgba(233, 182, 34, .20), rgba(26, 140, 148, .20));
  border-bottom: 1px solid rgba(10, 58, 74, .15);
  color: var(--brand-secondary);
  padding: .35rem 0;
  font-size: .9rem;
}
.pf-announce-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.pf-announce-start { min-width: 0; }
.pf-announce-end { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pf-announce-title { font-weight: 700; font-size: .95rem; }
.pf-announce-sub { margin-inline-start: .6rem; opacity: .85; font-size: .85rem; }
.pf-body .pf-announce-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .3rem .8rem; border-radius: 999px; border: 0;
  background: var(--brand-secondary); color: #fff;
  font: inherit; font-weight: 700; font-size: .85rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.pf-body .pf-announce-cta:hover { background: var(--brand-primary); color: var(--brand-primary-contrast); transform: translateY(-1px); }
.pf-body .pf-announce-link { color: var(--brand-secondary); text-decoration: none; font-weight: 600; opacity: .9; }
.pf-body .pf-announce-link:hover { opacity: 1; text-decoration: underline; }
.pf-lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border: 1px solid currentColor; border-radius: 14px; font-size: .8rem;
}
.pf-lang-toggle::before { content: "🌐"; font-size: .85em; }
.pf-body .pf-register-short {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-primary); color: var(--brand-primary-contrast);
  font-size: .78rem; font-weight: 700; text-decoration: none;
}
.pf-inline-form { display: inline; margin: 0; }

/* ---------- Header band (legacy .top-bar) ---------- */
.pf-topbar {
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
  color: #F9FAFB;
  padding: .6rem 0;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.pf-topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pf-body .pf-logo-link { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: #fff; min-width: 0; }
.pf-logo-mark { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.pf-logo-text { display: flex; flex-direction: column; min-width: 0; }
.pf-logo-title { font-weight: 700; font-size: 1.05rem; line-height: 1.15; color: #fff; transition: color .2s ease; }
.pf-logo-subtitle { font-size: .72rem; color: rgba(255, 255, 255, .85); transition: color .2s ease; }
.pf-body .pf-logo-link:hover .pf-logo-title,
.pf-body .pf-logo-link:hover .pf-logo-subtitle { color: var(--brand-accent); }

.pf-drawer-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .12); color: #F9FAFB;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
  padding: .4rem .8rem; font: inherit; cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.pf-drawer-toggle:hover { background: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.pf-drawer-icon { font-size: 1.15rem; line-height: 1; }
.pf-drawer-toggle-text { display: none; }
@media (min-width: 768px) { .pf-drawer-toggle-text { display: inline; } }

/* ---------- Drawer (legacy .mh-drawer) ---------- */
.pf-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .2s ease; z-index: 1200;
}
.pf-drawer-overlay.is-open { opacity: 1; }
.pf-drawer {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: min(420px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: var(--pf-drawer-bg);
  color: #E5E7EB;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 40px rgba(0, 0, 0, .35);
}
[dir="ltr"] .pf-drawer { transform: translateX(-105%); box-shadow: 18px 0 40px rgba(0, 0, 0, .35); }
.pf-drawer.is-open,
[dir="ltr"] .pf-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .25s ease; }

/* Without JavaScript the menu is an ordinary section above the footer. */
.no-js .pf-drawer {
  position: static; transform: none; visibility: visible; width: auto; height: auto;
  box-shadow: none; order: 2;
}
.no-js .pf-drawer-toggle,
.no-js .pf-drawer-close,
.no-js .pf-drawer-overlay { display: none; }

.pf-drawer-header {
  padding: 1rem 1rem .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
}
.pf-drawer-brand { font-weight: 800; font-size: 1.05rem; color: #fff; }
.pf-drawer-welcome { font-size: .85rem; opacity: .9; margin-top: .15rem; }
.pf-drawer-close {
  background: rgba(255, 255, 255, .10); color: #fff; border: 0;
  width: 36px; height: 36px; border-radius: 10px; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.pf-drawer-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.pf-drawer-scroll { padding: .9rem 1rem 1rem; overflow: auto; flex: 1 1 auto; min-height: 0; }
.pf-drawer-footer { padding: .75rem 1rem 1rem; border-top: 1px solid rgba(255, 255, 255, .10); }

.pf-drawer-nudge {
  background: rgba(233, 182, 34, .12); border: 1px solid rgba(233, 182, 34, .22);
  border-radius: 14px; padding: .8rem .85rem; margin-bottom: .9rem;
}
.pf-nudge-title { font-weight: 800; color: #fff; margin-bottom: .25rem; }
.pf-nudge-text { font-size: .85rem; opacity: .92; margin-bottom: .6rem; }
.pf-nudge-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pf-body .pf-nudge-cta {
  background: var(--brand-accent); color: #111827; border-radius: 999px;
  padding: .35rem .75rem; font-weight: 800; text-decoration: none;
}
.pf-body .pf-nudge-link { color: #fff; opacity: .9; text-decoration: none; padding: .35rem; }
.pf-body .pf-nudge-link:hover { opacity: 1; color: #fff; text-decoration: underline; }

.pf-drawer ul { list-style: none; margin: 0; padding: 0; }
.pf-nav-groups { display: flex; flex-direction: column; gap: .6rem; }
.pf-nav-group {
  border: 1px solid rgba(255, 255, 255, .10); border-radius: 14px;
  overflow: hidden; background: rgba(255, 255, 255, .04);
}
.pf-nav-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem .85rem; cursor: pointer; color: #fff; list-style: none; text-align: start;
}
.pf-nav-group-head::-webkit-details-marker { display: none; }
.pf-nav-group-meta { display: flex; flex-direction: column; }
.pf-nav-group-title { font-weight: 800; }
.pf-nav-group-desc { font-size: .8rem; opacity: .85; margin-top: .2rem; }
.pf-nav-group-chevron { opacity: .9; transition: transform .2s ease; }
.pf-nav-group[open] .pf-nav-group-chevron { transform: rotate(180deg); }
.pf-nav-group-items { padding: .35rem .35rem .65rem; }
.pf-body .pf-nav-item {
  display: block; text-decoration: none; color: #E5E7EB;
  padding: .6rem .65rem; border-radius: 12px; margin: .15rem .2rem;
  background: rgba(0, 0, 0, .12); border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.pf-body .pf-nav-item-root { margin: 0; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .10); border-radius: 14px; padding: .75rem .85rem; }
.pf-body .pf-nav-item:hover,
.pf-body .pf-nav-item[aria-current="page"] {
  color: #fff; transform: translateY(-1px);
  background: rgba(26, 140, 148, .22); border-color: rgba(26, 140, 148, .32);
}
.pf-nav-item-title { display: block; font-weight: 800; }
.pf-nav-item-desc { display: block; font-size: .8rem; opacity: .85; margin-top: .15rem; }

.pf-support-card {
  padding: 14px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 140, 148, .14), rgba(26, 140, 148, .07));
  border: 1px solid rgba(26, 140, 148, .20);
}
.pf-support-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.pf-support-icon {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(26, 140, 148, .25); color: #b1f0ee;
}
.pf-support-title { font-weight: 700; font-size: 14px; line-height: 1.3; color: #d3e1e6; }
.pf-support-subtitle { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: #b1f0ee; }
.pf-body .pf-support-cta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px;
  background: var(--brand-primary); color: var(--brand-primary-contrast);
  text-decoration: none; font-weight: 700; font-size: 13px;
}
.pf-body .pf-support-cta:hover { filter: brightness(.95); color: var(--brand-primary-contrast); }
.pf-support-email { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-weight: 600; font-size: 12px; }

/* ---------- Footer (legacy .site-footer) ---------- */
.pf-footer {
  order: 3;
  background: var(--brand-secondary);
  color: #f1f5f9;
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: .9rem;
}
.pf-footer-links { margin-bottom: .75rem; display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.pf-body .pf-footer a { color: #fff; text-decoration: underline; }
.pf-body .pf-footer a:hover { opacity: .8; color: #fff; }
.pf-footer-sep { opacity: .5; }
.pf-footer p { margin: 0; opacity: .9; letter-spacing: .3px; }
.pf-content { order: 1; }

/* ---------- Shared page pieces (legacy .page-hero, .home-section-card) ---------- */
.pf-page h1, .pf-page h2, .pf-page h3, .pf-page p { margin-top: 0; }
.pf-page ul, .pf-page ol { margin: 0; padding: 0; list-style: none; }
.pf-page-hero {
  background: linear-gradient(135deg, rgba(26, 140, 148, .08) 0%, rgba(246, 237, 221, .5) 100%);
  margin-bottom: 2rem;
}
.pf-page-hero-inner { padding-block: 1.5rem; }
@media (min-width: 768px) { .pf-page-hero-inner { padding-block: 3rem; } }
.pf-page-kicker {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem 1rem; margin-bottom: .75rem; border-radius: 999px;
  background: var(--surface-raised); color: var(--brand-secondary);
  border: 1px solid rgba(26, 140, 148, .2); box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
  font-size: .8rem; font-weight: 700;
}
.pf-page-title {
  color: var(--brand-secondary); font-weight: 700; line-height: 1.4;
  font-size: calc(1.375rem + 1.5vw); margin-bottom: 1rem;
}
@media (min-width: 1200px) { .pf-page-title { font-size: 2.5rem; } }
.pf-narrative { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }
.pf-narrative p { margin-bottom: .75rem; }
.pf-section { margin-bottom: 2.5rem; }
.pf-section-card {
  border-radius: .7rem;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(26, 140, 148, .15);
  padding: 1.5rem;
}
@media (min-width: 768px) { .pf-section-card { padding: 3rem; } }
.pf-section-title { color: var(--brand-secondary); font-weight: 700; font-size: 1.5rem; margin-bottom: .5rem; }
.pf-section-title.pf-big { font-size: calc(1.325rem + .9vw); }
.pf-section-title.pf-h4 { font-size: 1.35rem; }
.pf-section-title.pf-h5 { font-size: 1.25rem; }
.pf-muted { color: var(--text-muted); }
.pf-small { font-size: .875rem; line-height: 1.7; }
.pf-lead { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-block: 1rem; }
.pf-danger { color: var(--state-danger); }
.pf-tone-primary { color: var(--brand-primary); }
.pf-tone-accent { color: var(--brand-accent); }
.pf-tone-secondary { color: var(--brand-secondary); }

.pf-split { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .pf-split { grid-template-columns: 1fr 2fr; } }

.pf-grid { display: grid; gap: 1rem; }
.pf-grid-2, .pf-grid-3, .pf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .pf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 576px) { .pf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pf-mini-card {
  background: var(--surface-raised); border-radius: .7rem; padding: 1rem;
  text-align: center; box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.pf-mini-icon { font-size: 1.75rem; margin-bottom: .5rem; line-height: 1.2; }
.pf-mini-title { font-weight: 700; font-size: .9rem; margin-bottom: .25rem; color: var(--text); }
.pf-page .pf-mini-card p { margin: 0; }

.pf-more { margin-top: 1rem; }
.pf-more summary { cursor: pointer; font-weight: 700; color: var(--brand-secondary); }
.pf-more-body { padding-top: 1rem; color: var(--text-muted); line-height: 1.9; font-size: 1.02rem; }
.pf-more-body p { margin-bottom: .75rem; }

.pf-page .pf-bullets { list-style: disc; padding-inline-start: 1.25rem; color: var(--text-muted); margin-bottom: 1rem; }
.pf-bullets li { margin-bottom: .4rem; }

.pf-steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 768px) { .pf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) {
  .pf-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem; }
  .pf-step { position: relative; }
  .pf-step:not(:last-child)::after {
    content: "→"; position: absolute; top: 50%; inset-inline-end: -1.7rem;
    transform: translateY(-50%); color: var(--text-muted); font-size: 1.4rem;
  }
  [dir="rtl"] .pf-step:not(:last-child)::after { content: "←"; }
}
.pf-step h3 { font-size: 1rem; }

.pf-band { background: rgba(233, 182, 34, .07); padding-block: 3rem; margin-bottom: 2.5rem; }
.pf-team { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .pf-team { grid-template-columns: 5fr 7fr; } }
.pf-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: var(--surface-raised); border-radius: .5rem; padding: 1rem;
  text-align: center; box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075); font-size: .9rem;
}
.pf-tile-icon { font-size: 1.6rem; }
.pf-tile-dashed { border: 2px dashed var(--brand-primary); color: var(--brand-secondary); }
.pf-body .pf-btn-outline {
  display: inline-block; padding: .45rem 1.5rem; border-radius: 999px;
  border: 1px solid var(--brand-secondary); color: var(--brand-secondary);
  text-decoration: none; font-weight: 600;
}
.pf-body .pf-btn-outline:hover { background: var(--brand-secondary); color: #fff; }

.pf-origin { display: grid; gap: 1rem; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 768px) { .pf-origin { grid-template-columns: 90px 1fr; gap: 2rem; } }
.pf-origin-pin {
  width: 90px; height: 90px; border-radius: 50%; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  background: var(--surface-raised); border: 1px dashed var(--brand-primary);
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.pf-origin-sub { font-size: 1rem; font-weight: 400; }
.pf-origin .pf-lead { margin: 0; }

.pf-accent-edge { border-inline-start: 5px solid var(--brand-accent); background: var(--surface-raised); }
.pf-principles li, .pf-checks li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; font-size: 1.05rem; }
.pf-mark { flex-shrink: 0; font-weight: 700; line-height: 1.7; }
.pf-mark-no { color: var(--state-danger); }
.pf-mark-yes { color: var(--state-success); }
.pf-arrow::before { content: "➜"; display: inline-block; }
[dir="rtl"] .pf-arrow::before { transform: scaleX(-1); }

.pf-prose { color: var(--text-muted); line-height: 1.8; }
.pf-prose p { margin-bottom: 1rem; }
.pf-block + .pf-block { margin-top: 2.5rem; }
.pf-checks { color: var(--text-muted); }
.pf-box {
  display: flex; flex-direction: column; gap: .5rem; padding: 1rem;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: .375rem;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.pf-contact-note {
  margin-top: 1.5rem; padding: 1rem; border-radius: .375rem; font-size: .875rem;
  background: rgba(0, 0, 0, .03); border-inline-start: 4px solid var(--brand-accent);
}
.pf-contact-note a { font-weight: 700; text-decoration: none; }

.pf-about-hero { display: grid; gap: 1.5rem; align-items: center; }
.pf-about-visual { order: -1; margin: 0; padding: 1rem; text-align: center; background: rgba(255, 255, 255, .4); border-radius: 24px; border: 1px solid rgba(26, 140, 148, .1); }
.pf-about-visual img { border-radius: .5rem; max-height: 400px; width: 100%; object-fit: cover; box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075); }
.pf-about-visual figcaption { font-size: .875rem; color: var(--text-muted); font-style: italic; margin-top: .5rem; }
@media (min-width: 992px) {
  .pf-about-hero { grid-template-columns: 1fr 1fr; }
  .pf-about-visual { order: 0; }
}

/* ---------- Home (legacy home_layers.css) ---------- */
.pf-home { padding-bottom: 44px; }
.pf-home h1, .pf-home h2, .pf-home h3, .pf-home p { margin-top: 0; }
.pf-home ul { list-style: none; margin: 0; padding: 0; }

.pf-home-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 140px;
  background:
    radial-gradient(circle at 15% 20%, rgba(26, 140, 148, .26), transparent 56%),
    radial-gradient(circle at 80% 12%, rgba(233, 182, 34, .22), transparent 50%),
    linear-gradient(180deg, var(--brand-secondary) 0%, #071f27 58%, #05161c 100%);
  color: #fff;
}
.pf-home-hero::before {
  content: ""; position: absolute; inset: -220px -260px auto auto;
  width: 640px; height: 640px; border-radius: 50%;
  border: 28px solid rgba(26, 140, 148, .20);
  box-shadow: inset 0 0 0 12px rgba(233, 182, 34, .14);
  transform: rotate(10deg); opacity: .9; pointer-events: none;
}
.pf-home-hero::after {
  content: ""; position: absolute; inset: auto auto -260px -260px;
  width: 700px; height: 700px; border-radius: 50%;
  border: 28px solid rgba(233, 182, 34, .16);
  transform: rotate(-12deg); opacity: .68; pointer-events: none;
}
.pf-hero-inner { position: relative; z-index: 2; }
.pf-hero-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 992px) {
  .pf-home-hero { min-height: 84vh; padding: 70px 0 165px; }
  .pf-hero-grid { grid-template-columns: 7fr 5fr; gap: 3.25rem; }
}
.pf-hero-kicker {
  display: inline-flex; gap: .5rem; align-items: center; flex-wrap: wrap;
  font-weight: 800; font-size: .95rem; color: rgba(255, 255, 255, .86);
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
.pf-dim { opacity: .75; }
.pf-hero-title {
  margin: 16px 0 14px; font-weight: 800; line-height: 1.35;
  font-size: clamp(1.25rem, 2.8vw, 2.1rem); max-width: 22ch; color: #fff;
}
.pf-hero-lead { margin: 0 0 18px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.95; color: rgba(255, 255, 255, .84); max-width: 70ch; }
.pf-home .pf-hero-promises { margin: 0 0 22px; padding-inline-start: 1.1rem; list-style: disc; color: rgba(255, 255, 255, .80); }
.pf-hero-promises li { margin-bottom: .45rem; line-height: 1.78; }
.pf-hero-lens-note {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(233, 182, 34, .16); border: 1px solid rgba(233, 182, 34, .38);
  color: rgba(255, 255, 255, .92); font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

/* The wheel */
.pf-hero-wheel-wrap { display: flex; align-items: center; justify-content: center; min-height: 300px; }
@media (min-width: 577px) { .pf-hero-wheel-wrap { min-height: 340px; } }
@media (min-width: 992px) { .pf-hero-wheel-wrap { min-height: 460px; } }
.pf-hero-wheel {
  position: relative; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, var(--brand-primary), var(--brand-secondary));
  box-shadow: 0 10px 28px rgba(11, 58, 75, .35);
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, .38));
}
@media (min-width: 577px) { .pf-hero-wheel { width: 280px; height: 280px; } }
@media (min-width: 992px) { .pf-hero-wheel { transform: scale(1.22); } }
.pf-wheel-center {
  position: absolute; width: 110px; height: 110px; border-radius: 50%;
  background: var(--brand-accent); color: #0b1020;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2); z-index: 2;
}
.pf-wheel-item {
  position: absolute; width: 84px; height: 84px; border-radius: 50%;
  background: #fff; color: var(--brand-secondary);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  font-weight: 600; text-align: center; padding: .4rem; box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); z-index: 3;
  animation: pf-wheel-glow 4s ease-in-out infinite;
}
@media (min-width: 577px) { .pf-wheel-item { width: 90px; height: 90px; } }
.pf-wheel-icon { font-size: 1.35rem; display: block; line-height: 1.2; }
.pf-wheel-label { display: block; font-size: .7rem; line-height: 1.25; }
.pf-wheel-item1 { top: -10px; left: 50%; transform: translateX(-50%); }
.pf-wheel-item2 { top: 50%; right: -10px; transform: translateY(-50%); }
.pf-wheel-item3 { bottom: -10px; left: 50%; transform: translateX(-50%); }
.pf-wheel-item4 { top: 50%; left: -10px; transform: translateY(-50%); }
@keyframes pf-wheel-glow {
  0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
  50% { box-shadow: 0 10px 26px rgba(0, 0, 0, .30); }
}
@media (prefers-reduced-motion: reduce) { .pf-wheel-item { animation: none; } }

/* Quickbar */
.pf-quickbar {
  margin-top: 3rem; border-radius: 22px; padding: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18); backdrop-filter: blur(12px);
}
.pf-quickbar-title { font-weight: 900; color: #fff; margin: .5rem 0 6px; font-size: 1.15rem; }
.pf-quickbar-text { color: rgba(255, 255, 255, .80); line-height: 1.78; margin: 0; font-size: .98rem; max-width: 110ch; }
.pf-quick-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (min-width: 992px) { .pf-quick-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.pf-body .pf-quick-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: 16px; padding: 12px; height: 100%; box-sizing: border-box;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.pf-body a.pf-quick-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, .22); background: rgba(255, 255, 255, .09); color: inherit; }
.pf-quick-card.is-off { opacity: .6; }
.pf-quick-card .t { display: block; font-weight: 900; color: #fff; margin-bottom: 4px; }
.pf-quick-card .d { display: block; color: rgba(255, 255, 255, .78); font-size: .9rem; line-height: 1.6; }

/* Layers */
.pf-layers { position: relative; margin-top: -56px; z-index: 3; }
.pf-layer {
  position: relative; border-radius: var(--pf-radius); padding: 26px 16px;
  box-shadow: var(--pf-shadow); border: 1px solid rgba(10, 58, 74, .10);
  backdrop-filter: blur(14px); overflow: hidden;
}
@media (min-width: 768px) { .pf-layer { padding: 26px 24px; } }
.pf-layer + .pf-layer { margin-top: -28px; }
.pf-layer::before {
  content: ""; position: absolute; inset: -120px auto auto -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 62%); opacity: .55; pointer-events: none;
}
.pf-layer-inner { position: relative; z-index: 1; padding-bottom: 28px; }
.pf-layer:last-child .pf-layer-inner { padding-bottom: 0; }
.pf-layer-1 { background: radial-gradient(circle at 18% 20%, rgba(26, 140, 148, .18), transparent 58%), linear-gradient(180deg, rgba(26, 140, 148, .08), rgba(255, 255, 255, .86)), var(--surface); }
.pf-layer-2 { background: radial-gradient(circle at 20% 25%, rgba(233, 182, 34, .20), transparent 60%), linear-gradient(180deg, rgba(233, 182, 34, .08), rgba(255, 255, 255, .86)), var(--surface); }
.pf-layer-3 { background: radial-gradient(circle at 20% 25%, rgba(10, 58, 74, .12), transparent 62%), linear-gradient(180deg, rgba(10, 58, 74, .06), rgba(255, 255, 255, .86)), var(--surface); }
.pf-layer-4 { background: radial-gradient(circle at 18% 22%, rgba(26, 140, 148, .14), transparent 60%), radial-gradient(circle at 80% 18%, rgba(233, 182, 34, .12), transparent 58%), linear-gradient(180deg, rgba(26, 140, 148, .06), rgba(255, 255, 255, .86)), var(--surface); }
.pf-layer-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 900; font-size: .9rem; padding: .38rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(10, 58, 74, .12); color: var(--brand-secondary);
}
.pf-layer-title { font-weight: 900; color: var(--brand-secondary); margin: 10px 0 6px; font-size: 1.4rem; line-height: 1.45; }
@media (min-width: 768px) { .pf-layer-title { font-size: 1.65rem; } }
.pf-layer-desc { color: var(--text); opacity: .9; line-height: 1.95; margin: 0 0 10px; max-width: 85ch; font-size: 1.02rem; }
.pf-layer-micro { color: var(--text-muted); font-size: .98rem; line-height: 1.8; margin: 0; max-width: 85ch; }

/* Tool strip: horizontal scroll, peek on phones, arrows on wider screens */
.pf-strip { position: relative; margin-top: 14px; }
.pf-home .pf-strip-track {
  display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 2px 2px 8px;
}
.pf-strip-track::-webkit-scrollbar { display: none; }
.pf-tool-card {
  position: relative; flex: 0 0 82%; scroll-snap-align: start;
  border-radius: 18px; padding: 14px; padding-inline-start: 20px; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .86));
  border: 1px solid rgba(10, 58, 74, .12); box-shadow: 0 16px 44px rgba(15, 23, 42, .10);
  min-height: 178px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.pf-tool-card::before {
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 6px;
  background: var(--brand-primary); opacity: .95;
}
.pf-tool-card:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(15, 23, 42, .14); border-color: rgba(26, 140, 148, .22); }
.pf-tool-card.is-soon::before { background: var(--border); }
.pf-tool-name { font-weight: 900; color: var(--brand-secondary); margin: 0 0 6px; font-size: 1.08rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.pf-tool-text { color: var(--text); opacity: .85; margin: 0 0 12px; line-height: 1.8; font-size: .95rem; }
.pf-tool-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: .88rem;
  border-top: 1px solid rgba(10, 58, 74, .10); padding-top: 10px;
}
.pf-body .pf-tool-meta a { color: var(--brand-secondary); text-decoration: none; font-weight: 900; }
.pf-body .pf-tool-meta a:hover { color: var(--brand-primary); text-decoration: underline; }
.pf-soon-hint { font-weight: 900; color: var(--text-muted); }
.pf-soon-badge {
  display: inline-flex; align-items: center; font-weight: 900; font-size: .8rem;
  padding: .2rem .6rem; border-radius: 999px;
  background: rgba(10, 58, 74, .08); border: 1px solid rgba(10, 58, 74, .14); color: var(--text-muted);
}
.pf-strip-nav { display: none; }
@media (min-width: 577px) {
  .pf-home .pf-strip-track { padding-inline: 42px; scroll-padding-inline: 42px; }
  .pf-tool-card { flex-basis: clamp(240px, 44vw, 360px); }
  .pf-strip-nav:not([hidden]) {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 44px; height: 44px; border-radius: 999px;
    border: 1px solid rgba(10, 58, 74, .18); background: rgba(255, 255, 255, .92);
    color: var(--brand-secondary); font-weight: 900; font-size: 1.35rem; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .14); cursor: pointer;
  }
  .pf-strip-nav:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
  .pf-strip-nav.prev { inset-inline-start: -10px; }
  .pf-strip-nav.next { inset-inline-end: -10px; }
  [dir="rtl"] .pf-strip-nav.prev { transform: translateY(-50%) scaleX(-1); }
  [dir="rtl"] .pf-strip-nav.next { transform: translateY(-50%) scaleX(-1); }
}
@media (min-width: 992px) { .pf-tool-card { flex-basis: clamp(260px, 30vw, 340px); } }

/* ---------- Core and tool screens inside the chrome ---------- */
.pf-content > .mz-root { background: transparent; }

/* The reader's own space (pages/my.blade.php). */
.pf-my-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.pf-my-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; padding-block: 0.5rem; border-bottom: 1px solid var(--border); }
.pf-my-label { font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: 9999px; background: var(--surface); color: var(--text-muted); }
.pf-my-time { margin-inline-start: auto; font-size: 0.75rem; color: var(--text-muted); }
.pf-my-tool { margin-block-end: 1rem; }
.pf-my-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
