/* Product layout on the vendored Midnight Synapse foundation. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { min-width: 320px; }
a,button,input,select { -webkit-tap-highlight-color: transparent; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(5 3 15 / 94%); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ps-color-border); }
.site-nav { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ps-color-text) !important; font: 700 25px/1 var(--ps-font-heading); letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.wordmark-accent { color: var(--ps-color-violet-light); }
.nav-items { display: flex; gap: 32px; align-items: center; }
.nav-items a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ps-color-muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-items a:is(:hover,[aria-current]) { color: var(--ps-color-text); }
.nav-note { display: flex; align-items: center; gap: 8px; font: 11px var(--ps-font-mono); color: var(--ps-color-muted); white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ps-color-success); }
.home-hero { background: radial-gradient(ellipse 70% 85% at 15% 0%,#1e1046 0%,var(--ps-color-page) 68%); border-bottom: 1px solid var(--ps-color-border); }
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 76px; padding-block: 82px 76px; }
.hero-copy .ps-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; }
.eyebrow-line { width: 22px; height: 1px; background: var(--ps-color-violet-light); }
h1,h2,h3 { font-family: var(--ps-font-heading); text-wrap: balance; }
.hero-copy h1 { margin: 23px 0 24px; font-size: clamp(42px,5.6vw,68px); line-height: 1.04; font-weight: 700; letter-spacing: -.055em; }
.hero-copy h1>span { color: var(--ps-color-violet-light); }
.hero-description { max-width: 430px; font-size: 17px; line-height: 1.7; color: var(--ps-color-muted); }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.hero-actions .ps-button { gap: 24px; font-size: 14px; }
.hero-assurance { color: var(--ps-color-muted); font-size: 11px; line-height: 1.8; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ps-color-muted); margin-top: 34px; font-size: 11px; }
.hero-proof span::first-letter { color: var(--ps-color-violet-light); }
.hero-widget { min-width: 0; }
.widget-caption { display: block; text-align: center; color: var(--ps-color-muted); margin-top: 16px; font: 10px/1.5 var(--ps-font-mono); }
.calculator { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ps-color-border-strong); border-radius: var(--ps-radius-panel); overflow: hidden; background: var(--ps-color-surface); }
.calculator-inputs { padding: 32px; }
.widget-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.widget-heading .ps-eyebrow { font-size: 10px; }
.live-tag { font: 9px var(--ps-font-mono); color: var(--ps-color-success); }
.live-tag::before { content: '●'; margin-right: 6px; font-size: 7px; }
.input-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.input-wrap { position: relative; }
.input-wrap:has(.input-suffix) input { padding-right: 46px; }
.input-suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ps-color-muted); font-size: 14px; pointer-events: none; }
.calculator .ps-field label { font-size: 13px; color: var(--ps-color-text); }
.calculator .ps-input { background: #110d25; min-height: 52px; padding: 13px 16px; }
.calculator select.ps-input { padding-right: 32px; }
.calculator .ps-help { font-size: 11px; line-height: 1.55; }
.calculator form>.ps-field { margin-bottom: 22px; }
.single-mode { display: none; }
.input-actions { display: flex; justify-content: space-between; margin-top: 20px; gap: 12px; }
.text-button { background: none; border: 0; min-height: 44px; padding: 8px 0; color: var(--ps-color-violet-light); font-size: 12px !important; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--ps-color-violet-hover); }
.input-note { color: var(--ps-color-muted); font-size: 11px; line-height: 1.5; }
.field-error { color: var(--ps-color-error); font-size: 13px; margin-top: 16px !important; }
.inline-error { margin-top: 2px !important; font-weight: 500; }
.calculator .ps-field { scroll-margin-block: 140px; }
.calculator .ps-input[aria-invalid='true'] { border-color: var(--ps-color-error); }
.calculator .ps-input[aria-invalid='true']:focus { outline: 2px solid var(--ps-color-error); outline-offset: 3px; }
.error-summary { border: 1px solid var(--ps-color-error); border-left-width: 3px; border-radius: 8px; padding: 18px; margin-bottom: 24px; background: var(--ps-color-band); }
.error-summary h2 { color: var(--ps-color-error); font-size: 17px; line-height: 1.3; }
.error-summary>p { color: var(--ps-color-muted); font-size: 12px; margin-block: 8px !important; }
.error-summary ul { padding-left: 18px; margin: 8px 0 0; font-size: 12px; }
.error-summary a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 4px; color: var(--ps-color-text); }
.form-feedback { min-height: 20px; margin-top: 14px !important; color: var(--ps-color-muted); font-size: 12px; }
.form-feedback[data-state='valid'] { color: var(--ps-color-success); }
.form-feedback[data-state='error'] { color: var(--ps-color-error); }
.calculate-button { width: 100%; margin-top: 14px; }
.sr-submit { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.sr-submit:focus-visible { position: static; width: auto; height: auto; padding: 8px 16px; clip-path: none; }
.result-panel { padding: 36px 32px; background: radial-gradient(ellipse at 0 0,#251347 0%,#120d26 70%); border-left: 1px solid var(--ps-color-border-strong); display: flex; flex-direction: column; min-width: 0; }
.result-label { font-size: 13px; color: var(--ps-color-violet-hover); }
[data-result] { min-height: 230px; }
.result-number { font: 500 clamp(36px,4vw,56px)/1.18 var(--ps-font-heading); letter-spacing: -.045em; color: var(--ps-color-text); margin-block: 12px 24px !important; overflow-wrap: anywhere; }
.result-placeholder { font: 500 48px var(--ps-font-heading); color: var(--ps-color-muted); }
.result-details { margin: 0 0 22px; display: grid; gap: 12px; font-size: 13px; }
.result-details>div { display: flex; gap: 16px; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--ps-color-border-strong); }
.result-details dt { color: var(--ps-color-muted); }
.result-details dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.result-explanation { color: var(--ps-color-muted); font-size: 13px; line-height: 1.75; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.result-button { display: inline-flex; align-items: center; gap: 14px; justify-content: center; background: rgb(14 11 30 / 45%); border: 1px solid var(--ps-color-control-border); border-radius: 8px; color: var(--ps-color-text); min-height: 44px; padding: 10px 14px; font-size: 12px !important; }
.result-button:hover { background: var(--ps-color-raised); }
.result-button:disabled { color: var(--ps-color-muted); cursor: not-allowed; opacity: .65; }
[data-copy-status]:not(:empty) { margin-top: 12px; color: var(--ps-color-success); }
.local-note { display: flex; gap: 8px; font-size: 10px; color: var(--ps-color-muted); margin-top: auto !important; padding-top: 24px; }
.calculator--compact { grid-template-columns: 1fr; box-shadow: 0 14px 80px rgb(0 0 0 / 18%); }
.calculator--compact .calculator-inputs { padding: 26px 28px 22px; }
.calculator--compact .widget-heading { margin-bottom: 18px; }
.calculator--compact form>.ps-field { display: none; }
.calculator--compact .input-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
.calculator--compact .ps-help { display: none; }
.calculator--compact .result-panel { border-left: 0; border-top: 1px solid var(--ps-color-border-strong); padding: 24px 28px; }
.calculator--compact .result-number { font-size: 56px; margin-block: 4px 10px !important; }
.calculator--compact [data-result] { min-height: 110px; }
.calculator--compact .result-explanation { font-size: 12px; }
.calculator--compact .result-actions { margin-top: 18px; }
.calculator--compact .local-note { display: none; }
.directory-section { padding-block: 70px 80px; }
.section-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.section-row .ps-eyebrow { font-size: 10px; margin-bottom: 12px; }
.section-row h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.035em; }
.tool-count { font: 10px var(--ps-font-mono); color: var(--ps-color-muted); white-space: nowrap; }
.directory-controls { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--ps-color-border); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-button { min-height: 44px; padding: 9px 14px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--ps-color-muted); font-size: 12px !important; }
.filter-button[aria-pressed=true] { background: #21123d; border-color: var(--ps-color-violet-light); color: var(--ps-color-violet-hover); }
.filter-button span { margin-left: 9px; font: 10px var(--ps-font-mono); }
.search-wrap { position: relative; flex: 0 1 250px; min-width: 180px; }
.search-wrap>span { position: absolute; top: 9px; left: 14px; font-size: 20px; color: var(--ps-color-muted); }
.search-wrap input { width: 100%; min-height: 44px; padding: 10px 14px 10px 40px; border: 1px solid var(--ps-color-control-border); border-radius: 8px; background: var(--ps-color-surface); color: var(--ps-color-text); font-size: 12px; }
.search-wrap input::placeholder { color: var(--ps-color-muted); }
.tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: var(--ps-color-surface); border: 1px solid var(--ps-color-border); border-radius: 14px; text-decoration: none; color: var(--ps-color-text) !important; transition: border-color 160ms ease-out,background 160ms ease-out; }
.tool-card:is(:hover,:focus-visible) { border-color: var(--ps-color-violet-light); background: #130e27; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.tool-symbol { display: grid; place-items: center; width: 42px; height: 42px; background: #21133c; border: 1px solid #382557; border-radius: 10px; color: var(--ps-color-violet-light); font: 500 23px var(--ps-font-heading); }
.card-category { color: var(--ps-color-muted); font: 9px var(--ps-font-mono); letter-spacing: .06em; text-transform: uppercase; }
.tool-card h3 { font-size: 21px; font-weight: 500; letter-spacing: -.03em; line-height: 1.3; margin-bottom: 10px; }
.tool-card p { color: var(--ps-color-muted); font-size: 13px; line-height: 1.7; margin-bottom: 22px; }
.card-bottom { display: flex; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid var(--ps-color-border); margin-top: auto; font-size: 11px; color: var(--ps-color-violet-light); }
.card-bottom>span { font-size: 16px; }
.empty-search { padding: 40px; border: 1px dashed var(--ps-color-border-strong); border-radius: 14px; text-align: center; }
.empty-search p { margin: 12px 0 20px; color: var(--ps-color-muted); }
.how-band { padding-block: 56px; background: var(--ps-color-band); border-block: 1px solid var(--ps-color-border); }
.how-grid { display: grid; grid-template-columns: 1.25fr repeat(3,1fr); gap: 34px; }
.how-grid>.ps-eyebrow,.how-grid .ps-eyebrow { font-size: 9px; margin-bottom: 16px; }
.how-grid h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.03em; }
.how-item { border-top: 1px solid var(--ps-color-border-strong); padding-top: 12px; }
.how-item>span { font: 10px var(--ps-font-mono); color: var(--ps-color-violet-light); }
.how-item h3 { font-size: 16px; font-weight: 500; margin: 14px 0 8px; }
.how-item p { color: var(--ps-color-muted); font-size: 12px; line-height: 1.7; }
.site-footer { background: var(--ps-color-void); padding-block: 44px 20px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; padding-bottom: 32px; }
.footer-wordmark { font-size: 20px; }
.footer-wordmark svg { width: 26px; height: 26px; }
.footer-top p { font-size: 12px; color: var(--ps-color-muted); margin: 12px 0 5px; }
.footer-top .ps-small { font-size: 10px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; align-content: start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; font-size: 12px; color: var(--ps-color-muted); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ps-color-border); padding-top: 20px; color: var(--ps-color-muted); font-size: 10px; }
.page-heading { padding-top: 48px; }
.breadcrumb,.breadcrumbs { color: var(--ps-color-muted); font-size: 12px; }
.page-heading .ps-eyebrow { margin-top: 32px; }
.page-heading h1 { font-size: clamp(34px,5vw,56px); line-height: 1.1; letter-spacing: -.04em; margin-top: 18px; }
.page-description { color: var(--ps-color-muted); max-width: 640px; margin-top: 20px !important; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 30px; }
.breadcrumbs a { color: var(--ps-color-muted); text-decoration: none; }
.tool-heading { margin-block: 14px 34px; max-width: 800px; }
.tool-heading .ps-eyebrow { font-size: 10px; }
.tool-heading h1 { font-size: clamp(32px,4vw,46px); line-height: 1.1; letter-spacing: -.04em; margin-block: 14px 16px; }
.tool-heading>p { color: var(--ps-color-muted); max-width: 680px; font-size: 16px; }
.guide-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 80px; margin-block: 64px 80px; }
.tool-guide { min-width: 0; }
.tool-guide section { margin-bottom: 36px; }
.tool-guide section>.ps-eyebrow { font-size: 10px; margin-bottom: 14px; }
.tool-guide h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 16px; }
.tool-guide p { color: var(--ps-color-muted); font-size: 15px; line-height: 1.8; }
.formula-block { padding: 18px 20px; margin-top: 12px; background: var(--ps-color-surface); border: 1px solid var(--ps-color-border); border-radius: 8px; }
.formula-block h3 { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.formula-block p { color: var(--ps-color-violet-hover); font: 12px/1.8 var(--ps-font-mono); }
.assumption-note { padding: 24px; border-left: 2px solid var(--ps-color-violet-light); background: var(--ps-color-band); }
.related-tools { align-self: start; position: sticky; top: 120px; min-width: 0; }
.related-tools .ps-eyebrow { font-size: 10px; }
.related-tools h2 { font-size: 21px; margin-block: 12px 20px; }
.related-link { display: flex; justify-content: space-between; gap: 20px; min-height: 52px; align-items: center; text-decoration: none; color: var(--ps-color-text) !important; border-bottom: 1px solid var(--ps-color-border); font-size: 13px; }
.related-link>span:last-child { color: var(--ps-color-violet-light); }
.direct-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: 12px; margin-top: 16px; }
.ad-placement { margin-block: 48px; padding: 18px; border: 1px solid var(--ps-color-border); border-radius: 14px; background: var(--ps-color-surface); min-width: 0; }
.ad-label { color: var(--ps-color-muted); font: 500 10px/1.5 var(--ps-font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px !important; }
.ad-placement .adsbygoogle { min-height: 250px; max-width: 100%; }
.ad-preview-body { display: grid; place-content: center; gap: 10px; min-height: 250px; padding: 24px; border: 1px dashed var(--ps-color-border-strong); border-radius: 8px; text-align: center; color: var(--ps-color-muted); }
.ad-preview-body>span { font: 500 20px/1.3 var(--ps-font-heading); color: var(--ps-color-text); }
.ad-preview-body>p { font-size: 13px; }
.privacy-choices { background: transparent; border: 0; padding: 8px 0; text-align: left; color: var(--ps-color-muted); font: inherit; font-size: 12px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.ad-placement[data-ad-unavailable='true'] .adsbygoogle { visibility: hidden; }
.aside-note { margin-top: 30px; padding: 24px; background: var(--ps-color-surface); border: 1px solid var(--ps-color-border); border-radius: 14px; }
.aside-note>span { color: var(--ps-color-violet-light); font-size: 25px; }
.aside-note h3 { margin: 12px 0 8px; font-size: 17px; }
.aside-note p { color: var(--ps-color-muted); font-size: 12px; }
.info-page { max-width: 840px; padding-block: 70px 80px; }
.info-page h1 { font-size: clamp(36px,5vw,56px); line-height: 1.1; letter-spacing: -.04em; margin-block: 20px 40px; }
.info-page section { margin-bottom: 32px; }
.info-page h2 { font-size: 23px; margin-bottom: 12px; }
.info-page p { color: var(--ps-color-muted); }
@media(max-width:1000px) {
  .hero-grid { gap: 36px; }
  .nav-note { display: none; }
  .guide-layout { gap: 40px; grid-template-columns: minmax(0,1fr) 230px; }
  .how-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:760px) {
  .site-nav { min-height: 100px; flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 18px 6px; }
  .nav-items { width: 100%; gap: 24px; }
  .nav-items a { min-height: 44px; font-size: 12px; }
  html { scroll-padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 48px; gap: 40px; }
  .hero-copy h1 { font-size: 52px; }
  .hero-description { max-width: 520px; }
  .hero-widget { max-width: 520px; width: 100%; }
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .directory-controls { flex-direction: column; align-items: stretch; gap: 16px; }
  .search-wrap { flex: auto; }
  .section-row { align-items: flex-start; }
  .section-row h2 { font-size: 27px; }
  .tool-count { display: none; }
  .calculator { grid-template-columns: 1fr; }
  .result-panel { border-left: 0; border-top: 1px solid var(--ps-color-border-strong); }
  .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .related-tools { position: static; }
  .result-number { font-size: 44px; }
}
@media(max-width:480px) {
  .wordmark { font-size: 19px; gap: 8px; }
  .wordmark svg { width: 26px; height: 26px; flex-shrink: 0; }
  .hero-copy h1 { font-size: 43px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-assurance br { display: none; }
  .hero-proof { gap: 10px 16px; font-size: 10px; }
  .calculator--compact .calculator-inputs,.calculator--compact .result-panel { padding: 22px; }
  .calculator--compact .input-grid { gap: 12px; }
  .calculator-inputs,.result-panel { padding: 24px; }
  .tool-grid { grid-template-columns: 1fr; }
  .directory-section { padding-block: 44px 50px; }
  .filter-button { font-size: 11px !important; padding-inline: 10px; }
  .how-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-top,.footer-bottom { flex-direction: column; gap: 24px; }
  .footer-links { column-gap: 20px; }
  .nav-items { gap: 18px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
@media print {
  .ad-placement,.privacy-choices { display: none !important; }
  :root { color-scheme: light; }
  .ps-theme { background: white; color: black; font-size: 11pt; }
  .site-header,.site-footer,.breadcrumbs,.guide-layout,.input-actions,.input-note,.result-actions,.local-note,.home-hero .hero-copy,.widget-caption,.directory-section,.how-band,.ps-skip-link,[data-copy-status],.sr-submit,.calculate-button,.form-feedback { display: none !important; }
  .hero-grid { display: block; padding: 0; }
  .home-hero,.result-panel,.calculator,.calculator .ps-input { background: white; color: black; box-shadow: none; }
  .calculator { display: block; border: 1px solid #888; break-inside: avoid; }
  .calculator::before { content: attr(aria-label); display: block; padding: 16px 24px 0; color: black; font-weight: 700; }
  .calculator .ps-input { border: 1px solid #888; }
  .ps-container { padding: 0; }
  .calculator p,.calculator label,.calculator dt,.calculator dd,.input-suffix,.ps-help,.ps-eyebrow,.live-tag,.tool-heading>p { color: black !important; }
  .result-panel { border: 0; border-top: 1px solid #888; padding: 20px; }
  .result-number { font-size: 30pt; }
  .tool-heading h1 { font-size: 22pt; }
  .ps-theme { -webkit-print-color-adjust: economy; print-color-adjust: economy; }
}
