/* ==========================================================================
   TruffleGig — brand design system
   Forager / "sniff out hidden gigs" identity: deep green + warm amber
   on a warm off-white base. Static site; no build step.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #f6f5f0;
  --paper: #ffffff;
  --panel: #fbfaf6;
  --ink: #17251f;
  --ink-deep: #10201a;
  --muted: #5d6b64;
  --faint: #8a958e;
  --line: #e4e3da;
  --fill: #ecebe3;

  /* Brand */
  --accent: #1e7a52;        /* forest green */
  --accent-hover: #196845;
  --accent-deep: #12523a;
  --accent-soft: #e7f1ea;   /* pale green tint */
  --gold: #d99a2b;          /* warm amber / truffle */
  --gold-hover: #c98a1e;
  --gold-soft: #f7ecd3;
  --gold-ink: #5a3f10;

  /* Chart palette — earthy greens, golds, teals, clay */
  --blue: #1e7a52;
  --green: #2a9169;
  --indigo: #3b7a63;
  --purple: #8a6d3b;
  --pink: #b5852e;
  --orange: #d99a2b;
  --deep-orange: #b5603a;
  --teal: #2a8c8c;
  --yellow: #caa23a;
  --cyan: #4c9a8c;

  /* Crowding */
  --high: #c0563a;          /* rust */
  --low: #1e7a52;           /* green */

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(23, 37, 31, 0.04);
  --shadow: 0 10px 30px rgba(23, 37, 31, 0.07);
  --shadow-lg: 0 24px 60px rgba(23, 37, 31, 0.12);

  --font-display: "Bricolage Grotesque", "Space Grotesk", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "Helvetica Neue", Helvetica, Arial, sans-serif;

  --nav-h: 66px;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
}

::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px 96px;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}

/* Full-bleed helper: break out of the centered .page */
.bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}

.hidden-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Icons ------------------------------------------------------------------ */
.ico {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-lg {
  width: 30px;
  height: 30px;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 980px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}
.btn .ico {
  width: 19px;
  height: 19px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

/* Top navigation --------------------------------------------------------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(246, 245, 240, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand svg,
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}
.brand .g {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--fill);
}
.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      120% 120% at 85% -10%,
      var(--accent-soft) 0%,
      rgba(231, 241, 234, 0) 55%
    ),
    radial-gradient(
      90% 90% at 8% 110%,
      var(--gold-soft) 0%,
      rgba(247, 236, 211, 0) 50%
    ),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-contour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-illustration {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 92px 28px 132px;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 980px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}
.eyebrow .ico {
  width: 16px;
  height: 16px;
}
.hero h1 {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero .lede {
  margin: 20px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-trust {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--faint);
  font-size: 14px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-trust .ico {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

/* Hero side card (sample insight) */
.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.hero-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-card-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-metrics {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.hero-metric b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}
.hero-bars {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 74px;
}
.hero-bars i {
  flex: 1;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(var(--accent), var(--accent-deep));
  opacity: 0.9;
}
.hero-bars i:nth-child(even) {
  background: linear-gradient(var(--gold), var(--gold-hover));
}
.hero-card-foot {
  margin-top: 14px;
  color: var(--faint);
  font-size: 12.5px;
}

/* Section scaffolding ---------------------------------------------------- */
.section {
  padding: 64px 0 8px;
}
.section-head {
  max-width: 40rem;
}
.section-head.center {
  margin: 0 auto;
  text-align: center;
}
.kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}
.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

/* Clarity band ----------------------------------------------------------- */
.clarity {
  background: var(--ink-deep);
  color: #eef2ee;
}
.clarity-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  flex-wrap: wrap;
  font-size: 15.5px;
}
.clarity-inner .ico {
  color: var(--gold);
  width: 20px;
  height: 20px;
}
.clarity-inner strong {
  color: #fff;
}
.clarity-inner .sep {
  color: rgba(255, 255, 255, 0.28);
}

/* Persona cards ---------------------------------------------------------- */
.persona-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.persona-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.persona-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.persona-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.persona-card.gold .persona-ico {
  background: var(--gold-soft);
  color: var(--gold-hover);
}
.persona-ico .ico {
  width: 26px;
  height: 26px;
}
.persona-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.persona-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  flex: 1;
}
.persona-go {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.persona-go .ico {
  width: 17px;
  height: 17px;
  transition: transform 0.18s ease;
}
.persona-card:hover .persona-go .ico {
  transform: translateX(3px);
}

/* How it works ----------------------------------------------------------- */
.steps {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.step .ico {
  position: absolute;
  top: 26px;
  right: 24px;
  color: var(--accent);
  opacity: 0.85;
}

/* Feature grid ----------------------------------------------------------- */
.feature-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.feature-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-ico .ico {
  width: 23px;
  height: 23px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================================================
   Live-market app section
   ========================================================================== */
.app-live {
  scroll-margin-top: calc(var(--nav-h) + 12px);
  padding-top: 64px;
}
.route-anchor {
  display: block;
  height: 0;
  width: 0;
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.app-live-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.meta {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 14px;
}

/* Persona switcher + tabs */
.home-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 22px 0 14px;
  padding: 4px;
  background: var(--fill);
  border-radius: 980px;
}
.home-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.home-btn[aria-pressed="true"] {
  background: var(--paper);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.home-btn:hover {
  color: var(--ink);
}

.tabs {
  display: flex;
  gap: 2px;
  background: var(--fill);
  border-radius: 12px;
  padding: 3px;
}
.tab {
  appearance: none;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 9px;
  transition: background 0.16s ease, color 0.16s ease;
}
.tab[aria-pressed="true"] {
  background: var(--paper);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.tab:hover {
  color: var(--ink);
}

.panel {
  margin-top: 36px;
  display: none;
  flex-direction: column;
  gap: 44px;
}
.panel.is-on {
  display: flex;
}

/* Headings inside panels/content */
h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h3 {
  margin: 20px 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.note,
.caption {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}
.caption {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 13px;
}

h2 .info-pop {
  display: inline-block;
  position: relative;
  margin-left: 6px;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}
.info-pop summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.info-pop summary::-webkit-details-marker {
  display: none;
}
.info-pop summary .ico {
  width: 18px;
  height: 18px;
}
.info-pop[open] summary {
  color: var(--accent);
}
.info-pop-body {
  position: absolute;
  z-index: 5;
  left: 0;
  top: calc(100% + 8px);
  width: min(320px, 72vw);
  margin: 0;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line, #d9e4dc);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20, 40, 32, 0.12);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

/* Stats grid (KPI strip — now inside app section) */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 4px;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

/* Charts */
.chart-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px 10px;
  box-shadow: var(--shadow-sm);
}
.chart-box {
  position: relative;
  height: 240px;
}
.chart-box.tall {
  height: 300px;
}
.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.split.even {
  grid-template-columns: 1fr 1fr;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--fill);
  text-align: left;
  vertical-align: top;
}
th {
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--panel);
}
tr:last-child td {
  border-bottom: none;
}
tbody tr {
  transition: background 0.12s ease;
}
tbody tr:hover {
  background: var(--accent-soft);
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.crowd-high {
  color: var(--high);
  font-weight: 700;
}
.crowd-low {
  color: var(--low);
  font-weight: 700;
}

.more {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--accent);
  padding: 10px 18px;
  margin-top: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  border-radius: 980px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.more:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

a.job-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
a.job-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Follow cards */
.follow-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
a.follow-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
a.follow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.follow-card h3 {
  margin: 0;
  font-size: 18px;
}
.follow-card-name {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.follow-card-stats {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.follow-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.back {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--accent);
  padding: 8px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 980px;
  width: fit-content;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.back:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.follow-stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

/* Rate calculator */
.rate-calc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 12px 0 8px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rate-calc label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.rate-calc select {
  font: inherit;
  font-size: 15px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  min-width: 220px;
}

/* Signup / subscribe */
.signup-banner {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid #cfe4d8;
  margin-bottom: 8px;
}
.signup-banner > p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15.5px;
}
.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.signup-email-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  flex: 1 1 220px;
}
.signup-email {
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  max-width: 320px;
}
.signup-email:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.signup-submit {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.signup-submit:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.signup-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.signup-status {
  flex: 1 1 100%;
  margin: 0;
  min-height: 1.2em;
}

/* Standalone subscribe band on the landing */
.subscribe {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
}
.subscribe-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.subscribe-inner h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 34px);
}
.subscribe-inner p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}
.subscribe .signup-banner {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.subscribe .signup-banner > p {
  color: #fff;
}
.subscribe .signup-email-label {
  color: rgba(255, 255, 255, 0.82);
}
.subscribe .signup-submit {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}
.subscribe .signup-submit:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}
.subscribe .signup-status {
  color: rgba(255, 255, 255, 0.9);
}

/* Brand mark (legacy, secondary pages) */
.brand-mark {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--faint);
}
.brand-mark a {
  color: inherit;
  text-decoration: none;
}
.brand-mark a:hover {
  color: var(--accent);
}

/* SEO / FAQ block -------------------------------------------------------- */
.seo-block {
  margin-top: 12px;
  padding-top: 8px;
}
.seo-block h2 {
  margin-top: 28px;
}
.seo-block h2:first-child {
  margin-top: 0;
}
.seo-block h3 {
  margin-top: 20px;
  margin-bottom: 6px;
  font-size: 18px;
}
.seo-block p,
.seo-block li {
  color: var(--muted);
  font-size: 16px;
}
.seo-block ul {
  padding-left: 1.2em;
}
.seo-block a {
  color: var(--accent);
  text-decoration: none;
}
.seo-block a:hover {
  text-decoration: underline;
}

/* FAQ accordion */
.faq {
  padding-top: 64px;
}
.faq-list {
  margin-top: 30px;
  display: grid;
  gap: 12px;
  max-width: 60rem;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: none;
  margin-right: 4px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
}
.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.seo-page .lede {
  max-width: 42em;
  color: var(--muted);
  font-size: 19px;
}

/* Secondary-page hero (single column) */
.hero.solo .hero-inner {
  grid-template-columns: 1fr;
  padding: 72px 28px 56px;
}
.hero.solo .lede {
  max-width: 44rem;
}
.hero.solo h1 {
  max-width: 20ch;
}

.empty-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 28px 24px;
}
.empty-page img {
  width: min(280px, 72vw);
  height: auto;
  margin: 0 0 8px;
}
.empty-page .kicker {
  margin-bottom: 8px;
}
.empty-page h1 {
  margin: 0 0 12px;
  max-width: 16ch;
}
.empty-page .lede {
  max-width: 36em;
  margin-bottom: 24px;
}
.empty-page .hero-cta {
  justify-content: center;
}
.lede {
  margin: 0 0 8px;
  max-width: 40rem;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

a.cta {
  display: inline-block;
  margin: 4px 0;
  font-weight: 600;
  color: var(--accent);
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-brand svg,
.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.footer-brand .g {
  color: var(--accent);
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent);
}

/* Cookie notice (injected by cookie.js) */
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  background: var(--accent-soft);
  border-top: 1px solid #cfe4d8;
  box-shadow: 0 -8px 28px rgba(20, 40, 28, 0.08);
}
.cookie-notice-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.cookie-notice-copy h2 {
  margin: 0 0 6px;
  font-size: 17px;
}
.cookie-notice-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  max-width: 52ch;
}
.cookie-notice-copy a {
  color: var(--accent);
}
.cookie-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.has-cookie-notice {
  padding-bottom: 140px;
}

/* Misc app blocks */
.scorecards {
  margin-bottom: 8px;
}
.skill-dir-group {
  margin-bottom: 14px;
}
.skill-dir-group h3 {
  margin-bottom: 4px;
}
.skill-dir-group a {
  color: var(--accent);
  text-decoration: none;
}
.skill-dir-group a:hover {
  text-decoration: underline;
}
.follow-openings-details {
  margin-top: 24px;
  padding: 16px 0;
}
.follow-openings-details summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}
.error {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Truffle bullet list (playful accent) */
.truffle-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}
.truffle-list li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 16px;
}
.truffle-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background-color: #2a1c12;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4c2.4 0 3.6 2 3.2 4.4L26 12h-6l-1.4-3.4C18.2 6.2 20.6 4 24 4z'/%3E%3Cpath d='M10 26c-3-8 3-16 13-18 8-1 16 3 19 10-3 2-7 8-7 14 0 8-8 14-16 12-8-2-12-10-9-18z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4c2.4 0 3.6 2 3.2 4.4L26 12h-6l-1.4-3.4C18.2 6.2 20.6 4 24 4z'/%3E%3Cpath d='M10 26c-3-8 3-16 13-18 8-1 16 3 19 10-3 2-7 8-7 14 0 8-8 14-16 12-8-2-12-10-9-18z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.truffle-list li strong {
  color: var(--ink);
}

@media (max-width: 940px) {
  .hero-illustration {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 64px 28px 60px;
  }
  .hero-card {
    order: 2;
  }
  .subscribe-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .page {
    padding: 0 16px 72px;
    padding-bottom: max(72px, env(safe-area-inset-bottom));
  }
  .nav-links {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 8px;
    gap: 2px;
  }
  .nav-links a {
    font-size: 13px;
    padding: 7px 9px;
    white-space: nowrap;
  }
  .nav-links a:not([data-home]) {
    display: none;
  }
  .persona-grid,
  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(34px, 9vw, 44px);
  }
  .hero .lede {
    font-size: 18px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 14px;
    border-radius: var(--radius-sm);
  }
  .stat b {
    font-size: 22px;
  }
  h2 {
    font-size: 23px;
  }
  h3 {
    font-size: 18px;
  }
  .split,
  .split.even {
    grid-template-columns: 1fr;
  }
  .chart-box,
  .chart-box.tall {
    height: 220px;
  }
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .home-nav {
    display: flex;
    width: 100%;
  }
  .home-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 12px;
  }
  .tab {
    flex: 1 0 auto;
    min-width: 72px;
  }
  table {
    min-width: 640px;
  }
  .section {
    padding: 48px 0 4px;
  }
  .app-live,
  .faq {
    padding-top: 48px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }
  .stat b {
    font-size: 22px;
  }
  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
