/* ============================================================
   OddlyJobs — Unified Design System
   Three angles. One community. Own everything.
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand */
  --brand: #0f766e;
  --brand-light: #14b8a6;
  --brand-dark: #0d5f58;
  --brand-subtle: rgba(15, 118, 110, 0.08);

  /* CTA / Accent */
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-subtle: rgba(249, 115, 22, 0.1);

  /* Section accents */
  --community: #16a34a;
  --community-subtle: rgba(22, 163, 74, 0.08);
  --tools: #2563eb;
  --tools-subtle: rgba(37, 99, 235, 0.08);
  --weird: #9333ea;
  --weird-subtle: rgba(147, 51, 234, 0.08);

  /* Neutrals */
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --surface: #ffffff;
  --text: #1c1917;
  --text-secondary: #57534e;
  /* UI-3 fix: was #a8a29e (2.79:1 contrast on --bg). Darkened to #78716c
     (4.55:1 on #fafaf9) — clears WCAG AA 4.5:1 for body text. */
  --text-tertiary: #78716c;
  --border: #e7e5e4;
  --border-light: #f5f5f4;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.15);

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Type scale */
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing */
  --section-pad: clamp(3rem, 8vw, 6rem);
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-to-content {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 10000; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-to-content:focus { top: 0; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== LAYOUT ===== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--surface); }
.section-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}
.section-dark .text-secondary { color: #94a3b8; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); }
p { color: var(--text-secondary); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.lead { font-size: var(--text-lg); line-height: 1.7; max-width: 680px; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header p { margin-top: 1rem; font-size: var(--text-lg); color: var(--text-secondary); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--brand); margin-bottom: 1rem;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ===== NAVIGATION ===== */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}
.nav-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -0.03em; color: var(--text);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.logo-oddly { color: var(--brand); }
.logo-jobs { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 0.875rem; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-suite-link {
  background: var(--accent) !important; color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
  transition: all 0.2s var(--ease) !important;
}
.nav-suite-link:hover {
  background: var(--accent-hover) !important; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249,115,22,0.4) !important;
}
.mobile-toggle {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.mobile-toggle svg { width: 22px; height: 22px; }
.mobile-toggle:hover { background: var(--bg-alt); }
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--surface); z-index: 999; padding: 5rem 2rem 2rem;
  flex-direction: column; gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 1rem; font-size: var(--text-lg); font-weight: 500;
  border-radius: var(--radius); transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--bg-alt); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: var(--text-sm);
  transition: all 0.25s var(--ease);
  white-space: nowrap; text-decoration: none;
}
.btn-lg { padding: 1rem 2rem; font-size: var(--text-base); }
.btn-xl { padding: 1.125rem 2.5rem; font-size: var(--text-lg); }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 2px 8px rgba(15,118,110,0.3);
}
.btn-primary:hover {
  background: var(--brand-dark); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15,118,110,0.4);
}
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}
.btn-accent:hover {
  background: var(--accent-hover); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.4);
}
.btn-secondary {
  background: var(--surface); color: var(--text); border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--brand); color: var(--brand); transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); background: var(--bg-alt); }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-group-center { justify-content: center; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  background: var(--surface);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, #f0fdfa 0%, #fafaf9 40%, #fff7ed 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(15,118,110,0.06), transparent);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 820px; }
.hero-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 1.5rem;
}
.hero-title em {
  /* UI-2 fix: explicit color: fallback BEFORE the webkit clip so browsers
     that don't support background-clip:text still render the word visibly. */
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  background-clip: text;
  -webkit-background-clip: text;
}
/* Only apply transparent fill where background-clip:text is supported.
   Without this guard, older browsers would render invisible text. */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-title em { -webkit-text-fill-color: transparent; }
}
.hero-sub {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  line-height: 1.7; color: var(--text-secondary);
  max-width: 600px; margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-proof {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.hero-proof-item { display: flex; align-items: center; gap: 0.5rem; }
.hero-proof-number { font-family: var(--font-heading); font-weight: 800; font-size: var(--text-xl); color: var(--brand); }
.hero-proof-label { font-size: var(--text-sm); color: var(--text-tertiary); }

/* ===== PILLAR CARDS ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2.5rem 2rem; border: 1.5px solid var(--border);
  transition: all 0.35s var(--ease); position: relative; overflow: hidden;
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  transform: scaleX(0); transition: transform 0.35s var(--ease);
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover {
  border-color: transparent; transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pillar-card--community::before { background: var(--community); }
.pillar-card--community:hover { border-color: rgba(22,163,74,0.2); }
.pillar-card--tools::before { background: var(--tools); }
.pillar-card--tools:hover { border-color: rgba(37,99,235,0.2); }
.pillar-card--weird::before { background: var(--weird); }
.pillar-card--weird:hover { border-color: rgba(147,51,234,0.2); }

.pillar-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin-bottom: 1.5rem;
}
.pillar-card--community .pillar-icon { background: var(--community-subtle); }
.pillar-card--tools .pillar-icon { background: var(--tools-subtle); }
.pillar-card--weird .pillar-icon { background: var(--weird-subtle); }

.pillar-title {
  font-size: var(--text-xl); font-weight: 700; margin-bottom: 0.75rem; color: var(--text);
}
.pillar-desc {
  font-size: var(--text-base); line-height: 1.65; color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.pillar-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: var(--text-sm);
  transition: gap 0.2s var(--ease);
}
.pillar-card--community .pillar-link { color: var(--community); }
.pillar-card--tools .pillar-link { color: var(--tools); }
.pillar-card--weird .pillar-link { color: var(--weird); }
.pillar-link:hover { gap: 10px; }

@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ===== SUITE BANNER ===== */
.suite-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: var(--radius-xl); padding: clamp(2.5rem, 5vw, 4rem);
  color: #fff; position: relative; overflow: hidden;
}
.suite-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(249,115,22,0.15), transparent);
}
.suite-banner .container { position: relative; z-index: 1; }
.suite-banner-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center;
}
.suite-banner h2 { color: #fff; margin-bottom: 1rem; }
.suite-banner p { color: #94a3b8; font-size: var(--text-lg); margin-bottom: 1.5rem; max-width: 500px; }
.suite-price {
  text-align: center; padding: 2rem; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg);
}
.suite-price-amount {
  font-family: var(--font-heading); font-size: var(--text-5xl); font-weight: 800; color: var(--accent);
}
.suite-price-period { font-size: var(--text-sm); color: #64748b; margin-top: 0.25rem; }
.suite-price-monthly { font-size: var(--text-sm); color: #94a3b8; margin-top: 0.5rem; }

.suite-perks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin: 2rem 0;
}
.suite-perk {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--text-sm); color: #cbd5e1;
}
.suite-perk-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(249,115,22,0.2); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}

@media (max-width: 768px) {
  .suite-banner-grid { grid-template-columns: 1fr; text-align: center; }
  .suite-banner p { margin-left: auto; margin-right: auto; }
  .suite-perks { justify-items: center; }
}

/* ===== COMMUNITY PAGE ===== */
.community-hero {
  background: linear-gradient(160deg, #f0fdf4 0%, #fafaf9 40%, #f0fdf4 100%);
  text-align: center; padding: clamp(3rem, 8vw, 5rem) 0;
}
.community-hero .hero-title em {
  color: var(--community);
  background: linear-gradient(135deg, var(--community), #4ade80);
  background-clip: text; -webkit-background-clip: text;
}
.community-hero .hero-sub { margin-left: auto; margin-right: auto; }
.community-hero .hero-ctas { justify-content: center; }
.community-hero .btn-primary { background: var(--community); box-shadow: 0 2px 8px rgba(22,163,74,0.3); }
.community-hero .btn-primary:hover { background: #15803d; box-shadow: 0 4px 16px rgba(22,163,74,0.4); }

.community-search {
  max-width: 560px; margin: 2rem auto 0; position: relative;
}
.community-search input {
  width: 100%; padding: 1rem 1rem 1rem 3rem; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: var(--text-base); transition: border-color 0.2s;
}
.community-search input:focus { border-color: var(--community); outline: none; box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }
.community-search .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-tertiary); }

.type-filters {
  display: flex; gap: 0.5rem; justify-content: center; padding: 1.5rem 0;
}
.type-filter-btn {
  padding: 0.5rem 1.25rem; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text-secondary);
  background: var(--surface); transition: all 0.2s var(--ease);
}
.type-filter-btn:hover { border-color: var(--community); color: var(--community); }
.type-filter-btn--active {
  background: var(--community); color: #fff; border-color: var(--community);
}
.type-filter-btn--active:hover { background: #15803d; }

.community-grid {
  display: grid; grid-template-columns: 240px 1fr; gap: 2rem;
}
@media (max-width: 900px) { .community-grid { grid-template-columns: 1fr; } }

/* Sidebar */
.sidebar {
  position: sticky; top: 5rem; align-self: start;
}
.sidebar-title {
  font-size: var(--text-sm); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-tertiary); margin-bottom: 0.75rem;
}
.cat-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.625rem 0.875rem; border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary);
  transition: all 0.15s var(--ease); text-align: left;
}
.cat-btn:hover { background: var(--bg-alt); color: var(--text); }
.cat-btn--active { background: var(--community-subtle); color: var(--community); font-weight: 600; }
.cat-btn span { font-size: var(--text-xs); color: var(--text-tertiary); }

/* Community cards */
.post-list { display: flex; flex-direction: column; gap: 1rem; }
.post-card {
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
  border: 1.5px solid var(--border); transition: all 0.25s var(--ease);
}
.post-card:hover {
  border-color: var(--community); transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.post-card-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.post-card-title { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; color: var(--text); line-height: 1.3; }
.post-card-type {
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.post-card-type--need { background: rgba(147,51,234,0.1); color: #9333ea; }
.post-card-type--offering { background: rgba(22,163,74,0.1); color: #16a34a; }
.post-card-meta {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  font-size: var(--text-sm); color: var(--text-tertiary); margin-bottom: 0.75rem;
}
.post-card-meta strong { color: var(--text-secondary); font-weight: 600; }
.post-card-desc { font-size: var(--text-sm); line-height: 1.6; color: var(--text-secondary); margin-bottom: 1rem; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; }
.post-card-budget { font-family: var(--font-heading); font-weight: 700; color: var(--brand); font-size: var(--text-sm); }
.post-card-contact { font-size: var(--text-xs); color: var(--text-tertiary); }
.post-card-featured { border-color: rgba(22,163,74,0.3); background: linear-gradient(135deg, var(--surface), #f0fdf4); }

/* ===== TOOLS PAGE ===== */
.tools-hero {
  background: linear-gradient(160deg, #eff6ff 0%, #fafaf9 40%, #eff6ff 100%);
  text-align: center; padding: clamp(3rem, 8vw, 5rem) 0;
}
.tools-hero .hero-title em {
  color: var(--tools);
  background: linear-gradient(135deg, var(--tools), #60a5fa);
  background-clip: text; -webkit-background-clip: text;
}
.tools-hero .btn-primary { background: var(--tools); box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.tools-hero .btn-primary:hover { background: #1d4ed8; box-shadow: 0 4px 16px rgba(37,99,235,0.4); }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 2rem;
  border: 1.5px solid var(--border); transition: all 0.35s var(--ease);
  text-align: center; position: relative; overflow: hidden;
}
.app-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--tools);
}
.app-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: #fff;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.app-icon--books { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.app-icon--clients { background: linear-gradient(135deg, #16a34a, #15803d); }
.app-icon--work { background: linear-gradient(135deg, #ea580c, #c2410c); }
.app-name { font-size: var(--text-xl); font-weight: 700; margin-bottom: 0.5rem; }
.app-tagline { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 1.25rem; }
.app-features {
  text-align: left; margin-bottom: 1.5rem;
}
.app-features li {
  padding: 0.375rem 0; font-size: var(--text-sm); color: var(--text-secondary);
  display: flex; align-items: baseline; gap: 0.5rem;
}
.app-features li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0; margin-top: 0.5em;
}
.app-platforms {
  font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 0.75rem;
}
.app-replaces {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: var(--text-xs); color: var(--text-tertiary);
}

.comparison-table {
  width: 100%; border-collapse: collapse; margin-top: 2rem;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table th, .comparison-table td {
  padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.comparison-table th {
  background: var(--bg-alt); font-weight: 700; color: var(--text);
}
.comparison-table .price-theirs { color: #dc2626; font-weight: 600; }
.comparison-table .price-ours { color: var(--community); font-weight: 700; }

/* ===== WEIRD JOBS PAGE ===== */
.weird-hero {
  background: linear-gradient(160deg, #faf5ff 0%, #fafaf9 40%, #fdf4ff 100%);
  text-align: center; padding: clamp(3rem, 8vw, 5rem) 0;
}
.weird-hero .hero-title em {
  color: var(--weird);
  background: linear-gradient(135deg, var(--weird), #c084fc);
  background-clip: text; -webkit-background-clip: text;
}

.job-grid {
  display: grid; grid-template-columns: 240px 1fr; gap: 2rem;
}
@media (max-width: 900px) { .job-grid { grid-template-columns: 1fr; } }

.job-list { display: flex; flex-direction: column; gap: 1rem; }
.job-list__loading, .job-list__empty {
  padding: 3rem; text-align: center; color: var(--text-tertiary);
}

.job-card {
  display: block; text-decoration: none;
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
  border: 1.5px solid var(--border); transition: all 0.25s var(--ease);
  animation: cardIn 0.4s var(--ease) backwards;
}
.job-card:hover {
  border-color: var(--weird); transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.job-card--featured {
  border-color: rgba(147,51,234,0.3);
  background: linear-gradient(135deg, var(--surface), #faf5ff);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.job-card__header { margin-bottom: 0.75rem; }
.job-card__title {
  font-family: var(--font-heading); font-size: var(--text-lg);
  font-weight: 700; color: var(--text); line-height: 1.3;
}
.job-card__company { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 0.25rem; }
.job-card__meta {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.job-tag {
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; background: var(--bg-alt); color: var(--text-secondary);
}
.job-card__salary { font-size: var(--text-sm); font-weight: 600; color: var(--brand); }
.job-card__location, .job-card__type { font-size: var(--text-xs); color: var(--text-tertiary); }
.job-card__excerpt { font-size: var(--text-sm); line-height: 1.6; color: var(--text-secondary); margin-bottom: 0.75rem; }
.job-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--text-xs); color: var(--text-tertiary);
}
.job-badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; background: var(--weird); color: #fff;
  margin-bottom: 0.5rem;
}

/* Sidebar categories for weird jobs */
.weird-sidebar .cat-btn--active { background: var(--weird-subtle); color: var(--weird); }

/* ===== STORIES / TESTIMONIALS ===== */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .stories-grid { grid-template-columns: 1fr; } }
.story-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 2rem;
  border: 1.5px solid var(--border);
}
.story-card-quote {
  font-size: var(--text-base); line-height: 1.7; color: var(--text-secondary);
  font-style: italic; margin-bottom: 1.25rem;
}
.story-card-author { font-weight: 700; font-size: var(--text-sm); color: var(--text); }
.story-card-location { font-size: var(--text-xs); color: var(--text-tertiary); }

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap;
  padding: 2rem 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 800;
  color: var(--brand);
}
.stat-label { font-size: var(--text-sm); color: var(--text-tertiary); margin-top: 0.25rem; }

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 2rem;
  text-align: center; border: 1.5px solid var(--border);
  transition: all 0.3s var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: var(--text-xl);
  margin: 0 auto 1rem;
}
.step-card h3 { font-size: var(--text-base); margin-bottom: 0.5rem; }
.step-card p { font-size: var(--text-sm); color: var(--text-secondary); }

/* ===== CATEGORIES GRID (homepage/community) ===== */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem;
}
.category-card {
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
  text-align: center; border: 1.5px solid var(--border);
  transition: all 0.25s var(--ease); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.category-card:hover {
  border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow);
}
.category-card-icon { font-size: 2rem; }
.category-card-name { font-size: var(--text-sm); font-weight: 600; color: var(--text); }

/* ===== FOUNDER SECTION ===== */
.founder-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
@media (max-width: 768px) { .founder-section { grid-template-columns: 1fr; gap: 2rem; } }
.founder-text h2 { margin-bottom: 1.5rem; }
.founder-text p { margin-bottom: 1rem; }
.founder-img {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-subtle), var(--bg-alt));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

/* ===== TICKER ===== */
.ticker {
  overflow: hidden; background: var(--bg-alt); padding: 0.75rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ticker__track {
  display: flex; gap: 3rem; animation: ticker-scroll 40s linear infinite;
  width: max-content;
}
.ticker__item {
  font-size: var(--text-sm); color: var(--text-tertiary); white-space: nowrap;
  display: flex; align-items: center; gap: 0.5rem;
}
.ticker__item strong { color: var(--text-secondary); }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== FORMS ===== */
.form-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 2.5rem;
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: var(--text-sm); font-weight: 600;
  color: var(--text); margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: var(--text-base); transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--brand); outline: none;
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}
.form-group small { display: block; margin-top: 0.375rem; font-size: var(--text-xs); color: var(--text-tertiary); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { font-size: var(--text-sm); color: var(--text-tertiary); margin-top: 0.75rem; max-width: 300px; }
.footer-col h4 {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-tertiary); margin-bottom: 0.75rem;
}
.footer-col a {
  display: block; font-size: var(--text-sm); color: var(--text-secondary);
  padding: 0.25rem 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-xs); color: var(--text-tertiary);
}
@media (max-width: 768px) { .footer-bottom { flex-direction: column; gap: 0.5rem; } }

/* ===== UTILITY ===== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== FORM ERROR / STATUS ===== */
.form-error {
  min-height: 1.25em;
  color: #b91c1c;
  font-size: var(--text-sm);
  font-weight: 500;
  margin: 0.25rem 0 0.75rem;
}
.form-error:empty { display: none; }

/* ===== ERROR PAGE ===== */
.error-page {
  text-align: center;
  padding: clamp(3rem, 10vw, 6rem) 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}
.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--text-tertiary);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page p { font-size: var(--text-lg); margin-bottom: 2rem; }

/* ===== LEGAL CONTENT (privacy, terms) ===== */
.legal-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: var(--text-xl);
  color: var(--text);
}
.legal-content p { margin-bottom: 1rem; line-height: 1.7; }
.legal-content code {
  background: var(--bg-alt);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}
.legal-content a { color: var(--brand); text-decoration: underline; }
.legal-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== ACCOUNT GRID ===== */
.account-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.75rem 1.5rem;
  font-size: var(--text-base);
}
.account-grid dt {
  font-weight: 600;
  color: var(--text-secondary);
}
.account-grid dd { color: var(--text); }
.account-grid code {
  background: var(--bg-alt);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95em;
}

/* ===== DOWNLOAD BUTTON HELPERS ===== */
.app-platforms a {
  color: var(--text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.app-platforms a:hover { color: var(--text-secondary); }
.download-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== HONOR REDUCED MOTION FOR DECORATIVE ANIMATIONS ===== */
@media (prefers-reduced-motion: reduce) {
  .eyebrow-dot { animation: none; }
  .ticker__track { animation: none; transform: none; }
  .job-card { animation: none; }
}
.gap-2 { gap: 1rem; }

/* ============================================================
   PASS-1 FIXES (2026-05-13)
   Touch targets, page-transition scope, composer styles.
   ============================================================ */

/* IM-1 fix: scope page transitions to the inner wrapper so the sticky nav stays solid.
   The wrapper is opened by nav() and closed by footer() in unified-app.js. */
#page-content { opacity: 1; will-change: opacity; min-height: 60vh; }

/* MO-1/2/3 fix: bump touch targets to >= 44x44 on mobile.
   .cat-btn / .type-filter-btn used to be ~36px tall — below the iOS minimum. */
@media (max-width: 768px) {
  .cat-btn {
    padding: 0.75rem 1rem;
    min-height: 44px;
    font-size: var(--text-base);
  }
  .type-filter-btn {
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    font-size: var(--text-sm);
  }
  /* MO-3: tiny Mac/Windows/Linux inline links → stacked block links with full hit area. */
  .app-platforms { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
  .app-platforms a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    min-height: 44px;
    line-height: 1.6;
  }
  /* The middle-dot separators in the markup are still rendered as text; hide them on mobile. */
  .app-platforms { font-size: 0; }
  .app-platforms a { font-size: var(--text-sm); }
}

/* UX-5 / nav: the wider desktop link list now needs slightly tighter spacing
   so it fits without wrapping on 13" displays. */
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-links a { padding: 0.45rem 0.6rem; font-size: var(--text-xs); }
}

/* COMPOSER + AUTH form helpers */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  color: var(--text);
  transition: border-color 0.15s var(--ease);
}
.form-group select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-subtle); }
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  color: var(--text);
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s var(--ease);
}
.form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-subtle); }
.form-group input[type="url"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  color: var(--text);
  transition: border-color 0.15s var(--ease);
}
.form-group input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-subtle); }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 0.375rem;
  color: var(--text);
}
.form-group small {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 0.375rem;
}
.form-group + .form-group, .form-row + .form-group, .form-group + .form-row { margin-top: 1.25rem; }
.form-error {
  color: #b91c1c;
  font-size: var(--text-sm);
  margin: 0.75rem 0;
  min-height: 1rem;
}
.checkbox-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}
.checkbox-row input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; }

.type-radio { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.type-radio-opt {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: border-color 0.15s, background 0.15s;
  flex: 1; min-width: 12rem; min-height: 44px;
}
.type-radio-opt:hover { border-color: var(--brand); }
.type-radio-opt input[type="radio"] { accent-color: var(--brand); width: 1.1rem; height: 1.1rem; }
.type-radio-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-subtle); }

/* "+ New Post" CTA pill inside .type-filters */
.type-filter-btn--cta {
  background: var(--brand);
  color: #fff !important;
  border-color: var(--brand) !important;
  font-weight: 700;
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.type-filter-btn--cta:hover { background: var(--brand-dark); color: #fff; }

/* Footer byline (CW-1: replaces repeated "Built by one person + AI") */
.footer-byline {
  margin-top: 0.5rem;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-style: italic;
}

/* Account dl grid (used by /account) */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.75rem 1.25rem;
  font-size: var(--text-sm);
}
.account-grid dt { color: var(--text-tertiary); font-weight: 600; }
.account-grid dd { color: var(--text); margin: 0; }
@media (max-width: 540px) {
  .account-grid { grid-template-columns: 1fr; gap: 0.25rem 0.5rem; }
  .account-grid dt { margin-top: 0.75rem; }
}

/* Reduced-motion: also flatten the new page-content transition */
@media (prefers-reduced-motion: reduce) {
  #page-content { transition: none !important; opacity: 1 !important; }
}

/* Tools page — fallback styling for platforms whose binaries aren't on disk yet. */
.app-platform-disabled {
  color: var(--text-tertiary);
  text-decoration: line-through;
  cursor: not-allowed;
}
