/* ---------- reset + base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0f172a;
  --navy-2: #111c33;
  --navy-3: #182238;
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.12);
  --teal-border: rgba(45, 212, 191, 0.3);
  --white: #ffffff;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --red: #f87171;
  --amber: #fbbf24;
  --green: #34d399;
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.18);
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ---------- HERO ---------- */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 212, 191, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(45, 212, 191, 0.05), transparent);
  color: var(--white);
  padding: 24px 24px 96px;
  position: relative;
  overflow: hidden;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--teal);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.5);
  position: relative;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 3px;
  background: var(--navy);
}

.nav-link {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 0 0;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.headline {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}

.headline .accent {
  color: var(--teal);
  position: relative;
  white-space: nowrap;
}

.subhead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.score-form {
  max-width: 560px;
  margin: 0 auto;
}

.input-row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.input-row:focus-within {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.08);
}

#linkedin-url {
  flex: 1;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  padding: 14px 16px;
  min-width: 0;
}

#linkedin-url::placeholder {
  color: var(--text-muted);
}

#submit-btn {
  background: var(--teal);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s, background 0.2s;
  white-space: nowrap;
}

#submit-btn:hover:not(:disabled) {
  background: #5eead4;
}

#submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}

#submit-btn:disabled {
  cursor: wait;
  opacity: 0.85;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(15, 23, 42, 0.25);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

#submit-btn.loading .btn-text { display: none; }
#submit-btn.loading .btn-spinner { display: inline-block; }

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

.trust {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* loading status (replaces .trust during scoring) */
.loading-status {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  min-height: 22px;
}

.loading-status-text {
  opacity: 1;
  transition: opacity 280ms ease;
}

.loading-status-text.fade-out {
  opacity: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(45, 212, 191, 0);
  }
}

.form-error {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
  font-size: 14px;
  text-align: left;
}

/* ---------- RESULTS ---------- */
.results {
  background: var(--bg-light);
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}

.results-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.results-header {
  margin-bottom: 48px;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.score-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 4px solid var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.5s;
  box-shadow: var(--shadow-card);
}

.score-circle.score-low { border-color: var(--red); }
.score-circle.score-mid { border-color: var(--amber); }
.score-circle.score-high { border-color: var(--green); }

.score-number {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.score-out-of {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.score-meta {
  flex: 1;
  min-width: 240px;
}

.score-visibility {
  color: #0d9488;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px 0;
  letter-spacing: -0.005em;
}

.score-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--teal-soft);
  color: var(--navy);
  border: 1px solid var(--teal-border);
}

.score-meta h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.score-meta p {
  color: var(--text-muted);
  font-size: 15px;
}

.score-impact {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f1f5f9;
  border-left: 3px solid var(--text-muted);
}

.score-impact.impact-low { border-left-color: var(--red); background: rgba(248, 113, 113, 0.08); color: #b91c1c; }
.score-impact.impact-mid { border-left-color: var(--amber); background: rgba(251, 191, 36, 0.1); color: #92400e; }
.score-impact.impact-high { border-left-color: var(--green); background: rgba(52, 211, 153, 0.1); color: #047857; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.results-grid .dimensions-card,
.results-grid .roles-card,
.results-grid .companies-card,
.results-grid .outreach-card,
.results-grid .share-card-prominent,
.results-grid .compare-card,
.results-grid .optimized-card:nth-of-type(2) {
  grid-column: 1 / -1;
}

/* ---------- Companies card ---------- */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.company-tile {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
}

.company-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.company-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.company-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  text-transform: uppercase;
}

.company-fit {
  font-size: 13px;
  color: #115e59;
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.company-fit strong {
  font-weight: 600;
  color: #0f766e;
}

.company-link {
  margin-top: auto;
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
}

.company-link:hover { text-decoration: underline; }

/* ---------- Outreach card ---------- */
.outreach-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outreach-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  background: var(--bg-light);
}

.contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.contact-meta {
  min-width: 0;
}

.contact-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.contact-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.outreach-message {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.outreach-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.outreach-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s;
}

.outreach-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.outreach-btn.copied {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}

.outreach-btn.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.outreach-btn.btn-primary:hover {
  background: var(--navy-3);
}

.outreach-disclaimer {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ---------- Profile type pill (above score) ---------- */
.profile-type-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ptype-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-type-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(45, 212, 191, 0.4);
}

.ptype-not-you {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--text-muted);
  padding-bottom: 1px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.ptype-not-you:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ---------- Role match section ---------- */
.matched-roles,
.invisible-roles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.match-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 2px;
}

.match-strong { background: rgba(52, 211, 153, 0.15); color: #047857; }
.match-partial { background: rgba(251, 191, 36, 0.15); color: #b45309; }
.match-weak { background: rgba(248, 113, 113, 0.12); color: #b91c1c; }

.role-text { flex: 1; min-width: 0; }

.role-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 2px;
  line-height: 1.4;
}

.role-reason {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.invisible-divider {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
}

.invisible-divider h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.invisible-roles .role-item {
  border-left: 3px solid rgba(248, 113, 113, 0.4);
  padding-left: 14px;
}

.invisible-role-gap {
  font-size: 13px;
  color: #991b1b;
  opacity: 0.85;
  line-height: 1.5;
}

.card {
  background: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* dimensions */
.dimensions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dimension {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}

.dimension:nth-last-child(-n+2) {
  border-bottom: none;
  padding-bottom: 0;
}

.dim-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.dim-name {
  font-weight: 600;
  font-size: 14px;
}

.dim-score {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.dim-score.lo { color: var(--red); }
.dim-score.mi { color: #d97706; }
.dim-score.hi { color: #059669; }

.dim-bar {
  height: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
  margin-bottom: 6px;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dim-bar-fill.lo { background: var(--red); }
.dim-bar-fill.mi { background: var(--amber); }
.dim-bar-fill.hi { background: var(--green); }

.dim-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.dim-benchmark {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 500;
}

/* fixes */
.fixes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fix {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.priority-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 2px;
}

.priority-critical { background: rgba(248, 113, 113, 0.12); color: #b91c1c; }
.priority-high { background: rgba(251, 191, 36, 0.15); color: #b45309; }
.priority-medium { background: rgba(52, 211, 153, 0.15); color: #047857; }

.time-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.fix-text {
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

/* optimized cards */
.optimized-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.optimized-header h3 { margin: 0; }

.copy-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: var(--bg-light);
  transition: all 0.15s;
}

.copy-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.copy-btn.copied {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}

.opt-text {
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  white-space: pre-wrap;
}

.opt-multiline p {
  margin-bottom: 14px;
}
.opt-multiline p:last-child { margin-bottom: 0; }

/* before/after rewrite blocks */
.ba-block {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.ba-block:last-child { margin-bottom: 0; }

.ba-current {
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.18);
}

.ba-optimized {
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
}

.ba-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 5px;
}

.ba-label-current { background: rgba(248, 113, 113, 0.15); color: #b91c1c; }
.ba-label-optimized { background: var(--teal); color: var(--navy); }

.ba-current-text { color: #991b1b; opacity: 0.78; }
.ba-current-text.empty { font-style: italic; color: #94a3b8; }
.ba-optimized-text { color: #115e59; }

.opt-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  color: #115e59;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Share card (prominent, conversion-focused) ---------- */
.share-card-prominent {
  background: var(--navy);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.10);
}

.share-card-prominent::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(45, 212, 191, 0.10), transparent);
  pointer-events: none;
}

.share-header {
  position: relative;
  margin-bottom: 22px;
}

.share-header h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px 0;
}

.share-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.share-options {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}

.share-option:hover {
  border-color: var(--teal-border);
  background: rgba(45, 212, 191, 0.05);
  transform: translateY(-1px);
}

.share-emoji {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
  display: inline-block;
}

.share-option-label {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px 0;
}

.share-option-subtext {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.share-copy-btn {
  width: 100%;
  background: var(--teal);
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s, transform 0.12s;
}

.share-copy-btn:hover { background: #5eead4; }
.share-copy-btn:active { transform: scale(0.98); }
.share-copy-btn.copied { background: var(--white); color: var(--navy); }

/* Mobile button is hidden until <=768px */
.share-mobile-btn {
  display: none;
}

/* ---------- Mobile share bottom sheet ---------- */
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
  display: none; /* re-enabled at <=768px breakpoint */
}

.share-sheet.open {
  visibility: visible;
  pointer-events: auto;
}

.share-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  cursor: pointer;
  transition: opacity 200ms ease;
}

.share-sheet.open .share-sheet-backdrop { opacity: 1; }

.share-sheet-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 14px 20px max(20px, env(safe-area-inset-bottom)) 20px;
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(0.32, 0.72, 0.24, 1);
  max-height: 88vh;
  overflow-y: auto;
}

.share-sheet.open .share-sheet-panel { transform: translateY(0); }

.share-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 14px;
}

.share-sheet h3 {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 16px 0;
}

.share-sheet-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.share-sheet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.share-sheet-option:active {
  background: rgba(45, 212, 191, 0.08);
  border-color: var(--teal-border);
}

.share-sheet-option.copied {
  background: rgba(45, 212, 191, 0.15);
  border-color: var(--teal);
}

.share-sheet-option .share-emoji {
  font-size: 24px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.share-sheet-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.share-sheet-label {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.share-sheet-sub {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.share-sheet-cancel {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s;
}

.share-sheet-cancel:hover { background: rgba(255, 255, 255, 0.08); }

body.share-sheet-open { overflow: hidden; }

/* ---------- Compare with a friend ---------- */
.compare-card { display: block; }

.compare-header { margin-bottom: 18px; }
.compare-header h3 { margin: 0 0 6px 0; }
.compare-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.compare-form { margin: 0; }

/* Compact pill input row adapted for the white card */
.input-row.compare-input-row {
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 5px;
  max-width: 560px;
}
.input-row.compare-input-row:focus-within {
  border-color: var(--teal);
  background: #ffffff;
}
.input-row.compare-input-row #compare-url {
  flex: 1;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  padding: 11px 14px;
  min-width: 0;
}
.input-row.compare-input-row #compare-url::placeholder {
  color: #94a3b8;
}

#compare-submit {
  background: var(--teal);
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s, background 0.2s;
  white-space: nowrap;
}
#compare-submit:hover:not(:disabled) { background: #5eead4; }
#compare-submit:active:not(:disabled) { transform: scale(0.98); }
#compare-submit:disabled { cursor: wait; opacity: 0.85; }

#compare-submit.loading .btn-text { display: none; }
#compare-submit.loading .btn-spinner { display: inline-block; }

/* Loading state inside the white card uses the same pulse + fade,
   but the message text needs a darker color than the navy hero. */
.compare-loading {
  color: #0d9488;
  margin-top: 12px;
}

/* Inline error needs light-mode colors */
.compare-error {
  margin-top: 12px;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.4);
  color: #b91c1c;
}

/* Comparison results */
.compare-results {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.compare-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.compare-col {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--bg-light);
}

.compare-col-you { border-left: 3px solid var(--teal); }
.compare-col-them { border-left: 3px solid var(--violet); }

.compare-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.compare-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.compare-winner {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  color: #0d9488;
  border: 1px solid var(--teal-border);
}

.compare-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.compare-score-num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.compare-score-out {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Dimension comparison: each row has a label + paired bars */
.compare-dimensions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.compare-dim {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}
.compare-dim:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.compare-dim-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.compare-dim-row {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.compare-dim-row:last-child { margin-bottom: 0; }

.compare-dim-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.compare-dim-bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.compare-dim-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-dim-bar-fill.you { background: var(--teal); }
.compare-dim-bar-fill.them { background: var(--violet); }

.compare-dim-score {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Share comparison CTA */
.compare-share-btn {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 10px;
  transition: background 0.18s, transform 0.12s;
}
.compare-share-btn:hover { background: var(--navy-3); }
.compare-share-btn:active { transform: scale(0.99); }
.compare-share-btn.copied { background: var(--teal); color: var(--navy); }

/* ---------- HOW IT WORKS ---------- */
.how {
  padding: 96px 24px;
  background: var(--white);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.step {
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- SAMPLE ---------- */
.sample {
  padding: 96px 24px;
  background: var(--bg-light);
}

.sample-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 32px;
}

.sample-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-card);
  position: relative;
}

.sample-before { border-top: 4px solid var(--red); }
.sample-after { border-top: 4px solid var(--green); }

.sample-tag {
  position: absolute;
  top: -10px;
  left: 24px;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-before { background: var(--red); color: var(--white); }
.tag-after { background: var(--green); color: var(--white); }

.sample-score {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 8px;
}
.sample-score-low { color: var(--red); }
.sample-score-high { color: var(--green); }

.sample-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 20px;
}

.sample-headline {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  font-style: italic;
  padding: 14px;
  background: var(--bg-light);
  border-radius: 10px;
  margin-bottom: 18px;
}

.sample-issues {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sample-issues li {
  font-size: 13px;
  color: #334155;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.sample-issues li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.sample-after .sample-issues li::before { background: var(--green); }
.sample-before .sample-issues li::before { background: var(--red); }

.sample-arrow {
  display: flex;
  align-items: center;
  font-size: 32px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: var(--text-muted);
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
}

.footer a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet — 768px and below: collapse multi-column grids, cap headline, soften padding */
@media (max-width: 768px) {
  .hero { padding-bottom: 64px; }
  .nav { padding-bottom: 40px; }
  .hero-inner { padding-top: 16px; }

  .headline { font-size: 2.25rem; line-height: 1.1; } /* 36px max on small screens */
  .subhead { font-size: 1rem; }

  .results { padding: 56px 20px; }
  .results-inner { padding: 0; }
  .score-display { gap: 20px; }
  .score-meta h2 { font-size: 24px; }

  .results-grid { grid-template-columns: 1fr; }
  .results-grid .dimensions-card,
  .results-grid .optimized-card:nth-of-type(2) { grid-column: auto; }

  /* Share card collapses to a single button + bottom sheet on mobile */
  .share-card-prominent { padding: 22px 20px; }
  .share-options { display: none; }
  .share-mobile-btn {
    display: block;
    width: 100%;
    background: var(--teal);
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
    padding: 14px;
    border-radius: 10px;
    transition: background 0.18s, transform 0.12s;
  }
  .share-mobile-btn:hover { background: #5eead4; }
  .share-mobile-btn:active { transform: scale(0.98); }
  .share-sheet { display: block; }

  /* Compare card stacks columns on tablet+mobile */
  .compare-columns { grid-template-columns: 1fr; }
  .input-row.compare-input-row { flex-direction: column; padding: 6px; gap: 6px; max-width: none; }
  .input-row.compare-input-row #compare-url { width: 100%; padding: 12px 14px; font-size: 16px; }
  #compare-submit { width: 100%; padding: 13px; }
  .compare-score-num { font-size: 36px; }

  .dimensions-list { grid-template-columns: 1fr; }
  .dimension:nth-last-child(-n+2) { border-bottom: 1px solid #f1f5f9; padding-bottom: 16px; }
  .dimension:last-child { border-bottom: none; padding-bottom: 0; }

  .how, .sample { padding: 64px 20px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }

  .sample-grid { grid-template-columns: 1fr; }
  .sample-arrow { transform: rotate(90deg); justify-content: center; }

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

  .card { padding: 24px; }
}

/* Mobile — 480px and below: stack input/button, full-width buttons, centered score, tighter type */
@media (max-width: 480px) {
  .hero { padding: 20px 18px 56px; }
  .nav { padding-bottom: 32px; }

  .headline { font-size: 2rem; } /* 32px */
  .eyebrow { margin-bottom: 22px; font-size: 11px; padding: 5px 12px; }
  .subhead { font-size: 0.95rem; margin-bottom: 28px; }

  /* Stacked, full-width input + CTA */
  .input-row { flex-direction: column; padding: 8px; gap: 8px; }
  #linkedin-url { width: 100%; padding: 14px 14px; font-size: 16px; /* prevents iOS zoom */ }
  #submit-btn { width: 100%; padding: 14px; }

  .trust { font-size: 12px; line-height: 1.5; }
  .loading-status { font-size: 13px; }

  /* Centered score */
  .results { padding: 48px 16px; }
  .score-display { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .score-circle { width: 132px; height: 132px; margin: 0 auto; }
  .score-number { font-size: 44px; }
  .score-meta { min-width: 0; width: 100%; text-align: center; }
  .score-meta h2 { font-size: 22px; }
  .score-meta p { font-size: 14px; }
  .score-impact { text-align: left; }

  /* Cards & spacing */
  .card { padding: 20px; border-radius: 14px; }
  .results-grid { gap: 16px; }

  /* Optimized rewrite cards: stack header + full-width Copy button */
  .optimized-header { flex-direction: column; align-items: stretch; gap: 10px; }
  .optimized-header h3 { margin: 0; }
  .copy-btn { width: 100%; padding: 10px 12px; font-size: 13px; }

  /* Before/after blocks already stack vertically — just tighten padding */
  .ba-block { padding: 12px 14px; }

  /* Fixes list — let badges + text wrap cleanly */
  .fix { flex-wrap: wrap; row-gap: 6px; }
  .fix-text { flex-basis: 100%; font-size: 13.5px; }

  /* Skill pills tighter */
  .skill-pill { font-size: 12px; padding: 5px 10px; }

  /* (share card mobile rules live in the 768px block below) */

  /* Outreach buttons full width */
  .outreach-buttons { flex-direction: column; }
  .outreach-btn { width: 100%; justify-content: center; padding: 12px; }
  .company-tile { padding: 16px; }
  .outreach-item { padding: 16px; }

  /* How it works + sample */
  .how, .sample { padding: 56px 16px; }
  .step { padding: 24px; }
  .sample-card { padding: 24px; }
  .sample-score { font-size: 48px; }

  .footer { padding: 28px 20px; font-size: 13px; }
}
