/* ============================================================
   Master Electrician App - shared stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #FF6B00;
  --orange-dim: rgba(255,107,0,0.12);
  --orange-border: rgba(255,107,0,0.25);
  --amber: #FFAA00;
  --yellow: #FBBF24;
  --red: #EF4444;
  --green: #34D399;
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #181818;
  --surface: #1e1e1e;
  --border: #2a2a2a;
  --border2: #333;
  --text: #f0f0f0;
  --text2: #aaaaaa;
  --text3: #666;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--orange); color: #fff; padding: 12px 20px;
  border-radius: 0 0 8px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── NAV ───────────────────────────────────────────────── */
/* Scoped to a class on purpose. A bare `nav {}` selector also matches the
   breadcrumb, the table of contents and the category row, which are all
   semantic <nav> elements, and pinned every one of them to the top of the
   viewport on top of the H1. */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 34px; height: 34px; background: var(--orange);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav-logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }
.nav-back { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-back:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange); color: #fff; padding: 9px 20px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; color: #fff; }

/* ── BREADCRUMBS ───────────────────────────────────────── */
.crumbs {
  max-width: 720px; margin: 0 auto; padding: 100px 40px 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text3);
}
.crumbs a { color: var(--text3); text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--orange); }
.crumbs span[aria-current] { color: var(--text2); }
.crumbs-wide { max-width: 1100px; }

/* ── ARTICLE ───────────────────────────────────────────── */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 24px 40px 80px; }
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.article-cat { font-family: var(--mono); font-size: 10px; color: var(--orange); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; text-decoration: none; }
a.article-cat:hover { text-decoration: underline; }
.article-date { font-size: 13px; color: var(--text3); }
.article-updated { font-size: 12px; color: var(--text3); font-family: var(--mono); }
.article-updated strong { color: var(--text2); font-weight: 600; }
.article-read { font-size: 13px; color: var(--text3); }
.article-title { font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 1px; line-height: 1; margin-bottom: 20px; }
.article-subtitle { font-size: 18px; color: var(--text2); line-height: 1.65; margin-bottom: 40px; border-left: 3px solid var(--red); padding-left: 20px; }

.article-body h2 { font-size: 22px; font-weight: 700; margin: 40px 0 16px; color: var(--text); scroll-margin-top: 84px; }
.article-body h3 { font-size: 17px; font-weight: 700; margin: 28px 0 12px; color: var(--orange); font-family: var(--mono); scroll-margin-top: 84px; }
.article-body h4 { font-size: 15px; font-weight: 700; margin: 22px 0 10px; color: var(--text); }
.article-body p { font-size: 16px; color: var(--text2); margin-bottom: 16px; line-height: 1.8; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; }
.article-body li { font-size: 16px; color: var(--text2); margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--orange); }
.article-body figure { margin: 28px 0; }
.article-body figure img { border: 1px solid var(--border); border-radius: 12px; background: var(--bg2); width: 100%; }
.article-body figcaption { font-size: 13px; color: var(--text3); margin-top: 10px; text-align: center; font-style: italic; }

.article-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 32px 0; border-top: 1px solid var(--border); margin-top: 48px; }
.article-nav a { color: var(--orange); text-decoration: none; font-size: 14px; font-weight: 600; }

/* ── ARTICLE COMPONENTS ────────────────────────────────── */
.code-ref { background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.25); border-radius: 8px; padding: 16px 20px; margin: 16px 0; font-family: var(--mono); font-size: 14px; color: var(--orange); }

.warning-box { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); border-radius: 10px; padding: 20px 24px; margin: 20px 0; }
.warning-box p { color: var(--text); margin-bottom: 0; font-weight: 500; }

.tip-box { background: rgba(255,107,0,0.07); border: 1px solid rgba(255,107,0,0.25); border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.tip-box p { font-size: 15px; margin-bottom: 0; }

.formula-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 20px 0; text-align: center; }
.formula { font-family: var(--mono); font-size: 18px; color: var(--text); letter-spacing: 1px; }
.formula-label { font-size: 13px; color: var(--text3); margin-top: 8px; }

.example-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 20px 0; }
.example-title { font-family: var(--mono); font-size: 12px; color: var(--orange); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.example-box p { font-size: 15px; margin-bottom: 10px; }

.ref-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.ref-table th { background: var(--orange); color: #fff; font-size: 13px; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; padding: 8px 10px; text-align: left; }
.ref-table td { background: var(--surface); border: 1px solid var(--border); padding: 8px 10px; font-size: 15px; color: var(--text2); }
.ref-table tr:nth-child(even) td { background: #1a1a1a; }
.ref-table td:first-child { font-weight: 600; color: var(--text); }
.table-scroll { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
.table-scroll .ref-table, .table-scroll .trend-table { margin: 0; min-width: 520px; }

.trend-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 12px; }
.trend-table th { background: var(--orange); color: #fff; font-size: 12px; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; padding: 8px 6px; text-align: left; }
.trend-table td { background: var(--surface); border: 1px solid var(--border); padding: 8px 6px; font-size: 14px; color: var(--text2); }
.trend-table tr:nth-child(even) td { background: #1a1a1a; }
.trend-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.trend-table .yes { color: var(--orange); font-weight: 600; }
.trend-table .no { color: var(--text3); }
.trend-table .expanded { color: #34D399; font-weight: 600; }

.violation-num { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--orange); display: inline-block; margin-right: 12px; vertical-align: middle; }
.cycle-tag { display: inline-block; font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--orange); margin-right: 10px; vertical-align: middle; }

.impact-tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; font-weight: 700; }
.impact-high { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.impact-med { background: rgba(251,191,36,0.15); color: var(--yellow); border: 1px solid rgba(251,191,36,0.3); }
.impact-low { background: rgba(52,211,153,0.15); color: var(--green); border: 1px solid rgba(52,211,153,0.3); }

/* ── TABLE OF CONTENTS ─────────────────────────────────── */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px 28px; margin: 0 0 40px; }
.toc-title { font-family: var(--mono); font-size: 11px; color: var(--orange); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; display: block; }
.toc a { display: block; color: var(--text2); text-decoration: none; font-size: 15px; padding: 6px 0; transition: color 0.2s; border-bottom: 1px solid var(--border); }
.toc a:last-child { border-bottom: none; }
.toc a:hover { color: var(--orange); }
.toc .toc-num { color: var(--text3); font-family: var(--mono); font-size: 12px; margin-right: 8px; }

/* ── QUIZ CARDS ────────────────────────────────────────── */
.q-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 20px 0; overflow: hidden; }
.q-header { padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; width: 100%; background: none; border: 0; text-align: left; font-family: inherit; }
.q-num { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--orange); flex-shrink: 0; width: 36px; }
.q-text { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.5; flex: 1; }
.q-toggle { font-size: 18px; color: var(--orange); flex-shrink: 0; transition: transform 0.25s; }
.q-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.q-answer-inner { padding: 0 24px 20px; border-top: 1px solid var(--border); padding-top: 16px; margin: 0 24px; }
.q-answer-inner p { font-size: 15px; margin-bottom: 8px; }
.q-correct { color: var(--green); font-weight: 700; }
.q-ref { font-family: var(--mono); font-size: 12px; color: var(--orange); }
.q-card.open .q-toggle { transform: rotate(45deg); }
.q-card.open .q-answer { max-height: 900px; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-section { margin: 48px 0 0; }
.faq-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.faq-a { font-size: 15px; color: var(--text2); line-height: 1.75; }
.faq-a a { color: var(--orange); }

/* ── CTA ───────────────────────────────────────────────── */
.article-cta { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; text-align: center; margin: 48px 0; }
.article-cta-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; margin-bottom: 10px; }
.article-cta-text { font-size: 15px; color: var(--text2); margin-bottom: 20px; }
.article-cta-btn { display: inline-block; background: var(--orange); color: #fff !important; padding: 12px 28px; border-radius: 9px; font-size: 15px; font-weight: 700; text-decoration: none; transition: opacity 0.2s; }
.article-cta-btn:hover { opacity: 0.85; }

.cta-early { text-align: left; padding: 22px 26px; margin: 32px 0; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cta-early .cta-early-copy { flex: 1; min-width: 240px; }
.cta-early .article-cta-title { font-size: 22px; margin-bottom: 6px; }
.cta-early .article-cta-text { margin-bottom: 0; font-size: 14px; }

.store-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-early .store-row { justify-content: flex-start; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 12px 20px; border-radius: 12px; text-decoration: none;
  min-width: 180px; color: var(--text); transition: border-color 0.2s;
}
.store-btn:hover { border-color: var(--orange); }
.store-btn small { display: block; font-size: 11px; color: var(--text3); font-family: var(--mono); }
.store-btn strong { display: block; font-size: 16px; color: var(--text); font-weight: 700; }
.store-btn svg { flex-shrink: 0; }

.inline-app { color: var(--orange); font-weight: 600; }

/* ── EMAIL CAPTURE ─────────────────────────────────────── */
.optin {
  background: linear-gradient(180deg, #16130f 0%, var(--surface) 100%);
  border: 1px solid var(--orange-border); border-radius: 16px;
  padding: 30px 32px; margin: 48px 0;
}
.optin-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.optin h2 { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 0.5px; margin: 0 0 10px; color: var(--text); }
.optin p { font-size: 15px; color: var(--text2); margin-bottom: 18px; line-height: 1.7; }
.optin-form { display: flex; gap: 10px; flex-wrap: wrap; }
.optin-form input[type=email] {
  flex: 1; min-width: 220px; background: var(--bg); border: 1px solid var(--border2);
  border-radius: 9px; padding: 13px 16px; color: var(--text); font-size: 15px;
  font-family: inherit;
}
.optin-form input[type=email]::placeholder { color: var(--text3); }
.optin-form input[type=email]:focus { border-color: var(--orange); outline: none; }
.optin-form button {
  background: var(--orange); color: #fff; border: 0; border-radius: 9px;
  padding: 13px 26px; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: opacity 0.2s;
}
.optin-form button:hover { opacity: 0.88; }
.optin-fine { font-size: 12px; color: var(--text3); margin: 12px 0 0; }
.optin-done-msg { font-size: 15px; color: var(--text2); margin-bottom: 14px; }
.optin-done-msg strong { color: var(--green); }
.optin-done[hidden] { display: none; }
.optin-files { display: flex; gap: 10px; flex-wrap: wrap; }
.article-cta-btn.secondary { background: transparent; color: var(--orange) !important; border: 1px solid var(--orange); }
.article-cta-btn.secondary:hover { background: rgba(255,107,0,0.1); opacity: 1; }

/* ── HUB / LISTING PAGES ───────────────────────────────── */
.hub-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 40px 80px; }
.hub-head { margin-bottom: 40px; }
.hub-kicker { font-family: var(--mono); font-size: 11px; color: var(--orange); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.hub-title { font-family: 'Bebas Neue', sans-serif; font-size: 56px; line-height: 0.95; letter-spacing: 1px; margin-bottom: 18px; }
.hub-intro { font-size: 17px; color: var(--text2); line-height: 1.7; max-width: 720px; }
.hub-intro + .hub-intro { margin-top: 14px; }

.cat-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 32px 0 40px; }
.cat-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text2);
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block;
  transition: all 0.2s;
}
.cat-btn:hover { border-color: var(--orange); color: var(--text); }
.cat-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px; text-decoration: none; color: inherit; display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.blog-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.blog-card-icon { font-size: 20px; }
.blog-card-cat { font-family: var(--mono); font-size: 10px; color: var(--orange); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.blog-card-date { font-size: 12px; color: var(--text3); margin-left: auto; }
.blog-card h2, .blog-card h3 { font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: var(--text); }
.blog-card p { font-size: 14px; color: var(--text2); line-height: 1.65; margin-bottom: 14px; }
.blog-card-more { font-size: 13px; font-weight: 700; color: var(--orange); }

.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 28px 0 40px; }
.calc-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; text-decoration: none; color: inherit; display: block; transition: all 0.2s;
}
.calc-tile:hover { border-color: var(--orange); transform: translateY(-2px); }
.calc-tile-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.calc-tile-desc { font-size: 13px; color: var(--text2); line-height: 1.55; }
.calc-tile-tag { font-family: var(--mono); font-size: 10px; color: var(--orange); letter-spacing: 1px; text-transform: uppercase; margin-top: 10px; display: block; }
.calc-tile.plain { opacity: 0.75; }
.calc-tile.plain:hover { opacity: 1; }

.section-head { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 0.5px; margin: 48px 0 8px; }
.section-sub { font-size: 15px; color: var(--text2); margin-bottom: 22px; }

/* ── DISCLAIMER ────────────────────────────────────────── */
.disclaimer {
  margin-top: 48px; padding: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 13px; color: var(--text3); line-height: 1.8;
}
.disclaimer strong.disclaimer-label {
  color: var(--text2); font-size: 11px; font-family: var(--mono);
  letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 10px;
}
.disclaimer a { color: var(--orange); }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 40px 40px 48px;
  text-align: center; color: var(--text3); font-size: 13px; line-height: 1.9;
}
footer a { color: var(--text2); text-decoration: none; }
footer a:hover { color: var(--orange); }
.badge-row { width: 100%; display: flex; justify-content: center; margin-top: 18px; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 720px) {
  .crumbs { padding: 88px 20px 0; font-size: 10px; }
  .article-wrap { padding: 20px 20px 64px; }
  .hub-wrap { padding: 20px 20px 64px; }
  .article-title { font-size: 36px; }
  .hub-title { font-size: 40px; }
  .article-subtitle { font-size: 16px; }
  .article-cta { padding: 26px 20px; }
  .cta-early { flex-direction: column; align-items: stretch; }
  .cta-early .store-row { justify-content: stretch; }
  .store-btn { min-width: 0; flex: 1; justify-content: center; }
  .optin { padding: 24px 20px; }
  .article-nav { flex-direction: column; align-items: flex-start; gap: 10px; }
  footer { padding: 32px 20px 40px; }
}

/* ========================================================== */
/* Page-scoped rules recovered from the original inline styles.  */
/* These were unique to index / support / privacy / terms and    */
/* are not part of the shared component set above.               */
/* ========================================================== */

/* ── HERO ── */ .hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 40px 80px; position: relative; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(255,107,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,107,0,0.04) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%); }
.hero-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse at center, rgba(255,107,0,0.12) 0%, transparent 65%); z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--orange-dim); border: 1px solid var(--orange-border); color: var(--orange); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; letter-spacing: 0.5px; margin-bottom: 28px; font-family: var(--mono); animation: fadeUp 0.6s ease both; }
.hero-badge::before { content: '⚡'; }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(64px, 10vw, 120px); line-height: 0.92; letter-spacing: 2px; margin-bottom: 28px; animation: fadeUp 0.7s 0.1s ease both; }
.hero-title span { color: var(--orange); }
.hero-title em { color: var(--amber); font-style: normal; }
.hero-sub { font-size: clamp(16px, 2.2vw, 20px); color: var(--text2); max-width: 580px; line-height: 1.65; margin-bottom: 48px; animation: fadeUp 0.7s 0.2s ease both; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.7s 0.3s ease both; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: #fff; padding: 16px 32px; border-radius: 10px; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 0 40px rgba(255,107,0,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(255,107,0,0.45); color: #fff; }
.btn-secondary { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--text); padding: 16px 32px; border-radius: 10px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid var(--border2); transition: border-color 0.2s, color 0.2s; }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.hero-stats { display: flex; gap: 48px; margin-top: 80px; flex-wrap: wrap; animation: fadeUp 0.7s 0.4s ease both; border-top: 1px solid var(--border); padding-top: 40px; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 42px; color: var(--orange); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text3); font-family: var(--mono); margin-top: 4px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--orange); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; display: block; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(40px, 6vw, 72px); line-height: 0.95; letter-spacing: 1px; margin-bottom: 20px; }
.section-title span { color: var(--orange); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.feature-card { background: var(--bg2); padding: 40px; transition: background 0.25s; position: relative; }
.feature-card:hover { background: var(--bg3); }
.feature-card::after { content: ''; position: absolute; inset: 0; border-bottom: 2px solid transparent; transition: border-color 0.25s; pointer-events: none; }
.feature-card:hover::after { border-bottom-color: var(--orange); }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text2); line-height: 1.7; }
.feature-tag { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--orange); background: var(--orange-dim); border: 1px solid var(--orange-border); padding: 3px 10px; border-radius: 4px; }
/* ── CALCULATORS ── */ .calcs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.calc-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; transition: border-color 0.2s, transform 0.2s; }
.calc-chip:hover { border-color: var(--orange); transform: translateY(-2px); }
.calc-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; position: relative; transition: transform 0.2s, border-color 0.2s; }
.pricing-card:hover { transform: translateY(-4px); border-color: var(--border2); }
.pricing-card.featured { border-color: var(--orange); background: linear-gradient(160deg, rgba(255,107,0,0.08) 0%, var(--surface) 60%); transform: scale(1.03); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; white-space: nowrap; font-family: var(--mono); }
.pricing-tier { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; margin-bottom: 6px; }
.pricing-price { font-size: 40px; font-weight: 700; margin: 12px 0 4px; line-height: 1; }
.pricing-price sup { font-size: 18px; vertical-align: super; }
.pricing-price sub { font-size: 14px; color: var(--text2); font-weight: 400; }
.pricing-scans { font-family: var(--mono); font-size: 12px; color: var(--orange); margin-bottom: 24px; }
.pricing-divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 14px; color: var(--text2); display: flex; align-items: flex-start; gap: 10px; }
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-cta { display: block; text-align: center; margin-top: 28px; padding: 13px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; transition: opacity 0.2s; }
.pricing-cta.primary { background: var(--orange); color: #fff; }
.pricing-cta.secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border2); }
.pricing-cta:hover { opacity: 0.85; }
/* ── BUILT BY ── */ .built-section { background: var(--bg3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.built-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.built-quote { font-family: 'Bebas Neue', sans-serif; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: 1px; margin-bottom: 24px; }
.built-quote span { color: var(--orange); }
.built-body { font-size: 16px; color: var(--text2); line-height: 1.75; }
.built-body strong { color: var(--text); }
.credentials { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.credential { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text2); }
.credential-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--orange-dim); border: 1px solid var(--orange-border); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.built-visual { display: flex; flex-direction: column; gap: 12px; }
.download-inner { max-width: 680px; margin: 0 auto; }
.download-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(52px, 8vw, 96px); line-height: 0.92; letter-spacing: 2px; margin-bottom: 24px; }
.download-title span { color: var(--orange); }
.download-sub { font-size: 18px; color: var(--text2); margin-bottom: 48px; line-height: 1.6; }
.store-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-btn-text small { display: block; font-size: 11px; color: var(--text3); font-family: var(--mono); }
.store-btn-text strong { display: block; font-size: 17px; color: var(--text); font-weight: 700; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.page-wrap { max-width: 860px; margin: 0 auto; padding: 120px 40px 80px; }
.page-tag { font-family: var(--mono); font-size: 11px; color: var(--orange); letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 16px; }
.page-title { font-family: 'Bebas Neue', sans-serif; font-size: 64px; letter-spacing: 1px; line-height: 0.95; margin-bottom: 16px; }
.page-title span { color: var(--orange); }
.page-sub { font-size: 17px; color: var(--text2); margin-bottom: 64px; max-width: 520px; line-height: 1.65; }
.faq-label { font-family: var(--mono); font-size: 11px; color: var(--orange); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; display: block; }
.faq-icon { font-size: 20px; color: var(--orange); flex-shrink: 0; transition: transform 0.25s; }
.faq-a-inner { padding-bottom: 20px; font-size: 15px; color: var(--text2); line-height: 1.8; }
.faq-a-inner a { color: var(--orange); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
/* Contact */ .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; transition: border-color 0.2s, transform 0.2s; text-decoration: none; display: block; }
.contact-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.contact-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.contact-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.contact-desc { font-size: 14px; color: var(--text2); line-height: 1.65; }
/* Form */ .form-section { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.form-title { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 1px; margin-bottom: 8px; }
.form-sub { font-size: 14px; color: var(--text2); margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-submit { background: var(--orange); color: #fff; border: none; cursor: pointer; padding: 15px 36px; border-radius: 9px; font-size: 16px; font-weight: 700; font-family: 'DM Sans', sans-serif; transition: opacity 0.2s; margin-top: 8px; }
.form-submit:hover { opacity: 0.85; }
.form-note { font-size: 12px; color: var(--text3); margin-top: 12px; font-family: var(--mono); }
.success-msg { display: none; background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.3); border-radius: 10px; padding: 16px 20px; margin-top: 20px; font-size: 15px; color: var(--green); }
.page-meta { font-family: var(--mono); font-size: 12px; color: var(--text3); margin-bottom: 48px; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }

@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 28px; }
  .built-inner { grid-template-columns: 1fr; gap: 48px; }
  .pricing-card.featured { transform: none; }
}

@media (max-width: 640px) {
  .page-wrap { padding: 100px 20px 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-section { padding: 28px 20px; }
}

@media (max-width: 600px) {
  .page-wrap { padding: 100px 20px 60px; }
}
