/* ==========================================================================
   ResumeHog Career Tools & Commercial Pages — Shared Design System
   Follows brand_guideline.md & site-chrome/DESIGN_CONTRACT.md:
   - Graphite surfaces (#05050A, #0A0A10, #0E0E16), Orbitron + Share Tech Mono
   - Single scarce accent: #00f5d4 (no purple, no emojis, custom inline SVGs)
   ========================================================================== */
:root {
  --bg-color: #05050A;
  --panel: #0A0A10;
  --panel-raised: #0E0E16;
  --text-primary: #F8F9FA;
  --text-secondary: #8B949E;
  --text-muted: #767E8A;
  --accent-primary: #00f5d4;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(0, 245, 212, 0.30);
  --glow-color: rgba(0, 245, 212, 0.25);
  --shadow-color: rgba(0, 0, 0, 0.80);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --sev-warn: #f5b13d;
  --sev-high: #ff5c7a;
  --sev-good: var(--accent-primary);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--text-secondary);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 50% -8%, rgba(255, 255, 255, 0.05), transparent 42%),
    linear-gradient(rgba(0, 245, 212, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.02) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0 46%, transparent 80%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 0 46%, transparent 80%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
::selection { background: rgba(0, 245, 212, 0.22); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }

/* Canonical Site Chrome v1.2 */
.rh-icon { width: 1em; height: 1em; vertical-align: -0.125em; flex-shrink: 0; }
.skip-link {
  position: absolute; z-index: 100; top: 8px; left: 8px;
  padding: 12px 16px; border: 1px solid var(--accent-primary); border-radius: 6px;
  background: var(--panel-raised); color: var(--text-primary);
  font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; line-height: 1; text-decoration: none;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.skip-link:focus { clip-path: none; width: auto; height: auto; overflow: visible; }
html.nav-open { overflow: hidden; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background-color: rgba(5, 7, 10, 0.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color .25s var(--ease-premium), box-shadow .25s var(--ease-premium);
}
.site-header.is-scrolled { background-color: rgba(5, 7, 10, 0.88); box-shadow: 0 14px 44px rgba(0, 0, 0, 0.34); }
.site-header__inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; min-height: 44px;
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.25rem; line-height: 1;
  letter-spacing: 0; color: var(--text-primary); text-decoration: none;
}
.site-brand img { width: 30px; height: 30px; display: block; filter: drop-shadow(0 0 5px rgba(0, 245, 212, 0.55)); }
.site-brand:hover { color: #fff; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.74rem; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap;
  color: var(--text-secondary); text-decoration: none;
  transition: color .2s var(--ease-premium);
}
.site-nav__link:hover { color: var(--text-primary); text-decoration: none; }
.site-nav__link[aria-current="page"] { color: var(--text-primary); }
.site-nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--accent-primary);
}
.site-nav__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; margin-left: 12px;
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.74rem; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
  color: #021b18; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #7df6ff 0%, #00f5d4 56%, #00c9b3 100%);
  border: 1px solid rgba(180, 255, 246, 0.7); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform .22s var(--ease-premium), filter .22s var(--ease-premium);
}
.site-nav__cta:hover { transform: translateY(-1px); filter: saturate(1.06) brightness(1.03); color: #021b18; text-decoration: none; }
.site-menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; margin-right: -10px;
  align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 6px; color: var(--text-primary); font-size: 1.35rem; cursor: pointer;
}
.site-menu-btn .icon-close { display: none; }
.site-menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.site-menu-btn[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 1040px) {
  .site-header__inner { min-height: 60px; padding: 0 16px; gap: 12px; }
  .site-brand { font-size: 1.05rem; gap: 10px; }
  .site-brand img { width: 26px; height: 26px; }
  .site-nav { overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-ready .site-menu-btn { display: inline-flex; }
  .nav-ready .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0; overflow: visible;
    padding: 8px 16px 20px; background: #07070D;
    border-bottom: 1px solid var(--border-strong); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    height: calc(100vh - 60px); height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-ready .site-nav.is-open { display: flex; }
  .nav-ready .site-nav__link { min-height: 52px; padding: 0 4px; font-size: 0.82rem; border-bottom: 1px solid var(--border-color); }
  .nav-ready .site-nav__link[aria-current="page"]::after { left: 4px; right: auto; width: 24px; bottom: 12px; }
  .nav-ready .site-nav__cta { min-height: 48px; margin: 18px 0 0; font-size: 0.82rem; }
}

/* Footer */
.site-footer { margin-top: 96px; border-top: 1px solid var(--border-color); background: var(--panel); }
.site-footer__inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 64px 24px 0; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.site-footer__brand p { margin: 16px 0 0; max-width: 34ch; font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary); }
.site-footer__heading {
  margin: 0 0 18px; font-family: 'Share Tech Mono', monospace; font-weight: 400; font-size: 0.78rem; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-muted);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer__list a, .site-footer__list span { font-size: 0.88rem; line-height: 1.5; color: var(--text-secondary); text-decoration: none; }
.site-footer__list a { transition: color .2s var(--ease-premium); }
.site-footer__list a:hover { color: var(--text-primary); text-decoration: none; }
.site-footer__bar {
  margin-top: 56px; padding: 24px 0 32px; border-top: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--text-muted);
}
.site-footer__social { display: flex; align-items: center; gap: 4px; }
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  color: var(--text-secondary); border-radius: 6px; transition: color .2s var(--ease-premium);
}
.site-footer__social a:hover { color: var(--text-primary); }
.site-footer__social svg { width: 18px; height: 18px; display: block; fill: currentColor; }
@media (max-width: 920px) {
  .site-footer { margin-top: 72px; }
  .site-footer__inner { padding: 48px 16px 0; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__bar { margin-top: 40px; }
}
@media (pointer: coarse) {
  .site-footer__list { gap: 0; }
  .site-footer__list a, .site-footer__list span { display: flex; align-items: center; min-height: 44px; }
}

/* Layout & Typography */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: 'Orbitron', sans-serif; color: var(--text-primary); text-shadow: none; margin: 0; }
h1 { font-weight: 900; font-size: clamp(2.1rem, 4.8vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.12; }
h3 { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
p a, li a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
p a:hover, li a:hover { text-decoration-color: var(--accent-primary); }

.overline {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-primary);
  margin-bottom: 16px;
}
.lead { font-size: 1.125rem; line-height: 1.65; max-width: 66ch; margin-top: 16px; color: var(--text-secondary); }
.page-hero { padding: 64px 0 48px; }
.section { padding: 72px 0; border-top: 1px solid var(--border-color); }
.section-head { max-width: 68ch; margin-bottom: 32px; }
.section-head p { margin-top: 16px; }

/* Buttons */
.google-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.82rem; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  color: #021b18; cursor: pointer;
  background: linear-gradient(180deg, #7df6ff 0%, #00f5d4 56%, #00c9b3 100%);
  border: 1px solid rgba(180, 255, 246, 0.7); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 38px -10px rgba(0, 245, 212, 0.45);
  transition: transform .22s var(--ease-premium), filter .22s var(--ease-premium);
}
.google-btn:hover { transform: translateY(-2px); filter: saturate(1.06) brightness(1.02); color: #021b18; text-decoration: none; }
.secondary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px;
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.78rem; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: 6px; cursor: pointer;
  transition: border-color .2s var(--ease-premium), color .2s var(--ease-premium);
}
.secondary-btn:hover { border-color: var(--accent-primary); color: #fff; text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* Panels & Tool Workspaces */
.panel-1 { background: var(--panel); border: 1px solid var(--border-color); border-radius: 6px; padding: 24px; }
.panel-2 { background: var(--panel-raised); border: 1px solid var(--border-strong); border-radius: 6px; padding: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.field-label {
  display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-primary); margin-bottom: 10px;
}
.tool-textarea, .tool-input, .tool-select {
  width: 100%; background: var(--bg-color); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: 6px;
  font-family: 'Share Tech Mono', monospace; font-size: 0.96rem; line-height: 1.6;
  padding: 14px 16px; color-scheme: dark;
}
.tool-input, .tool-select { min-height: 48px; padding: 0 14px; }
.tool-textarea { min-height: 220px; resize: vertical; }
.tool-textarea:focus, .tool-input:focus, .tool-select:focus {
  outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.14);
}
.tool-meta-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 12px; font-size: 0.82rem; color: var(--text-muted);
}

/* Results & Metrics */
.score-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0;
}
.stat-box {
  background: var(--panel); border: 1px solid var(--border-color); border-radius: 6px; padding: 16px 20px;
}
.stat-box small { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.stat-box strong { display: block; margin-top: 6px; font-family: 'Orbitron', sans-serif; font-size: 1.5rem; color: var(--text-primary); }
.stat-box strong.good { color: var(--sev-good); }
.stat-box strong.warn { color: var(--sev-warn); }
.stat-box strong.high { color: var(--sev-high); }

.bullet-card {
  background: var(--panel); border: 1px solid var(--border-color); border-radius: 6px;
  padding: 20px; margin-top: 16px;
}
.bullet-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text-secondary);
  background: transparent;
}
.tag-chip.good { border-color: rgba(0, 245, 212, 0.45); color: var(--accent-primary); }
.tag-chip.warn { border-color: rgba(245, 177, 61, 0.45); color: var(--sev-warn); }
.tag-chip.high { border-color: rgba(255, 92, 122, 0.45); color: var(--sev-high); }

.kw-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px;
  border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-color);
  color: var(--text-primary); font-family: 'Share Tech Mono', monospace; font-size: 0.85rem;
  cursor: pointer; transition: border-color .18s var(--ease-premium);
}
.kw-pill:hover { border-color: var(--accent-primary); }
.kw-pill.is-covered {
  border-color: rgba(0, 245, 212, 0.5); color: var(--accent-primary); background: rgba(0, 245, 212, 0.06);
}
.kw-pill small { color: var(--text-muted); font-size: 0.76rem; }
.kw-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Comparison Tables & Code Blocks */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--panel); }
.comp-table { width: 100%; border-collapse: collapse; min-width: 620px; text-align: left; }
.comp-table th, .comp-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.comp-table th {
  font-family: 'Orbitron', sans-serif; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); background: var(--panel-raised);
}
.comp-table tr:last-child td { border-bottom: 0; }
.comp-table td strong { color: var(--text-primary); }
.comp-highlight { color: var(--accent-primary); font-weight: 700; }

.code-panel {
  position: relative; background: #07070D; border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 18px 20px; overflow-x: auto; margin-top: 12px;
}
.code-panel pre {
  margin: 0; font-family: 'Share Tech Mono', monospace; font-size: 0.9rem;
  line-height: 1.6; color: var(--text-primary); white-space: pre-wrap; word-break: break-word;
}
.copy-btn {
  min-height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 4px;
  background: var(--panel-raised); color: var(--text-primary); font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
}
.copy-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

/* FAQ Accordion */
.faq-list { max-width: 820px; background: var(--panel); border: 1px solid var(--border-color); border-radius: 6px; }
.faq-item + .faq-item { border-top: 1px solid var(--border-color); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 68px; padding: 16px 24px; cursor: pointer; list-style: none;
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] > summary .rh-icon { transform: rotate(180deg); }
.faq-body { padding: 0 24px 24px; max-width: 68ch; color: var(--text-secondary); }

/* CTA Band & Discovery Strip */
.cta-band {
  margin-top: 64px; padding: 48px 32px; text-align: center;
  background: var(--panel-raised); border: 1px solid var(--border-strong); border-radius: 6px;
}
.cta-band p { max-width: 56ch; margin: 16px auto 28px; }
.discovery-band {
  margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border-color);
}
.discovery-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; font-size: 0.9rem; }

@media (max-width: 920px) {
  .container { padding: 0 16px; }
  .page-hero { padding: 48px 0 36px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .score-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
