/* ===========================================================================
   HireMeMaybe marketing site — shared design system.
   Same brand tokens as the app (static/index.html) so both feel like one
   product. Neo-brutalist: thick ink borders, hard offset shadows, no blur,
   slightly rotated stickers, high-contrast color blocking.
=========================================================================== */

:root {
  --paper: #f4f0e6;
  --card: #fffdf6;
  --ink: #16130d;
  --panel-2: #ece7d8;
  --muted: #6b6455;
  --accent: #7b5cff;
  --lime: #c8f04b;
  --green: #1e8f4d;
  --yellow: #ffd43b;
  --orange: #ffa94d;
  --red: #d6336c;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --display: "Archivo Black", "Space Grotesk", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--lime); color: var(--ink); }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  background-image: radial-gradient(rgba(22, 19, 13, .13) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: "Space Grotesk", -apple-system, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---- nav ---- */
header.mkt-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.mkt-nav-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 28px;
}
.mkt-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mkt-brand img { width: 42px; height: 34px; object-fit: contain; transform: rotate(-2deg); }
.mkt-brand span {
  font-family: var(--display); font-size: 22px; letter-spacing: -0.5px;
  text-transform: uppercase;
}
.mkt-brand span b { color: var(--accent); text-shadow: 2px 2px 0 var(--ink); font-weight: 900; }
.mkt-nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.mkt-nav-links a.navlink {
  font-family: var(--mono); font-size: 13px; font-weight: 600; text-transform: uppercase;
  padding: 9px 14px; text-decoration: none; color: var(--ink);
  border: 2px solid transparent;
}
.mkt-nav-links a.navlink:hover { border-color: var(--ink); background: var(--card); }
.mkt-nav-links a.navlink.active { border-color: var(--ink); background: var(--card); }
.mkt-nav-cta { display: flex; gap: 10px; margin-left: 8px; }

@media (max-width: 720px) {
  .mkt-nav-links .navlink-text { display: none; }
  .mkt-nav-inner { padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
  .mkt-nav-links { gap: 2px; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 14px;
  padding: 13px 22px; border: 2px solid var(--ink); background: var(--lime); color: var(--ink);
  box-shadow: var(--shadow-sm); cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
  touch-action: manipulation;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn.secondary { background: var(--card); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { transform: none; box-shadow: none; background: var(--card); }
.btn.lg { padding: 17px 30px; font-size: 16px; }

/* ---- sticker / badge ---- */
.sticker {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; background: var(--lime);
  border: 2px solid var(--ink); padding: 6px 12px; transform: rotate(-2deg);
  box-shadow: var(--shadow-sm);
}
.sticker.pink { background: #ffc9de; }
.sticker.violet { background: var(--accent); color: #fff; }
.sticker.yellow { background: var(--yellow); }

/* ---- section rhythm ---- */
section { padding: 72px 0; position: relative; }
section.tight { padding: 48px 0; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent); margin-bottom: 14px; display: block;
}
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: 1.05; }
h2 {
  font-size: clamp(28px, 4vw, 44px); letter-spacing: -1px; margin-bottom: 16px;
  text-decoration: underline; text-decoration-color: var(--lime);
  text-decoration-thickness: 10px; text-underline-offset: -2px; text-decoration-skip-ink: none;
}
p.lede { font-size: 18px; color: var(--muted); max-width: 640px; line-height: 1.6; }

/* ---- hero ---- */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); letter-spacing: -1.5px; margin-bottom: 20px;
}
.hero h1 .hl { background: var(--lime); box-shadow: 4px 0 0 var(--lime), -4px 0 0 var(--lime); }
.hero p.lede { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hero-badge-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-mascot-static { width: 56px; flex: none; }
.hero-art {
  background: var(--card); border: 3px solid var(--ink); box-shadow: var(--shadow-lg);
  padding: 28px; transform: rotate(1.5deg);
}
.hero-art .mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 2px solid var(--ink); background: var(--paper); margin-bottom: 10px;
}
.hero-art .mock-row:last-child { margin-bottom: 0; }
.hero-art .mock-title { font-weight: 700; font-size: 13px; }
.hero-art .mock-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.hero-art .mock-score {
  font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 8px;
  border: 1px solid var(--ink); background: var(--lime);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { transform: none; order: -1; }
}

/* ---- feature grid ---- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px;
}
@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.f-card {
  background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow);
  padding: 26px; transition: transform .15s ease, box-shadow .15s ease;
}
.f-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.f-card .f-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--lime); border: 2px solid var(--ink); margin-bottom: 16px;
}
.f-card .f-icon svg { width: 22px; height: 22px; }
.f-card h3 { font-family: "Space Grotesk", sans-serif; text-transform: none; font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0; }
.f-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---- step flow (how it works) ---- */
.step-flow { display: flex; flex-direction: column; gap: 0; margin-top: 44px; }
.step {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 32px 0;
  border-bottom: 2px dashed rgba(22,19,13,.25);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--display); font-size: 40px; color: var(--paper);
  -webkit-text-stroke: 2px var(--ink); display: flex; align-items: flex-start;
}
.step h3 { font-family: "Space Grotesk", sans-serif; text-transform: none; font-size: 22px; font-weight: 700; letter-spacing: 0; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 620px; }
.step .step-tag {
  display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px;
  font-weight: 700; text-transform: uppercase; padding: 4px 10px; border: 2px solid var(--ink);
  background: var(--panel-2);
}
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--ink); color: var(--paper); border: 3px solid var(--ink);
  padding: 64px 40px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: var(--paper); text-decoration-color: var(--lime); }
.cta-banner p { color: rgba(244,240,230,.75); max-width: 560px; margin: 0 auto 28px; font-size: 16px; }
.cta-banner .hero-cta { justify-content: center; }

/* ---- footer ---- */
footer.mkt-footer {
  border-top: 3px solid var(--ink); padding: 40px 0; margin-top: 40px;
}
.mkt-footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.mkt-footer-links { display: flex; gap: 20px; font-family: var(--mono); font-size: 12px; }
.mkt-footer-links a { text-decoration: underline; text-decoration-color: var(--lime); }
.mkt-footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-group .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-group .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-group .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-group .reveal:nth-child(6) { transition-delay: 400ms; }

/* Bolder "pop" entrance — rotate+scale with spring overshoot, for cards/
   stickers where a plain fade feels too generic. */
.reveal-pop {
  opacity: 0; transform: translateY(28px) rotate(-3deg) scale(.94);
  transition: opacity .55s cubic-bezier(.34,1.56,.64,1), transform .55s cubic-bezier(.34,1.56,.64,1);
}
.reveal-pop.in-view { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
.reveal-group .reveal-pop:nth-child(1) { transition-delay: 0ms; }
.reveal-group .reveal-pop:nth-child(2) { transition-delay: 90ms; }
.reveal-group .reveal-pop:nth-child(3) { transition-delay: 180ms; }
.reveal-group .reveal-pop:nth-child(4) { transition-delay: 270ms; }
.reveal-group .reveal-pop:nth-child(5) { transition-delay: 360ms; }
.reveal-group .reveal-pop:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-pop { opacity: 1; transform: none; transition: none; }
}

/* ---- idle float (always-on, cheap motion so the page feels alive) ---- */
@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
.float { animation: float-bob 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ---- marquee ticker ---- */
.marquee {
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  background: var(--ink); overflow: hidden; padding: 16px 0;
}
.marquee-track {
  display: flex; width: max-content; gap: 40px;
  animation: marquee-scroll 26s linear infinite;
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 18px; text-transform: uppercase;
  color: var(--paper); white-space: nowrap; letter-spacing: -.5px;
}
.marquee-item .dot { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; flex: none; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- bento feature grid ---- */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px;
}
.bento .f-card.span-2 { grid-column: span 2; }
.bento .f-card.span-2-row { grid-column: span 2; grid-row: span 2; }
@media (max-width: 920px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .f-card.span-2, .bento .f-card.span-2-row { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento .f-card.span-2, .bento .f-card.span-2-row { grid-column: span 1; }
}

/* ---- journey timeline (how-it-works) ---- */
.journey { position: relative; margin-top: 36px; }
.journey-track {
  position: absolute; left: 39px; top: 0; bottom: 0; width: 4px;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 10px, transparent 10px 20px);
}
.journey-mascot {
  position: absolute; left: 0; top: 0; width: 80px; height: auto; z-index: 5;
  filter: drop-shadow(3px 3px 0 rgba(22,19,13,.3));
  transition: top .1s linear;
  transform: rotate(-3deg);
}
.journey-step {
  position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 36px 0; margin-left: 0;
}
.journey-node {
  width: 90px; height: 90px; border-radius: 50%; background: var(--card);
  border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 30px; box-shadow: var(--shadow); flex: none;
  position: relative; z-index: 2;
}
.journey-step.in-view .journey-node { background: var(--lime); }
.journey-content h3 { font-family: "Space Grotesk", sans-serif; text-transform: none; font-size: 22px; font-weight: 700; letter-spacing: 0; margin-bottom: 8px; }
.journey-content p { color: var(--muted); max-width: 560px; }
.journey-content .step-tag {
  display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px;
  font-weight: 700; text-transform: uppercase; padding: 4px 10px; border: 2px solid var(--ink);
  background: var(--panel-2);
}
@media (max-width: 620px) {
  .journey-track { left: 29px; }
  .journey-mascot { display: none; }
  .journey-step { grid-template-columns: 60px 1fr; gap: 14px; }
  .journey-node { width: 60px; height: 60px; font-size: 20px; }
}

/* ---- radial map (how-it-works, desktop/tablet) ---- */
.radial-wrap { display: block; margin-top: 24px; }
.mobile-steps { display: none; }
@media (max-width: 860px) {
  .radial-wrap { display: none; }
  .mobile-steps { display: block; }
}

.radial-map {
  position: relative; width: min(480px, 60vw); aspect-ratio: 1 / 1;
  margin: 0 auto; border: 3px dashed rgba(22,19,13,.25); border-radius: 50%;
}
.radial-mascot {
  position: absolute; left: 50%; top: 50%; width: 128px;
  transform: translate(-50%, -50%); transition: transform .3s cubic-bezier(.22,1,.36,1);
  filter: drop-shadow(4px 4px 0 rgba(22,19,13,.25)); z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .radial-mascot { transition: none; }
}
.radial-item {
  position: absolute; width: 0; height: 0; /* pure anchor point, sized by its children */
}
.radial-node {
  position: absolute; left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--ink); box-shadow: var(--shadow-sm);
  font-family: var(--display); font-size: 16px; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transform: translate(-50%, -50%); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  z-index: 3;
}
.radial-node:hover, .radial-node:focus-visible, .radial-item.active .radial-node {
  background: var(--lime); box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-50%, -50%) scale(1.12);
  outline: none;
}

/* Text box pops up right beside its number, not in a shared panel. */
.radial-popup {
  position: absolute; top: 0; width: 208px; padding: 14px 16px; text-align: left;
  background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 4;
  transition: opacity .18s ease-out, transform .18s ease-out;
}
.radial-item[data-side="right"] .radial-popup {
  left: calc(50% + 46px); transform: translateY(-50%) scale(.92);
}
.radial-item[data-side="left"] .radial-popup {
  right: calc(50% + 46px); transform: translateY(-50%) scale(.92);
}
.radial-item.active .radial-popup {
  opacity: 1; visibility: visible; transform: translateY(-50%) scale(1);
}
.radial-popup h3 {
  font-family: "Space Grotesk", sans-serif; text-transform: none; font-size: 15px;
  font-weight: 700; letter-spacing: 0; margin-bottom: 6px;
}
.radial-popup p { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.radial-popup .step-tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; padding: 3px 8px; border: 2px solid var(--ink); background: var(--panel-2);
}
@media (prefers-reduced-motion: reduce) {
  .radial-popup { transition: none; }
}

/* ---- calculator form ---- */
.calc-card {
  background: var(--card); border: 3px solid var(--ink); box-shadow: var(--shadow-lg);
  padding: 36px; max-width: 560px; margin: 0 auto;
}
.calc-field { margin-bottom: 18px; }
.calc-field label {
  display: block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.calc-field input, .calc-field select {
  width: 100%; padding: 13px 14px; border: 2px solid var(--ink); background: var(--paper);
  font-family: "Space Grotesk", sans-serif; font-size: 15px; color: var(--ink);
}
.calc-field input:focus, .calc-field select:focus {
  outline: 3px solid var(--accent); outline-offset: 1px;
}
.calc-error { color: var(--red); font-family: var(--mono); font-size: 12px; margin-top: 10px; display: none; }
.calc-error.show { display: block; }

.calc-result {
  margin-top: 28px; padding: 28px; border: 3px solid var(--ink); background: var(--panel-2);
  display: none;
}
.calc-result.show { display: block; }
.calc-result .range { display: flex; align-items: baseline; gap: 10px; justify-content: center; margin: 14px 0 6px; flex-wrap: wrap; }
.calc-result .range b { font-family: var(--display); font-size: clamp(26px, 5vw, 40px); }
.calc-result .range .median { color: var(--accent); }
.calc-result .sub { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.calc-result .summary { margin-top: 16px; font-size: 14px; color: var(--ink); line-height: 1.6; }
.calc-result .disclaimer {
  margin-top: 18px; font-family: var(--mono); font-size: 11px; color: var(--muted);
  border-top: 2px dashed rgba(22,19,13,.25); padding-top: 14px;
}
.calc-spinner {
  display: none; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 18px 0;
}
.calc-spinner.show { display: block; }

/* ---- salary calculator hero mascot ---- */
.calc-hero-mascot {
  position: absolute; top: -20px; right: calc(50% - 260px); width: 110px; z-index: 1;
}
@media (max-width: 720px) {
  .calc-hero-mascot { display: none; }
}

/* ---- salary calculator result stats ---- */
.calc-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px;
}
.stat-tile {
  background: var(--card); border: 2px solid var(--ink); padding: 12px 8px; text-align: center;
}
.stat-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); margin-bottom: 6px;
}
.stat-value { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 15px; }
.stat-value.demand-high { color: var(--green); }
.stat-value.demand-medium { color: #b98a00; }
.stat-value.demand-low { color: var(--red); }
@media (max-width: 480px) {
  .calc-stats { grid-template-columns: repeat(2, 1fr); }
}
