/* /closer: the hiring page for the Sales Rep role.
   Few words, a lot to look at: the film, the company on an ink band with its three devices, a bento
   of what working here is like, then the role, the pay and the application. The site's own light
   system throughout: a warm paper ground, ink, mint, Cormorant Garamond headlines with the emphasis
   in italic, Inter for the rest, black pills. */

:root {
  --bg: hsl(40 30% 97%);
  --surface: #fff;
  --ink: hsl(0 0% 7%);
  --soft: hsl(0 0% 35%);
  --dim: hsl(0 0% 52%);
  --line: hsl(30 10% 88%);
  --mint: hsl(150 35% 93%);
  --mint-2: hsl(150 30% 84%);
  --mint-3: hsl(150 40% 78%);
  --mint-ink: hsl(152 32% 26%);
  --bad: hsl(4 62% 44%);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: hsl(150 35% 85%); color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.col { max-width: calc(780px + 2 * var(--gutter)); }

/* type */
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.018em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 10.2vw, 5rem); line-height: 0.98; }
h2 { font-size: clamp(2.2rem, 6.4vw, 3.6rem); line-height: 1; }
h1 em, h2 em { font-style: italic; font-weight: 600; }
h3 { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; line-height: 1.08; letter-spacing: -0.01em; }
h1, h2, h3, legend, .rung-n, .rows .n { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.nb { white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.45; flex: none; }
.p { max-width: 54ch; margin-top: 18px; font-size: 1.06rem; line-height: 1.6; color: var(--soft); }
.head { display: grid; justify-items: start; margin-bottom: clamp(28px, 4vw, 44px); }
.head.center { justify-items: center; text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: transform 0.35s var(--ease), box-shadow 0.35s ease; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.5); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13.5px; }
.back { min-height: 52px; padding: 0 8px; border: 0; background: none; color: var(--soft); font-size: 14.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.back:hover { color: var(--ink); text-decoration-color: currentColor; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); background: hsl(40 30% 97% / 0.82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.nav.stuck { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; flex: none; }
.logo img { width: 118px; }
.nav .btn { margin-left: auto; }
/* the way back to the careers hub, beside the button */
.nav-link { margin-left: auto; padding: 10px 4px; font-size: 13.5px; font-weight: 500; color: var(--soft); text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav .nav-link + .btn { margin-left: 0; }
/* on the narrowest phones the logo, the link and the button share 280px */
@media (max-width: 400px) {
  .nav-in { gap: 10px; }
  .nav .logo img { width: 98px; }
  .nav-link { padding: 10px 0; font-size: 13px; }
  .nav .btn-sm { padding: 0 14px; }
}

/* hero: the title, one line, one button, the film, with soft light behind it all */
.hero { position: relative; padding: clamp(40px, 7vw, 84px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; animation: drift 18s ease-in-out infinite; }
.g1 { left: -180px; top: 60px; width: 560px; height: 560px; background: hsl(150 50% 86% / 0.9); }
.g2 { right: -200px; top: 380px; width: 520px; height: 520px; background: hsl(42 70% 88% / 0.9); animation-delay: -9s; }
@keyframes drift { 50% { transform: translate(5%, -7%) scale(1.1); } }
.hero-in { position: relative; display: grid; gap: 22px; justify-items: center; text-align: center; }
.tag { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(150 48% 42%); box-shadow: 0 0 0 0 hsl(150 48% 42% / 0.5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px hsl(150 48% 42% / 0); } 100% { box-shadow: 0 0 0 0 hsl(150 48% 42% / 0); } }
.lede { max-width: 40ch; font-size: clamp(1.05rem, 2.8vw, 1.25rem); line-height: 1.5; color: var(--soft); }
.lede b { color: var(--ink); font-weight: 600; }

/* the film, and the three things worth knowing floating beside it */
.hero-film { position: relative; width: 100%; max-width: 860px; min-width: 0; margin-top: clamp(18px, 3vw, 34px); }
.hero-film::before { content: ""; position: absolute; inset: 12% -4% -7% -4%; border-radius: clamp(24px, 4vw, 48px); background: var(--mint); z-index: 0; }
.film { position: relative; z-index: 1; aspect-ratio: 16 / 9; border-radius: clamp(16px, 2.4vw, 26px); overflow: hidden; background: #ece9e2; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 50px 80px -44px rgba(20, 30, 25, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; left: clamp(10px, 2vw, 18px); bottom: clamp(10px, 2vw, 18px); display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; background: rgba(17, 17, 17, 0.86); color: #fff; text-align: left; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); transition: transform 0.35s var(--ease), opacity 0.3s ease; }
.film-play:hover { transform: translateY(-2px) scale(1.02); }
.film-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.film-ico svg { width: 18px; height: 18px; fill: var(--ink); margin-left: 2px; }
.film-play b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.film-play small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.7); }
.film.sound .film-play { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  .film-play { left: 8px; bottom: 8px; gap: 8px; padding: 5px 13px 5px 5px; }
  .film-ico { width: 28px; height: 28px; }
  .film-ico svg { width: 13px; height: 13px; }
  .film-play b { font-size: 12px; }
  .film-play small { display: none; }
}
.floats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(26px, 5vw, 40px); }
.fl { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 16px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 40px -22px rgba(20, 40, 30, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.05); text-align: left; font-size: 12px; line-height: 1.25; color: var(--soft); white-space: nowrap; }
.fl svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--mint); fill: none; stroke: var(--mint-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fl b { display: block; color: var(--ink); font-size: 13.5px; font-weight: 600; }
@media (min-width: 1140px) {
  .floats { position: static; display: block; margin: 0; }
  .fl { position: absolute; z-index: 3; animation: bob 7s ease-in-out infinite; }
  .f1 { left: -104px; top: 14%; }
  .f2 { right: -112px; top: 34%; animation-delay: -2.3s; }
  /* clear of the film's own play button, which sits in its bottom left corner */
  .f3 { right: -88px; bottom: 13%; animation-delay: -4.6s; }
}
@keyframes bob { 50% { transform: translateY(-9px); } }

/* sections */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.band { background: var(--mint); }
/* two paper sections in a row are parted by a hairline */
.sec.line { padding-top: 0; }
.sec.line::before { content: ""; display: block; width: calc(100% - 2 * var(--gutter)); max-width: calc(1140px - 2 * var(--gutter)); height: 1px; margin: 0 auto clamp(64px, 9vw, 120px); background: var(--line); }
/* a heading on the left, its content on the right */
.duo { display: grid; gap: clamp(26px, 5vw, 72px); align-items: start; }
.duo .head { margin-bottom: 0; }
@media (min-width: 900px) {
  .duo { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .stick { position: sticky; top: 104px; }
}

/* the company: ink, with the three devices */
.ink { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.ink::before { content: ""; position: absolute; left: 50%; top: -30%; width: 1100px; height: 700px; margin-left: -550px; border-radius: 50%; background: radial-gradient(closest-side, hsl(150 50% 60% / 0.2), transparent); pointer-events: none; }
.ink .wrap { position: relative; }
.ink .eyebrow { color: var(--mint-3); }
.ink .p { color: rgba(255, 255, 255, 0.72); }
.gallery { display: grid; gap: 14px; }
.shot { position: relative; border-radius: clamp(18px, 2.2vw, 24px); overflow: hidden; background: #1d1d1d; aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption { position: absolute; inset: auto 0 0 0; padding: 70px 22px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); font-size: 13.5px; color: rgba(255, 255, 255, 0.8); }
.shot figcaption b { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.01em; color: #fff; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } .shot { aspect-ratio: 4 / 5; } }
.note { margin-top: clamp(26px, 4vw, 40px); font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(1.3rem, 3.4vw, 1.7rem); color: var(--mint-3); }

/* culture: a bento of what working here is like */
.bento { display: grid; gap: 14px; grid-auto-flow: dense; }
.tile { display: grid; align-content: start; gap: 6px; padding: 26px 24px 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform 0.45s var(--ease), box-shadow 0.45s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -28px rgba(0, 0, 0, 0.28); }
.tile h3 { margin-top: 14px; }
.tile p { font-size: 0.97rem; color: var(--soft); }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--mint); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--mint-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile.mint { background: var(--mint); border-color: var(--mint-2); }
.tile.mint .ico { background: #fff; }
/* the wide one has room: its words sit at the foot, larger, the way the photo tiles' captions do */
.tile.wide { display: flex; flex-direction: column; }
.tile.wide .ico { margin-bottom: auto; }
.tile.wide h3 { margin-top: 28px; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.tile.pic { position: relative; min-height: 280px; padding: 0; border: 0; overflow: hidden; background: #ddd; }
.tile.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile.pic:hover img { transform: scale(1.05); }
.tile.pic figcaption { position: absolute; inset: auto 0 0 0; padding: 80px 24px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.74)); font-size: 0.97rem; color: rgba(255, 255, 255, 0.84); }
.tile.pic figcaption b { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.01em; color: #fff; }
@media (min-width: 620px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile.wide { grid-column: span 2; } }
@media (min-width: 980px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(206px, auto); }
  .tile.tall { grid-row: span 2; }
}

/* the role: numbered rows on a card */
.rows li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows .n { padding-top: 3px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.2rem; color: hsl(150 26% 52%); }
.rows b { display: block; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.rows p { margin-top: 2px; font-size: 0.96rem; color: var(--soft); }
.rows.card { padding: 8px clamp(20px, 3vw, 34px); border-radius: clamp(18px, 2.4vw, 26px); background: var(--surface); box-shadow: 0 40px 70px -50px rgba(20, 50, 35, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.04); }

/* pay: three worked examples that climb, then the table */
.ladder { display: grid; gap: 12px; align-items: end; max-width: 980px; margin-inline: auto; }
.rung { display: grid; gap: 6px; align-content: start; padding: 26px 24px 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform 0.45s var(--ease), box-shadow 0.45s ease; }
.rung:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -28px rgba(0, 0, 0, 0.28); }
.rung-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.rung-k span { padding: 4px 10px; border-radius: 999px; background: var(--mint-3); color: var(--mint-ink); font-size: 10px; letter-spacing: 0.08em; }
.rung-n { margin-top: 6px; font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 8vw, 3.5rem); line-height: 0.95; letter-spacing: -0.025em; }
.rung-d { font-size: 0.88rem; color: var(--soft); }
.rung.on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 44px 70px -40px rgba(0, 0, 0, 0.65); }
.rung.on .rung-k, .rung.on .rung-d { color: rgba(255, 255, 255, 0.72); }
@media (min-width: 760px) {
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* each stands a little taller than the last: the climb is the point */
  .rung:nth-child(2) { padding-top: 42px; padding-bottom: 42px; }
  .rung:nth-child(3) { padding-top: 58px; padding-bottom: 58px; }
}
.breakdown { max-width: 980px; margin: 12px auto 0; padding: 8px clamp(20px, 3vw, 30px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.bd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 0.98rem; color: var(--soft); }
.bd-row:first-child { border-top: 0; }
.bd-row b { color: var(--ink); font-weight: 600; text-align: right; }
.fine { max-width: 980px; margin: 14px auto 0; font-size: 12.5px; color: var(--dim); }

/* qualifications: ticked cards */
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding: 18px 20px 18px 58px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 1.02rem; font-weight: 500; transition: transform 0.4s var(--ease); }
.checks li:hover { transform: translateX(4px); }
.checks li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.200 3.200L17 9'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* the application */
.apply { scroll-margin-top: 64px; }
.apply .head { margin-bottom: 30px; }
.form-card { padding: clamp(20px, 3.6vw, 40px); border-radius: clamp(20px, 2.6vw, 28px); background: var(--surface); box-shadow: 0 50px 90px -56px rgba(20, 50, 35, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.05); min-width: 0; }
/* the embedded Jotform: its own white form fills the card, clipped to the card's corners */
.form-card.jf { padding: 0; overflow: hidden; }
.form-card.jf iframe { display: block; width: 100% !important; min-width: 100%; border: 0; }
/* On a phone the form runs edge to edge: the card's gutter and corners only squeezed it (the Jotform carries its own padding). */
@media (max-width: 600px) {
  .form-card.jf { margin-left: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px))); border-radius: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); }
}
.prog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: clamp(22px, 3vw, 30px); }
.prog li { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 2px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color 0.4s ease, color 0.3s ease; }
.prog span { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--soft); font-size: 11px; font-weight: 700; transition: background 0.3s ease, color 0.3s ease; }
.prog li.on, .prog li.past { border-top-color: var(--ink); color: var(--ink); }
.prog li.on span, .prog li.past span { background: var(--ink); color: #fff; }

.step { display: grid; gap: 18px; animation: stepIn 0.5s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
legend { float: left; width: 100%; padding: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 4.6vw, 2.1rem); line-height: 1.05; letter-spacing: -0.015em; }
.row2 { display: grid; gap: 18px; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } }
.f { display: grid; gap: 7px; min-width: 0; }
.f > span, .q-l { font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; }
.f input, .f textarea { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: hsl(40 30% 98.500%); font-size: 16px; line-height: 1.4; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; -webkit-appearance: none; appearance: none; }
.f textarea { min-height: 96px; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: hsl(0 0% 66%); }
.f input:hover, .f textarea:hover { border-color: hsl(30 8% 76%); }
.f input:focus, .f textarea:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px hsl(150 35% 88%); }
.f.bad input, .f.bad textarea { border-color: var(--bad); box-shadow: 0 0 0 4px hsl(4 70% 95%); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.q { display: grid; gap: 10px; }
.q-t { padding: 16px 18px; border-radius: 16px; background: var(--mint); font-size: 14.5px; line-height: 1.5; color: var(--mint-ink); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: hsl(40 18% 93%); }
.seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg button, .chips button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 500; color: var(--soft); transition: background 0.25s ease, color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.5); }
.q.bad .seg, .q.bad .chips { box-shadow: 0 0 0 2px hsl(4 70% 86%); border-radius: 14px; }
.tool { display: grid; gap: 8px; align-items: center; }
.tool > span { font-size: 14.5px; font-weight: 500; }
.tool.bad .seg { box-shadow: 0 0 0 2px hsl(4 70% 86%); }
@media (min-width: 560px) { .tool { grid-template-columns: 150px minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.chips button:hover { border-color: hsl(30 8% 70%); color: var(--ink); }
.chips button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.brief { display: grid; gap: 8px; padding: 20px 22px; border-radius: 18px; background: var(--ink); color: rgba(255, 255, 255, 0.86); font-size: 15px; line-height: 1.55; }
.brief b { color: #fff; font-weight: 600; }
.brief-k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: hsl(150 40% 76%); }
.hint { margin-top: -8px; font-size: 13px; line-height: 1.5; color: var(--dim); }
.err { min-height: 0; font-size: 13.5px; font-weight: 500; color: var(--bad); }
.err:empty { display: none; }
.acts { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 4px; }
.acts .back { margin-right: auto; }

.done { display: grid; gap: 12px; justify-items: start; padding: clamp(10px, 2vw, 20px) 0; animation: stepIn 0.6s var(--ease) both; }
.done:focus { outline: 0; }
.done h3 { font-size: clamp(1.8rem, 5vw, 2.3rem); }
.done p { max-width: 46ch; color: var(--soft); }
.tick { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mint); }
.tick svg { width: 28px; height: 28px; fill: none; stroke: var(--mint-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.6s 0.25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* footer */
.foot { padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--soft); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.foot .logo img { width: 100px; }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* the button that follows a phone down the page */
.sticky { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12); transform: translateY(140%); transition: transform 0.5s var(--ease); }
.sticky.show { transform: none; }
@media (min-width: 900px) { .sticky { display: none; } }

/* things rise into place as they come on screen; with scripting off, or reduced motion, they are just there */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.45s ease; transition-delay: calc(var(--d, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .tile.rv.in:hover, .js .rung.rv.in:hover { transform: translateY(-4px); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .glow, .fl, .dot, .step, .done, .tick svg { animation: none; }
  .tick svg { stroke-dashoffset: 0; }
  .btn, .tile, .rung, .shot img, .tile.pic img, .checks li { transition: none; }
}
