/* Job offer comparison apps guide. Mobile-first; extends site.css tokens (plum, charcoal, mint). */
.app-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Intro */
.app-comparison-intro {
  padding: 4px 0 24px;
  background: radial-gradient(ellipse at top right, #302238 0, var(--bg) 66%);
  border-bottom: 1px solid var(--line);
}
.app-comparison-intro .crumbs { margin: 0 0 14px; padding-top: 18px; }
.app-comparison-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.app-comparison-headline { text-align: center; }
.app-kicker {
  margin: 0 0 10px;
  color: var(--mint-text);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.app-comparison-headline h1 {
  max-width: 16ch;
  margin: 0 auto 14px;
  font-size: clamp(2.2rem, 9vw, 4.4rem);
  letter-spacing: -.05em;
  text-shadow: none;
  text-wrap: balance;
}
.app-comparison-headline h1 span { color: var(--lav-text); }
.app-comparison-headline .lede { max-width: 42ch; margin: 0 auto 6px; text-align: center; font-size: 1.05rem; text-wrap: pretty; }
.app-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  color: var(--mint-text);
}
.app-jump:hover { text-decoration: underline; }

.app-comparison-disclosure {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.55;
}
.app-comparison-disclosure p { margin: 0; }
.app-comparison-disclosure p + p { margin-top: 8px; color: var(--text-3); }
.app-comparison-disclosure strong { color: var(--text-strong); }

/* Content rhythm */
.app-comparison-content { padding-block: 32px 64px; }
.app-comparison-content h2 { letter-spacing: -.034em; text-align: center; text-wrap: balance; }
.app-comparison-content > section + section,
.app-comparison-content > section + aside { margin-top: 44px; }

/* At-a-glance: stacked cards on phones, table rows on wide screens */
.app-glance, .app-profile, .app-selection { scroll-margin-top: 16px; }
.app-glance-labels { display: none; }
.app-glance-list { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.app-glance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
}
.app-glance-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-icon-sm {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 22.5%;
  background: var(--surface-3);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1);
}
.app-glance-name { margin: 0; color: var(--text-strong); font-size: 1.08rem; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.app-glance-best { margin: 2px 0 0; color: var(--mint-text); font-size: .9rem; line-height: 1.35; }
.app-glance-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
.app-fact { min-width: 0; }
.app-fact-compares, .app-fact-cost { grid-column: 1 / -1; }
.app-fact dt, .app-profile-facts dt {
  color: var(--text-3);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.app-fact dd, .app-profile-facts dd { margin: 2px 0 0; color: var(--text-2); font-size: .94rem; line-height: 1.4; overflow-wrap: anywhere; }
.app-fact dd strong, .app-profile-facts dd strong { color: var(--text-strong); font-weight: 700; }
.app-cost-note { display: block; color: var(--text-3); font-size: .88rem; }

/* Store ratings */
.app-score-line { display: block; }
.app-score-line + .app-score-line { margin-top: 4px; }
.app-score { display: inline; color: var(--text-strong); }
.app-score-num { font-weight: 750; font-variant-numeric: tabular-nums; }
.app-star { margin-inline: 3px 2px; color: var(--lav); }
.app-score-meta { color: var(--text-3); font-size: .86rem; white-space: normal; }
.app-score-store { display: block; color: var(--text-3); font-size: .84rem; white-space: nowrap; }
.app-score-none { color: var(--text-2); }

/* Learn more button */
.app-learn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--bg-deep), var(--bg-deep)) padding-box, var(--pair-grad) border-box;
  color: var(--text-strong);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.app-learn:hover { color: var(--text-strong); background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--pair-grad) border-box; }
.app-learn:focus-visible { border-radius: 999px; }
.app-glance-note { max-width: 78ch; margin: 14px auto 0; color: var(--text-3); font-size: .88rem; line-height: 1.55; }

/* Baseline */
.app-baseline > p { max-width: 66ch; margin: 0 auto 14px; color: var(--text-2); }
.app-baseline-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: base; }
.app-baseline-steps li {
  position: relative;
  padding: 14px 16px 14px 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: .96rem;
  counter-increment: base;
}
.app-baseline-steps li::before {
  content: counter(base);
  position: absolute;
  left: 14px;
  top: 13px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2b1e36;
  color: var(--lav-text);
  font-weight: 800;
  font-size: .9rem;
}
.app-baseline-steps li:nth-child(2)::before { background: #152a2c; color: var(--mint-text); }
.app-baseline-steps strong { color: var(--text-strong); }

/* Profiles */
.app-profile-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.app-profile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(140deg, var(--surface-2), var(--surface) 62%);
  scroll-margin-top: 16px;
}
.app-profile:target { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.app-profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-profile-head .app-icon-sm { width: 56px; height: 56px; }
.app-profile-kicker { margin: 0; color: var(--text-3); font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.app-profile h3 { margin: 2px 0 2px; font-size: clamp(1.18rem, 2.2vw, 1.45rem); overflow-wrap: anywhere; }
.app-profile-meta { margin: 0; color: var(--mint-text); font-size: .88rem; line-height: 1.4; }
.app-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.app-profile-facts > div { min-width: 0; }
.app-profile-facts > div:nth-child(-n+2) { grid-column: 1 / -1; }
.app-tradeoffs { margin: 0 0 10px; color: var(--text-2); }
.app-tradeoffs div + div { margin-top: 10px; }
.app-tradeoffs dt { color: var(--text-strong); font-size: .9rem; font-weight: 700; }
.app-tradeoffs dd { margin: 2px 0 0; }
.app-profile-req { margin: 0 0 10px; color: var(--text-3); font-size: .86rem; }
.app-profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 6px; }
.store-edition { display: grid; justify-items: start; }
.store-edition > span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .85rem; }
.app-store-icon { width: 24px; height: 24px; border-radius: 5px; }
.app-profile-links { border-top: 1px solid var(--line); padding-top: 12px; }
.app-profile-links .text-link { font-size: .93rem; }
.app-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; color: var(--text-3); font-size: .88rem; text-decoration: none; }
.app-back:hover { color: var(--text); text-decoration: underline; }

/* Method */
.app-selection > p { max-width: 68ch; margin: 0 auto 12px; color: var(--text-2); }
.app-method-list { max-width: 68ch; margin: 0 auto; padding-left: 1.2em; color: var(--text-2); font-size: .96rem; }
.app-method-list li + li { margin-top: 6px; }
.app-method-list strong { color: var(--text-strong); }

/* Worked example */
.app-example {
  padding: 20px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--bg-alt);
}
.app-example header p { max-width: 65ch; color: var(--text-2); }
.app-example-numbers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 18px 0 12px; }
.app-example-numbers > div { padding: 14px; border: 1px solid #755b83; border-radius: 12px; background: #2b1e36; color: var(--lav-text); }
.app-example-numbers > div + div { border-color: #4f796f; background: #152a2c; color: var(--mint-text); }
.app-example-numbers dt { font-weight: 750; }
.app-example-numbers dd { margin: 4px 0 0; font-size: .95rem; }
.app-example-numbers strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.app-example .note { margin: 0; }
.app-alternative-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.app-alternative-links .text-link { font-size: .95rem; }

/* Publisher reference */
.app-comparison-reference {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
}
.app-comparison-reference img { width: 48px; height: 48px; border-radius: 12px; }
.app-comparison-reference h2 { margin-top: 2px; font-size: 1.4rem; text-align: left; }
.app-comparison-reference p { max-width: 64ch; color: var(--text-2); margin-bottom: 6px; }

/* Small phones */
@media (max-width: 359px) {
  .app-profile-facts { grid-template-columns: minmax(0, 1fr); }
  .app-glance-row, .app-profile { padding: 14px; }
  .app-comparison-reference { grid-template-columns: minmax(0, 1fr); }
}

/* Large phones and tablets */
@media (min-width: 560px) {
  .app-example-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-example { padding: 28px; }
  .app-glance-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .app-glance-facts { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-fact-compares, .app-fact-cost { grid-column: auto; }
  .app-glance-row .app-learn { grid-column: 2; grid-row: 1; }
  .app-profile-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-profile-facts > div:nth-child(-n+2) { grid-column: auto; }
}

@media (min-width: 771px) {
  .app-comparison-intro { padding-bottom: 30px; }
  .app-comparison-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 58px); }
  .app-comparison-headline { text-align: left; }
  .app-comparison-headline h1 { margin-inline: 0; }
  .app-comparison-headline .lede { margin-inline: 0; text-align: left; }
  .app-comparison-content h2 { text-align: left; }
  .app-comparison-content > section + section,
  .app-comparison-content > section + aside { margin-top: 56px; }
  .app-baseline-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-baseline > p, .app-selection > p, .app-method-list { margin-inline: 0; }
  .app-glance-note { margin-inline: 0; }
  .app-profile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-profile { padding: 24px; }
  .app-profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-profile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .app-profile:last-child:nth-child(odd) .app-profile-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-profile:last-child:nth-child(odd) .app-tradeoffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .app-profile:last-child:nth-child(odd) .app-tradeoffs div + div { margin-top: 0; }
  .app-comparison-reference { grid-template-columns: 64px minmax(0, 1fr); padding: 24px; }
  .app-comparison-reference img { width: 64px; height: 64px; border-radius: 15px; }
}

/* Desktop: one table-like row per app with shared column labels */
@media (min-width: 1000px) {
  .app-glance { --glance-cols: minmax(0, 1.5fr) minmax(0, 1.45fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.3fr) 148px; }
  .app-glance-labels {
    display: grid;
    grid-template-columns: var(--glance-cols);
    gap: 16px;
    margin-top: 18px;
    padding: 0 18px 8px;
    color: var(--text-3);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .app-glance-list { gap: 0; margin-top: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); overflow: hidden; }
  .app-glance-row {
    grid-template-columns: var(--glance-cols);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .app-glance-row + .app-glance-row { border-top: 1px solid var(--line); }
  .app-glance-row:hover { background: var(--surface-2); }
  .app-glance-facts {
    grid-column: 2 / 6;
    grid-row: 1;
    grid-template-columns: 1.45fr .8fr 1fr 1.3fr;
    grid-template-columns: subgrid;
    gap: 16px;
    padding: 0;
    border: 0;
  }
  .app-glance-facts dt { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .app-glance-row .app-learn { grid-column: 6; grid-row: 1; justify-self: end; padding-inline: 16px; }
  .app-fact dd { margin: 0; }
}

@media (forced-colors: active) {
  .app-learn, .app-store-link { border: 2px solid ButtonText; }
  .app-star { color: CanvasText; }
}

.pick-label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 5px;
  background: #1e304a;
  border: 1px solid #76b7ff99;
  color: #cbeaff;
  font-size: .76rem;
  line-height: 1.45;
  font-weight: 750;
}

/* Match the SwiftShift calculator's workspace cards and result glass. */
.app-comparison .app-glance-row .app-learn,
.app-comparison .app-tool-link > span {
  min-height: 44px;
  border: 1px solid var(--ss-action-edge);
  border-radius: 14px;
  background: var(--ss-inset-face);
  color: var(--ss-text);
}

.app-comparison .app-glance-row .app-learn:hover,
.app-comparison .app-tool-link:hover > span {
  background: #302943;
  color: #fff;
}

.app-comparison .app-glance-row.publisher-row,
.app-comparison #swiftshift.app-profile {
  background: linear-gradient(145deg, #548cff3e, #172240b0 46%, #101a30cc);
  border-top-color: #76b7ff99;
}

.app-comparison .app-example {
  border-color: var(--ss-panel-edge);
  border-radius: 20px;
  background: var(--ss-panel-face);
}

.app-comparison .app-example header p { margin-inline: auto; text-align: center; }

.app-comparison .app-example-numbers > div {
  background: linear-gradient(145deg, #cc734446, #172240b0 46%, #101a30cc);
  border-color: #b8c7f253;
  border-top-color: #ffaf7799;
  color: #ffb483;
}

.app-comparison .app-example-numbers > div + div {
  background: linear-gradient(145deg, #548cff3e, #172240b0 46%, #101a30cc);
  border-top-color: #76b7ff99;
  color: #a3d6ff;
}

.app-browser-tools { margin-top: clamp(26px, 6vw, 52px); scroll-margin-top: 76px; }
.app-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }

.app-comparison a.app-tool-link {
  display: grid;
  align-content: start;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  padding: 16px;
  text-align: center;
  background: var(--ss-panel-face);
  border: 1px solid var(--ss-panel-edge);
  border-radius: 20px;
  color: var(--ss-text);
  text-decoration: none;
}

.app-tool-link h3 {
  margin: 0;
  font: 700 1.2rem/1.23 "SwiftShift Bricolage", "SwiftShift DM", system-ui, sans-serif;
  color: #f1e7ff;
}

.app-tool-link p { margin: 0 0 7px; color: var(--text-2); }
.app-tool-link > span {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-size: .94rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .app-tool-grid { grid-template-columns: minmax(0, 1fr); }
  .app-glance-row .app-learn { width: 100%; }
  .app-glance-facts { gap: 7px; padding-top: 0; border-top: 0; }
  .app-glance-facts .app-fact {
    background: var(--ss-inset-face);
    border: 1px solid var(--ss-inset-edge);
    border-radius: 12px;
    padding: 9px 10px;
  }
}

@media (min-width: 1100px) {
  .ss-marketing .app-glance-list { background: var(--ss-panel-face); border-color: var(--ss-panel-edge); }
  .ss-marketing .app-glance-list .app-glance-row { background: transparent; border: 0; border-radius: 0; }
  .ss-marketing .app-glance-list .app-glance-row + .app-glance-row { border-top: 1px solid var(--ss-inset-edge); }
  .ss-marketing .app-glance-list .publisher-row { background: linear-gradient(145deg, #548cff3e, #172240b0); }
}
