/* ============================================================
   FERRO THEME — fe- prefix
   Palette: Amber #f59e0b, Zinc #18181b | IBM Plex Mono + IBM Plex Sans
   Signature: star rating, score breakdown table, industrial thick borders
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {--fe_text:     rgba(212,212,216,1);--fe_surface:  #141414;--fe_bd-thick: 3px;--fe_r-lg:     6px;--fe_white:    rgb(250,250,250);--fe_amber:    #f59e0b;--fe_amber-lt: #fcd34d;--fe_shadow:   0 4px 20px rgba(0,0,0,.6);--fe_border:   #2d2d2d;--fe_r:        4px;--fe_amber-dk: #d97706;--fe_bg:       rgba(12,12,12,1);--fe_muted:    #a1a1aa;--fe_border-hv:rgb(245,158,11);--fe_card:     #1c1c1c}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {box-sizing: border-box;padding: 0;margin: 0}
html { scroll-behavior: smooth; }
body {font-family: 'IBM Plex Sans', sans-serif;min-height: 100vh;color: var(--fe_text);line-height: 1.6;background: var(--fe_bg);font-size: 16px;visibility:visible;pointer-events:auto;user-select:auto;isolation:auto}
img {display: block;max-width: 100%;height: auto}
a {text-decoration: none;color: var(--fe_amber)}
a:hover { text-decoration: underline; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {line-height: 1.15;font-weight: 700;font-family: 'IBM Plex Sans', sans-serif;color: var(--fe_white)}
h5, h6, .fe-mono { font-family: 'IBM Plex Mono', monospace; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.65rem); }
p  { color: var(--fe_text); }

/* ── Layout ─────────────────────────────────────────────────── */
.fe-container {padding: 0 20px;width: 100%;max-width: 1160px;margin: 0 auto}
.fe-section   { padding: 72px 0; }

/* ── Nav ────────────────────────────────────────────────────── */
.fe-nav {background: var(--fe_bg);position: sticky;z-index: 100;top: 0;border-bottom: var(--fe_bd-thick) solid var(--fe_amber)}
.fe-nav__inner {padding: 0 20px;max-width: 1160px;display: flex;align-items: center;height: 60px;margin: 0 auto;justify-content: space-between}
.fe-nav__logo {letter-spacing: .08em;color: var(--fe_white);font-size: 1.3rem;font-family: 'IBM Plex Mono', monospace;font-weight: 600}
.fe-nav__logo span { color: var(--fe_amber); }
.fe-nav__links {gap: 26px;list-style: none;display: flex}
.fe-nav__links a {font-size: .82rem;transition: color .2s;font-family: 'IBM Plex Mono', monospace;text-transform: uppercase;letter-spacing: .06em;color: var(--fe_muted)}
.fe-nav__links a:hover {text-decoration: none;color: var(--fe_amber)}
.fe-nav__cta {border-radius: var(--fe_r);letter-spacing: .08em;font-weight: 600;padding: 8px 18px;color: #000 !important;transition: background .2s;background: var(--fe_amber);font-family: 'IBM Plex Mono', monospace;font-size: .82rem;text-transform: uppercase}
.fe-nav__cta:hover {background: var(--fe_amber-lt);text-decoration: none}
.fe-burger {border: none;padding: 4px;background: none;gap: 5px;display: none;cursor: pointer;flex-direction: column}
.fe-burger span {height: 2px;transition: all .3s;background: var(--fe_text);width: 22px;display: block}
.fe-nav__mobile { display: none; }

/* ── Hero ────────────────────────────────────────────────────── */
.fe-hero {padding: 64px 0 56px;background: var(--fe_surface);border-bottom: var(--fe_bd-thick) solid var(--fe_border)}
.fe-hero__inner {align-items: start;display: grid;gap: 48px;grid-template-columns: 1fr 400px}
.fe-hero__tag {font-family: 'IBM Plex Mono', monospace;text-transform: uppercase;background: var(--fe_card);border-radius: var(--fe_r);gap: 6px;align-items: center;color: var(--fe_amber);font-size: .72rem;margin-bottom: 18px;border: 1px solid var(--fe_border);letter-spacing: .08em;padding: 4px 12px;display: inline-flex}
.fe-hero__h1 { margin-bottom: 16px; }
.fe-hero__h1 em {font-style: normal;color: var(--fe_amber)}
.fe-hero__lead {font-size: 1rem;color: var(--fe_muted);max-width: 460px;margin-bottom: 28px}
.fe-hero__actions {gap: 12px;display: flex;flex-wrap: wrap}

/* Star rating block */
.fe-star-block {background: var(--fe_card);border: 1px solid var(--fe_border);padding: 12px 16px;margin-bottom: 18px;display: flex;border-radius: var(--fe_r);align-items: center;gap: 10px}
.fe-star-block__stars {letter-spacing: 3px;font-size: 1.3rem;color: var(--fe_amber)}
.fe-star-block__num {font-family: 'IBM Plex Mono', monospace;color: var(--fe_white);font-size: 1.4rem;font-weight: 600}
.fe-star-block__label {font-size: .78rem;color: var(--fe_muted)}

/* Score breakdown table (signature) */
.fe-score-table {border-radius: var(--fe_r-lg);box-shadow: var(--fe_shadow);overflow: hidden;background: var(--fe_card);border: var(--fe_bd-thick) solid var(--fe_border)}
.fe-score-table__head {padding: 12px 18px;background: var(--fe_amber);display: flex;justify-content: space-between;align-items: center}
.fe-score-table__head h3 {font-size: 1rem;text-transform: uppercase;color: #000;font-weight: 700;letter-spacing: .06em;font-family: 'IBM Plex Mono', monospace}
.fe-score-table__overall {font-weight: 700;font-family: 'IBM Plex Mono', monospace;font-size: 1.4rem;color: rgb(0,0,0)}
.fe-score-rows { padding: 10px 0; }
.fe-score-row {align-items: center;padding: 10px 18px;grid-template-columns: 130px 1fr 44px;border-bottom: 1px solid var(--fe_border);display: grid;gap: 12px}
.fe-score-row:last-child { border-bottom: none; }
.fe-score-row__name {text-transform: uppercase;font-family: 'IBM Plex Mono', monospace;color: var(--fe_muted);letter-spacing: .06em;font-size: .78rem}
.fe-score-row__bar {border-radius: var(--fe_r);background: var(--fe_border);position: relative;height: 6px}
.fe-score-row__fill {height: 100%;border-radius: var(--fe_r);background: var(--fe_amber)}
.fe-score-row__val {text-align: right;font-size: .88rem;font-weight: 600;font-family: 'IBM Plex Mono', monospace;color: var(--fe_white)}
.fe-score-table__footer {border-top: var(--fe_bd-thick) solid var(--fe_border);padding: 14px 18px}

/* ── Buttons ─────────────────────────────────────────────────── */
.fe-btn {font-weight: 600;border: none;border-radius: var(--fe_r);letter-spacing: .06em;gap: 8px;transition: all .2s;padding: 13px 24px;font-family: 'IBM Plex Mono', monospace;align-items: center;font-size: .88rem;text-decoration: none !important;display: inline-flex;text-transform: uppercase;cursor: pointer}
.fe-btn--primary {color: #000;background: var(--fe_amber)}
.fe-btn--primary:hover {background: var(--fe_amber-lt);transform: translateY(-1px)}
.fe-btn--outline {color: var(--fe_text);background: transparent;border: var(--fe_bd-thick) solid var(--fe_border)}
.fe-btn--outline:hover {color: var(--fe_amber);border-color: var(--fe_amber)}
.fe-btn--sm {font-size: .78rem;padding: 8px 16px}
.fe-btn--full {width: 100%;justify-content: center}

/* ── Feature Cards ───────────────────────────────────────────── */
.fe-features { background: var(--fe_bg); }
.fe-features__head { margin-bottom: 44px; }
.fe-features__head h2 { margin-bottom: 8px; }
.fe-features__head p { color: var(--fe_muted); }
.fe-features__grid {grid-template-columns: repeat(3, 1fr);gap: 2px;display: grid;background: var(--fe_border);border: var(--fe_bd-thick) solid var(--fe_border)}
.fe-feat-card {padding: 28px 22px;transition: background .2s;background: var(--fe_card)}
.fe-feat-card:hover { background: var(--fe_surface); }
.fe-feat-card__num {font-family: 'IBM Plex Mono', monospace;color: var(--fe_amber);letter-spacing: .12em;text-transform: uppercase;font-size: .72rem;margin-bottom: 14px}
.fe-feat-card__icon {font-size: 1.6rem;margin-bottom: 14px}
.fe-feat-card__title {font-size: 1.05rem;margin-bottom: 10px;font-weight: 700;color: var(--fe_white)}
.fe-feat-card__text {line-height: 1.65;font-size: .88rem;color: var(--fe_muted)}

/* ── Star review row ─────────────────────────────────────────── */
.fe-reviews {border-bottom: var(--fe_bd-thick) solid var(--fe_border);background: var(--fe_surface);border-top: var(--fe_bd-thick) solid var(--fe_border)}
.fe-reviews__head { margin-bottom: 28px; }
.fe-reviews__grid {background: var(--fe_border);gap: 2px;grid-template-columns: repeat(3, 1fr);display: grid}
.fe-review-card {background: var(--fe_card);padding: 22px 20px}
.fe-review-card__stars {margin-bottom: 10px;letter-spacing: 2px;color: var(--fe_amber);font-size: .95rem}
.fe-review-card__text {margin-bottom: 14px;font-style: italic;color: var(--fe_muted);font-size: .9rem;line-height: 1.6}
.fe-review-card__author {color: var(--fe_amber);font-size: .75rem;text-transform: uppercase;letter-spacing: .06em;font-family: 'IBM Plex Mono', monospace}

/* ── FAQ ─────────────────────────────────────────────────────── */
.fe-faq { background: var(--fe_bg); }
.fe-faq__head { margin-bottom: 40px; }
.fe-faq__head p {margin-top: 8px;color: var(--fe_muted)}
.fe-faq__list {flex-direction: column;border: var(--fe_bd-thick) solid var(--fe_border);display: flex;gap: 0}
.fe-faq-item {border-bottom: 1px solid var(--fe_border);transition: background .15s}
.fe-faq-item:last-child { border-bottom: none; }
.fe-faq-item:focus-within { background: var(--fe_surface); }
.fe-faq-item__q {display: flex;padding: 18px 20px;font-family: 'IBM Plex Sans', sans-serif;align-items: center;border: none;gap: 16px;cursor: pointer;justify-content: space-between;width: 100%;background: none;font-size: .95rem;font-weight: 600;text-align: left;color: var(--fe_white)}
.fe-faq-item__q:hover { color: var(--fe_amber); }
.fe-faq-item__mark {flex-shrink: 0;font-size: .75rem;color: var(--fe_amber);font-family: 'IBM Plex Mono', monospace;transition: transform .3s}
.fe-faq-item[data-open] .fe-faq-item__mark { transform: rotate(45deg); }
.fe-faq-item__a {padding: 0 20px;transition: max-height .35s ease, padding .35s;max-height: 0;overflow: hidden}
.fe-faq-item[data-open] .fe-faq-item__a {max-height: 400px;padding: 0 20px 18px}
.fe-faq-item__a p {font-size: .9rem;color: var(--fe_muted);line-height: 1.7}

/* ── Payments ────────────────────────────────────────────────── */
.fe-payments { background: var(--fe_surface); }
.fe-payments__head { margin-bottom: 36px; }
.fe-payments__head p {margin-top: 8px;color: var(--fe_muted)}
.fe-pay-grid {border: var(--fe_bd-thick) solid var(--fe_border);grid-template-columns: repeat(5, 1fr);gap: 2px;display: grid;background: var(--fe_border)}
.fe-pay-card {padding: 20px 14px;text-align: center;transition: background .2s;background: var(--fe_card)}
.fe-pay-card:hover { background: var(--fe_surface); }
.fe-pay-card__icon {font-size: 1.8rem;margin-bottom: 8px}
.fe-pay-card__name {font-size: .75rem;font-weight: 600;text-transform: uppercase;color: var(--fe_text);font-family: 'IBM Plex Mono', monospace;letter-spacing: .06em}
.fe-pay-card__time {font-size: .7rem;color: var(--fe_muted);margin-top: 4px}

/* ── CTA ─────────────────────────────────────────────────────── */
.fe-cta-section {padding: 72px 0;text-align: center;border-top: var(--fe_bd-thick) solid var(--fe_amber);background: var(--fe_surface)}
.fe-cta-section h2 { margin-bottom: 14px; }
.fe-cta-section p {color: var(--fe_muted);margin-bottom: 28px;font-size: 1rem}
.fe-cta-section .fe-btn--primary {padding: 15px 32px;font-size: .95rem}

/* ── Footer ─────────────────────────────────────────────────── */
.fe-footer {background: #000;padding: 54px 0 28px;border-top: var(--fe_bd-thick) solid var(--fe_border)}
.fe-footer__grid {gap: 40px;margin-bottom: 44px;grid-template-columns: 1.5fr 1fr 1fr 1fr;display: grid}
.fe-footer__brand {margin-bottom: 14px;font-family: 'IBM Plex Mono', monospace;color: var(--fe_white);letter-spacing: .06em;font-weight: 600;font-size: 1.3rem}
.fe-footer__brand span { color: var(--fe_amber); }
.fe-footer__desc {color: var(--fe_muted);line-height: 1.65;font-size: .85rem}
.fe-footer__col h4 {color: var(--fe_muted);font-family: 'IBM Plex Mono', monospace;font-size: .68rem;font-weight: 600;letter-spacing: .1em;margin-bottom: 14px;text-transform: uppercase}
.fe-footer__col ul {flex-direction: column;display: flex;gap: 8px;list-style: none}
.fe-footer__col ul a {font-size: .88rem;transition: color .2s;color: var(--fe_muted)}
.fe-footer__col ul a:hover {color: var(--fe_amber);text-decoration: none}
.fe-footer__bottom {gap: 12px;justify-content: space-between;display: flex;padding-top: 22px;align-items: center;border-top: 1px solid var(--fe_border);flex-wrap: wrap}
.fe-footer__copy {font-size: .8rem;color: var(--fe_muted)}
.fe-footer__warn {color: var(--fe_muted);font-size: .75rem;max-width: 500px;text-align: right}

/* ── Sticky CTA ─────────────────────────────────────────────── */
.sf-sticky-cta {left: 0;border-top: var(--fe_bd-thick) solid var(--fe_amber-dk);right: 0;transform: translateY(100%);z-index: 200;bottom: 0;position: fixed;transition: transform .4s cubic-bezier(.22,1,.36,1);background: var(--fe_amber)}
.sf-sticky-cta.is-visible { transform: translateY(0); }
.sf-sticky-cta__inner {justify-content: space-between;margin: 0 auto;padding: 12px 20px;gap: 16px;display: flex;align-items: center;max-width: 1160px}
.sf-sticky-cta__text {font-size: .88rem;color: #000;font-weight: 600;letter-spacing: .06em;font-family: 'IBM Plex Mono', monospace;text-transform: uppercase}
.sf-sticky-cta__text span { text-decoration: underline; }
.sf-sticky-cta__actions {gap: 12px;display: flex;align-items: center}
.sf-sticky-cta__close {border: none;cursor: pointer;background: none;padding: 4px;font-size: 1.1rem;color: rgba(0,0,0,.6)}
.sf-sticky-cta__close:hover { color: #000; }

/* ── Legal / inner ───────────────────────────────────────────── */
.fe-page-hero {background: var(--fe_surface);padding: 50px 0 40px;border-bottom: var(--fe_bd-thick) solid var(--fe_border)}
.fe-page-hero__tag {color: var(--fe_amber);font-weight: 600;font-family: 'IBM Plex Mono', monospace;letter-spacing: .1em;text-transform: uppercase;font-size: .72rem;margin-bottom: 10px}
.fe-content {margin: 0 auto;max-width: 780px}
.fe-content h2 {border-left: var(--fe_bd-thick) solid var(--fe_amber);margin: 36px 0 12px;font-size: 1.5rem;padding-left: 14px}
.fe-content p  {margin-bottom: 16px;color: var(--fe_muted)}
.fe-content ul, .fe-content ol { margin: 0 0 16px 22px; }
.fe-content li {color: var(--fe_muted);margin-bottom: 8px}

/* ── Login ───────────────────────────────────────────────────── */
.fe-login-wrap {min-height: 80vh;padding: 60px 20px;align-items: center;justify-content: center;display: flex}
.fe-login-card {border-top: var(--fe_bd-thick) solid var(--fe_amber);border-radius: var(--fe_r-lg);padding: 44px 40px;width: 100%;border: var(--fe_bd-thick) solid var(--fe_border);max-width: 440px;background: var(--fe_surface)}
.fe-login-card h2 {margin-bottom: 8px;text-align: center}
.fe-login-card__sub {margin-bottom: 28px;font-size: .9rem;color: var(--fe_muted);text-align: center}
.fe-form {display: flex;gap: 16px;flex-direction: column}
.fe-form label {text-transform: uppercase;display: block;font-weight: 600;margin-bottom: 6px;letter-spacing: .08em;font-size: .75rem;color: var(--fe_muted);font-family: 'IBM Plex Mono', monospace}
.fe-form input {color: var(--fe_white);transition: border-color .2s;border-radius: var(--fe_r);padding: 12px 14px;border: 1.5px solid var(--fe_border);width: 100%;font-size: .9rem;font-family: 'IBM Plex Mono', monospace;background: var(--fe_card)}
.fe-form input:focus {border-color: var(--fe_amber);outline: none}
.fe-form__hint {margin-top: 4px;font-size: .78rem;color: var(--fe_muted);text-align: center}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fe-hero__inner { grid-template-columns: 1fr; }
  .fe-features__grid { grid-template-columns: repeat(2, 1fr); }
  .fe-reviews__grid { grid-template-columns: 1fr; }
  .fe-pay-grid { grid-template-columns: repeat(3, 1fr); }
  .fe-footer__grid { grid-template-columns: 1fr 1fr; }
  .fe-nav__links { display: none; }
  .fe-nav__cta { display: none; }
  .fe-burger { display: flex; }
  .fe-nav__mobile {border-top: 1px solid var(--fe_border);background: var(--fe_surface);flex-direction: column;gap: 12px;padding: 16px 20px;display: none}
  .fe-nav__mobile.is-open { display: flex; }
  .fe-nav__mobile a {padding: 8px 0;color: var(--fe_text);font-size: .92rem;border-bottom: 1px solid var(--fe_border)}
}
@media (max-width: 540px) {
  .fe-features__grid { grid-template-columns: 1fr; }
  .fe-pay-grid { grid-template-columns: repeat(2, 1fr); }
  .fe-footer__grid { grid-template-columns: 1fr; }
  .fe-login-card { padding: 28px 22px; }
}

/* siteforge-footer-overlap-guard: stable mobile footer layout + sticky CTA clearance */
:where(footer,[class*='-footer']){position:relative;z-index:1;overflow:visible}
:where([class*='footer__grid'],[class*='footer__strip'],[class*='footer__bar']){min-width:0}
:where([class*='footer__grid'],[class*='footer__strip'],[class*='footer__bar'])>*{min-width:0;max-width:100%}
:where([class*='footer__brandblock'],[class*='footer__summary'],[class*='footer__meta'],[class*='footer__copy'],[class*='footer__warn'],[class*='linkstack']){word-break:break-word;overflow-wrap:anywhere}
@media(max-width:760px){
  .sf-has-sticky-cta :where([class*='-shell']),.sf-has-sticky-cta main{padding-bottom:calc(140px + env(safe-area-inset-bottom,0px)) !important}
  .sf-has-sticky-cta main~footer,.sf-has-sticky-cta :where(footer,[class$='-footer']){padding-bottom:calc(112px + env(safe-area-inset-bottom,0px)) !important}
  :where([class*='footer__grid'],[class*='footer__strip'],[class*='footer__bar']){display:grid !important;align-items:start !important;grid-template-columns:1fr !important;gap:16px !important}
  :where([class*='footer__summary'],[class*='footer__bottom']){align-items:flex-start;gap:10px;display:flex;flex-direction:column;text-align:left}
  :where([class*='footer__brand']){clear:both;max-height:110px;float:none !important;max-width:110px;margin-bottom:12px}
}
