/* Sakori — Assam gamosa theme: white + crimson. Light & dark friendly. */
:root {
  --ink: #1a1214;
  --paper: #faf7f7;
  --surface: #ffffff;
  --accent: #c8102e;
  --accent-deep: #9a0c24;
  --accent-soft: rgba(200, 16, 46, 0.08);
  --accent-mid: rgba(200, 16, 46, 0.16);
  --muted: #6b5c5e;
  --line: #e8dede;
  --line-strong: #d4c4c6;
  --radius: 8px;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --bg-top: #ffffff;
  --bg-bottom: #f3ecec;
  --gamosa-gap: #ffffff;
  --field-bg: #fffafa;
  --input-bg: #ffffff;
  --chip-bg: #ffffff;
  --cover-bg: #faf5f5;
  --toggle-bg: #ffffff;
  --on-accent: #ffffff;
  --score-bg: #1a1214;
  --shadow: 0 1px 0 rgba(26, 18, 20, 0.04);
  --gamosa-line: rgba(200, 16, 46, 0.55);
  --gamosa-line-soft: rgba(200, 16, 46, 0.28);
  color-scheme: light;
}

html[data-theme="dark"] {
  /* Clean charcoal — not muddy pink-brown */
  --ink: #f4f4f5;
  --paper: #0c0c0d;
  --surface: #18181b;
  --accent: #e11d48;
  --accent-deep: #fb7185;
  --accent-soft: rgba(255, 255, 255, 0.04);
  --accent-mid: rgba(225, 29, 72, 0.35);
  --muted: #a1a1aa;
  --line: #27272a;
  --line-strong: #3f3f46;
  --bg-top: #0c0c0d;
  --bg-bottom: #09090b;
  --gamosa-gap: #18181b;
  --field-bg: #141416;
  --input-bg: #0c0c0d;
  --chip-bg: #0c0c0d;
  --cover-bg: #141416;
  --toggle-bg: #18181b;
  --on-accent: #ffffff;
  --score-bg: #e11d48;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
  --gamosa-line: rgba(225, 29, 72, 0.7);
  --gamosa-line-soft: rgba(225, 29, 72, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, var(--bg-top) 0%, var(--paper) 45%, var(--bg-bottom) 100%);
  background-attachment: scroll;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

/* Top strip — gamusa motif */
.gamosa-bar {
  height: 22px;
  width: 100%;
  background-color: var(--surface);
  background-image: url("/static/gamusa.png");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 100%;
  border-bottom: 1px solid var(--line);
}

/* Dark: CSS stripe only — filtered white weave looks washed out */
html[data-theme="dark"] .gamosa-bar {
  /* Keep shared .gamosa-bar height (incl. mobile) so theme toggle does not shift UI */
  background-color: transparent;
  background-image: repeating-linear-gradient(
    90deg,
    #e11d48 0 14px,
    #18181b 14px 22px,
    #e11d48 22px 36px,
    #18181b 36px 44px
  );
  background-size: auto;
  filter: none;
  border-bottom: 1px solid var(--line);
}

main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding:
    max(1.5rem, env(safe-area-inset-top, 0px))
    max(1.15rem, env(safe-area-inset-right, 0px))
    max(3rem, env(safe-area-inset-bottom, 0px))
    max(1.15rem, env(safe-area-inset-left, 0px));
}

.hero { text-align: left; margin-bottom: 2rem; }

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand:hover .brand-name {
  color: var(--accent);
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Nav link to the Sakori 2.0 roadmap — sits left of Get Pro, takes its slot for Pro users */
.nav-v2 {
  --v2-glow: color-mix(in srgb, var(--accent) 26%, transparent);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.62rem;
  border: 1px solid var(--accent-mid);
  border-radius: 999px;
  background:
    linear-gradient(115deg, var(--accent-soft) 0%, transparent 45%, var(--accent-soft) 100%),
    var(--surface);
  background-size: 220% 100%;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.3s ease;
}
.nav-v2::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.nav-v2::after {
  content: "";
  position: absolute;
  inset: -30% -45%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    color-mix(in srgb, var(--accent) 18%, transparent) 50%,
    transparent 62%
  );
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
  z-index: -1;
}
.nav-v2.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation:
    nav-v2-drift 7s ease-in-out infinite,
    nav-v2-aura 3.6s ease-in-out infinite;
}
.nav-v2.is-visible::before {
  animation: nav-v2-dot 2.6s ease-in-out infinite;
}
.nav-v2.is-visible::after {
  animation: nav-v2-sweep 5.2s ease-in-out infinite;
}
.nav-v2:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
html[data-theme="dark"] .nav-v2 {
  --v2-glow: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent-deep);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
html[data-theme="dark"] .nav-v2::before {
  background: var(--accent-deep);
}
html[data-theme="dark"] .nav-v2::after {
  background: linear-gradient(
    105deg,
    transparent 38%,
    color-mix(in srgb, var(--accent) 32%, transparent) 50%,
    transparent 62%
  );
}
@keyframes nav-v2-drift {
  0%,
  100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes nav-v2-aura {
  0%,
  100% { box-shadow: 0 0 0.2rem var(--v2-glow); }
  50% { box-shadow: 0 0 0.75rem var(--v2-glow); }
}
@keyframes nav-v2-dot {
  0%,
  100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}
@keyframes nav-v2-sweep {
  0%,
  20% { transform: translateX(-120%) skewX(-12deg); }
  55%,
  100% { transform: translateX(120%) skewX(-12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-v2 {
    transition: none;
    transform: none;
    background-size: 100% 100%;
  }
  .nav-v2.is-visible,
  .nav-v2.is-visible::before,
  .nav-v2.is-visible::after {
    animation: none;
  }
  .nav-v2.is-visible::after { display: none; }
}

/* First-visit nav nudge — Get Pro (same vibe as upload “yet!”) */
.nav-get-pro {
  --nudge-gold: #e8a317;
  --nav-pro-glow: color-mix(in srgb, var(--accent) 22%, transparent);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(120deg, var(--accent) 0%, #e85d04 55%, var(--nudge-gold) 100%);
  background-size: 200% 100%;
  transform: rotate(-2deg) translateY(-4px);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.55s ease, transform 0.55s ease;
  box-shadow: 0 0 0.35rem var(--nav-pro-glow);
  animation: none;
}
.nav-get-pro.is-visible {
  opacity: 1;
  transform: rotate(-2deg) translateY(0);
  pointer-events: auto;
  animation:
    nav-get-pro-shine 3.8s ease-in-out infinite,
    nav-get-pro-aura 3.8s ease-in-out infinite;
}
.nav-get-pro::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.38) 48%,
    rgba(255, 246, 214, 0.55) 52%,
    transparent 65%
  );
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
  z-index: 1;
}
.nav-get-pro.is-visible::after {
  animation: nav-get-pro-sweep 3.8s ease-in-out infinite;
}
html[data-theme="dark"] .nav-get-pro {
  --nudge-gold: #f5c84c;
  --nav-pro-glow: color-mix(in srgb, var(--accent) 40%, transparent);
}
html[data-theme="dark"] .nav-get-pro::after {
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(253, 230, 138, 0.5) 52%,
    transparent 65%
  );
}
@keyframes nav-get-pro-shine {
  0%,
  100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes nav-get-pro-aura {
  0%,
  100% {
    box-shadow:
      0 0 0.25rem var(--nav-pro-glow),
      -0.15rem 0 0.45rem color-mix(in srgb, var(--accent) 12%, transparent);
  }
  50% {
    box-shadow:
      0 0 0.4rem var(--nav-pro-glow),
      0.2rem 0 0.55rem color-mix(in srgb, var(--nudge-gold) 22%, transparent);
  }
}
@keyframes nav-get-pro-sweep {
  0%,
  15% { transform: translateX(-120%) skewX(-12deg); }
  45%,
  100% { transform: translateX(120%) skewX(-12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-get-pro {
    transition: none;
    transform: none;
    background-size: 100% 100%;
  }
  .nav-get-pro.is-visible {
    animation: none;
    transform: none;
  }
  .nav-get-pro.is-visible::after {
    animation: none;
    display: none;
  }
}

.theme-toggle {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--toggle-bg);
  color: var(--accent);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: none;
}

html[data-theme="light"] .theme-icon-moon,
html:not([data-theme]) .theme-icon-moon {
  display: block;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.brand-logo {
  width: 5.75rem;
  height: 5.75rem;
  object-fit: cover;
  object-position: center 12%;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.brand-sub {
  margin: 0;
  font-size: clamp(0.85rem, 2.6vw, 1rem);
  font-weight: 700;
  color: var(--accent);
}

.kicker {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 5.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
}

h1 .hl {
  color: var(--accent);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--accent-mid);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
}

html[data-theme="dark"] h1 .hl {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

.lede {
  margin: 0 0 1.75rem;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.55;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.25rem) clamp(0.95rem, 3vw, 1.3rem);
  box-shadow: var(--shadow);
  min-width: 0;
}

.upload {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-color: var(--line-strong);
  /* Subtle gamusa corner cue */
  background-image:
    linear-gradient(var(--surface), var(--surface)),
    repeating-linear-gradient(
      90deg,
      var(--accent) 0 10px,
      transparent 10px 14px
    );
  background-size: 100% calc(100% - 3px), 100% 3px;
  background-position: top, bottom;
  background-repeat: no-repeat;
}

.upload-row {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.upload .drop {
  flex: 1 1 55%;
  min-width: 0;
}

.upload-nudge {
  --nudge-gold: #e8a317;
  --nudge-gold-ink: #8a5a00;
  flex: 0 1 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.85rem 0.95rem;
  min-width: 0;
  border-radius: var(--radius);
  border: 1.5px solid var(--accent-mid);
  background:
    linear-gradient(135deg, var(--accent-soft) 0%, transparent 55%),
    linear-gradient(0deg, rgba(232, 163, 23, 0.12), transparent 42%),
    var(--field-bg);
  box-shadow: inset 3px 0 0 var(--accent);
  animation: nudge-in 0.45s ease both;
}

html[data-theme="dark"] .upload-nudge {
  --nudge-gold: #f5c84c;
  --nudge-gold-ink: #f5c84c;
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.16) 0%, transparent 55%),
    linear-gradient(0deg, rgba(245, 200, 76, 0.1), transparent 45%),
    var(--field-bg);
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow: inset 3px 0 0 var(--accent);
}

.upload.has-resume .upload-nudge {
  display: none;
}

.upload-nudge-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nudge-gold-ink);
}

.upload-nudge-lead {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 3.2vw, 1.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--accent);
}

.upload-nudge-line {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2.8vw, 1.12rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.upload-nudge-joke {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--muted);
}

.upload-nudge-yet {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.08rem 0.45rem;
  border-radius: 4px;
  font-style: italic;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, var(--accent) 0%, #e85d04 55%, var(--nudge-gold) 100%);
  transform: rotate(-2deg);
  animation: yet-pop 2.4s ease-in-out infinite;
}

@keyframes nudge-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes yet-pop {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(-1deg) scale(1.06); }
}

.drop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  padding: 1.5rem 1.15rem;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line-strong);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drop:hover,
.drop.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.drop-icon {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
}

.drop-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.drop-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.resume-chip {
  margin: 0;
  padding: 0.4rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  align-self: flex-start;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  padding: 0.8rem 1.2rem;
  min-height: 2.75rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta:hover { background: var(--accent-deep); }
.cta:disabled { opacity: 0.5; cursor: default; }

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  padding: 0.55rem 0.95rem;
  min-height: 2.55rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.matches { margin-top: 2.75rem; }

.matches-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--accent);
}

.matches-head h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.meta { color: var(--muted); margin: 0 0 1.1rem; font-size: 0.9rem; }

.cards { display: flex; flex-direction: column; gap: 0.85rem; }

/* Result cards — light gamosa multi-stripe border */
.job,
.job.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.25rem 1.4rem 1.2rem;
  border: 1px solid var(--gamosa-line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--surface),
    inset 0 0 0 2px var(--gamosa-line),
    inset 0 0 0 3px var(--surface),
    inset 0 0 0 4px var(--gamosa-line-soft);
  animation: rise 0.3s ease both;
}

/* Side stripes like gamosa edge (thin parallel lines) */
.job::before,
.job::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 5px;
  pointer-events: none;
  background:
    linear-gradient(var(--gamosa-line), var(--gamosa-line)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--gamosa-line-soft), var(--gamosa-line-soft)) 2px 0 / 1px 100% no-repeat,
    linear-gradient(var(--gamosa-line), var(--gamosa-line)) 4px 0 / 1px 100% no-repeat;
  opacity: 0.9;
}

.job::before { left: 7px; }
.job::after {
  right: 7px;
  transform: scaleX(-1);
}

/* Light top / bottom hairlines */
.job .job-head {
  position: relative;
}

.job .job-foot {
  position: relative;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.job-head { display: flex; gap: 0.85rem; align-items: flex-start; }

.score {
  min-width: 44px;
  padding: 0.4rem 0.45rem;
  border-radius: var(--radius);
  background: var(--score-bg);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.1;
}

.fit-badge {
  align-self: flex-start;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
  background: var(--field-bg);
  color: var(--ink);
}
.fit-badge[data-tone="strong"] {
  background: #16a34a;
  color: #ffffff;
}
.fit-badge[data-tone="good"] {
  background: #22c55e22;
  color: #15803d;
  border-color: #16a34a55;
}
html[data-theme="dark"] .fit-badge[data-tone="good"] {
  background: #14532d55;
  color: #86efac;
  border-color: #16a34a66;
}
.fit-badge[data-tone="fair"] {
  background: #f59e0b22;
  color: #b45309;
  border-color: #f59e0b55;
}
html[data-theme="dark"] .fit-badge[data-tone="fair"] {
  background: #78350f55;
  color: #fcd34d;
  border-color: #f59e0b66;
}
.fit-badge[data-tone="rough"] {
  background: var(--field-bg);
  color: var(--muted);
  border-color: var(--line);
}

.source-trust {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.source-trust[data-trust="official"] {
  color: #15803d;
}
html[data-theme="dark"] .source-trust[data-trust="official"] {
  color: #86efac;
}
.source-trust[data-trust="aggregator"] {
  color: #b45309;
}
html[data-theme="dark"] .source-trust[data-trust="aggregator"] {
  color: #fcd34d;
}
.source-trust[data-trust="news"] {
  color: var(--muted);
}

.req-group {
  margin: 0.55rem 0 0.2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}
.req-group .req-head {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.1rem 0 0.05rem;
}
.req-group li {
  font-size: 0.92rem;
  font-weight: 500;
}
.req-group li.ok { color: var(--ink); }
.req-group li.warn { color: var(--accent-deep, var(--accent)); }
.req-group li.muted { color: var(--muted); }

.why-picked {
  margin-top: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  background: var(--field-bg);
  border: 1px solid var(--line);
}
.why-picked h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}
.why-picked .why-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--ink);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.freshness {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.source-health {
  list-style: none;
  margin: 0.4rem 0 0.8rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}
.source-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  background: var(--field-bg);
  border: 1px solid var(--line);
}
.source-row .s-name {
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.source-row .s-meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.source-row .s-trust {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.source-row .s-trust[data-trust="official"] {
  color: #15803d;
  border-color: #16a34a55;
}
html[data-theme="dark"] .source-row .s-trust[data-trust="official"] {
  color: #86efac;
}
.source-row .s-trust[data-trust="aggregator"] {
  color: #b45309;
  border-color: #f59e0b55;
}
html[data-theme="dark"] .source-row .s-trust[data-trust="aggregator"] {
  color: #fcd34d;
}



.job-titles { flex: 1; min-width: 0; }

.job-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.job-sub {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.job-reason { margin: 0; font-size: 0.92rem; color: var(--muted); }

html[data-theme="dark"] .job-reason {
  color: var(--muted);
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-tags li {
  padding: 0.15rem 0.5rem;
  background: var(--accent-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
}

html[data-theme="light"] .job-tags li {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: transparent;
}

.job-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.deadline { color: var(--muted); font-size: 0.85rem; }

.apply {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--accent-mid);
  overflow-wrap: anywhere;
}

.apply:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

.state { margin-top: 1.75rem; }

.state .card {
  text-align: left;
  color: var(--muted);
}

.state.error .card {
  border-color: var(--accent-mid);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.state.ok .card {
  border-color: var(--line-strong);
  background: var(--field-bg);
  color: var(--ink);
}

html[data-theme="light"] .state.ok .card {
  background: var(--accent-soft);
}

.section-head {
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--accent);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.profile-summary {
  margin: 0 0 1.1rem;
  padding: 0.75rem 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

.prefs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.prefs label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.prefs input[type="text"],
.prefs input[type="number"],
.prefs input:not([type]) {
  width: 100%;
  font: inherit;
  font-weight: 500;
  font-size: 0.98rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
}

.prefs input:focus {
  outline: 2px solid var(--accent-mid);
  border-color: var(--accent);
}

.prefs .checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.loc-field,
.job-type-field,
.roles-field {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
}

.loc-field legend,
.job-type-field legend,
.roles-field legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 0.3rem;
  color: var(--ink);
}

.loc-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0.35rem 0 0.75rem;
}

.loc-manual {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.loc-manual input {
  font: inherit;
  font-weight: 500;
  font-size: 0.98rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
}

.relocate-check {
  margin-top: 0.85rem;
  font-size: 0.92rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.5rem;
}

.role-chip {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  min-height: 2.5rem;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: var(--chip-bg);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.role-chip:hover {
  border-color: var(--accent);
}

.role-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.role-other {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.role-other input {
  font: inherit;
  font-weight: 500;
  font-size: 0.98rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
}

.edit-extracted {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
}

.edit-extracted summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.edit-extracted[open] summary { color: var(--accent); }

.edit-extracted-note {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.edit-extracted label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.edit-extracted input {
  font: inherit;
  font-weight: 500;
  font-size: 0.98rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
}

.exp-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fresher-check {
  font-size: 0.92rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem;
}

.exp-years {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.prefs .check {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
}

.row-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.row-actions .is-hidden,
button.is-hidden,
[hidden] {
  display: none !important;
}

.digest { margin-top: 1.5rem; }
.digest-head { margin-bottom: 0.65rem; }
.digest-card {
  background: var(--surface);
  border-color: var(--line-strong);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}
.digest-card p { margin: 0.25rem 0; color: var(--muted); }
.digest-hi {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.55rem !important;
}
.digest-label {
  margin-top: 0.75rem !important;
  font-weight: 700;
  color: var(--ink);
}
.digest-priority {
  color: var(--ink);
  font-weight: 600;
  padding-left: 0.15rem;
}

html[data-theme="light"] .digest-hi {
  color: var(--accent);
}
html[data-theme="light"] .digest-priority {
  color: var(--accent-deep);
}

.welcome {
  margin-top: 1.75rem;
}

.welcome-card {
  background: var(--surface);
  border-color: var(--line-strong);
  border-left: 3px solid var(--accent);
}

.welcome-card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.welcome-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.welcome-roles {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.welcome-roles li {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.welcome-matches {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

html[data-theme="light"] .welcome-matches {
  color: var(--accent);
}

.welcome-cta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.before-list {
  margin: 0.55rem 0 0.4rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.before-list li {
  font-size: 0.95rem;
  font-weight: 500;
}
.before-list li.ok { color: var(--ink); }
.before-list li.warn { color: var(--muted); }

.before-missing {
  margin: 0.45rem 0 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  background: var(--field-bg);
  border: 1px solid var(--line);
}

html[data-theme="light"] .before-missing {
  background: var(--accent-soft);
  border-color: var(--accent-mid);
}

.before-missing-label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.before-missing-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--accent-deep);
  font-size: 0.88rem;
}

html[data-theme="dark"] .before-missing-list {
  color: #fda4af;
}

.prep-hero {
  margin-top: 0.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.prep-hero-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

html[data-theme="light"] .prep-hero {
  background: var(--accent-soft);
  border-color: var(--accent-mid);
}

html[data-theme="light"] .prep-hero-title {
  color: var(--accent);
}

.prep-fit {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.prep-more {
  margin-top: 0.55rem;
  font-size: 0.9rem;
}

.prep-more summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.memory-timeline {
  margin: 0.45rem 0 0.55rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.memory-card .apply { font-size: 0.88rem; }

.status-select {
  flex-shrink: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.45rem;
  min-height: 2.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
  max-width: 9.5rem;
  color: var(--ink);
}

.explain { margin-top: 0.3rem; }

.explain-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.explain-list li {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
}

.explain-list li.hit {
  background: var(--field-bg);
  color: var(--ink);
  border: 1px solid var(--line);
}

.explain-list li.miss {
  background: rgba(225, 29, 72, 0.12);
  color: var(--accent-deep);
}

html[data-theme="light"] .explain-list li.hit {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: transparent;
}

.company-blurb {
  margin: 0.65rem 0 0.5rem;
  color: var(--muted);
  line-height: 1.45;
}

.cover-note {
  margin: 0.4rem 0;
  padding: 0.75rem 0.85rem;
  background: var(--cover-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.45;
}

.tips {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.ghost.small { padding: 0.35rem 0.7rem; font-size: 0.85rem; }

.tracker { margin-top: 2.5rem; }
.job.mini {
  gap: 0.35rem;
  padding: 0.95rem 1.1rem;
}

.job.mini::before,
.job.mini::after {
  top: 8px;
  bottom: 8px;
  opacity: 0.55;
}
.card.warn {
  border-color: var(--accent-mid);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.card.warn ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }

.state.loading .spinner {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0 0 0.6rem;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.japi-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
}

.japi-spin {
  width: 6.5rem;
  height: 6.5rem;
  object-fit: contain;
  border-radius: 50%;
  animation: japi-spin 1.6s linear infinite;
  filter: drop-shadow(0 3px 10px rgba(200, 16, 46, 0.18));
}

html[data-theme="dark"] .japi-spin {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55)) brightness(1.05);
}

@keyframes japi-spin {
  to { transform: rotate(360deg); }
}

.japi-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: min(100%, 16rem);
}

.japi-skeleton span {
  display: block;
  height: 0.5rem;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.2s ease-in-out infinite;
}

html[data-theme="light"] .japi-skeleton span {
  background: linear-gradient(
    90deg,
    var(--accent-soft) 0%,
    var(--accent-mid) 50%,
    var(--accent-soft) 100%
  );
  background-size: 200% 100%;
}

.japi-skeleton span:nth-child(1) { width: 88%; }
.japi-skeleton span:nth-child(2) { width: 64%; }
.japi-skeleton span:nth-child(3) { width: 74%; }

.japi-wait {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  min-height: 1.4em;
}

.japi-wait-in {
  animation: japi-phrase-in 0.35s ease both;
}

@keyframes japi-phrase-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.skeleton-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  pointer-events: none;
}

.skeleton-card::before,
.skeleton-card::after {
  opacity: 0.45;
}

.skel {
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.25s ease-in-out infinite;
}

html[data-theme="light"] .skel {
  background: linear-gradient(
    90deg,
    var(--accent-soft) 0%,
    var(--accent-mid) 50%,
    var(--accent-soft) 100%
  );
  background-size: 200% 100%;
}

.skel-score {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
}

.skel-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.skel-title { height: 1rem; width: 70%; }
.skel-sub { height: 0.75rem; width: 48%; }
.skel-block { height: 3.2rem; width: 100%; margin-top: 0.25rem; }

@keyframes skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.foot {
  margin-top: 3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
}

.foot a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.foot a:hover { color: var(--accent-deep); }

/* About page */
.about-page {
  max-width: 640px;
}

.about-hero {
  margin-bottom: 0.5rem;
}

.about-poster {
  margin: 0 0 2rem;
  padding: 0;
}

.about-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: #fff;
}

.about-copy h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--ink);
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.65rem;
  color: var(--ink);
}

.about-copy p {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}

.about-copy em {
  font-style: italic;
  font-weight: 600;
}

.about-copy a:not(.cta):not(.ghost) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-mid);
  text-underline-offset: 2px;
}

.about-copy a:not(.cta):not(.ghost):hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent);
}

.about-steps {
  margin: 0 0 0.5rem;
  padding: 0 0 0 1.2rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}

.about-steps li {
  margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}

.about-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

.about-cta {
  margin-top: 2rem !important;
}

.about-cta .cta {
  display: inline-flex;
  text-decoration: none;
}

/* ---------- About page: About the founder ---------- */

.about-founder {
  margin: 2rem 0 1.5rem;
  padding: 1.4rem 1.3rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  background: var(--field-bg);
}

.about-founder h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.about-founder p {
  margin: 0.55rem 0;
}

.about-founder a {
  color: var(--accent);
  font-weight: 600;
}

.about-founder .founder-based {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- About page: Sakori Pro story ---------- */

.pro-story {
  margin: 1.75rem 0;
  padding: 1.4rem 1.3rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--field-bg);
}

.pro-story-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.15rem;
}

.pro-story-top .pro-tag {
  margin: 0;
}

.pro-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.pro-social[hidden] {
  display: none !important;
}

.pro-social .pro-price-offer {
  margin-right: 0;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.pro-social-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.6rem 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba7455;
  white-space: nowrap;
}

.pro-social-trend::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-bottom: 0.38rem solid #c2410c;
  margin-top: -0.05rem;
}

html[data-theme="dark"] .pro-social .pro-price-offer {
  box-shadow: none;
}

html[data-theme="dark"] .pro-social-trend {
  color: #fed7aa;
  background: #7c2d1220;
  border-color: #c2410c66;
}

html[data-theme="dark"] .pro-social-trend::before {
  border-bottom-color: #fdba74;
}

.pro-story h2 {
  margin: 0.55rem 0 0.45rem;
  font-size: 1.6rem;
  line-height: 1.18;
}

.pro-story h2 em {
  padding-right: 0.1em;
}

.pro-story h3 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.08rem;
}

.pro-story-lede {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}

.pro-verdicts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  padding: 0;
}

.pro-verdict-card {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 0.85rem;
  align-items: center;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.pro-verdict-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
}

.pro-verdict-badge {
  display: inline-flex;
  justify-content: center;
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.pro-verdict-card[data-tone="yes"] { border-left-color: #16a34a; }
.pro-verdict-card[data-tone="yes"] .pro-verdict-badge {
  background: #16a34a;
  color: #ffffff;
}
.pro-verdict-card[data-tone="maybe"] { border-left-color: #f59e0b; }
.pro-verdict-card[data-tone="maybe"] .pro-verdict-badge {
  background: #f59e0b22;
  color: #b45309;
}
.pro-verdict-card[data-tone="skip"] { border-left-color: var(--line-strong); }
.pro-verdict-card[data-tone="skip"] .pro-verdict-badge {
  background: var(--field-bg);
  color: var(--muted);
  border: 1px solid var(--line);
}
html[data-theme="dark"] .pro-verdict-card[data-tone="maybe"] .pro-verdict-badge {
  background: #78350f55;
  color: #fcd34d;
}

.pro-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pro-why-list li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.pro-why-icon {
  color: var(--accent);
  font-weight: 700;
  line-height: 1.5;
}

.pro-gets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.pro-gets li {
  padding: 0.55rem 0.7rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
}

.pro-story-foot {
  margin: 1.3rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 560px) {
  .pro-story {
    padding: 1.1rem 1rem;
  }
  .pro-story h2 {
    font-size: 1.4rem;
  }
  .pro-story-lede {
    font-size: 1rem;
  }
  .pro-verdict-card {
    grid-template-columns: 3.9rem 1fr;
    gap: 0.65rem;
  }
}

.about-faq {
  margin: 0 0 1.25rem;
  padding: 0;
}

.about-faq dt {
  margin: 1rem 0 0.35rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}

.about-faq dd {
  margin: 0;
  padding: 0;
  color: var(--muted, var(--ink-soft, #4a5560));
  line-height: 1.55;
  font-size: 1.02rem;
}

/* ---------- Responsive ---------- */

@media (min-width: 900px) {
  main {
    padding-top: 2.75rem;
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 720px) {
  .upload-row {
    flex-direction: column;
    gap: 0.85rem;
  }

  .upload-nudge {
    box-shadow: inset 0 3px 0 var(--accent);
  }

  .prefs {
    grid-template-columns: 1fr;
  }

  .matches-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .matches-head .ghost {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  main {
    padding-top: max(1.35rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(2.75rem, env(safe-area-inset-bottom, 0px));
  }

  .brand-logo {
    width: 4.5rem;
    height: 4.5rem;
  }

  .brand {
    gap: 0.65rem;
  }

  .theme-toggle {
    width: 2.55rem;
    height: 2.55rem;
  }

  .gamosa-bar {
    height: 16px;
  }

  .job-head {
    flex-wrap: wrap;
  }

  .status-select {
    max-width: none;
    width: 100%;
  }

  .job {
    padding: 1.1rem 1.05rem 1.05rem;
  }

  .job::before,
  .job::after {
    opacity: 0.65;
  }

  .loc-field,
  .job-type-field,
  .roles-field {
    padding: 0.8rem 0.85rem;
  }

  .row-actions {
    flex-direction: column;
  }

  .row-actions .ghost,
  .row-actions .cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .job-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .welcome-card h2,
  .matches-head h2,
  .section-head h2,
  .digest-hi {
    font-size: clamp(1.25rem, 5.5vw, 1.45rem);
  }

  .about-copy h1 {
    font-size: clamp(1.4rem, 6vw, 1.7rem);
  }

  .about-copy p,
  .about-steps {
    font-size: 1rem;
  }

  .japi-spin {
    width: 5.5rem;
    height: 5.5rem;
  }

  .foot {
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.7rem, 8.2vw, 2.05rem);
  }

  .brand-row {
    gap: 0.45rem;
    margin-bottom: 1.25rem;
  }

  .brand-logo {
    width: 3.15rem;
    height: 3.15rem;
    border-width: 2px;
  }

  .brand {
    gap: 0.4rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  .brand-actions {
    gap: 0.34rem;
  }

  .nav-link {
    font-size: 0.78rem;
    padding: 0.42rem 0.08rem;
  }

  .nav-v2 {
    gap: 0.25rem;
    padding: 0.18rem 0.42rem;
    font-size: 0.72rem;
  }

  .nav-v2::before {
    width: 5px;
    height: 5px;
  }

  .nav-get-pro {
    padding: 0.14rem 0.38rem;
    font-size: 0.74rem;
  }

  .theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
  }

  .drop {
    padding: 1.2rem 0.95rem;
  }

  .drop-title {
    font-size: 1.08rem;
  }

  .role-chip {
    font-size: 0.84rem;
    padding: 0.4rem 0.65rem;
  }

  .score {
    min-width: 40px;
    font-size: 0.88rem;
  }

  .meta {
    font-size: 0.84rem;
  }

  .upload-nudge {
    padding: 0.75rem 0.85rem;
  }

  .upload-nudge-joke {
    font-size: 0.84rem;
  }
}

@media (max-width: 400px) {
  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .brand-logo {
    width: 2.8rem;
    height: 2.8rem;
  }

  .brand-actions {
    gap: 0.28rem;
  }

  .theme-toggle {
    width: 2.15rem;
    height: 2.15rem;
    flex-basis: 2.15rem;
  }
}

@media (max-width: 340px) {
  main {
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  }

  .brand-text {
    display: none;
  }

  .brand-logo {
    width: 2.65rem;
    height: 2.65rem;
  }

  .brand-actions {
    gap: 0.22rem;
  }

  .nav-link,
  .nav-v2,
  .nav-get-pro {
    font-size: 0.7rem;
  }

  .nav-v2 {
    padding-inline: 0.34rem;
  }

  .theme-toggle {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .theme-toggle:hover {
    transform: none;
  }

  .role-chip,
  .ghost,
  .cta,
  .nav-link,
  .nav-v2,
  .nav-get-pro,
  .drop {
    touch-action: manipulation;
  }
}

/* Profile + admin */
.profile-page,
.admin-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.profile-block h2,
.admin-card h2 {
  margin: 0 0 0.65rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
}

/* Profile only — soft “free” accent pulse (light/dark safe) */
.profile-page .free-glow {
  color: var(--accent);
  font-weight: 700;
  text-shadow:
    0 0 0.35rem color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 0.85rem color-mix(in srgb, var(--accent) 22%, transparent);
  animation: free-glow-pulse 2.8s ease-in-out infinite;
}

html[data-theme="dark"] .profile-page .free-glow {
  text-shadow:
    0 0 0.4rem color-mix(in srgb, var(--accent) 45%, transparent),
    0 0 1rem color-mix(in srgb, var(--accent-deep) 30%, transparent);
}

@keyframes free-glow-pulse {
  0%,
  100% {
    opacity: 1;
    text-shadow:
      0 0 0.3rem color-mix(in srgb, var(--accent) 28%, transparent),
      0 0 0.7rem color-mix(in srgb, var(--accent) 16%, transparent);
  }
  50% {
    opacity: 0.92;
    text-shadow:
      0 0 0.55rem color-mix(in srgb, var(--accent) 48%, transparent),
      0 0 1.1rem color-mix(in srgb, var(--accent) 28%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-page .free-glow {
    animation: none;
  }
}

.profile-line {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.profile-summary {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.profile-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.profile-list li {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  font-size: 0.92rem;
  line-height: 1.4;
}

.profile-when {
  display: inline-block;
  min-width: 7.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin-right: 0.35rem;
}

.admin-login {
  display: grid;
  gap: 0.85rem;
  max-width: 320px;
  margin-top: 0.75rem;
}

.admin-login label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-login input {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: var(--surface, #fff);
  color: var(--ink);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.admin-toolbar label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-toolbar select {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: var(--surface, #fff);
  color: var(--ink);
}

.admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-stat {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  font-size: 0.9rem;
}

.admin-stat:last-child {
  border-bottom: 0;
}

.admin-stat strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.admin-raw {
  margin-top: 1rem;
  overflow: auto;
  max-height: 240px;
}

/* ---------- Sakori Pro ---------- */
.pro-panel {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%);
}
.pro-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.pro-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--surface);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.pro-verdict {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  color: var(--on-accent);
  background: var(--accent);
}
.pro-verdict[data-tone="strong"] { background: #0f7a3a; }
.pro-verdict[data-tone="good"] { background: #1d6b4f; }
.pro-verdict[data-tone="fair"] { background: #8a6d1d; }
.pro-verdict[data-tone="weak"],
.pro-verdict[data-tone="pending"] { background: var(--muted); }
.pro-rank-preview {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.pro-rank-why { margin: 0 0 0.35rem; color: var(--ink); }
.pro-rank-gaps {
  margin: 0 0 0 1.05rem;
  padding: 0;
  color: var(--muted);
}
.pro-rank-gaps li { margin: 0.15rem 0; }
.pro-panel-locked p,
.pro-panel-cta p {
  margin: 0 0 0.55rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.pro-panel-error {
  color: var(--accent-deep);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}
.pro-panel-loading {
  color: var(--muted);
  padding: 0.35rem 0 0.15rem;
}
.pro-ai-loader {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
}
.pro-ai-loader[hidden] { display: none !important; }
.pro-japi-loader {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.pro-japi-loader--lg {
  gap: 1rem;
}
.pro-japi-spin {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  animation: pro-japi-spin 2.8s linear infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}
.pro-japi-loader--lg .pro-japi-spin {
  width: 96px;
  height: 96px;
}
.pro-japi-label {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.pro-japi-phrase {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pro-japi-phrase.is-swap {
  opacity: 0.35;
  transform: translateY(3px);
}
@keyframes pro-japi-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pro-japi-spin { animation: none; }
  .pro-japi-phrase { transition: none; }
}
.pro-panel-content > * + * {
  margin-top: 0.75rem;
}
.pro-why-text {
  margin: 0.25rem 0 0;
  line-height: 1.45;
}
.pro-pack-note {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}
.pro-gaps ul {
  margin: 0.3rem 0 0 1.1rem;
  padding: 0;
}
.pro-gaps li {
  margin: 0.15rem 0;
  color: var(--muted);
}
.pro-cover pre,
.pro-resume pre {
  margin: 0.5rem 0;
  padding: 0.75rem;
  background: var(--cover-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  max-height: 320px;
  overflow: auto;
}
.pro-bullets ul,
.pro-checklist ul {
  margin: 0.4rem 0 0 1.15rem;
  padding: 0;
}
.pro-bullets li,
.pro-checklist li {
  margin: 0.3rem 0;
  line-height: 1.45;
}
.pro-checklist li strong { color: var(--ink); }
.pro-verify { margin-top: 0.4rem; }

/* Profile page Pro card */
.pro-card { border: 1px solid var(--line-strong); }
.pro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.pro-head h2 { margin: 0; }
.pro-head-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}
.pro-head-aside .pro-social-trend {
  font-size: 0.68rem;
}
.pro-word {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.02em;
  background-image: linear-gradient(
    90deg,
    var(--accent-deep) 0%,
    #c8102e 35%,
    #e85d04 50%,
    #c8102e 65%,
    var(--accent-deep) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: pro-shiny-text 4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 3px rgba(200, 16, 46, 0.18));
}
html[data-theme="dark"] .pro-word {
  background-image: linear-gradient(
    90deg,
    #fb7185 0%,
    #fda4af 35%,
    #fecdd3 50%,
    #fda4af 65%,
    #fb7185 100%
  );
  filter: drop-shadow(0 0 4px rgba(251, 113, 133, 0.28));
}
@keyframes pro-shiny-text {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}
@media (prefers-reduced-motion: reduce) {
  .pro-word {
    animation: none;
    background-image: none;
    color: var(--accent-deep);
    -webkit-text-fill-color: var(--accent-deep);
    filter: none;
  }
}
.pro-status-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
.pro-status-pill[data-tone="on"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.pro-features {
  margin: 0.6rem 0 0.9rem 1.15rem;
  padding: 0;
  color: var(--ink);
  line-height: 1.55;
}
.pro-features li { margin: 0.2rem 0; }

.pro-locked-lead { margin-bottom: 0.85rem; }

.pro-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: stretch;
  margin: 0.35rem 0 0.5rem;
}
.pro-compare-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  min-width: 0;
}
.pro-compare-free {
  background: color-mix(in srgb, var(--surface) 92%, var(--ink) 4%);
}
.pro-compare-pro {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong));
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--accent-soft) 85%, transparent) 0%,
      var(--surface) 42%
    );
  box-shadow: 0 10px 28px -18px color-mix(in srgb, var(--accent) 55%, transparent);
}
.pro-compare-top { margin: 0; }
.pro-compare-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.pro-compare-price {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pro-compare-price .meta {
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 0.2rem;
}
.pro-compare-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.pro-compare-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.pro-compare-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  align-items: start;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
}
.pro-compare-list li.is-muted {
  color: var(--muted);
}
.pro-compare-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}
.pro-compare-mark.is-pro {
  color: var(--accent-deep);
}
.pro-compare-mark.is-no {
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1;
}
.pro-compare-foot {
  margin: 0.35rem 0 0;
}
.pro-compare-cta {
  margin-top: 0.35rem;
}
.pro-compare-cta .cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.pro-compare-pro .pro-code-alt {
  margin-top: 0.15rem;
}
.pro-compare-pro .pro-offer-line {
  margin: 0.15rem 0 0;
}

@media (max-width: 720px) {
  .pro-compare {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  /* Free first, Pro second (CTA stays easy to reach after scanning Free) */
  .pro-compare-free { order: 1; }
  .pro-compare-pro { order: 2; }
  .pro-compare-col {
    padding: 0.9rem 0.95rem 1rem;
  }
  .pro-compare-price {
    font-size: 1.3rem;
  }
  .pro-compare-list li {
    font-size: 0.9rem;
  }
}

.pro-toggle {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.pro-jd-tool {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.pro-jd-tool h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.pro-jd-tool label {
  display: block;
  margin: 0.75rem 0 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.pro-jd-tool input[type="text"],
.pro-jd-tool textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.pro-jd-loading {
  margin-top: 0.85rem;
}
.pro-jd-result {
  margin-top: 1rem;
}
.pro-jd-fit {
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--accent-deep);
}
.pro-jd-keywords p {
  margin: 0.25rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.pro-jd-result pre {
  margin: 0.5rem 0;
  padding: 0.75rem;
  background: var(--cover-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  max-height: 420px;
  overflow: auto;
}
.pro-jd-result details {
  margin-top: 0.65rem;
}
.pro-jd-result summary {
  cursor: pointer;
  font-weight: 600;
}
#pro-jd-gaps {
  margin: 0.4rem 0 0 1.1rem;
  padding: 0;
}
.pro-unlock label { display: block; margin-bottom: 0.3rem; font-weight: 600; }
.pro-unlock .row-actions {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.pro-unlock input[type="text"] {
  flex: 1 1 220px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
}
#pro-unlock-msg { margin-top: 0.5rem; }

.pro-code-alt {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.pro-code-alt summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Pay modal */
.pro-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pro-modal[hidden] { display: none !important; }
.pro-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 13, 0.55);
}
.pro-modal-sheet {
  position: relative;
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}
.pro-modal-sheet h2 {
  margin: 0 2rem 0.35rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.pro-price-offer {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--accent) 0%, #e85d04 60%, #e8a317 100%);
  vertical-align: 0.1em;
}
.pro-price-was {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 600;
  margin-right: 0.2rem;
}
.pro-price-now {
  color: var(--accent-deep);
  font-weight: 800;
}
.pro-promo-form {
  margin: 0.75rem 0 0.35rem;
}
.pro-promo-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.pro-promo-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--input-bg, var(--field-bg));
  color: var(--ink);
  font: inherit;
}
#btn-get-pro .pro-price-was {
  color: color-mix(in srgb, var(--on-accent) 70%, transparent);
  font-weight: 600;
}
.pro-modal-x {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
}
.pro-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 0.9rem 0 0.6rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.pro-qr-wrap img {
  width: min(260px, 100%);
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}
.pro-upi-line {
  text-align: center;
  margin: 0.35rem 0 0.7rem;
  font-size: 0.95rem;
}
.pro-pay-steps {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.pro-pay-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.pro-pay-form input[type="text"] {
  flex: 1 1 180px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
}
.pro-cf-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.pro-cf-actions label {
  font-weight: 600;
}
.pro-cf-actions input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
}
#pro-pay-msg { margin-top: 0.5rem; }

@media (max-width: 520px) {
  .pro-head { flex-direction: column; }
  .pro-head-aside { align-self: flex-start; justify-content: flex-start; }
  .pro-status-pill { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
