/* Shared structure for both sites (keep the two copies identical).
   Look and feel comes from the variables and layout in each site's site.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; text-wrap: balance; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
}
.role-name { white-space: normal; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .28em;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--btn-bg); border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-block { width: 100%; }
.btn-link {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  color: var(--muted); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:hover { color: var(--ink); }

/* ---------- Application form ---------- */
.funnel {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 28px 24px 24px;
  scroll-margin-top: 16px;
  text-align: left;
  min-width: 0;
}
.funnel-head { margin-bottom: 22px; }
.funnel-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.funnel-meta .eyebrow { color: var(--muted); }
.funnel-time { font-size: .82rem; color: var(--muted); }
.progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33.33%; background: var(--accent); transition: width .3s ease; }

.step { display: none; }
.step.is-active { display: block; animation: step-in .25s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .step.is-active { animation: none; }
  html { scroll-behavior: auto; }
}
.step h2 { font-size: 1.45rem; outline: none; }
.step-sub { color: var(--muted); font-size: .95rem; margin: 6px 0 20px; }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 18px 16px; min-height: 92px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.pay-card:hover { border-color: var(--accent); }
.pay-card.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pay-amt { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.pay-unit { font-size: .85rem; color: var(--muted); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 16px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input { border-color: var(--danger); }
.field-error, .file-error { display: block; min-height: 0; color: var(--danger); font-size: .84rem; margin-top: 5px; }
.field-error:empty, .file-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.step-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.step-actions .btn { flex: 1; }
.back {
  background: none; border: 0; padding: 12px 4px; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: .95rem;
}
.back:hover { color: var(--ink); }
.consent { font-size: .78rem; line-height: 1.5; color: var(--muted); margin-top: 14px; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 30px 18px; text-align: center; cursor: pointer;
  background: var(--accent-soft); border: 1.5px dashed var(--accent); border-radius: var(--radius-sm);
  transition: background-color .15s;
}
.dropzone:hover, .dropzone.is-drag { background: var(--surface); }
.dropzone.has-error { border-color: var(--danger); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone svg { width: 30px; height: 30px; color: var(--accent-text); margin-bottom: 4px; }
.dropzone strong { font-size: 1rem; }
.dropzone span { font-size: .84rem; color: var(--muted); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-chip {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1.5px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft);
}
.file-chip svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); }
.file-chip div { flex: 1; min-width: 0; }
.file-chip strong { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip span { font-size: .82rem; color: var(--muted); }
.skip-row { text-align: center; margin-top: 8px; }
.form-error {
  margin-top: 14px; padding: 12px 14px; font-size: .9rem;
  color: var(--danger); background: var(--danger-soft); border-radius: var(--radius-sm);
}
.is-sending .btn[data-submit] .label-idle, .btn[data-submit] .label-busy { display: none; }
.is-sending .btn[data-submit] .label-busy { display: inline; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
.review {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 28px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.stars { color: var(--star); letter-spacing: 3px; font-size: 1rem; }
.review blockquote { font-size: 1rem; line-height: 1.65; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.rev-initials {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
  font-weight: 700; font-size: .85rem;
}
.review figcaption strong { display: block; font-size: .95rem; }
.review figcaption span { font-size: .84rem; color: var(--muted); }
.sample-tag {
  position: absolute; top: 14px; right: 14px; padding: 2px 8px;
  border: 1px dashed var(--muted); border-radius: 4px;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 32px auto 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent-text); line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ---------- Footer ---------- */
.site-foot { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Sticky apply bar (phones, once the form is off-screen) ---------- */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .25);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { width: 100%; min-height: 50px; }
  body[data-page="landing"] .site-foot { padding-bottom: 96px; }
}

/* ---------- Thank-you page ---------- */
.ty { max-width: 680px; margin: 0 auto; padding: 56px 20px 80px; }
.ty-check {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 24px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
}
.ty-check svg { width: 28px; height: 28px; }
.ty h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 10px 0 14px; }
.ty-lede { font-size: 1.1rem; color: var(--muted); }
.ty-alert {
  margin: 32px 0; padding: 22px 22px 22px 20px;
  background: var(--alert-bg); border: 1px solid var(--alert-line); border-left: 5px solid var(--alert-line);
  border-radius: var(--radius-sm); color: var(--alert-ink);
}
.ty-alert h2 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.ty-alert p + p { margin-top: 8px; }
.ty-steps { counter-reset: ty; border-top: 1px solid var(--line); }
.ty-steps li {
  counter-increment: ty; position: relative; padding: 22px 0 22px 56px; border-bottom: 1px solid var(--line);
}
.ty-steps li::before {
  content: counter(ty); position: absolute; left: 0; top: 22px;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1.5px solid var(--accent); border-radius: 50%;
  font-family: var(--font-head); font-weight: 600; color: var(--accent-text);
}
.ty-steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.ty-steps p { color: var(--muted); }
.ty-sign { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.ty-sign img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ty-sign strong { display: block; }
.ty-sign span { font-size: .9rem; color: var(--muted); }

@media (max-width: 860px) {
  .section { padding: 48px 0; }
  .review-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .review { padding: 24px 20px; }
  .lede, .step-sub, .faq-list details p { text-wrap: pretty; }
  .faq-list summary { padding: 18px 0; font-size: 1rem; }
  .site-foot .wrap { flex-direction: column; }
  .ty { padding: 36px 20px 64px; }
  .ty-alert { margin: 24px 0; padding: 18px 16px; }
  .ty-steps li { padding-left: 50px; }
}
@media (max-width: 420px) {
  .funnel { padding: 22px 16px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .pay-card { padding: 14px 12px; min-height: 82px; }
  .pay-amt { font-size: 1.12rem; }
}
