/* Contact page (EN + AR), on top of p-company.css. Tokens from system.css only. */

/* ---------- Brand loop (aside) ---------- */
.ct-loop { --brand: #0F6E6E; margin: 0; display: grid; gap: 12px; }
.ct-loop.is-off { display: none; }
.ct-loop__view { position: relative; padding-inline-end: 14%; padding-bottom: 6%; }
.ct-loop__desk { box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--brand) 40%, var(--line-2)); transition: border-color .4s; }
.ct-loop__desk .frame__bar { height: 30px; }
.ct-loop__url em { font-style: normal; color: var(--ink); font-weight: 600; }
.ct-loop__shots { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.ct-loop__shots img, .ct-loop__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: opacity .25s var(--ease); }
.ct-loop__shots img:not(.is-on), .ct-loop__screen img:not(.is-on) { opacity: 0; }
.ct-loop__phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 27%; padding: 4px; border-radius: 20px; background: #0c0b14; border: 1px solid var(--stage-line); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6); }
.ct-loop__screen { position: relative; aspect-ratio: 1170 / 2532; border-radius: 16px; overflow: hidden; background: var(--stage); }
.ct-loop__screen img { object-position: top center; }
.ct-loop figcaption { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.ct-loop__names { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: color-mix(in oklab, var(--brand) 14%, var(--surface)); border: 1px solid color-mix(in oklab, var(--brand) 40%, transparent); font-weight: 700; font-size: .86rem; color: var(--ink); transition: background .3s, border-color .3s; }
.ct-loop__names i { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); transition: background .3s; }
.ct-loop__cap { flex: 1 1 180px; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.45; }
.ct-loop__cap b { display: inline-block; margin-inline-end: 6px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
[lang="ar"] .ct-loop__cap b { font-family: var(--f-body); letter-spacing: 0; font-weight: 700; font-size: 11px; }
.ct-loop__auto { width: 44px; height: 44px; flex: none; border-color: var(--line-2); background: var(--surface); color: var(--ink-2); }
.ct-loop:not(.is-auto) .ct-loop__auto .i-pause { display: none; }
.ct-loop:not(.is-auto) .ct-loop__auto .i-play { display: block; stroke: none; }
.ct-loop.is-auto .ct-loop__auto .i-play { display: none; }
@media (min-width: 981px) { .ct-loop.is-desk-off { display: none; } }

/* Persona shots: real screens, no zoom crop that makes text unreadable */
.ct-shot img { display: block; width: 100%; }

/* ---------- Compact steps (phone and tablet only) ---------- */
.ct-steps { display: none; list-style: none; margin: 0 0 26px; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ct-steps li { display: grid; gap: 6px; align-content: start; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; line-height: 1.3; }
.ct-steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-family: var(--f-mono); font-size: 11px; }
.ct-steps b { font-weight: 650; }

/* ---------- Proof under the submit button ---------- */
.ct-proof { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ct-proof__faces { display: inline-flex; flex: none; }
.ct-proof__faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid var(--surface); }
.ct-proof__faces img + img { margin-inline-start: -10px; }
.ct-proof p { display: grid; gap: 2px; margin: 0; font-size: var(--t-sm); line-height: 1.4; }
.ct-proof b { font-weight: 650; color: var(--ink); }
.ct-proof span { font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- Short "why" list after the form (phone and tablet only) ---------- */
.ct-why-m { display: none; list-style: none; margin: 28px 0 0; padding: 0; gap: 14px; }
.ct-why-m li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; }
.ct-why-m b { display: block; color: var(--ink); font-weight: 650; }
.ct-why-m svg { width: 18px; height: 18px; margin-top: 2px; color: var(--violet); }

/* ---------- General mode: three routes ---------- */
.ct-routes .inbox { gap: 10px; }
.ct-route { justify-self: start; min-height: 44px; margin-top: 4px; }
.ct-addr { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-3); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ct-addr { text-align: end; justify-self: start; }
@media (max-width: 900px) { .ct-routes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Success: send from your email ---------- */
.ct-send { display: grid; gap: 10px; justify-items: start; width: 100%; padding: 18px; border-radius: 14px; background: var(--violet-soft); border: 1px solid var(--violet-line); }
.ct-send p { margin: 0; color: var(--ink-2); }
.ct-send a:not(.btn) { color: var(--violet-ink); }

/* Aside rhythm */
.mail__copy { min-height: 44px; }
.mail__addr { white-space: nowrap; }

@media (max-width: 980px) {
  .ct-steps { display: grid; }
  .ct-why-m { display: grid; }
  .ct-why-m[hidden] { display: none; }
  .ct-aside .ct-next, .ct-aside .ct-why, .ct-aside [data-shot-wrap] { display: none !important; }
  .ct-aside { margin-top: 8px; }
  .ct-loop__view { padding: 0; display: grid; justify-items: center; }
  .ct-loop__desk { display: none; }
  .ct-loop__phone { position: relative; width: min(62%, 250px); }
  .ct-loop figcaption { justify-content: center; text-align: center; }
  .ct-loop__cap { flex-basis: 100%; order: 3; }
}
@media (max-width: 420px) { .mail__addr { font-size: .86rem; } }

/* Pause button (same look as the homepage's .bsw__auto, which lives in home.css) */
.ct-loop__auto { border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line-2); cursor: pointer; padding: 0; }
.ct-loop__auto:hover { color: var(--ink); border-color: var(--ink-3); }
.ct-loop__auto svg { width: 13px; height: 13px; fill: currentColor; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.ct-loop__auto .i-pause { fill: none; }
.inboxes.ct-routes a.ct-route { font-family: var(--f-body); font-size: .95rem; color: var(--b-fg); margin-top: 4px; text-decoration: none; word-break: normal; }
.inboxes.ct-routes a.ct-route:hover { text-decoration: none; }

/* ---------- Round 2 ---------- */
/* Suite modes on desktop: the brand loop leads, the persona's real screen follows as a smaller second figure */
.ct-shot.is-sub { margin-top: 6px; width: 86%; justify-self: end; }
.ct-shot.is-sub .frame__bar { height: 26px; }
.ct-shot.is-sub figcaption { font-size: var(--t-xs); }

/* Persona select: same type as every other field, never cut off */
.persona select.inp { font-family: var(--f-body); font-weight: 650; font-size: 1.05rem; letter-spacing: 0; text-overflow: ellipsis; }
@media (max-width: 520px) { .persona select.inp { font-size: 16px; } }

/* Privacy link: a real tap target */
.ct-privacy { display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px; margin-block: -12px; }

/* Success: two ways to send */
.ct-send__row { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-send[hidden] { display: none; }
@media (max-width: 520px) { .ct-send__row .btn { width: 100%; justify-content: center; } }

/* Phone and tablet: compact brand loop under the three steps, above the form */
.ct-loop.is-compact { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: center; margin: -8px 0 26px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in oklab, var(--brand) 35%, var(--line)); transition: border-color .3s; }
.ct-loop.is-compact .ct-loop__view { padding: 0; display: block; }
.ct-loop.is-compact .ct-loop__phone { position: relative; inset: auto; width: 86px; padding: 3px; border-radius: 14px; }
.ct-loop.is-compact .ct-loop__screen { border-radius: 11px; }
.ct-loop.is-compact figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; justify-content: stretch; text-align: start; align-items: center; }
.ct-loop.is-compact .ct-loop__names { justify-self: start; font-size: .82rem; padding: 5px 10px; max-width: 100%; }
.ct-loop.is-compact .ct-loop__names b { white-space: normal; line-height: 1.25; }
.ct-loop.is-compact .ct-loop__cap { grid-column: 1 / -1; order: 0; flex: none; }
.ct-loop.is-compact .ct-loop__auto { grid-row: 1; grid-column: 2; }
.done > * { max-width: 100%; min-width: 0; }
.ct-send__row .btn { white-space: normal; text-align: center; }
.mail__addr { min-height: 44px; box-sizing: border-box; }

/* Trap field for bots (contact.js sends it; the app drops any request that fills it). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
