/* qnurse.ca home page. */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ececea;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #5a5a56;
  --line: #dededa;
  --wine: #a23a44;
  --money: #047857;
  --dial: min(66svh, 640px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    400 17px/1.55 'Hanken Grotesk',
    system-ui,
    -apple-system,
    sans-serif;
  overflow-x: clip;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hp {
  position: absolute;
  left: -9999px;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  font-weight: 800;
}
h1 {
  font-size: clamp(34px, 4.4vw, 60px);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  margin-bottom: 12px;
}
h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Nav */
.bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) 22px 14px;
}
.logo img {
  height: 34px;
  width: auto;
}
.bar-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  color: var(--ink-2);
}
.bar-links a {
  text-decoration: none;
  padding: 10px 0;
}
.bar-end {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang {
  font-size: 14px;
  font-weight: 700;
  padding: 11px 10px;
}
.bar-cta {
  background: var(--card);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  padding: 76px 20px 36px;
}
.mid {
  position: relative;
  z-index: 4;
  width: min(680px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pip {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  width: clamp(120px, 13vw, 210px);
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.pip:active {
  transform: scale(0.92) rotate(-3deg);
}
.poke {
  font-size: 15px;
  font-style: italic;
  color: var(--ink-2);
  margin: 2px 0 10px;
}
.sub {
  color: var(--ink-2);
  margin: 0 0 16px;
  font-size: 18px;
  max-width: 32em;
}

/* Province picker */
.prov {
  border: 0;
  margin: 0 0 14px;
  padding: 4px;
  max-width: 100%;
  display: flex;
  gap: 2px;
  background: #e0e0dc;
  border-radius: 999px;
}
.prov label {
  cursor: pointer;
  position: relative;
}
.prov input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.prov span {
  display: block;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
}
.prov input:checked + span {
  background: var(--card);
  color: var(--ink);
}
.prov input:focus-visible + span {
  outline: 3px solid var(--wine);
}

/* The form */
.capture {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.notify {
  display: flex;
  gap: 8px;
  width: min(440px, 100%);
}
.notify input[type='email'] {
  flex: 1;
  min-width: 0;
  font-size: 16px; /* below 16px, iPhones zoom the page on focus */
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--card);
  color: var(--ink);
}
.notify button {
  min-height: 48px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.notify button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.consent {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
  margin: 10px 0 0;
  max-width: 46em;
}
.form-error {
  color: #9b1c2c;
  font-weight: 600;
  font-size: 15px;
  margin: 8px 0 0;
}
.done {
  background: var(--card);
  border-radius: 22px;
  padding: 18px 22px;
  width: min(460px, 100%);
}
.done b {
  display: block;
  font-size: 19px;
}
.done p {
  margin: 4px 0 12px;
  color: var(--ink-2);
  font-size: 15px;
}
.qc-note {
  margin: 0;
  max-width: 30em;
  font-weight: 600;
}
.rate-box {
  margin-top: 14px;
}
.rate {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
}
.rate b {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* The payoff, on the first screen */
.proof {
  width: min(460px, 100%);
  background: var(--card);
  border-radius: 18px;
  padding: 12px 16px;
  margin: 0 0 14px;
  font-variant-numeric: tabular-nums;
}
.proof-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.proof-head small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-2);
}
.proof-head b {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--money);
}
.night-toggle {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.night-toggle button {
  appearance: none;
  border: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  flex: 1;
}
.night-toggle button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}
.status {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}
.proof ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.rate-title {
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 8px 0 2px;
}
.hero[data-province='on'] .status,
.hero[data-province='ab'] .status,
.hero[data-province='qc'] .status,
.hero[data-province='on'] .proof,
.hero[data-province='ab'] .proof,
.hero[data-province='qc'] .proof {
  display: none;
}

/* Province states */
.hero[data-province='on']:not([data-province-page]) .rate-box,
.hero[data-province='ab']:not([data-province-page]) .rate-box,
.hero[data-province='qc']:not([data-province-page]) .rate-box,
.hero[data-province='on']:not([data-province-page]) .dial,
.hero[data-province='ab']:not([data-province-page]) .dial,
.hero[data-province='qc']:not([data-province-page]) .dial,
.hero[data-province='on']:not([data-province-page]) .tag,
.hero[data-province='ab']:not([data-province-page]) .tag,
.hero[data-province='qc']:not([data-province-page]) .tag {
  display: none;
}

/* The level and step dials: the selected number sits at the inner edge, upright. */
.dial {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  position: absolute;
  top: 50%;
  width: var(--dial);
  aspect-ratio: 1;
  margin-top: calc(var(--dial) / -2);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    var(--bg) 66%,
    #e0e0dd 67%,
    #e0e0dd 98%,
    transparent 99%
  );
  z-index: 2;
}
.dial.l {
  left: calc(var(--dial) * -0.54);
}
.dial.r {
  right: calc(var(--dial) * -0.54);
}
.ring {
  position: absolute;
  inset: 0;
}
.num {
  appearance: none;
  border: 0;
  background: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 80px;
  margin: -40px 0 0 -55px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 68px;
  letter-spacing: -0.04em;
  color: #80807b;
  cursor: inherit;
  font-variant-numeric: tabular-nums;
  /* Position and size are painted frame by frame in home.js. A transition here would lag the hand. */
  transition: color 0.15s;
}
.num.on {
  color: var(--ink);
}
/* Unselected numbers are drawn smaller. This keeps them as easy to tap. */
.num:not(.on)::before {
  content: '';
  position: absolute;
  inset: -26%;
}
.tag {
  position: absolute;
  top: calc(50% + 62px);
  z-index: 3;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  width: 100px;
}
.tag.l {
  left: calc(var(--dial) * 0.46 - 82px);
  text-align: right;
  pointer-events: none;
}
.tag.r {
  right: calc(var(--dial) * 0.46 - 82px);
  pointer-events: none;
}
.strips {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.strip {
  flex: 1 1 150px;
  max-width: 220px;
  min-width: 0;
  background: var(--card);
  border-radius: 18px;
  padding: 7px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.strip-track {
  position: relative;
  height: 54px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y; /* a sideways drag moves the number, an up or down one scrolls the page */
  user-select: none;
  -webkit-user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
}
.strip-track .num {
  top: 0;
  width: 58px;
  height: 54px;
  margin: 0 0 0 -29px;
  font-size: 36px;
}
.strip-track .num.on {
  color: var(--ink);
}
/* A job's short name instead of a number. */
.num.word {
  font-size: 44px;
  letter-spacing: -0.02em;
}
.strip-track .num.word {
  font-size: 20px;
}
.rate-note {
  margin: 8px auto 0;
  max-width: 34em;
}

/* While a finger or mouse holds a dial, it follows exactly. On release it glides to a number. */
.dragging,
.dragging .num {
  cursor: grabbing;
}
/* Says what is moving: the bubble at the hand, and the moving control's own label. */
.readout {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 10px 16px 11px;
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.readout span,
.readout b,
.readout small {
  display: block;
}
.readout span {
  font-size: 14px;
  font-weight: 600;
  color: #dcdcd8;
}
.readout b {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.readout small {
  font-size: 13px;
  color: #6ee7b7;
}
.readout small:empty {
  display: none;
}
.dial.l.dragging ~ .tag.l,
.dial.r.dragging ~ .tag.r {
  color: var(--ink);
  font-weight: 800;
}
.strip:has(.dragging) {
  background: var(--ink);
  color: #fff;
}
.strip:has(.dragging) .num {
  color: #c9c9c4;
}
.strip:has(.dragging) .num.on {
  color: #fff;
}
.rate b {
  display: inline-block;
}

/* Sections */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}
main section {
  padding-top: 92px;
}
.lede {
  color: var(--ink-2);
  margin: 0 0 20px;
  font-size: 19px;
  max-width: 34em;
}
.more {
  margin: 16px 0 0;
  font-weight: 700;
}
.fine {
  font-size: 13px;
  color: var(--ink-2);
  margin: 10px 0 0;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: center;
}
.two.even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.two.even h2 {
  font-size: clamp(26px, 2.8vw, 36px);
}
.ph {
  border-radius: 40px;
  padding: 8px;
  background: #0b0b0c;
  box-shadow: 0 34px 60px -32px rgba(0, 0, 0, 0.5);
}
.ph img {
  border-radius: 33px;
  width: 100%;
}
#pip-bird h3 {
  margin-top: 4px;
}
.pip-portrait {
  width: 100%;
}
.slip {
  background: var(--card);
  border-radius: 22px;
  padding: 8px 22px;
  font-variant-numeric: tabular-nums;
}
.slip div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #ededea;
}
.slip small {
  color: var(--ink-2);
  display: block;
  font-size: 13.5px;
}
.slip .total {
  border: 0;
  font-weight: 800;
  font-size: 22px;
}
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
}
.steps h3 {
  margin-top: 18px;
}
.steps h3::before {
  content: counter(s) '. ';
  color: var(--wine);
}
.steps p {
  color: var(--ink-2);
  margin: 6px 0 0;
}
.feat {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.feat article {
  background: var(--card);
  border-radius: 22px;
  padding: 22px;
}
.feat .wide {
  grid-column: span 2;
}
.feat .wider {
  grid-column: span 3;
}
.feat p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
}
.feat .fig {
  color: var(--ink);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.guides,
.provs {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.provs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.guides a,
.provs > * {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  text-decoration: none;
}
.guides b,
.provs b {
  display: block;
  font-size: 18px;
}
.guides span,
.provs span {
  color: var(--ink-2);
  font-size: 15px;
}
.provs em {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
}
.plans {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.plan {
  background: var(--card);
  border-radius: 26px;
  padding: 28px;
}
.plan.best {
  background: var(--ink);
  color: #fff;
}
.plan .tag {
  position: static;
  display: inline-block;
  width: auto;
  background: #35d399;
  color: #06281c;
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.plan h3 {
  font-size: 17px;
  font-weight: 600;
}
.amt {
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}
.amt small {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.7;
}
.plan p:last-child {
  margin: 0;
  opacity: 0.85;
  font-size: 15.5px;
}
.anchor {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 0;
}
.anchor span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
}
.plain {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.faq {
  margin-top: 18px;
}
.faq details {
  padding: 4px 0;
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 11px 0;
}
.faq summary h3 {
  display: inline;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.faq p {
  margin: 0 0 12px;
  color: var(--ink-2);
  max-width: 62em;
}
/* The English page has the signup section between this and the footer. */
html[lang^='fr'] .share {
  padding-bottom: 64px;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-row a,
.share-row button {
  appearance: none;
  border: 0;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.end {
  text-align: center;
  padding: 92px 20px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.end img {
  width: 240px;
}
.end h2 {
  margin: 8px 0 16px;
}
.foot {
  background: #e3e3df;
  padding: 36px 0 110px;
  font-size: 14px;
  color: var(--ink-2);
}
.foot img {
  height: 30px;
  width: auto;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 14px 0;
  font-weight: 600;
  color: var(--ink);
}
.foot nav a {
  text-decoration: none;
  padding: 8px 0;
}
.foot p {
  max-width: 72em;
  margin: 8px 0 0;
}

/* Phones keep one way to act on screen. */
.sticky-cta {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  padding: 10px 10px 10px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s;
}
.sticky-cta a {
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 12px;
  white-space: nowrap;
}
.sticky-cta.hide {
  transform: translateY(160%);
}

@media (max-width: 1280px) {
  .dial,
  .tag:not(.plan .tag) {
    display: none;
  }
}
@media (min-width: 1281px) {
  .strips:not([hidden]) {
    display: none;
  }
}
@media (max-width: 860px) {
  .feat .wider {
    grid-column: auto;
  }
  .bar-links {
    display: none;
  }
  .two,
  .two.even {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .two > .ph {
    max-width: 280px;
    margin: 0 auto;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .steps .ph {
    max-width: 280px;
  }
  .feat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guides,
  .provs {
    grid-template-columns: minmax(0, 1fr);
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .sticky-cta {
    display: flex;
  }
  main section {
    padding-top: 72px;
  }
}
@media (max-width: 460px) {
  .poke {
    display: none;
  }
  .pip {
    width: 104px;
  }
  .feat {
    grid-template-columns: minmax(0, 1fr);
  }
  .feat .wide,
  .feat .wider {
    grid-column: auto;
  }
  .prov span {
    padding: 11px 10px;
    font-size: 14px;
  }
  .notify button {
    padding: 12px 16px;
  }
  .sub {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
