/* The referral page (/refer-a-business/, 2026-11-14). It reuses the advisory home's parts from home.css and site.css: the
   switcher's eyebrow, figures and horizon seam, the deal-team window (.screen, .pane), the section head and the light
   run. This file sets only what those parts do not, in page order: hero, steps, fit cards, questions, form. */

.refer { --measure: 1080px; } /* the width every section below the hero keeps */

/* ---------- Hero: the switcher band's ground (home.css .switcher__band), with the dawn at its foot ---------- */
.refer-hero__band { position: relative; isolation: isolate; overflow: clip; padding: 112px 0 104px; color: #fff; --dawn: 150px;
  background:
    linear-gradient(0deg, var(--dawn-glow)) 0 100% / 100% var(--dawn) no-repeat,
    radial-gradient(70% 90% at 72% 50%, #1d2030, var(--graphite) 70%) var(--graphite); }
.refer-hero__band :focus-visible { outline-color: var(--violet-on-dark); }
.refer-hero__band ::selection { background: rgba(185, 163, 232, .9); color: var(--ink); }
/* The sun (js/refer-sun.js) sits behind the copy, on the band's foot. */
.refer-hero__sun { position: absolute; right: 0; bottom: 0; z-index: -1; display: block; width: 70%; height: 100%; pointer-events: none; }
.refer-hero__copy { max-width: 600px; }
.refer-hero__h { margin: 18px 0 0; font-size: 64px; line-height: 1.02; color: #fff; text-wrap: balance; }
.refer-hero__lead { max-width: 34em; margin: 24px 0 0; text-align: left; color: rgba(255, 255, 255, .78); }
.refer-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.refer-hero__link { font-size: 14px; color: rgba(255, 255, 255, .86); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 5px; transition: text-decoration-color .2s ease; }
.refer-hero__link:hover { text-decoration-color: #fff; }
.refer-hero__figs { margin-top: 48px; }
.refer-hero__figs strong { font-size: 28px; line-height: 32px; white-space: normal; }
.refer-hero__figs span { font-size: 13px; line-height: 19px; }

/* ---------- How it works: one row per step, a drawing beside the copy, swapping sides on each row ---------- */
.refer-how { padding: 112px 0 56px; }
.refer-steps { display: grid; gap: 80px; max-width: 880px; margin: 72px auto 0; padding: 0; list-style: none; }
.refer-step { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 72px; align-items: center; }
.refer-step:nth-child(even) { grid-template-columns: minmax(0, 1fr) 340px; }
.refer-step:nth-child(even) .refer-art { order: 2; }
.refer-step__n { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px;
  background: linear-gradient(var(--stage-bot), var(--stage-bot)) padding-box, var(--spectrum-deep) border-box;
  font: 400 13px/1 var(--mono); color: var(--ink); }
.refer-step__t { margin: 22px 0 0; font-family: var(--font-display); font-weight: 300; font-size: 34px; line-height: 38px; letter-spacing: -.015em; color: var(--headline); }
.refer-step__d { margin: 12px 0 0; font-size: 16px; line-height: 25px; color: var(--muted); text-wrap: pretty; }
.refer-step__d a { color: var(--ink); text-underline-offset: 4px; }

/* The step pictures: a square whose edge is the home's spectrum ring (.journey__n), moving as the hairlines do. js/refer-steps.js
   engraves the picture inside it, as the home hero is engraved. Without JavaScript there is no picture, so the square goes. */
.refer-art { aspect-ratio: 1; border: 1.5px solid transparent; border-radius: 12px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--spectrum-deep-flow) 0 0 / 200% 100% border-box;
  box-shadow: 0 30px 60px -36px rgba(40, 50, 80, .35); animation: spectrum-flow var(--flow-slow) linear infinite; }
.refer-art canvas { display: block; width: 100%; height: 100%; border-radius: inherit; }
html:not(.js) .refer-art, html.js-failed .refer-art { display: none; }
@media (prefers-reduced-motion: reduce) { .refer-art, .refer-vp p::before { animation: none; } }

/* ---------- Which owners are the right fit: one card per deal, then the rules every business meets, once ---------- */
.refer-fit { padding: 56px 0 96px; }
.refer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: var(--measure); margin: 56px auto 0; }
.refer-card { display: flex; flex-direction: column; padding: 8px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 20px; background: rgba(255, 255, 255, .45); box-shadow: 0 0 0 1px var(--line); }
.refer-card__top { flex: 1; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(40, 50, 80, .35); }
.refer-card__name { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -.02em; color: var(--headline); }
.refer-card__name::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 18px; border-radius: 1px; background: var(--spectrum-deep); }
.refer-card__d { margin: 20px 0 24px; font-size: 15px; line-height: 23px; color: var(--muted); }
/* The home's switcher panel, small: graphite ground, hairline-topped rows, serif figures. A row opens its explanation under
   a moving spectrum line, as the home's explainer card does. */
.refer-card__panel { margin: auto 0 0; padding: 2px 18px; border-radius: 10px; color: #fff; background: radial-gradient(120% 140% at 80% 0%, #1d2030, var(--graphite) 70%) var(--graphite); }
.refer-vp + .refer-vp { border-top: 1px solid rgba(255, 255, 255, .2); }
.refer-vp > summary { position: relative; display: grid; gap: 2px; padding: 12px 26px 12px 0; cursor: pointer; list-style: none; }
.refer-vp > summary::-webkit-details-marker { display: none; }
.refer-vp > summary::after { content: ""; position: absolute; right: 3px; top: 19px; width: 7px; height: 7px; border-right: 1.5px solid rgba(255, 255, 255, .7); border-bottom: 1.5px solid rgba(255, 255, 255, .7); transform: rotate(45deg); transition: transform .25s ease, top .25s ease; }
.refer-vp[open] > summary::after { top: 23px; transform: rotate(-135deg); }
.refer-vp > summary:focus-visible { outline: 2px solid var(--violet-on-dark); outline-offset: 2px; border-radius: 4px; }
.refer-vp strong { font-family: var(--font-display); font-weight: 300; font-size: 22px; line-height: 26px; letter-spacing: -.01em; }
.refer-vp span { font-size: 13px; line-height: 19px; color: rgba(255, 255, 255, .76); }
.refer-vp p { position: relative; margin: 0 0 14px; padding-top: 12px; font-size: 13px; line-height: 19px; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.refer-vp p::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--spectrum-flow) 0 0 / 200% 100% repeat-x; animation: spectrum-flow var(--flow) linear infinite; }
.refer-card__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 10px 8px 16px; font-size: 14px; color: var(--ink); text-decoration: none; }
.refer-card__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.refer-card__link span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); }
.refer-card__link svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.refer-reqs { display: flex; flex-direction: column; align-items: center; margin-top: 48px; }
.refer-reqs__h { margin: 0; font: 400 12.5px/18px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.refer-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.refer-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; line-height: 18px; }
.refer-chips svg { flex: none; width: 14px; height: 14px; fill: none; stroke: #3454a0; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Questions: the heading left, the list right ---------- */
.refer-faq { padding: 64px 0 120px; }
.refer-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; max-width: var(--measure); }
.refer-faq__h { position: sticky; top: 120px; align-self: start; margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 52px; line-height: 1.04; letter-spacing: -.022em; color: var(--headline); }
.refer-faq__h span { display: block; color: rgba(23, 24, 26, .45); }
.refer-faq__list { border-top: 1px solid var(--line); }
.refer-faq__q { border-bottom: 1px solid var(--line); }
.refer-faq__q > summary { position: relative; padding: 20px 44px 20px 0; font-weight: 500; font-size: 17px; line-height: 24px; cursor: pointer; list-style: none; }
.refer-faq :is(.refer-faq__q, .refer-faq__all) > summary::-webkit-details-marker { display: none; }
.refer-faq__q > summary::before, .refer-faq__q > summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: currentColor; transition: transform .25s ease; }
.refer-faq__q > summary::after { transform: rotate(90deg); }
.refer-faq__q[open] > summary::after { transform: none; }
/* The control that opens the other questions; it leaves once they are open. */
.refer-faq__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 14px; line-height: 20px; color: var(--ink); cursor: pointer; list-style: none; transition: background-color .2s ease; }
.refer-faq__more:hover { background: #fff; }
.refer-faq__more::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.refer-faq__all[open] > .refer-faq__more { display: none; }
.refer-faq__a { max-width: 40em; margin: -6px 0 22px; font-size: 16px; line-height: 25px; color: var(--muted); }
.refer-faq__a > * { margin: 0; }
.refer-faq__a > * + * { margin-top: 10px; }
.refer-faq__a ol { padding-left: 1.3em; }
.refer-faq__a li + li { margin-top: 4px; }
.refer-faq__a a { color: var(--ink); text-underline-offset: 4px; }
.refer-faq__terms { margin: 24px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.refer-faq__terms a { color: var(--ink); text-underline-offset: 3px; }

/* The terms page (pages/refer-a-business/terms.html): the privacy page's rows, each holding several clauses. */
.legal__item .refer-terms__b > * + * { margin-top: 12px; }
.legal__item .refer-terms__b ul { margin-bottom: 0; padding-left: 1.2em; list-style: disc; color: var(--muted); }
.legal__item .refer-terms__b li { padding: 0; border: 0; font-size: 16px; line-height: 26px; }
.legal__item .refer-terms__b li + li { margin-top: 4px; }

/* ---------- The form: the graphite band again, the heading left and the form right in a plain card ---------- */
.refer-intro { position: relative; isolation: isolate; overflow: clip; color: #fff;
  background: radial-gradient(70% 120% at 30% 0%, #1d2030, var(--graphite) 70%) var(--graphite); }
.refer-intro__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; max-width: var(--measure); padding: 104px 0 112px; }
.refer-intro__h { position: sticky; top: 120px; margin: 0; color: #fff; text-align: left; }
.refer-form { display: grid; gap: 28px; padding: 28px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -40px rgba(0, 0, 0, .8); }
.refer-form__group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.refer-form__group legend { grid-column: 1 / -1; margin-bottom: 14px; padding: 0; font: 600 11px/16px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.refer-form__f { display: grid; align-content: start; gap: 6px; font-size: 14px; line-height: 20px; color: var(--muted); }
.refer-form__f--wide { grid-column: 1 / -1; }
/* 16px text: iOS zooms the page on a smaller field. The 3:1 edge is the field's only boundary on the card. */
.refer-form :is(input:not([type="checkbox"]), select, textarea) { width: 100%; height: 46px; padding: 0 12px; border: 1px solid rgba(23, 24, 26, .5); border-radius: 10px; background: #fff; font: 400 16px/24px var(--font-body); color: var(--ink); }
.refer-form textarea { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; }
.refer-form select { -webkit-appearance: none; appearance: none; padding-right: 36px; background: #fff url("/assets/img/chevron-down.svg") right 12px center / 16px no-repeat; }
.refer-form select:has(option[value=""]:checked) { color: var(--muted); }
.refer-form ::placeholder { color: rgba(23, 24, 26, .5); }
.refer-form :is(input, select, textarea, button, a):focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.refer-form__check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; color: var(--ink); }
.refer-form__check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.refer-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.refer-form__note { flex: 1 1 220px; margin: 0; font-size: 13px; line-height: 19px; color: var(--muted); }
.refer-form__note a { color: var(--ink); text-underline-offset: 3px; }
/* The second stage: closed until "Continue". The button leaves once it is open. */
.refer-form__continue { justify-self: start; width: fit-content; cursor: pointer; list-style: none; }
.refer-form__continue::-webkit-details-marker { display: none; }
.refer-form__rest[open] > .refer-form__continue { display: none; }
.refer-form__more { display: grid; gap: 28px; }
.refer-form__status { margin: 0; font-size: 15px; line-height: 22px; }
.refer-form__status:empty { display: none; }
/* Errors (js/refer.js): the note under a field, the field's edge, a failure that names no field. */
.refer-form__error { margin: 0; font-size: 14px; line-height: 20px; color: #9b1c1c; }
.refer-form__check + .refer-form__error { margin-top: -20px; }
.refer-form [aria-invalid="true"]:is(input:not([type="checkbox"]), select, textarea) { border-color: #9b1c1c; box-shadow: inset 0 0 0 1px #9b1c1c; }
.refer-form__check input[aria-invalid="true"] { outline: 2px solid #9b1c1c; outline-offset: 2px; }
.refer-form__status--error { color: #9b1c1c; }
/* After a send the thank-you replaces the fields (the groups set their own display, so [hidden] needs saying). */
.refer-form > [hidden] { display: none; }
.refer-form__status--done { font-family: var(--font-display); font-weight: 300; font-size: 24px; line-height: 32px; letter-spacing: -.01em; color: var(--headline); }
.refer-form__status--done:focus { outline: none; }
/* The honeypot (as careers.css .hp): off screen, out of the tab order, empty for people. */
.refer-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1099px) {
  /* The sun leaves the copy's side and rises under it, in a strip at the band's foot. */
  .refer-hero__band { padding-bottom: 300px; }
  .refer-hero__sun { width: 100%; height: 340px; }
  .refer-step { gap: 48px; }
}
@media (max-width: 809px) {
  /* The home runs its third figure across under the first two; here the three stay in one row. */
  .refer-hero__figs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; margin-top: 36px; }
  .refer-hero__figs li:last-child { grid-column: auto; }
  .refer-hero__figs strong { font-size: 22px; line-height: 26px; }
  /* Steps: copy above its window, every row the same way round. */
  .refer-steps { gap: 56px; margin-top: 48px; }
  .refer-step, .refer-step:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .refer-step .refer-art { order: 2; width: min(100%, 320px); }
  .refer-cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .refer-faq__grid, .refer-intro__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .refer-faq__h, .refer-intro__h { position: static; }
}
@media (max-width: 767px) {
  .refer-hero__band { padding: 72px 0 250px; }
  .refer-hero__sun { height: 280px; }
  .refer-hero__h { font-size: 44px; line-height: 1.04; }
  .refer-how { padding: 72px 0 32px; }
  .refer-step__t { font-size: 28px; line-height: 32px; }
  .refer-card__top { padding: 22px 18px 20px; }
  .refer-card__name { font-size: 38px; }
  .refer-faq { padding: 40px 0 88px; }
  .refer-faq__h { font-size: 38px; }
  .refer-intro__grid { padding: 72px 0 88px; }
  .refer-form { padding: 20px 16px; }
  .refer-form__group { grid-template-columns: minmax(0, 1fr); }
}
