:root {
  --primary: #EC4899;
  --primary-soft: #FCE7F3;
  --primary-deep: #BE185D;
  --accent: #6366F1;
  --accent-soft: #E0E7FF;
  --ink: #0B0B12;
  --ink-2: #1F1F2A;
  --muted: #6B6B7A;
  --muted-2: #9AA0AE;
  --line: #ECECF1;
  --line-2: #DDDDE6;
  --paper: #FBFAF7;
  --paper-2: #F5F4EF;
  --card: #FFFFFF;
  --ok: #10B981;
  --warn: #F59E0B;
  --bad: #EF4444;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,15,30,.04), 0 1px 1px rgba(15,15,30,.03);
  --shadow: 0 8px 24px -8px rgba(15,15,30,.10), 0 2px 6px rgba(15,15,30,.04);
  --shadow-lg: 0 30px 60px -20px rgba(15,15,30,.18), 0 10px 24px -10px rgba(15,15,30,.08);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--font-mono); }

/* ─── App shell ─────────────────────────────────────────────── */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ─── Top nav (landing) ────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.nav-logo .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: white; font-weight: 800;
  box-shadow: 0 4px 12px -2px color-mix(in oklab, var(--primary) 40%, transparent);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav-links a { padding: 6px 0; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) { .nav-links { display: none; } .nav { padding: 14px 18px; } }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: -0.005em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.25);
}
.btn-primary:hover { background: var(--primary); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.btn-outline { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-pink {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 22px -8px color-mix(in oklab, var(--primary) 60%, transparent);
}
.btn-pink:hover { background: var(--primary-deep); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; }

/* ─── Landing hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 60px 40px 80px;
  overflow: hidden;
}
@media (max-width: 760px) { .hero { padding: 36px 18px 48px; } }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .65;
}
.hero-bg .b1 { width: 520px; height: 520px; left: -120px; top: -120px; background: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--primary) 65%, transparent), transparent 70%); }
.hero-bg .b2 { width: 560px; height: 560px; right: -140px; top: 40px; background: radial-gradient(circle at 60% 40%, color-mix(in oklab, var(--accent) 55%, transparent), transparent 70%); }
.hero-bg .b3 { width: 380px; height: 380px; left: 35%; bottom: -180px; background: radial-gradient(circle at 50% 50%, color-mix(in oklab, #FCD34D 55%, transparent), transparent 70%); opacity: .45; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 18%, transparent); }
.h-title {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 18px 0 20px;
  font-weight: 600;
}
.h-title .accent { color: var(--primary); }
.h-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 520px;
}
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.h-trust { margin-top: 26px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.h-trust .avatars { display: flex; }
.h-trust .avatars span {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--paper);
  margin-left: -8px; background: linear-gradient(135deg, #C7D2FE, #FBCFE8);
}
.h-trust .avatars span:nth-child(2) { background: linear-gradient(135deg, #FDE68A, #FCA5A5); }
.h-trust .avatars span:nth-child(3) { background: linear-gradient(135deg, #A7F3D0, #93C5FD); }
.h-trust .avatars span:nth-child(4) { background: linear-gradient(135deg, #FBCFE8, #C4B5FD); }
.h-trust .stars { color: var(--warn); letter-spacing: 1px; }

/* ─── Hero 3D card stack ───────────────────────────────────── */
.h-stage {
  position: relative;
  min-height: 540px;
  display: grid; place-items: center;
  perspective: 1800px;
}
@media (max-width: 980px) { .h-stage { min-height: 460px; } }
.resume-card {
  position: relative;
  width: 380px; max-width: 100%;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 26px;
  transform: rotateY(-12deg) rotateX(8deg) rotateZ(-2deg);
  transform-style: preserve-3d;
}
.resume-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 19px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 30%, transparent), transparent 50%);
  z-index: -1; filter: blur(20px); opacity: .6;
}
.rc-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rc-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: white; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.rc-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.rc-role { font-size: 12px; color: var(--muted); }
.rc-section { margin-top: 16px; }
.rc-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rc-row { height: 8px; background: var(--paper-2); border-radius: 4px; margin-top: 6px; }
.rc-row.short { width: 60%; }
.rc-row.med { width: 80%; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rc-chip { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.rc-chip.pink { background: var(--primary-soft); color: var(--primary-deep); border-color: color-mix(in oklab, var(--primary) 20%, transparent); }

.floater {
  position: absolute;
  background: color-mix(in oklab, white 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, white 70%, var(--line));
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 12.5px;
  display: flex; align-items: center; gap: 10px;
  z-index: 2;
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.floater-1 { top: 6%; left: -4%; animation-delay: 0s; }
.floater-2 { top: 38%; right: -6%; animation-delay: 1.2s; }
.floater-3 { bottom: 8%; left: 4%; animation-delay: 2.4s; }
.floater .ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.floater.ats .ic { background: color-mix(in oklab, var(--ok) 18%, transparent); color: var(--ok); }
.floater.match .ic { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); }
.floater.bot .ic { background: color-mix(in oklab, var(--primary) 18%, transparent); color: var(--primary); }
.floater .num { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1; }
.floater .lbl { font-size: 11px; color: var(--muted); }

/* 3D coin / object */
.coin {
  position: absolute;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, var(--primary), var(--accent), #FCD34D, var(--primary));
  filter: blur(.4px);
  box-shadow: inset -10px -16px 30px rgba(0,0,0,.18), inset 8px 10px 20px rgba(255,255,255,.45), 0 24px 40px -10px color-mix(in oklab, var(--primary) 40%, transparent);
  top: -30px; right: 20%;
  animation: floaty 6s ease-in-out infinite;
}
.coin.small { width: 64px; height: 64px; top: auto; bottom: 14%; right: 38%; animation-delay: 1.5s; }

/* ─── Sections ────────────────────────────────────────────── */
.section { padding: 90px 40px; }
@media (max-width: 760px) { .section { padding: 60px 18px; } }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.section-title { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 620px; margin: 16px auto 0; line-height: 1.55; }

/* ─── Feature grid / bento ─────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento .cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bento .cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bento .cell h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.bento .cell p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.bento .span-3 { grid-column: span 3; }
.bento .span-2 { grid-column: span 2; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .tall { min-height: 320px; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span-3, .bento .span-2, .bento .span-4, .bento .span-6 { grid-column: span 2; }
}

.cell-ill { margin-top: 18px; }
.mini-bar {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  position: relative;
}
.mini-bar::after {
  content: ""; position: absolute; right: -2px; top: -3px;
  width: 14px; height: 14px; background: white; border-radius: 50%;
  border: 3px solid var(--primary);
}

/* ─── Sidebar dashboard ────────────────────────────────────── */
.sidebar {
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.sb-logo { display: flex; align-items: center; gap: 10px; padding: 8px 12px 18px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.sb-logo .mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: white; font-weight: 800; font-size: 13px; }
.sb-group { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); padding: 14px 12px 6px; font-weight: 700; }
.sb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.sb-link:hover { background: var(--paper-2); }
.sb-link.active { background: var(--ink); color: white; }
.sb-link.active svg { color: var(--primary); }
.sb-link svg { width: 18px; height: 18px; color: var(--muted); }
.sb-link.active .badge { background: var(--primary); color: white; }
.sb-link .badge {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--paper-2); color: var(--muted); padding: 2px 7px; border-radius: 999px;
}
.sb-user {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-top: 1px solid var(--line); margin-top: auto;
}
.sb-user .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: white; font-weight: 700; font-size: 13px; }
.sb-user .meta { line-height: 1.2; }
.sb-user .meta .n { font-size: 13px; font-weight: 600; }
.sb-user .meta .e { font-size: 11px; color: var(--muted); }

/* ─── Page header inside dashboard ─────────────────────────── */
.page { padding: 28px 36px 80px; }
@media (max-width: 760px) { .page { padding: 18px 16px 60px; } }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 26px; flex-wrap: wrap;
}
.page-head h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; }
.page-head .sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.card.tight { padding: 16px; }
.card-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.card-sub { color: var(--muted); font-size: 13px; }

/* ─── Stat tiles ───────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .val { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; line-height: 1; }
.stat .delta { font-size: 12px; font-weight: 600; margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }
.stat .delta.up { color: var(--ok); }
.stat .delta.down { color: var(--bad); }

/* ─── Forms ───────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.005em; }
.field input, .field textarea, .field select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  transition: border .15s, box-shadow .15s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 8%, transparent);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } }

/* ─── Builder split layout ────────────────────────────────── */
.builder { display: grid; grid-template-columns: minmax(340px, 480px) 1fr; gap: 24px; }
@media (max-width: 1080px) { .builder { grid-template-columns: 1fr; } }
.builder .edit-pane { display: flex; flex-direction: column; gap: 16px; }
.builder .preview-pane { position: sticky; top: 90px; align-self: start; }
.builder .step-list {
  display: flex; flex-direction: column; gap: 2px;
}
.builder .step {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; font-size: 13.5px; cursor: pointer;
  color: var(--ink-2);
}
.builder .step:hover { background: var(--paper-2); }
.builder .step.active { background: var(--ink); color: white; }
.builder .step .num {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--paper-2); color: var(--muted);
}
.builder .step.active .num { background: var(--primary); color: white; }
.builder .step.done .num { background: var(--ok); color: white; }

/* ─── Resume preview (proper paper) ────────────────────────── */
.resume-paper {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 36px 40px;
  font-size: 11px;
  line-height: 1.5;
  color: #1A1A24;
  border: 1px solid var(--line);
  aspect-ratio: 8.5/11;
  overflow: hidden;
  position: relative;
}
.rp-header { border-bottom: 2px solid #1A1A24; padding-bottom: 12px; margin-bottom: 14px; }
.rp-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; }
.rp-title { color: var(--primary); font-weight: 600; font-size: 12px; margin-top: 2px; }
.rp-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 10px; color: #555; }
.rp-section { margin-top: 14px; }
.rp-section h4 {
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 6px;
  border-bottom: 1px solid #E5E5EC; padding-bottom: 4px;
}
.rp-job { margin-bottom: 8px; }
.rp-job .jh { display: flex; justify-content: space-between; font-weight: 600; font-size: 11px; }
.rp-job .jm { color: #666; font-size: 10px; margin-bottom: 4px; }
.rp-job ul { margin: 0; padding-left: 16px; }
.rp-job li { margin: 2px 0; font-size: 10.5px; }
.rp-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.rp-skills .sk { background: var(--paper-2); padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 500; }

/* ─── Templates gallery ───────────────────────────────────── */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.tpl {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.tpl:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tpl.selected { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.tpl-thumb { aspect-ratio: 8.5/11; background: white; padding: 14px; font-size: 6px; color: #333; position: relative; overflow: hidden; }
.tpl-meta { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.tpl-meta .n { font-weight: 600; font-size: 14px; }
.tpl-meta .b { font-size: 11px; color: var(--muted); }

/* mini resume thumbnails */
.t-row { height: 3px; background: #E5E5EC; border-radius: 2px; margin: 2px 0; }
.t-row.s { width: 50%; }
.t-row.m { width: 75%; }
.t-row.dark { background: #1A1A24; }
.t-row.pink { background: var(--primary); }

/* ─── ATS score gauge ─────────────────────────────────────── */
.gauge-wrap { display: flex; align-items: center; gap: 28px; }
.gauge { position: relative; width: 180px; height: 180px; }
.gauge svg { transform: rotate(-90deg); }
.gauge .pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 42px; font-weight: 700; letter-spacing: -0.03em; }
.gauge .pct small { font-size: 14px; font-weight: 500; color: var(--muted); display: block; text-align: center; margin-top: -6px; }
.score-detail { display: grid; gap: 10px; flex: 1; }
.score-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.score-row .lbl { width: 130px; color: var(--ink-2); font-weight: 500; }
.score-row .bar { flex: 1; height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.score-row .bar div { height: 100%; border-radius: 3px; background: var(--primary); }
.score-row .v { font-weight: 600; width: 38px; text-align: right; }

/* ─── Job match cards ─────────────────────────────────────── */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  transition: border .15s, box-shadow .15s;
  cursor: pointer;
}
.job:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.job .logo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: white; font-size: 16px; }
.job .title { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.job .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.job .meta .dot { color: var(--line-2); }
.job .right { text-align: right; }
.job .match-pct {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  color: var(--ok);
}
.job .match-pct.med { color: var(--warn); }
.job .match-pct.low { color: var(--muted); }

/* ─── Queue / kanban ───────────────────────────────────────── */
.kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kanban { grid-template-columns: 1fr; } }
.col-head { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 4px 10px 10px; display: flex; align-items: center; justify-content: space-between; }
.col-head .count { background: var(--paper-2); color: var(--ink-2); font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.col { background: color-mix(in oklab, var(--paper) 50%, var(--card)); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.q-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 12.5px; }
.q-card .co { font-weight: 600; }
.q-card .ro { color: var(--muted); margin-top: 1px; }
.q-card .ft { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
.tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase;
}
.tag.prep { background: color-mix(in oklab, var(--accent) 15%, transparent); color: var(--accent); }
.tag.review { background: color-mix(in oklab, var(--warn) 18%, transparent); color: #B45309; }
.tag.ready { background: var(--primary-soft); color: var(--primary-deep); }
.tag.sent { background: color-mix(in oklab, var(--ok) 16%, transparent); color: #047857; }
.tag.interview { background: color-mix(in oklab, var(--ink) 86%, transparent); color: white; }

/* ─── Switch ──────────────────────────────────────────────── */
.switch { display: inline-flex; align-items: center; background: var(--paper-2); border-radius: 999px; padding: 3px; gap: 2px; border: 1px solid var(--line); }
.switch button { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.switch button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ─── Memory / Q&A rows ───────────────────────────────────── */
.qa-list { display: flex; flex-direction: column; gap: 8px; }
.qa {
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); align-items: start;
}
.qa .q { font-weight: 600; font-size: 13.5px; }
.qa .a { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.qa .ctx { display: flex; gap: 6px; margin-top: 8px; }
.qa .conf { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 11px; }
.qa .conf .ring {
  width: 36px; height: 36px;
}
.conf-pill { background: var(--paper-2); font-size: 10px; padding: 2px 8px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.conf-pill.ok { background: color-mix(in oklab, var(--ok) 16%, transparent); color: #047857; }
.conf-pill.med { background: color-mix(in oklab, var(--warn) 16%, transparent); color: #B45309; }
.conf-pill.missing { background: color-mix(in oklab, var(--bad) 14%, transparent); color: #B91C1C; }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; padding: 18px 22px; text-align: left; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-a { padding: 0 22px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.faq-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; transition: transform .2s, background .2s; flex-shrink: 0; }
.faq-item.open .faq-icon { background: var(--primary); color: white; transform: rotate(45deg); }

/* ─── Footer / pricing / cta sections ────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #1F1F2A 60%);
  color: white;
  border-radius: 28px;
  padding: 60px 50px;
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, color-mix(in oklab, var(--primary) 40%, transparent), transparent 50%),
              radial-gradient(circle at 10% 90%, color-mix(in oklab, var(--accent) 40%, transparent), transparent 50%);
  opacity: .6;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.035em; }
.cta-banner p { color: rgba(255,255,255,.7); margin-top: 14px; font-size: 17px; }
.cta-banner .h-cta { justify-content: center; margin-top: 32px; }
.cta-banner .btn-primary { background: white; color: var(--ink); }
.cta-banner .btn-primary:hover { background: var(--primary); color: white; }
.cta-banner .btn-ghost { color: white; border: 1px solid rgba(255,255,255,.2); }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.price {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 16px;
}
.price.featured { background: var(--ink); color: white; border-color: var(--ink); position: relative; }
.price.featured .price-amt { color: white; }
.price.featured .price-amt small { color: rgba(255,255,255,.6); }
.price.featured .feat-mark { background: rgba(255,255,255,.1); color: white; }
.price-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.price-tag { font-size: 12px; color: var(--muted); }
.price.featured .price-tag { color: rgba(255,255,255,.7); }
.price-amt { font-family: var(--font-display); font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price-amt small { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price-feats li { display: flex; align-items: start; gap: 10px; font-size: 14px; line-height: 1.45; }
.feat-mark { width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.price.featured .badge-pop { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; font-size: 10px; padding: 4px 10px; border-radius: 999px; font-weight: 700; letter-spacing: 0.1em; }

.footer { padding: 56px 40px 30px; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--ink-2); font-size: 14px; }
.footer-grid a:hover { color: var(--primary); }
.footer-bot { max-width: 1240px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; gap: 12px; }

/* ─── Phone mockup ────────────────────────────────────────── */
.phone {
  width: 240px;
  height: 480px;
  background: var(--ink);
  border-radius: 36px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  padding: 30px 14px 14px;
  font-size: 11px;
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; background: var(--ink); border-radius: 12px; z-index: 2; }
.phone-status { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: var(--ink); z-index: 1; }

/* ─── Mobile bottom nav ──────────────────────────────────── */
.mb-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom)); z-index: 40;
}
.mb-nav-inner { display: flex; justify-content: space-around; }
.mb-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; font-size: 10px; color: var(--muted); font-weight: 600; }
.mb-nav button.on { color: var(--primary); }
.mb-nav svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .mb-nav { display: block; }
  .page { padding-bottom: 80px; }
}

/* ─── Misc ────────────────────────────────────────────────── */
.hr { border: none; height: 1px; background: var(--line); margin: 18px 0; }
.flex { display: flex; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.between { justify-content: space-between; }
.center { align-items: center; }
.column { flex-direction: column; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.fw-700 { font-weight: 700; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }

/* ─── Dark theme ──────────────────────────────────────────── */
.dark {
  --primary: #F472B6;
  --primary-soft: #4A1D34;
  --primary-deep: #FB7185;
  --accent: #818CF8;
  --accent-soft: #312E81;
  --ink: #FAFAFA;
  --ink-2: #E5E5EC;
  --muted: #9CA0AE;
  --muted-2: #6B6B7A;
  --line: #28282F;
  --line-2: #3A3A44;
  --paper: #0B0B12;
  --paper-2: #14141C;
  --card: #16161F;
}
.dark .btn-primary { background: white; color: #0B0B12; }
.dark .btn-primary:hover { background: var(--primary); color: white; }
.dark .resume-paper { background: #16161F; color: var(--ink-2); border-color: var(--line-2); }
.dark .rp-header { border-color: var(--ink-2); }
.dark .rp-skills .sk { background: var(--paper-2); }

/* ─── animations ──────────────────────────────────────────── */
@keyframes pop-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.pop { animation: pop-in .35s ease both; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.pulse { animation: pulse-dot 1.6s ease-in-out infinite; }

/* ─── 3D + Interactive layer (lightweight) ─────────────────── */

/* Scroll-reveal: opacity + translate, JS toggles .in */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.r-2 { transition-delay: .08s; }
.reveal.r-3 { transition-delay: .16s; }
.reveal.r-4 { transition-delay: .24s; }
.reveal.r-5 { transition-delay: .32s; }
.reveal.r-6 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floater, .coin, .bg-orb, .marquee-track { animation: none !important; }
}

/* Mouse-tilt stage: CSS reads --mx / --my set in JS (0..1 range, centered 0.5) */
.tilt {
  --mx: .5; --my: .5;
  --rx: calc((var(--my) - .5) * -16deg);
  --ry: calc((var(--mx) - .5) * 22deg);
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.tilt.active { transition: none; }
.tilt-inner {
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.tilt.active .tilt-inner { transition: none; }
.tilt-layer { transform: translate3d(0,0,var(--z, 0px)); transform-style: preserve-3d; }

/* Hero stage 3D scene — make existing elements respond to tilt */
.h-stage.tilt { perspective: 1600px; }
.h-stage.tilt .resume-card { transform: rotateY(-12deg) rotateX(8deg) rotateZ(-2deg) translateZ(0); }
.h-stage.tilt .resume-card.layer { transform: translateZ(60px) rotateY(-12deg) rotateX(8deg) rotateZ(-2deg); }
.h-stage.tilt .floater-1 { transform: translateZ(110px); }
.h-stage.tilt .floater-2 { transform: translateZ(140px); }
.h-stage.tilt .floater-3 { transform: translateZ(90px); }
.h-stage.tilt .coin { transform: translateZ(70px); }
.h-stage.tilt .coin.small { transform: translateZ(40px); }

/* Hero shine following cursor */
.shine {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(180px circle at calc(var(--mx,.5) * 100%) calc(var(--my,.5) * 100%), color-mix(in oklab, white 45%, transparent), transparent 60%);
  opacity: 0; transition: opacity .25s;
  mix-blend-mode: overlay;
}
.tilt:hover .shine { opacity: 1; }

/* Animated background orbs (cheap, GPU-friendly) */
.bg-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: orb 22s ease-in-out infinite; pointer-events: none; }
@keyframes orb {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-30px,30px) scale(.95); }
}

/* ─── Trust marquee ─────────────────────────────────────────── */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0;
  border-block: 1px solid var(--line);
  background: color-mix(in oklab, var(--paper) 50%, var(--card));
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.m-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
  opacity: .82; transition: color .2s, opacity .2s;
}
.m-logo:hover { color: var(--ink); opacity: 1; }
.m-logo .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ─── Stats strip ───────────────────────────────────────────── */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 1100px;
  margin: 0 auto;
}
.stats-strip .cell {
  padding: 28px 26px;
  position: relative;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--paper-2) 40%, transparent));
}
.stats-strip .cell + .cell { border-left: 1px solid var(--line); }
.stats-strip .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, var(--ink) 50%, var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-strip .lbl { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 500; }
@media (max-width: 760px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .cell:nth-child(3) { border-left: 1px solid var(--line); }
  .stats-strip .cell:nth-child(3), .stats-strip .cell:nth-child(4) { border-top: 1px solid var(--line); }
  .stats-strip .cell:nth-child(odd) { border-left: none; }
}

/* ─── Offers grid (3D cards) ────────────────────────────────── */
.offers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  perspective: 1400px;
}
@media (max-width: 1000px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .offers { grid-template-columns: 1fr; } }

.offer {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px 24px;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .25s;
}
.offer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(220px circle at calc(var(--mx,.5) * 100%) calc(var(--my,.5) * 100%), color-mix(in oklab, var(--primary) 18%, transparent), transparent 60%);
  opacity: 0; transition: opacity .3s; z-index: -1;
}
.offer:hover { transform: rotateX(calc((var(--my,.5) - .5) * -10deg)) rotateY(calc((var(--mx,.5) - .5) * 14deg)) translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--primary) 30%, var(--line)); }
.offer:hover::before { opacity: 1; }
.offer .icon-tile {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-soft), color-mix(in oklab, var(--accent-soft) 70%, var(--primary-soft)));
  color: var(--primary-deep);
  margin-bottom: 14px;
  transform: translateZ(40px);
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--primary) 50%, transparent);
}
.offer .icon-tile svg { width: 22px; height: 22px; }
.offer h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; transform: translateZ(30px); }
.offer p { color: var(--muted); font-size: 13.5px; line-height: 1.55; transform: translateZ(20px); }
.offer .corner {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--muted-2);
}

/* ─── Portals card grid ─────────────────────────────────────── */
.portals {
  background: linear-gradient(135deg, var(--card), color-mix(in oklab, var(--paper-2) 80%, var(--card)));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.portals::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--primary) 30%, transparent), transparent 65%);
  filter: blur(20px); opacity: .55; pointer-events: none;
}
.portals .head { position: relative; display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 22px; }
.portals .head h3 { font-size: 26px; letter-spacing: -0.02em; }
.portals .head p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 480px; }
.portal-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
@media (max-width: 900px) { .portal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .portal-grid { grid-template-columns: repeat(2, 1fr); } }
.portal {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start;
  padding: 16px 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s;
  text-decoration: none; color: inherit;
  overflow: hidden;
}
.portal::after {
  content: "↗"; position: absolute; top: 12px; right: 14px;
  font-size: 14px; color: var(--muted-2);
  transition: transform .25s, color .25s;
}
.portal:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); border-color: var(--portal-color, var(--ink)); }
.portal:hover::after { transform: translate(2px,-2px); color: var(--portal-color, var(--ink)); }
.portal .logo {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--portal-color, var(--ink)) 12%, var(--card));
  color: var(--portal-color, var(--ink));
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  margin-bottom: 6px;
  box-shadow: inset 0 -8px 14px color-mix(in oklab, var(--portal-color, var(--ink)) 14%, transparent);
}
.portal .name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; }
.portal .preset { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ─── Magnetic CTA buttons ──────────────────────────────────── */
.btn-magnet {
  position: relative;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.btn-magnet::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 60%, transparent);
  transition: box-shadow .35s;
}
.btn-magnet:hover { transform: translateY(-2px); }
.btn-magnet:hover::after { box-shadow: 0 0 0 8px color-mix(in oklab, var(--primary) 0%, transparent), 0 18px 32px -10px color-mix(in oklab, var(--primary) 55%, transparent); }

/* ─── Hero parallax: existing coins/floaters react to --mx/--my ── */
.hero { --mx: .5; --my: .5; }
.hero .blob,
.hero .grid {
  transform: translate3d(calc((var(--mx) - .5) * -22px), calc((var(--my) - .5) * -16px), 0);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}

/* Glass card utility */
.glass {
  background: color-mix(in oklab, var(--card) 65%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid color-mix(in oklab, var(--line) 50%, transparent);
}

/* ─── Region pill (replaces old country switch in nav) ─────── */
.region-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.region-pill .region-flags { display: inline-flex; }
.region-pill .region-flags > span {
  display: inline-block; line-height: 1; font-size: 14px;
  margin-left: -6px; padding: 2px;
  background: var(--paper);
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform .2s;
}
.region-pill .region-flags > span:first-child { margin-left: 0; }
.region-pill:hover .region-flags > span { transform: translateY(-1px); }
@media (max-width: 880px) { .region-pill .name, .region-pill > span:last-child { display: none; } }

/* ─── Country tabs (in Portals section) ─────────────────────── */
.country-tabs {
  display: inline-flex; gap: 4px;
  padding: 4px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex-wrap: wrap;
}
.country-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.country-tab .flag { font-size: 16px; line-height: 1; }
.country-tab:hover { color: var(--ink-2); transform: translateY(-1px); }
.country-tab.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.country-tab.on .name { color: var(--ink); }
@media (max-width: 640px) {
  .country-tab .name { display: none; }
  .country-tab { padding: 8px 10px; }
}

/* ─── Sidebar badge: NEW variant ────────────────────────────── */
.sb-link .badge.new {
  background: var(--primary);
  color: white;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
}
.sb-link.active .badge.new { background: white; color: var(--primary); }

/* ─── Job Copilot page ─────────────────────────────────────── */
.copilot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1080px) { .copilot-grid { grid-template-columns: 1fr; } }

.copilot-side { display: flex; flex-direction: column; gap: 14px; }

.copilot-demo { padding: 18px; }

.browser-mock {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 white;
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.browser-bar .dots { display: inline-flex; gap: 5px; }
.browser-bar .dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-2);
  display: inline-block;
}
.browser-bar .dots i:nth-child(1) { background: #FF6058; }
.browser-bar .dots i:nth-child(2) { background: #FEBC2E; }
.browser-bar .dots i:nth-child(3) { background: #28C840; }
.browser-bar .url {
  flex: 1;
  background: var(--paper-2);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-bar .url svg { color: var(--ok); flex-shrink: 0; }
.browser-bar .ext-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
}

.form-body {
  padding: 18px 18px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  max-height: 480px;
  overflow-y: auto;
}
.mock-field { display: flex; flex-direction: column; gap: 5px; }
.mock-field:nth-child(10) { grid-column: span 2; }
.mock-field label {
  font-size: 11px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.mock-field .needs-pill {
  background: color-mix(in oklab, var(--warn) 18%, transparent);
  color: #B45309;
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px;
}
.mock-input {
  position: relative;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px; min-height: 38px;
  display: flex; align-items: center;
  transition: border .3s, background .3s, box-shadow .3s;
}
.mock-input .placeholder { color: var(--muted-2); font-style: italic; }
.mock-input .typed { animation: type-in .35s ease both; color: var(--ink); font-weight: 500; }
.mock-input .check {
  position: absolute; right: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok); color: white;
  display: grid; place-items: center;
  animation: pop-in .35s ease both;
}
.mock-field.filled .mock-input {
  background: color-mix(in oklab, var(--ok) 8%, var(--card));
  border-color: color-mix(in oklab, var(--ok) 40%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 10%, transparent);
}
.mock-field.needs .mock-input {
  background: color-mix(in oklab, var(--warn) 8%, var(--card));
  border-color: color-mix(in oklab, var(--warn) 40%, var(--line));
  border-style: dashed;
}
@keyframes type-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}

.portal-chip {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: white;
}

/* ─── Interview Coach page ─────────────────────────────────── */
.seg-row { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.seg {
  padding: 7px 14px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg:hover { color: var(--ink-2); }
.seg.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

.mock-bar {
  background: linear-gradient(135deg, var(--ink) 0%, #1F1F2A 100%);
  color: white; border-color: var(--ink);
}
.mock-bar .card-title, .mock-bar div { color: white; }
.mock-bar .mic {
  width: 56px; height: 56px; border-radius: 50%;
  background: white; color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,.4);
  transition: transform .2s, background .2s;
}
.mock-bar .mic:hover { transform: scale(1.05); }
.mock-bar .mic.on { background: var(--primary); color: white; animation: pulse-mic 1.8s infinite; }
.rec-dot { width: 14px; height: 14px; border-radius: 3px; background: white; animation: pulse-dot 1.2s infinite; }
@keyframes pulse-mic {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 60%, transparent); }
  50%     { box-shadow: 0 0 0 14px color-mix(in oklab, var(--primary) 0%, transparent); }
}

.wave {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  height: 36px; margin-top: 14px;
}
.wave span {
  width: 3px; height: 30%;
  background: var(--primary);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}
@keyframes wave {
  0%,100% { height: 20%; opacity: .5; }
  50%     { height: 100%; opacity: 1; }
}

.prep-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.prep-q {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.prep-q .q {
  font-weight: 600; font-size: 14px; color: var(--ink);
  letter-spacing: -0.005em;
}
.prep-q .ans {
  margin-top: 8px;
  font-size: 12.5px; line-height: 1.55;
  color: var(--muted);
}
.prep-q .ans .lbl {
  font-weight: 700; color: var(--primary-deep);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  margin-right: 6px;
}

/* ─── Landing product spotlights (per-tool marketing sections) ─────── */
.spotlights { display: flex; flex-direction: column; gap: 84px; }
@media (max-width: 760px) { .spotlights { gap: 56px; } }
.spot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.spot.flip .spot-copy { order: 2; }
@media (max-width: 900px) {
  .spot, .spot.flip { grid-template-columns: 1fr; gap: 28px; }
  .spot.flip .spot-copy { order: 0; }
}
.spot-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--primary-deep); background: var(--primary-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.spot-copy h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 14px; }
.spot-copy > p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 520px; }
.spot-list { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.spot-list li { display: flex; align-items: start; gap: 11px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.spot-list .tick {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  background: color-mix(in oklab, var(--ok) 16%, transparent); color: var(--ok);
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.spot-visual {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--card), color-mix(in oklab, var(--primary-soft) 40%, var(--card)));
  border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow-lg); overflow: hidden; min-height: 260px;
}
.spot-visual::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--primary) 26%, transparent), transparent 65%);
  filter: blur(16px); pointer-events: none;
}
.spot-stat { position: absolute; bottom: 18px; right: 20px; text-align: right; }
.spot-stat b { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; display: block; line-height: 1; }
.spot-stat span { font-size: 11.5px; color: var(--muted); }

/* per-tool page pitch line (inside the app) */
.tool-pitch {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.35; margin: 2px 0 8px; max-width: 640px;
}
.tool-pitch .hl { color: var(--primary); }

/* Honest trust chips (hero) */
.chip { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--ink-2);
  background:var(--card); border:1px solid var(--line); border-radius:999px; padding:6px 12px; box-shadow:var(--shadow-sm); }

/* ─── Nav Tools dropdown ───────────────────────────────────── */
.nav-links a { cursor: pointer; }
.nav-item { position: relative; }
.nav-item.has-menu > a { display: inline-flex; align-items: center; gap: 2px; }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 460px; max-width: 92vw;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s; z-index: 60;
}
.nav-item.has-menu:hover .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-item.has-menu::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; } /* hover bridge */
.nav-menu-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; cursor: pointer;
  transition: background .14s;
}
.nav-menu-item:hover { background: var(--paper-2); }
.nav-menu-item .nm-ic {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-deep);
}
.nav-menu-item .nm-ic svg { width: 17px; height: 17px; }
.nav-menu-item b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.nav-menu-item em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.nav-menu-label { grid-column: 1 / -1; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 4px 12px 2px; }
.nav-menu > a.nav-menu-item[data-full] { grid-column: 1 / -1; }
@media (max-width: 760px) { .nav-menu { display: none; } }

/* ── Accessibility & micro-interaction polish (keyboard focus, press states) ── */
:where(a, button, .btn, [role="button"], summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 10px;
}
/* Mouse/touch users keep the clean look; only keyboard focus shows the ring */
:where(a, button, .btn):focus:not(:focus-visible) { outline: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
/* Skip-to-content link for screen-reader / keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100000;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* Fix: the earlier `.sidebar{display:none}` mobile rule was defined before the base
   `.sidebar{display:flex}`, so source-order let the sidebar show on phones alongside the
   bottom nav. Higher-specificity + last-in-file rule guarantees it's hidden on mobile. */
@media (max-width: 900px) {
  .app-shell > .sidebar { display: none; }
}

/* ── Mobile-friendliness: bigger tap targets + no iOS zoom-on-focus ── */
@media (max-width: 760px) {
  /* Comfortable touch targets (Apple HIG ~44px). btn-sm is used for tool mode chips. */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
  /* 16px input text stops iOS Safari from auto-zooming when a field is focused. */
  .field input, .field textarea, .field select, input[type="text"], input[type="email"],
  input[type="tel"], input[type="url"], input[type="password"], textarea, select {
    font-size: 16px; min-height: 44px;
  }
  textarea { min-height: 72px; }
  /* Tool mode-chip rows: keep comfortable spacing when they wrap on a phone. */
  .page .btn-sm { margin-bottom: 2px; }
}

/* Notepad rich editor placeholder + content spacing */
[contenteditable][data-ph]:empty:before { content: attr(data-ph); color: var(--muted-2); pointer-events: none; }
[contenteditable] h3 { font-size: 17px; margin: 8px 0 4px; }
[contenteditable] ul, [contenteditable] ol { padding-left: 22px; margin: 6px 0; }

/* spinner for OCR / lazy-loaded ops */
@keyframes ad-spin { to { transform: rotate(360deg); } }
.spin { animation: ad-spin 0.9s linear infinite; }

/* Markdown editor preview */
.md-preview { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.md-preview h1, .md-preview h2, .md-preview h3, .md-preview h4 { margin: 0.8em 0 0.4em; line-height: 1.25; }
.md-preview h1 { font-size: 1.6em; } .md-preview h2 { font-size: 1.35em; } .md-preview h3 { font-size: 1.15em; }
.md-preview p { margin: 0.6em 0; }
.md-preview ul, .md-preview ol { margin: 0.5em 0; padding-left: 1.5em; }
.md-preview li { margin: 0.2em 0; }
.md-preview a { color: var(--primary); text-decoration: underline; }
.md-preview code { font-family: var(--font-mono); font-size: 0.88em; background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 5px; }
.md-preview pre { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.md-preview pre code { background: none; padding: 0; }
.md-preview blockquote { margin: 0.6em 0; padding: 4px 14px; border-left: 3px solid var(--primary); color: var(--muted); background: var(--paper-2); border-radius: 0 8px 8px 0; }
.md-preview hr { border: none; border-top: 1px solid var(--line); margin: 1em 0; }

/* Mobile navigation — hamburger + full-width drawer (desktop keeps the mega-menu) */
.nav-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-burger span { transition: transform .18s, opacity .18s; }
.mobile-drawer { display: none; }
@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .mobile-drawer {
    display: block; position: fixed; inset: 64px 0 0 0; z-index: 80;
    background: var(--card); border-top: 1px solid var(--line);
    overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 18px 90px;
  }
  .mobile-drawer .md-group { margin-bottom: 18px; }
  .mobile-drawer .md-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; }
  .mobile-drawer a { display: block; padding: 11px 4px; font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); min-height: 44px; }
  .mobile-drawer a:active { color: var(--primary); }
}
