/* ============================================================
   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_amber-lt: #fcd34d;--fe_muted:    rgb(161,161,170);--fe_amber:    #f59e0b;--fe_border:   #2d2d2d;--fe_r:        4px;--fe_white:    rgba(250,250,250,1);--fe_card:     #1c1c1c;--fe_bg:       rgba(12,12,12,1);--fe_border-hv:#f59e0b;--fe_r-lg:     6px;--fe_text:     #d4d4d8;--fe_bd-thick: 3px;--fe_shadow:   0 4px 20px rgba(0,0,0,.6);--fe_amber-dk: rgba(217,119,6,1);--fe_surface:  #141414}

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {font-family: 'IBM Plex Sans', sans-serif;font-weight: 700;color: var(--fe_white);line-height: 1.15}
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%;margin: 0 auto;max-width: 1160px}
.fe-section   { padding: 72px 0; }

/* ── Nav ────────────────────────────────────────────────────── */
.fe-nav {z-index: 100;position: sticky;border-bottom: var(--fe_bd-thick) solid var(--fe_amber);top: 0;background: var(--fe_bg)}
.fe-nav__inner {align-items: center;padding: 0 20px;height: 60px;display: flex;max-width: 1160px;margin: 0 auto;justify-content: space-between}
.fe-nav__logo {font-family: 'IBM Plex Mono', monospace;font-size: 1.3rem;letter-spacing: .08em;font-weight: 600;color: var(--fe_white)}
.fe-nav__logo span { color: var(--fe_amber); }
.fe-nav__links {display: flex;list-style: none;gap: 26px}
.fe-nav__links a {text-transform: uppercase;color: var(--fe_muted);font-family: 'IBM Plex Mono', monospace;transition: color .2s;font-size: .82rem;letter-spacing: .06em}
.fe-nav__links a:hover {text-decoration: none;color: var(--fe_amber)}
.fe-nav__cta {padding: 8px 18px;text-transform: uppercase;background: var(--fe_amber);letter-spacing: .08em;font-size: .82rem;font-weight: 600;border-radius: var(--fe_r);transition: background .2s;font-family: 'IBM Plex Mono', monospace;color: #000 !important}
.fe-nav__cta:hover {text-decoration: none;background: var(--fe_amber-lt)}
.fe-burger {background: none;gap: 5px;padding: 4px;flex-direction: column;cursor: pointer;display: none;border: none}
.fe-burger span {background: var(--fe_text);width: 22px;display: block;transition: all .3s;height: 2px}
.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 {display: grid;grid-template-columns: 1fr 400px;gap: 48px;align-items: start}
.fe-hero__tag {align-items: center;gap: 6px;font-family: 'IBM Plex Mono', monospace;padding: 4px 12px;font-size: .72rem;background: var(--fe_card);margin-bottom: 18px;border-radius: var(--fe_r);text-transform: uppercase;border: 1px solid var(--fe_border);color: var(--fe_amber);letter-spacing: .08em;display: inline-flex}
.fe-hero__h1 { margin-bottom: 16px; }
.fe-hero__h1 em {font-style: normal;color: var(--fe_amber)}
.fe-hero__lead {margin-bottom: 28px;font-size: 1rem;max-width: 460px;color: var(--fe_muted)}
.fe-hero__actions {display: flex;gap: 12px;flex-wrap: wrap}

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

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

/* ── Buttons ─────────────────────────────────────────────────── */
.fe-btn {cursor: pointer;gap: 8px;font-size: .88rem;font-family: 'IBM Plex Mono', monospace;letter-spacing: .06em;padding: 13px 24px;text-transform: uppercase;transition: all .2s;border-radius: var(--fe_r);font-weight: 600;border: none;align-items: center;display: inline-flex;text-decoration: none !important}
.fe-btn--primary {background: var(--fe_amber);color: rgba(0,0,0,1)}
.fe-btn--primary:hover {background: var(--fe_amber-lt);transform: translateY(-1px)}
.fe-btn--outline {border: var(--fe_bd-thick) solid var(--fe_border);color: var(--fe_text);background: transparent}
.fe-btn--outline:hover {border-color: var(--fe_amber);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);background: var(--fe_border);border: var(--fe_bd-thick) solid var(--fe_border);display: grid;gap: 2px}
.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 {color: var(--fe_amber);margin-bottom: 14px;letter-spacing: .12em;font-size: .72rem;text-transform: uppercase;font-family: 'IBM Plex Mono', monospace}
.fe-feat-card__icon {font-size: 1.6rem;margin-bottom: 14px}
.fe-feat-card__title {font-weight: 700;margin-bottom: 10px;font-size: 1.05rem;color: var(--fe_white)}
.fe-feat-card__text {line-height: 1.65;color: var(--fe_muted);font-size: .88rem}

/* ── Star review row ─────────────────────────────────────────── */
.fe-reviews {background: var(--fe_surface);border-top: var(--fe_bd-thick) solid var(--fe_border);border-bottom: 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 {font-size: .95rem;margin-bottom: 10px;letter-spacing: 2px;color: var(--fe_amber)}
.fe-review-card__text {color: var(--fe_muted);margin-bottom: 14px;line-height: 1.6;font-size: .9rem;font-style: italic}
.fe-review-card__author {font-size: .75rem;letter-spacing: .06em;color: var(--fe_amber);text-transform: uppercase;font-family: 'IBM Plex Mono', monospace}

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

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

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

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

/* ── Sticky CTA ─────────────────────────────────────────────── */
.sf-sticky-cta {left: 0;bottom: 0;position: fixed;border-top: var(--fe_bd-thick) solid var(--fe_amber-dk);background: var(--fe_amber);right: 0;transition: transform .4s cubic-bezier(.22,1,.36,1);transform: translateY(100%);z-index: 200}
.sf-sticky-cta.is-visible { transform: translateY(0); }
.sf-sticky-cta__inner {padding: 12px 20px;max-width: 1160px;gap: 16px;margin: 0 auto;display: flex;align-items: center;justify-content: space-between}
.sf-sticky-cta__text {font-size: .88rem;letter-spacing: .06em;font-family: 'IBM Plex Mono', monospace;font-weight: 600;text-transform: uppercase;color: #000}
.sf-sticky-cta__text span { text-decoration: underline; }
.sf-sticky-cta__actions {display: flex;align-items: center;gap: 12px}
.sf-sticky-cta__close {font-size: 1.1rem;cursor: pointer;background: none;border: none;padding: 4px;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 {font-size: .72rem;text-transform: uppercase;font-weight: 600;color: var(--fe_amber);font-family: 'IBM Plex Mono', monospace;margin-bottom: 10px;letter-spacing: .1em}
.fe-content {margin: 0 auto;max-width: 780px}
.fe-content h2 {margin: 36px 0 12px;padding-left: 14px;font-size: 1.5rem;border-left: var(--fe_bd-thick) solid var(--fe_amber)}
.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;display: flex;align-items: center;justify-content: center}
.fe-login-card {max-width: 440px;border-radius: var(--fe_r-lg);border-top: var(--fe_bd-thick) solid var(--fe_amber);border: var(--fe_bd-thick) solid var(--fe_border);background: var(--fe_surface);width: 100%;padding: 44px 40px}
.fe-login-card h2 {text-align: center;margin-bottom: 8px}
.fe-login-card__sub {font-size: .9rem;margin-bottom: 28px;color: var(--fe_muted);text-align: center}
.fe-form {display: flex;flex-direction: column;gap: 16px}
.fe-form label {text-transform: uppercase;font-weight: 600;font-size: .75rem;margin-bottom: 6px;color: var(--fe_muted);display: block;font-family: 'IBM Plex Mono', monospace;letter-spacing: .08em}
.fe-form input {background: var(--fe_card);font-size: .9rem;width: 100%;border: 1.5px solid var(--fe_border);border-radius: var(--fe_r);transition: border-color .2s;padding: 12px 14px;font-family: 'IBM Plex Mono', monospace;color: var(--fe_white)}
.fe-form input:focus {border-color: var(--fe_amber);outline: none}
.fe-form__hint {color: var(--fe_muted);text-align: center;margin-top: 4px;font-size: .78rem}

/* ── 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 {flex-direction: column;display: none;gap: 12px;border-top: 1px solid var(--fe_border);background: var(--fe_surface);padding: 16px 20px}
  .fe-nav__mobile.is-open { display: flex; }
  .fe-nav__mobile a {border-bottom: 1px solid var(--fe_border);color: var(--fe_text);font-size: .92rem;padding: 8px 0}
}
@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']){z-index:1;position:relative;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']){align-items:start !important;display:grid !important;gap:16px !important;grid-template-columns:1fr !important}
  :where([class*='footer__summary'],[class*='footer__bottom']){flex-direction:column;align-items:flex-start;display:flex;gap:10px;text-align:left}
  :where([class*='footer__brand']){margin-bottom:12px;float:none !important;max-height:110px;clear:both;max-width:110px}
}
