/* JobRoll, getjobroll.com. System fonts, no build step. */

:root {
  color-scheme: light dark;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ground: #F4F5F6;
  --surface: #FFFFFF;
  --ink: #0E0F11;
  --ink2: #3F444B;
  --ink3: #585E66;
  --line: rgba(14, 15, 17, .11);
  --logo-ember: #FF7A26;

  /* The product shots stay dark in both themes, so ember text never lands on white. */
  --graphite: #0E0F11;
  --panel: #18191D;
  --fog: #C9CDD2;
  --paper: #F6F7F8;
  --muted: #9BA1A9;
  --ember: #FF8A3D;

  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --settle: cubic-bezier(.2, .8, .2, 1);
  --move: cubic-bezier(.3, 0, .1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E0F11;
    --surface: #18191D;
    --ink: #F6F7F8;
    --ink2: #C9CDD2;
    --ink3: #9BA1A9;
    --line: rgba(255, 255, 255, .11);
    --logo-ember: #FF8A3D;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--ground);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Top and bottom of every page */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}

.brand { display: block; color: var(--ink); border-radius: 6px; }
.brand svg { height: 26px; width: auto; }
.brand .lit { fill: var(--logo-ember); }

.top nav a {
  display: inline-block;
  padding: 10px 4px;
  color: var(--ink2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.top nav a:hover { color: var(--ink); text-decoration: underline; }

.foot {
  margin-top: clamp(64px, 10vw, 112px);
  border-top: 1px solid var(--line);
  padding-block: 28px 40px;
  color: var(--ink3);
  font-size: 14px;
}
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.foot a { color: var(--ink2); }
.foot .fine { margin-top: 12px; font-size: 13px; }

/* Landing */

.hero { padding-top: clamp(32px, 7vw, 72px); text-align: center; }

.hero h1 {
  max-width: 13.5em;
  margin-inline: auto;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.lede {
  max-width: 32em;
  margin: 20px auto 0;
  color: var(--ink2);
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.45;
  text-wrap: balance;
}

.store-badge { display: inline-block; margin-top: 28px; border-radius: 8px; }
.store-badge img { height: 54px; width: auto; }

/* The product shot: a wall of tiles, one lit, the photo and its answer */

.stage {
  position: relative;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 88px clamp(12px, 5vw, 56px) clamp(16px, 5vw, 56px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--graphite);
  color: var(--paper);
  text-align: left;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Crect x='8' y='8' width='56' height='56' rx='12.4' fill='%23C9CDD2' fill-opacity='.08'/%3E%3C/svg%3E") 0 0 / 72px 72px;
}

.stage::after, .step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}

.lit-tile {
  position: absolute;
  left: 224px;
  top: 8px;
  width: 56px;
  height: 56px;
  border-radius: 12.4px;
  background: var(--ember);
  box-shadow: 0 0 44px rgba(255, 138, 61, .55);
}

.shot {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.ask {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 28px;
  background: #2A2C31;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08);
  font-size: clamp(13px, 5.1cqw, 22px);
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.ask span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ask svg { flex: none; width: 22px; height: 22px; color: var(--fog); }

.photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: #24262B;
  box-shadow: 0 0 0 1px rgba(255, 138, 61, .5), 0 0 56px rgba(255, 138, 61, .36);
}
.photo img, .photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo img { object-fit: cover; }

.dim { fill: rgba(8, 9, 10, .34); }
.outline {
  fill: none;
  stroke: var(--ember);
  stroke-width: 9;
}
.glow { filter: drop-shadow(0 0 7px var(--ember)); }

.answer {
  container-type: inline-size;
  padding: clamp(16px, 4vw, 28px);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .11);
}

.answer-head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--fog); }
.answer-head b { flex: 1; font-weight: 600; font-size: 15px; letter-spacing: .06em; }
.mark { width: 15px; height: 15px; border-radius: 4px; background: var(--ember); }
.meter { display: flex; gap: 4px; }
.meter i { display: block; width: 24px; height: 9px; border-radius: 3px; overflow: hidden; background: rgba(201, 205, 210, .16); }
.meter i::after { content: ""; display: block; height: 100%; background: var(--ember); transform-origin: 0 50%; }

.value {
  display: block;
  margin-top: 14px;
  color: var(--ember);
  font: 600 11cqw/1.2 var(--mono);
  font-variant-numeric: tabular-nums slashed-zero;
  white-space: nowrap;
}

.answer-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 16px; line-height: 1.3; font-weight: 500; }
.answer-foot small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); }

.copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #0E0F11;
  font-weight: 600;
  line-height: 1.2;
}
.copy svg { width: 20px; height: 20px; }

.icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

@media (min-width: 820px) {
  .shot {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6.6fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 20px 24px;
  }
  .ask { grid-column: 2; grid-row: 1; min-height: 64px; padding: 0 24px; gap: 12px; border-radius: 32px; font-size: clamp(15px, 2.6cqw, 22px); }
  .ask svg { width: 24px; height: 24px; }
  .photo { grid-column: 1; grid-row: 1 / 3; }
  .answer { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; }
  .answer-foot { margin-top: 12px; font-size: 19px; }
  .answer-foot small { font-size: 17px; }
  .answer-head { font-size: 18px; }
  .answer-head b { font-size: 17px; }
  .copy { padding: 12px 20px 12px 16px; }
}

/* Sections */

.section { margin-top: clamp(64px, 10vw, 112px); }

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.section .intro { max-width: 36em; margin-top: 12px; color: var(--ink2); }

.steps { display: grid; gap: 16px; margin-top: 32px; }
.step { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface); }
.step h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.012em; }
.step p { margin-top: 6px; color: var(--ink2); font-size: 16px; }
.step-text { padding: 20px 24px 24px; }

.mini {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 164px;
  overflow: hidden;
  padding: 0 12px;
  background: var(--graphite);
  color: var(--paper);
}
.mini .ask { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; gap: 8px; font-size: clamp(13px, 1.45vw, 16px); }
.mini .ask svg { width: 18px; height: 18px; }
.mini-photo { padding: 0; }
.mini-photo img, .mini-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-copy { justify-content: space-between; gap: 12px; }
.mini-copy .value { margin: 0; font-size: 19px; }
.mini-copy .copy { font-size: 15px; padding: 8px 14px 8px 10px; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.split { display: grid; gap: 28px; }
@media (min-width: 820px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
}

.reads { display: grid; }
.reads li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 24px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.reads li:last-child { border-bottom: 1px solid var(--line); }
.reads code { color: var(--ink3); font: 500 15px/1.5 var(--mono); font-variant-numeric: tabular-nums slashed-zero; }

.promises { display: grid; gap: 24px; margin-top: 28px; }
.promises h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.012em; }
.promises p { margin-top: 6px; color: var(--ink2); font-size: 16px; }
@media (min-width: 820px) {
  .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}
.more { margin-top: 24px; font-size: 16px; }

.trades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.trades li {
  display: flex;
  align-items: flex-end;
  min-height: 84px;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
@media (min-width: 820px) {
  .trades { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

/* Support, privacy and terms */

.prose { max-width: 680px; padding-top: clamp(32px, 6vw, 64px); }
.prose h1 { font-size: clamp(34px, 5vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.026em; }
.prose h2 { margin-top: 36px; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; scroll-margin-top: 16px; }
.prose p, .prose li { color: var(--ink2); }
.prose p { margin-top: 10px; }
.prose .date { margin-top: 8px; color: var(--ink3); font-size: 15px; }
.prose .lead { margin-top: 16px; font-size: 19px; line-height: 1.45; }
.prose a { color: var(--ink); }

/* Not found: the wall with nothing lit */

.none { padding-top: clamp(40px, 8vw, 88px); }
.none h1 { font-size: clamp(34px, 5vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.026em; }
.none p { margin-top: 10px; color: var(--ink2); }
.none p a { color: var(--ink); }
.none-tiles { display: grid; grid-template-columns: repeat(3, 40px); gap: 8px; margin-bottom: 28px; }
.none-tiles i { display: block; height: 40px; border-radius: 9px; background: var(--ink); opacity: .08; }

/* Motion: the same order as the app, outline first, then the answer. CSS only. */

@media (prefers-reduced-motion: no-preference) {
  .hero .dim { animation: fade .3s .25s both linear; }
  .hero .outline {
    stroke-dasharray: 2 2;
    stroke-dashoffset: 2;
    animation: trace .54s .4s forwards var(--move);
  }
  .hero .answer { animation: rise .36s 1s both var(--settle); }
  .hero .answer-foot { animation: fade .3s 1.5s both var(--settle); }
  .hero .meter i::after { animation: fill .3s both var(--settle); }
  .hero .meter i:nth-child(1)::after { animation-delay: 1.3s; }
  .hero .meter i:nth-child(2)::after { animation-delay: 1.42s; }
  .hero .meter i:nth-child(3)::after { animation-delay: 1.54s; }

  @keyframes fade { from { opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
  @keyframes fill { from { transform: scaleX(0); } }
  @keyframes trace { to { stroke-dashoffset: 0; stroke-dasharray: 2 0; } }
}
