/* css/operators-page.css: the Operators page (/operators/) and the operator
 * sign-up it opens (/operators/signup/).
 *
 * Robert's prototype "Airmango app", Desktop › Website › Operators page and
 * Operator sign-up: your place, the deal, your account (6 and 7 Nov 2026). The
 * values are the Airmango design system's (his ds.css) and each screen's own
 * layout, which the prototype writes as inline styles and this file names.
 * Only what these screens use is here, scoped to .ops.
 *
 * The top bar and the footer are the site's own (css/site-header.css,
 * js/site-footer.js, styled by css/ready-trips.css under body.rt), so the
 * palette tokens --p-* come from ready-trips.css :root.
 *
 * PHONES. The prototype draws these screens for a desktop only ("Mobile is
 * next"). Until that is drawn, a window of 720px or less gets the design
 * system's own phone sizes (t-hero-phone, t-section-phone, the phone gutter)
 * on the same page, one column. It is a stopgap, not a design.
 */

.ops {
  --shadow-phone: 30px 40px 60px rgba(0, 0, 0, 0.15);
  --space-gutter: 56px;
  --space-gutter-phone: 16px;
  --space-section: 104px;
  --space-section-phone: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-display: Poppins, sans-serif;
  --font-text: Inter, sans-serif;
  --p-on-accent: #ffffff;
  background: var(--p-page);
  color: var(--p-ink);
  font: 400 16px/normal var(--font-text);
  -webkit-font-smoothing: antialiased;
}
.ops :where(h1, h2, h3, p, ol, ul, figure) { margin: 0; }
.ops :where(ol, ul) { padding: 0; list-style: none; }
.ops :where(img) { display: block; }
.ops [hidden] { display: none !important; }

/* the type scale (zero specificity, as in the design system, so the page rules below win) */
:where(.ops) :where(.t-hero) { font: 700 60px/1.05 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
:where(.ops) :where(.t-section) { font: 700 36px/1.15 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
:where(.ops) :where(.t-band) { font: 700 28px/1.2 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
:where(.ops) :where(.t-title) { font: 600 18px/1.2 var(--font-display); text-wrap: balance; }
:where(.ops) :where(.t-lead) { font: 400 20px/1.45 var(--font-text); color: var(--p-text2); }
:where(.ops) :where(.t-body) { font: 400 16px/1.55 var(--font-text); }
:where(.ops) :where(.t-note) { font: 400 14px/1.45 var(--font-text); color: var(--p-text2); }
:where(.ops) :where(.t-stop) { font: 600 14px/1.3 var(--font-text); }
:where(.ops) :where(.t-meta) { font: 400 12.5px/1.3 var(--font-text); color: var(--p-text2); }

/* Button */
:where(.ops) .am-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; padding: 16px 32px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--p-accent); color: var(--p-on-accent); font: 600 16px/1.2 var(--font-text); white-space: nowrap; text-decoration: none; cursor: pointer; }
:where(.ops) .am-btn:hover { background: var(--p-accent-hover); }
:where(.ops) .am-btn.block { display: flex; width: 100%; }
:where(.ops) .am-btn:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 3px; }
:where(.ops) .am-btn[disabled] { opacity: 0.6; cursor: default; }

/* Search: a field and its button */
:where(.ops) .am-search { display: flex; gap: 10px; }
:where(.ops) .am-field { position: relative; flex: 1 1 0%; min-width: 0; display: block; }
:where(.ops) .am-field svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--p-text2); }
:where(.ops) .am-input { width: 100%; box-sizing: border-box; height: 56px; padding: 0 14px 0 48px; border: 1px solid var(--p-line); border-radius: var(--radius-sm); background: var(--p-card); color: var(--p-ink); font: 500 17px var(--font-text); }
:where(.ops) .am-input::placeholder { color: var(--p-text2); font-weight: 400; }
:where(.ops) .am-input:focus { border-color: var(--p-ink); outline: none; }
.ops .am-input[type="search"]::-webkit-search-cancel-button { display: none; }

/* Step number */
:where(.ops) .am-dot { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; background: var(--p-dot-fill, var(--p-page)); color: var(--p-dot-num, var(--p-ink)); border: 2px solid var(--p-dot-line, var(--p-ink)); font: 700 16px var(--font-display); }

/* Panel */
:where(.ops) .am-panel { background: var(--p-panel); color: var(--p-on-panel, var(--p-ink)); border-radius: var(--radius-lg); }

/* Questions */
:where(.ops) .am-faq { border-top: 1px solid var(--p-line); }
:where(.ops) .am-faq details { border-bottom: 1px solid var(--p-line); }
:where(.ops) .am-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 600 18px/1.25 var(--font-display); cursor: pointer; list-style: none; }
:where(.ops) .am-faq summary::-webkit-details-marker { display: none; }
:where(.ops) .am-faq summary svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--p-text2); transition: transform 0.2s; }
:where(.ops) .am-faq details[open] summary svg { transform: rotate(180deg); }
:where(.ops) .am-faq details p { margin-top: -6px; padding-bottom: 22px; font-size: 16px; line-height: 1.55; color: var(--p-text2); max-width: 60ch; }
:where(.ops) .am-faq summary:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 3px; }

.ops-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* The site's top bar on these screens: the prototype marks the page you are on in pink,
   at the links' own weight (the shared bar makes it bold instead). */
.rt .nav-center a.active { color: var(--p-accent); font-weight: 500; }

/* ── the Operators page ─────────────────────────────────────────────── */

.ops-sec { max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding-left: var(--space-gutter); padding-right: var(--space-gutter); }

/* the hero: the words and the business field, with three screens of the app beside them */
.ops-hero { padding-top: 64px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.ops-hero-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ops-hero-text .t-hero { max-width: 720px; }
.ops-hero-text .t-lead { max-width: 600px; }
.ops-hero-text .am-search { max-width: 600px; }
.ops-phones { flex: 1 1 480px; max-width: 560px; position: relative; aspect-ratio: 540 / 560; }
.ops-phone { position: absolute; bottom: 0; width: 38%; margin: 0; box-sizing: border-box; border: 6px solid var(--p-ink); border-radius: 32px; overflow: hidden; background: var(--p-ink); box-shadow: var(--shadow-phone); }
.ops-phone.is-left { left: 0; }
.ops-phone.is-right { right: 0; }
.ops-phone.is-mid { left: 27%; bottom: 24px; width: 46%; z-index: 1; border-width: 7px; border-radius: 38px; }
.ops-phone img { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1170; }

/* A creator sent this page (/operators/?invite=<creator>): who, above the headline.
   Not in the prototype; it stays from the page before, so a creator's link still says who sent it. */
.ops-via { display: flex; align-items: center; gap: 10px; font: 400 15px/1.4 var(--font-text); color: var(--p-text2); }
.ops-via-av { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--p-surface2) center / cover no-repeat; }
.ops-via b { font-weight: 600; color: var(--p-ink); }

/* Why Airmango */
.ops-why { padding-top: 96px; padding-bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ops-why .t-hero { max-width: 900px; }

/* a reason: three points beside a picture */
.ops-reason { padding-top: 96px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px 96px; }
.ops-reason.is-first { padding-top: 80px; }
.ops-reason-text { flex: 999 1 520px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.ops-points { display: flex; flex-direction: column; gap: 18px; }
.ops-points > div { display: flex; flex-direction: column; gap: 6px; }
.ops-points .t-body { max-width: 540px; color: var(--p-text2); }
.ops-reason-pic { flex: 1 1 380px; max-width: 540px; margin: 0; }
.ops-reason-pic img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-md); }

/* Questions */
.ops-questions { padding-top: var(--space-section); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 96px; }
.ops-questions > .t-section { flex: 1 1 320px; max-width: 480px; }
.ops-questions > .am-faq { flex: 999 1 560px; min-width: 0; }

/* the closing band */
.ops-close { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.ops-close .am-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 64px; padding: 48px 56px; }
.ops-close-text { display: flex; flex-direction: column; gap: 8px; }
.ops-close-text .t-note { color: var(--p-on-panel-2, var(--p-text2)); }
.ops-close .am-search { flex: 1 1 480px; max-width: 640px; }

/* ── Operator sign-up: your place, the deal, your account ───────────── */

.su { margin: 0 auto; box-sizing: border-box; padding: 48px 16px 96px; display: flex; flex-direction: column; }
.su[data-screen="place"] { max-width: 720px; gap: 24px; }
.su[data-screen="deal"] { max-width: 1040px; gap: 32px; }
.su[data-screen="account"] { max-width: 560px; gap: 28px; }
/* Three screens on one page: each screen's parts sit straight in .su's column, as the prototype's do. */
.su > [data-view] { display: contents; }
.su a { color: var(--p-ink); }
.su a:hover { color: var(--p-accent); }
.su a.am-btn, .su a.am-btn:hover { color: var(--p-on-accent); }

/* the three steps, across the top */
.su-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.su[data-screen="place"] .su-steps { margin-bottom: 16px; }
.su-steps li { display: flex; align-items: center; gap: 10px; color: var(--p-text2); }
.su-steps li .t-stop { font-weight: 500; }
.su-steps li > span:first-child { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--p-surface2); display: inline-flex; align-items: center; justify-content: center; font: 700 13px/1 var(--font-text); }
.su-steps li[aria-current="step"] { color: var(--p-ink); }
.su-steps li[aria-current="step"] .t-stop { font-weight: 600; }
.su-steps li[aria-current="step"] > span:first-child { background: var(--p-ink); color: var(--p-on-accent); }
.su-steps li.is-done > span:first-child { color: var(--p-ink); }

/* your place: the places Google finds */
.su-found { display: flex; flex-direction: column; gap: 10px; }
.su-pick { display: flex; flex-direction: column; gap: 4px; }
.su-pick button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 0; border-radius: var(--radius-md); background: none; color: var(--p-ink); text-align: left; font: inherit; cursor: pointer; }
.su-pick button:hover, .su-pick button:focus-visible, .su-pick li:first-child button { background: var(--p-surface2); }
.su-pick:hover li:first-child button:not(:hover) { background: none; }
.su-pick button:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.su-pick button[disabled] { cursor: default; opacity: 0.6; }
.su-pick-pin { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--p-surface2); display: inline-flex; align-items: center; justify-content: center; }
.su-pick button:hover .su-pick-pin, .su-pick button:focus-visible .su-pick-pin, .su-pick li:first-child button .su-pick-pin { background: var(--p-card); }
.su-pick:hover li:first-child button:not(:hover) .su-pick-pin { background: var(--p-surface2); }
.su-pick-words { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.su-pick-go { flex: none; color: var(--p-text2); }
.su-pick button:hover .su-pick-go, .su-pick li:first-child button .su-pick-go { color: var(--p-ink); }
.su-found-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.ops .su-found-foot a { color: inherit; text-decoration: underline; }
.ops .su-found-foot a:hover { color: var(--p-ink); }
.su-say { font: 400 15px/1.5 var(--font-text); color: var(--p-ink); }
.su-say a { text-decoration: underline; }

/* the deal */
.su-head { display: flex; flex-direction: column; gap: 18px; }
.su-place { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.su-place-pic { width: 52px; height: 52px; flex: none; border-radius: var(--radius-sm); background: var(--p-surface2) center / cover no-repeat; display: inline-flex; align-items: center; justify-content: center; color: var(--p-text2); }
.su-place-words { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.su-place .t-note { text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; }
.su-place .t-note:hover { color: var(--p-accent); }
.su-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.su-cards li { box-sizing: border-box; padding: 26px 26px 28px; border-radius: var(--radius-lg); background: var(--p-surface2); display: flex; flex-direction: column; gap: 10px; }
.su-cards .t-body { color: var(--p-text2); }
.su-rules { display: flex; flex-direction: column; gap: 10px; }
.su-rules ol { display: flex; flex-direction: column; border-top: 1px solid var(--p-line); }
.su-rules li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--p-line); }
.su-rules .am-dot { width: 32px; height: 32px; flex: none; font-size: 14px; border-width: 1.5px; }
.su-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* your account */
.su-title { display: flex; flex-direction: column; gap: 8px; }
.su-form { display: flex; flex-direction: column; gap: 18px; }
.su-form label { display: flex; flex-direction: column; gap: 6px; }
.su-form .am-input { height: 52px; padding: 0 14px; }
.su-form .am-btn { margin-top: 6px; }
.su-form .t-meta a { color: inherit; text-decoration: underline; }
.su-error { font: 500 14px/1.45 var(--font-text); color: var(--p-accent); }
.su-error a { color: inherit; text-decoration: underline; font-weight: 600; }

/* ── a phone: one column, in the design system's phone sizes (a stopgap) ── */
@media (max-width: 720px) {
  .ops-sec { padding-left: var(--space-gutter-phone); padding-right: var(--space-gutter-phone); }
  .ops .t-hero { font-size: 36px; line-height: 1.04; letter-spacing: -1.3px; }
  .ops .t-section { font-size: 24px; line-height: 1.18; }
  .ops .t-band { font-size: 22px; }
  .ops .t-lead { font-size: 17px; }
  .ops .am-search { flex-direction: column; }
  .ops .am-search .am-btn { width: 100%; }
  .ops-hero { padding-top: 20px; padding-bottom: 56px; gap: 40px; }
  .ops-hero-text { flex-basis: 100%; gap: 18px; }
  .ops-phones { flex-basis: 100%; }
  .ops-phone { border-width: 4px; border-radius: 22px; }
  .ops-phone.is-mid { border-width: 5px; border-radius: 26px; }
  .ops-why { padding-top: var(--space-section-phone); padding-bottom: 0; }
  .ops-reason, .ops-reason.is-first { padding-top: 48px; gap: 24px; }
  .ops-reason-text, .ops-reason-pic { flex-basis: 100%; }
  .ops-reason.is-flip .ops-reason-pic { order: 2; }
  .ops-questions { padding-top: var(--space-section-phone); gap: 12px; }
  .ops-questions > .t-section, .ops-questions > .am-faq { flex-basis: 100%; }
  .ops-close { padding-top: var(--space-section-phone); padding-bottom: var(--space-section-phone); }
  .ops-close .am-panel { padding: 28px 20px 22px; border-radius: 18px; }
  .ops-close .am-search { flex-basis: 100%; }
  .su { padding: 24px 16px 64px; }
  .su-steps { gap: 8px 16px; }
  .su-cards { grid-template-columns: 1fr; gap: 12px; }
  .su-cards li { padding: 20px; }
}

/* Working ("Creating your account…"): a small turning circle before the words. This button is only shut while
   the account is being made (operators/signup/signup.js). */
@keyframes su-turn { to { transform: rotate(360deg); } }
.su .am-btn[data-create][disabled]::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: su-turn .7s linear infinite; }
