/* The clinic, software and Apply pages (/clinics/, /software/, /apply/): what they add to
   site.css, which is the homepage's own style, copied as it is. */

/* Fonts from our own site (SIL Open Font License), like the proposals, so a
   slow phone connection waits on no one else. */
@font-face { font-family: Inter; font-weight: 400 700; font-display: swap; src: url(../proof/inter-latin.woff2) format('woff2'); }
@font-face { font-family: Sora; font-weight: 600 800; font-display: swap; src: url(../proof/sora-latin.woff2) format('woff2'); }

/* The form is the first thing people see: a short headline and proof on the
   left, the questions on the right (on a phone, right under the headline). */
.lp .hero { padding: 56px 0 64px; }
.lp .hero .fit { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.lp h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 18px 0 16px; }
.lp .lede { max-width: 640px; margin: 0 0 22px; }
.lp .eyebrow { line-height: 1.4; border-radius: 14px; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: 16px; margin: 0 0 6px; }
.proof b { color: var(--white); font-family: var(--head); font-weight: 800; }
.fine { color: var(--faint); font-size: 14px; margin: 14px 0 0; }
.fine strong { color: var(--text); font-weight: 600; }

/* The video (Etienne, 3 minutes): on a computer, a column of its own between
   the headline and the questions, so all three are at the top. On a phone a
   small card stands in for it and opens it full screen (vsl.js), so the
   questions stay near the top. */
@media (min-width: 961px) {
  .lp .hero .fit { grid-template-columns: minmax(0, 1fr) clamp(220px, 22vw, 290px) minmax(0, 1.1fr); gap: 40px; }
  .lp h1 { font-size: clamp(32px, 3.3vw, 46px); }
}
.vsl-card, .vsl-close, .vsl-start { display: none; }
.vsl-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.vsl-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vsl-play {
  position: absolute; inset: 0; width: 100%; display: grid; place-items: center;
  border: 0; background: rgba(0, 0, 0, 0.12); color: var(--white); cursor: pointer;
}
.vsl-play[hidden] { display: none; }
.vsl-play svg { width: 66px; height: 66px; padding: 20px 17px 20px 23px; border-radius: 50%; background: var(--red); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); transition: transform 0.15s ease; }
.vsl-play:hover svg { transform: scale(1.06); }
.vsl-time { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 8px; background: rgba(0, 0, 0, 0.65); font: 600 13px/1 var(--body); }
.vsl-note { color: var(--faint); font-size: 14px; margin: 10px 0 0; }

/* Back to the questions, for people who read to the end */
.again { text-align: center; }
.again p { color: var(--muted); font-size: 18px; margin: 14px 0 26px; }

/* The pains, as people say them */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.pain q { display: block; font: 700 21px/1.3 var(--head); color: var(--white); quotes: "\201C" "\201D"; }
.pain p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }

/* The form, one question at a time */
.fit { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.quiz { background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px; scroll-margin-top: 80px; }
.progress { display: flex; justify-content: space-between; color: var(--faint); font-size: 14px; margin-bottom: 10px; }
.bar { height: 6px; border-radius: 999px; background: var(--ink-3); overflow: hidden; margin-bottom: 26px; }
.bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width 0.25s ease; }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz fieldset[hidden] { display: none; }
.quiz legend { font: 700 22px/1.3 var(--head); color: var(--white); padding: 0; margin-bottom: 18px; }
.quiz .hint { color: var(--faint); font-size: 14px; margin: -8px 0 16px; }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: block; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--ink); color: var(--text); font-size: 16px; line-height: 1.35;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover span { border-color: #4A4A53; }
.choice input:checked + span { border-color: var(--red); background: var(--red-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.field small { display: block; color: var(--faint); font-size: 13px; margin-top: 6px; }
.quiz input[type="text"], .quiz input[type="email"], .quiz input[type="tel"], .quiz textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--ink); color: var(--text); font: 16px/1.4 var(--body);
}
.quiz textarea { min-height: 96px; resize: vertical; }
.quiz input:focus, .quiz textarea:focus { outline: none; border-color: var(--red); }
.tel { display: flex; }
.tel b { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--ink-3); color: var(--muted); font-weight: 600; font-size: 16px; }
.tel input[type="tel"] { border-radius: 0 12px 12px 0; }
.err { display: none; color: #FF6B70; font-size: 14px; margin: 12px 0 0; }
.err.on { display: block; }
.nav { display: flex; gap: 10px; margin-top: 22px; }
.nav .btn { cursor: pointer; border: 0; }
.nav .btn[hidden] { display: none; }
.nav .btn-ghost { background: transparent; border: 1px solid var(--line); }
.nav .next, .nav .send { flex: 1; }
.privacy { color: var(--faint); font-size: 13px; margin: 14px 0 0; }
.privacy a { color: var(--muted); }
.done h3 { font-size: 26px; margin-bottom: 12px; }
.done p { color: var(--muted); margin: 0 0 14px; }
.done[hidden] { display: none; }

/* The Apply page (/apply/): the industry tiles, two to a row, the box for an
   industry that isn't listed, and the country in front of the phone. */
.tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles .choice span { height: 100%; padding: 11px 13px; font-weight: 600; font-size: 15px; }
.tiles .choice small { display: block; margin-top: 3px; color: var(--faint); font-weight: 400; font-size: 13px; line-height: 1.3; }
.tiles .choice.wide { grid-column: 1 / -1; }
/* No video column here: headline and questions, side by side, three tiles to a row. */
@media (min-width: 961px) {
  .apply .hero .fit { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles .choice.wide { grid-column: auto; }
}
.other-box { margin: 14px 0 0; }
.other-box[hidden] { display: none; }
.field > label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.tel select {
  flex: none; padding: 0 8px 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px;
  background: var(--ink-3); color: var(--text); font: 600 15px/1 var(--body); cursor: pointer;
}
.tel select:focus { outline: none; border-color: var(--red); }

@media (max-width: 960px) {
  .fit, .lp .hero .fit { grid-template-columns: 1fr; gap: 26px; }
  .vsl { margin: -12px 0 -10px; }
  .vsl-note { display: none; }
  .vsl-card {
    display: flex; align-items: center; gap: 12px; max-width: 520px; padding: 7px 12px 7px 7px;
    background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none;
  }
  .vsl-thumb { position: relative; flex: none; }
  .vsl-thumb img { display: block; width: 60px; height: 80px; border-radius: 9px; }
  .vsl-thumb svg { position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; padding: 8px 6px 8px 9px; border-radius: 50%; background: var(--red); color: var(--white); box-shadow: 0 0 0 3px var(--ink-2); }
  .vsl-card b { display: block; font: 700 15px/1.3 var(--head); color: var(--white); }
  .vsl-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
  .vsl-box { display: none; position: fixed; inset: 0; z-index: 50; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px 16px 18px; background: #0B0B0D; }
  .vsl.open .vsl-box { display: flex; }
  .vsl-box .vsl-frame { width: auto; max-width: 100%; height: calc(100vh - 156px); height: calc(100dvh - 156px); max-height: calc((100vw - 32px) * 16 / 9); }
  .vsl-close {
    display: grid; place-items: center; position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: var(--ink-3); color: var(--white); font: 400 28px/1 var(--body); cursor: pointer;
  }
  .vsl-start { display: flex; width: 100%; max-width: 360px; }
  html.vsl-on { overflow: hidden; }
}
@media (max-width: 720px) {
  .lp .hero { padding: 22px 0 40px; }
  .lp h1 { font-size: clamp(29px, 8.2vw, 38px); margin: 12px 0 10px; }
  .lp .lede { font-size: 16px; margin: 0 0 12px; }
  .proof { font-size: 14px; gap: 2px 16px; }
  .lp .hero .fine { display: none; }
  .lp .eyebrow { letter-spacing: 0.07em; }
  .pains { grid-template-columns: 1fr; }
  .quiz { padding: 22px 18px; }
  .quiz legend { font-size: 20px; }
  .phone-bar.away { display: none; }
}
