/* The connect page (/connect/, the "Let's talk" page). After RNO1's connect page (rno1.com/connect, studied
   2026-10-20), only its "book a call" card and its form, in our type, colors and buttons; the site footer follows.
   A dark page like the hero and the footer. From 1024 px it splits in two like the footer (1fr 1fr, 16 px gap), so
   the cards line up with the footer's right half. */

.connect-page { background-color: #0c0e12; }
.connect {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --line: rgb(250 250 250 / 0.14);
  --muted: rgb(250 250 250 / 0.68);            /* 7.3:1 on Night */
  --error: #fca5a5;                            /* 9.9:1 on Night */
  color: #fafafa;
}

.connect-wrap { max-width: 1440px; margin: 0 auto; padding-inline: 24px; }
@media (min-width: 640px) { .connect-wrap { padding-inline: 32px; } }
@media (min-width: 768px) { .connect-wrap { padding-inline: 48px; } }
@media (min-width: 1024px) { .connect-wrap { padding-inline: 56px; } }

/* Room for the fixed nav bar (16 px + 64 px) above the title */
.connect-head { padding-top: 120px; padding-bottom: 40px; }
@media (min-width: 1024px) { .connect-head { padding-top: 152px; padding-bottom: 72px; } }

/* "Get in touch" across the whole width, like RNO1's: Bricolage at 700 with -0.03em tracking is 4.90 em wide
   (measured 2026-10-20), so the size is the column's width divided by that. Slate on Night is 3.2:1, enough for
   text this large; a quiet backdrop to the cards, as RNO1's gray is. */
.connect-fit { container-type: inline-size; }
.connect-title {
  margin: 0; font-family: "Bricolage Grotesque", "Bricolage Grotesque Display Fallback", ui-sans-serif, system-ui, sans-serif;   /* the 96 px cut's own fallback: sized to fill the box, the title must not overflow it before the swap */
  font-weight: 700; font-size: calc(100cqw / 4.9);
  line-height: 0.9; letter-spacing: -0.03em; color: #5b6270;
  font-variation-settings: "opsz" 96;   /* below 96 px Bricolage's optical size widens the letters; keep the display cut */
  /* The words may wrap, so a reader who widens the text spacing (WCAG 1.4.12) gets two lines, not a title wider than the
     page. The box is 0.15 em wider than the column (still inside the page's side padding at every width), so the fitted
     line never wraps by a rounding error or before the font swap. */
  margin-inline-end: -0.15em;
}

.connect-grid { display: grid; gap: 40px; padding-bottom: 96px; }
@media (min-width: 1024px) { .connect-grid { grid-template-columns: 1fr 1fr; column-gap: 16px; padding-bottom: 128px; } }

/* Email and phone, RNO1's left column */
.connect-contacts { display: grid; gap: 28px; margin: 0; }
@media (min-width: 1024px) { .connect-contacts { position: sticky; top: 120px; } }
.connect-contacts dt { color: #fafafa; }
.connect-contacts dd { margin: 4px 0 0; }
.connect-contacts a {
  color: var(--muted); text-decoration: underline; text-decoration-color: rgb(250 250 250 / 0.3);
  text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 150ms var(--ease-out), text-decoration-color 150ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .connect-contacts a:hover { color: #fafafa; text-decoration-color: currentColor; } }

.connect-cards { display: grid; gap: 16px; align-content: start; }
.connect-card { border: 1px solid var(--line); border-radius: 32px; background-color: rgb(255 255 255 / 0.035); padding: 24px; }
@media (min-width: 768px) { .connect-card { padding: 32px; } }

/* ── Book a call ── */
.connect-call { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.connect-call__photo { width: 64px; height: 64px; flex: none; border-radius: 9999px; object-fit: cover; }
.connect-call__text { flex: 1 1 200px; min-width: 0; }
.connect-call__name { margin: 0 0 2px; color: var(--muted); }
.connect-call__line { margin: 0; }

/* ── Buttons: the site's pills; they press in a little ── */
.connect-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 9999px; cursor: pointer; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 150ms var(--ease-out);
}
.connect-button:active { transform: scale(0.97); }
.connect-button--blue { background-color: #2563eb; color: #fff; }
.connect-button--white { background-color: #fafafa; color: #0c0e12; }
@media (hover: hover) and (pointer: fine) {
  .connect-button--blue:hover { background-color: #1d4ed8; }
  .connect-button--white:hover { background-color: #e5e5e5; }
}
.connect :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }

/* ── The form ── */
.connect-form { display: grid; gap: 32px; }
.connect-form__intro { margin: 0; color: var(--muted); }
.connect-form__intro strong { color: #fafafa; font-weight: inherit; }


.connect-fields { display: grid; gap: 24px 16px; }
@media (min-width: 768px) { .connect-fields { grid-template-columns: 1fr 1fr; } }
.connect-field { display: grid; gap: 8px; align-content: start; }
.connect-field--wide { grid-column: 1 / -1; }
.connect-field label { color: #fafafa; }
/* Required fields carry a *, Rahul 2026-11-16 (the inputs say required to screen readers, so the star is hidden from them) */
.connect-required { color: var(--muted); }
/* The texting consent box under Phone: a real checkbox in the chips' colors (an outline, white with a Night tick once ticked), its words
   the label, Terms and Privacy beside them. 24 px, the smallest target WCAG 2.2 AA allows; the label widens it. */
.connect-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
/* .connect-field in front, to outrank the text fields' rule below */
:is(.connect-field, .connect-texts) .connect-consent input {
  appearance: none; flex: none; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; border: 1px solid rgb(250 250 250 / 0.4); border-radius: 6px;
  background: rgb(255 255 255 / 0.03) center / 16px 16px no-repeat; cursor: pointer; transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
:is(.connect-field, .connect-texts) .connect-consent input:checked {
  border-color: #fafafa; background-color: #fafafa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0e12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
@media (hover: hover) and (pointer: fine) { :is(.connect-field, .connect-texts) .connect-consent input:not(:checked):hover { border-color: rgb(250 250 250 / 0.6); } }
@media (forced-colors: active) { :is(.connect-field, .connect-texts) .connect-consent input { appearance: auto; } }
.connect-consent__text { margin: 0; padding-top: 1px; color: var(--muted); }
.connect-consent__text label { color: var(--muted); cursor: pointer; }
.connect-consent__text a {
  color: #fafafa; text-decoration: underline; text-decoration-color: rgb(250 250 250 / 0.3); text-decoration-thickness: 1px; text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) { .connect-consent__text a:hover { text-decoration-color: currentColor; } }
.connect-field :is(input, select, textarea) {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 16px;
  background-color: rgb(255 255 255 / 0.03); color: #fafafa; font: inherit; transition: border-color 150ms var(--ease-out);
}
.connect-field textarea { min-height: 148px; resize: vertical; }
/* The how-did-you-hear dropdown: the text fields' look, a drawn arrow, and a dark list when it opens */
.connect-field select {
  appearance: none; padding-right: 44px; color-scheme: dark; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23fafafa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.connect-field select:has(option[value=""]:checked) { color: rgb(250 250 250 / 0.66); }
.connect-field select option { color: #fafafa; background-color: #14171d; }
.connect-field ::placeholder { color: rgb(250 250 250 / 0.66); opacity: 1; }   /* 4.5:1 or more on the field (Firefox would dim it again without opacity 1) */
@media (hover: hover) and (pointer: fine) { .connect-field :is(input, select, textarea):hover { border-color: rgb(250 250 250 / 0.3); } }
.connect-field [aria-invalid="true"] { border-color: var(--error); }
.connect-field__error { margin: 0; color: var(--error); }
.connect-field__error:empty { display: none; }


/* 48 px above Send's row: the form's 32 px gap and 16 more */
.connect-form__end { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
/* Cloudflare Turnstile's box takes a line of its own below Send (after it in the page, so the keyboard reaches Send first), and only
   while Cloudflare wants a click (its callbacks set data-shown); otherwise it is out of the flow and keeps no room (not display: none,
   which could keep the check from running) */
.connect-form__check { flex: 1 0 100%; }
.connect-form__check:not([data-shown]) { position: absolute; inset: 0 0 auto; height: 0; overflow: hidden; }
.connect-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.connect-form__status { flex: 1 0 100%; margin: 0; color: var(--muted); }
.connect-form__status:empty { display: none; }
.connect-form__status a { color: #fafafa; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* The button: on phones it takes the row beside Back and is 56 px tall, where it sits under the thumb */
.connect-form__send { margin-left: auto; min-width: 140px; }
@media (max-width: 639.98px) { .connect-form__send { flex: 1 1 auto; min-height: 56px; } }

/* ── The steps (Rahul, 2026-11-16): one question at a time, the choices as rows that fill in white when picked, the count and a bar ── */
.connect-steps__progress { display: flex; align-items: center; gap: 16px; margin-bottom: -8px; }
.connect-steps__count { flex: none; margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.connect-steps__bar { flex: 1; height: 4px; border-radius: 9999px; background-color: var(--line); overflow: hidden; }
.connect-steps__fill { display: block; height: 100%; border-radius: inherit; background-color: #fafafa; transform: scaleX(0.25); transform-origin: left center; transition: transform 200ms var(--ease-out); }
.connect-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.connect-step[hidden] { display: none; }
.connect-step > legend { padding: 0; margin-bottom: 24px; }
.connect-step__q { margin: 0; color: #fafafa; outline: none; }
.connect-step__error { margin: 12px 0 0; color: var(--error); }
.connect-step__error:empty { display: none; }
.connect-options { display: grid; gap: 8px; }
.connect-option { position: relative; display: block; cursor: pointer; }
.connect-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.connect-option__face {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 18px 12px 20px;
  border: 1px solid var(--line); border-radius: 16px; background-color: rgb(255 255 255 / 0.03); color: #fafafa; font-weight: 500;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out), transform 160ms var(--ease-out);
}
.connect-option__face svg { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform 150ms var(--ease-out), color 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .connect-option:hover .connect-option__face { border-color: rgb(250 250 250 / 0.4); }
  .connect-option:hover .connect-option__face svg { color: #fafafa; transform: translateX(2px); }
}
.connect-option input:checked + .connect-option__face { background-color: #fafafa; border-color: #fafafa; color: #0c0e12; }
.connect-option input:checked + .connect-option__face svg { color: #0c0e12; }
.connect-option input:focus-visible { outline: none; }
.connect-option input:focus-visible + .connect-option__face { outline: 2px solid #fafafa; outline-offset: 2px; }
.connect-option input:active + .connect-option__face { transform: scale(0.98); }
.connect-option input[aria-invalid="true"] + .connect-option__face { border-color: var(--error); }
/* The optional sentence under How soon, set off by a hairline */
.connect-problem { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.connect-problem > label { font-size: 1.0625rem; font-weight: 600; }
.connect-problem__hint { margin: 0; color: var(--muted); }
/* The contact step: one column, the texting box and the Terms box last, set alike */
.connect-step .connect-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.connect-texts .connect-consent, .connect-terms .connect-consent { margin-top: 0; }   /* the two boxes alike: same type, same color, same spacing */
.connect-consent input[aria-invalid="true"] { border-color: var(--error) !important; }
/* Back, quiet, to the left of the button */
.connect-steps__back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 16px 0 10px; border: 0; border-radius: 9999px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 160ms var(--ease-out);
}
.connect-steps__back[hidden] { display: none; }
.connect-steps__back svg { width: 20px; height: 20px; }
.connect-steps__back:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .connect-steps__back:hover { background-color: rgb(255 255 255 / 0.06); color: #fafafa; } }
.connect-steps__back:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }

/* Sent: everything in the card but the panel goes, and the status line stays for screen readers only */
.connect-form[data-sent] > :not(.connect-sent, .connect-form__end) { display: none; }
.connect-form[data-sent] .connect-form__end { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.connect-form[data-sent] .connect-form__end > :not([data-connect-status]) { display: none; }
.connect-sent { display: grid; justify-items: start; gap: 12px; }
.connect-sent[hidden] { display: none; }
.connect-sent__icon { width: 40px; height: 40px; padding: 8px; border-radius: 9999px; background-color: rgb(16 185 129 / 0.16); color: #34d399; }
.connect-sent__title { margin: 4px 0 0; color: #fafafa; outline: none; }
.connect-sent__text { max-width: 32em; margin: 0; color: rgb(250 250 250 / 0.8); }
.connect-sent__sooner { margin: 16px 0 0; color: #fafafa; }
.connect-sent__again { min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .connect-sent__again:hover { color: #fafafa; } }
@media (max-width: 639.98px) { .connect-sent .connect-button { align-self: stretch; justify-self: stretch; min-height: 56px; } }

/* ── The calendar, in a dialog over the page ── */
/* margin: auto centres the modal (the browser's own dialog:modal rule does it, but Tailwind's reset sets every margin to 0,
   which pinned the dialog to the top left corner on every page until 2026-11-09) */
.connect-dialog {
  width: min(960px, calc(100vw - 32px)); height: min(840px, calc(100dvh - 32px)); max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background-color: #fff;
  opacity: 1; transform: none; transition: opacity 200ms var(--ease-out, ease-out), transform 200ms var(--ease-out, ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete;
}
.connect-dialog:not([open]) { opacity: 0; transform: scale(0.96); }
@starting-style { .connect-dialog[open] { opacity: 0; transform: scale(0.96); } }
.connect-dialog::backdrop { background-color: rgb(12 14 18 / 0.85); }
.connect-dialog[open] { display: flex; flex-direction: column; }
/* The header: Rahul's photo, what is being booked and one line on what to do, then the close button */
.connect-dialog__head { display: flex; align-items: center; gap: 12px; flex: none; padding: 12px 12px 12px 16px; border-bottom: 1px solid #e5e7eb; color: #0c0e12; }
@media (min-width: 640px) { .connect-dialog__head { gap: 16px; padding: 16px 16px 16px 24px; } }
.connect-dialog__photo { flex: none; width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; }
/* Under 380 px the photo gives its room to the words, so the header stays short and the calendar keeps the screen */
@media (max-width: 379.98px) { .connect-dialog__photo { display: none; } }
.connect-dialog__words { flex: 1 1 auto; min-width: 0; }
.connect-dialog__title { margin: 0; font-weight: 600; color: #0c0e12; }
.connect-dialog__line { margin-top: 2px; color: #5b6270; }
/* The calendar fills the rest; the loading line sits behind it and goes once the frame has loaded */
.connect-dialog__body { position: relative; flex: 1 1 auto; min-height: 0; }
.connect-dialog__loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #5b6270; }
.connect-dialog[data-loaded] .connect-dialog__loading { display: none; }
.connect-dialog iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; opacity: 0; }
.connect-dialog[data-loaded] iframe { opacity: 1; }
/* The page behind stays put while the calendar is open */
html.connect-locked { overflow: hidden; }
.connect-dialog__close {
  position: relative; flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 9999px; background-color: #0c0e12; color: #fafafa; cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.connect-dialog__close:active { transform: scale(0.97); }
.connect-dialog__close:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.connect-dialog__close svg { width: 20px; height: 20px; }

/* Reduced motion: the colors still change gently, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .connect-dialog__close, .connect-dialog { transition: none; }
  .connect-button { transition: background-color 150ms var(--ease-out); }
  .connect-option__face, .connect-option__face svg, .connect-steps__fill, .connect-steps__back { transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out); }
  .connect-button:active, .connect-dialog__close:active { transform: none; }
  .connect-option input:active + .connect-option__face, .connect-steps__back:active { transform: none; }
}

/* The footer's line on where we are and who we serve is left off this page (Rahul, 2026-11-16); the footer's markup stays the shell's
   (docs/pages/make-pages.py checks every page's footer against it), so the line is hidden here */
