/* /call (views.call): the /support page's centred card, with a heading above,
   an optional WhatsApp box on top, a searchable country-code picker and a
   50-character meter on the description. Tokens only, so both themes work. */

.cl-page { max-width: 760px; margin: 0 auto; padding: 48px 24px 100px; }
.cl-head { margin-bottom: 24px; }
.cl-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }
.cl-head h1 { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: -.03em; color: var(--text-strong); margin: 8px 0 10px; text-wrap: balance; }
.cl-head p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-muted); max-width: 56ch; }

.cl-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 30px 28px; box-shadow: var(--shadow-md); }

/* WhatsApp: a muted green so it leads without shouting. */
/* Who takes the call (top of the form card): round photo with the nerd-face badge cut into its lower-right edge
   (the ring is the box's own colour, --host-bg), name, LinkedIn button. */
.cl-host { --host-bg: color-mix(in srgb, var(--text-strong) 3%, var(--surface-card)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 16px 20px 16px 16px; margin-bottom: 24px; border-radius: var(--radius-md); background: var(--host-bg); border: 1px solid var(--border-subtle); }
.cl-host-photo { position: relative; display: block; width: 72px; height: 72px; }
.cl-host-photo > img { display: block; width: 72px; height: 72px; box-sizing: border-box; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface-card); box-shadow: 0 0 0 1px var(--border-subtle), 0 10px 22px -12px rgba(20, 18, 15, .5); }
.cl-host-emoji { position: absolute; left: 53px; top: 51px; width: 26px; height: 26px; box-sizing: border-box; padding: 2px; border-radius: 50%; background: var(--host-bg); }
.cl-host-emoji img { display: block; width: 22px; height: 22px; }
.cl-host b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--text-strong); }
.cl-host div span { font-size: 13.5px; color: var(--text-muted); }
.cl-host-btn { height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); background: var(--surface-card); color: var(--text-strong); font-family: var(--font-body); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; transition: background var(--duration-fast) var(--ease-standard); }
.cl-host-btn:hover, .cl-host-btn:focus-visible { background: var(--surface-hover); color: var(--text-strong); text-decoration: none; }
.cl-host-btn svg { width: 18px; height: 18px; }
.cl-host-btn svg rect { fill: currentColor; }
.cl-host-btn svg path { fill: var(--surface-card); }
.cl-wa { --wa: #2F7A55; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 24px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--wa) 6%, var(--surface-card)); border: 1px solid var(--border-subtle); }
.cl-wa-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; }
.cl-wa-ic svg { width: 26px; height: 26px; }
.cl-wa b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--text-strong); }
.cl-wa div span { font-size: 13.5px; color: var(--text-muted); }
.cl-wa-btn { height: 44px; padding: 0 18px; border-radius: var(--radius-pill); background: var(--wa); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.cl-wa-btn:hover, .cl-wa-btn:focus-visible { background: #245F42; color: #fff; text-decoration: none; }
.cl-wa-btn svg { width: 15px; height: 15px; }
.cl-or { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }
.cl-or::before, .cl-or::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }

/* Fields */
.cl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cl-field { display: grid; align-content: start; gap: 7px; margin-bottom: 18px; min-width: 0; }
.cl-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--text-strong); }
.cl-label small { font-weight: 500; font-size: 12.5px; color: var(--text-subtle); }
.cl-ctl { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 13px; min-width: 0; border: 1px solid var(--border-default); border-radius: var(--radius-control); background: var(--surface-card); transition: var(--transition-control); }
.cl-ctl:focus-within, .cl-cc-btn:focus-visible, .cl-cc-btn[aria-expanded="true"], .cl-field textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent); outline: 0; }
.cl-ctl svg { width: 16px; height: 16px; color: var(--text-subtle); flex: none; }
.cl-ctl input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text-strong); }
.cl-ctl.is-locked { background: var(--surface-sunken); }
.cl-ctl.is-locked input { color: var(--text-muted); cursor: not-allowed; }
.cl-field textarea { width: 100%; min-height: 140px; resize: vertical; padding: 12px 13px; border: 1px solid var(--border-default); border-radius: var(--radius-control); background: var(--surface-card); font: inherit; font-size: 15px; color: var(--text-strong); }
.cl-ctl input::placeholder, .cl-field textarea::placeholder { color: var(--text-subtle); }
.cl-msg { font-size: 12.5px; color: var(--text-muted); }
.cl-err { color: var(--status-danger); }
.cl-field.is-bad .cl-ctl, .cl-field.is-bad textarea { border-color: var(--status-danger); }
.cl-field.is-bad .cl-hint { display: none; }

/* Country code picker */
.cl-phone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.cl-cc { position: relative; }
.cl-cc-btn { height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: var(--radius-control); background: var(--surface-card); font-family: var(--font-body); font-weight: 500; font-size: 14.5px; color: var(--text-strong); cursor: pointer; white-space: nowrap; }
.cl-cc-btn svg { width: 14px; height: 14px; color: var(--text-muted); }
.cl-iso { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; padding: 2px 5px; border-radius: 4px; background: var(--surface-sunken); color: var(--text-muted); }
.cl-cc-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(340px, calc(100vw - 48px)); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); overflow: hidden; }
.cl-cc-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); }
.cl-cc-search svg { width: 15px; height: 15px; color: var(--text-subtle); flex: none; }
.cl-cc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--text-strong); }
.cl-cc-list { list-style: none; margin: 0; padding: 4px; max-height: 280px; overflow-y: auto; }
.cl-cc-list li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text-body); }
.cl-cc-list li .cl-li-iso { font-family: var(--font-mono); font-size: 11px; color: var(--text-subtle); }
.cl-cc-list li .cl-li-code { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cl-cc-list li[aria-selected="true"] { color: var(--text-strong); font-weight: 600; }
.cl-cc-list li.is-active { background: var(--surface-hover); }
.cl-cc-empty { padding: 14px 12px; font-size: 13.5px; color: var(--text-muted); }

/* 50-character meter */
.cl-meter { display: flex; align-items: center; gap: 10px; }
.cl-meter-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-sunken); overflow: hidden; }
.cl-meter-bar span { display: block; width: 0; height: 100%; background: var(--border-strong); transition: width var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.cl-meter.is-ok .cl-meter-bar span { background: var(--status-success); }
.cl-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cl-meter.is-ok .cl-count { color: var(--status-success); }

.cl-server { margin-top: 4px; padding: 10px 14px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--status-danger) 10%, var(--surface-card)); color: var(--status-danger); font-size: 13.5px; }

/* Submit: the site's primary "go" button (terracotta pill, sheen, arrow badge). */
.cl-foot { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.cl-send { position: relative; overflow: hidden; height: 50px; padding: 0 10px 0 24px; border: 0; border-radius: var(--radius-pill); background: var(--color-primary); color: var(--text-on-brand); font-family: var(--font-body); font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; box-shadow: 0 6px 18px rgba(156, 82, 58, .26); transition: background var(--duration-fast) var(--ease-standard); }
.cl-send:hover { background: var(--color-primary-hover); }
.cl-send[aria-busy="true"] { height: 50px; }
.cl-send:focus-visible { outline: 2px solid var(--text-strong); outline-offset: 2px; }
.cl-send i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .24); font-style: normal; animation: cl-nudge 2.8s ease-in-out infinite; }
.cl-send i svg { width: 15px; height: 15px; }
.cl-send::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); animation: cl-sheen 4.2s ease-in-out infinite; }
@keyframes cl-sheen { 0%, 55% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(420%) skewX(-20deg); } }
@keyframes cl-nudge { 0%, 60%, 100% { transform: translateX(0); } 75% { transform: translateX(4px); } 90% { transform: translateX(-1px); } }

/* Sent */
.cl-done { text-align: center; padding: 48px 28px; }
.cl-tick { width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; background: var(--color-primary); color: var(--text-on-brand); display: grid; place-items: center; }
.cl-tick svg { width: 30px; height: 30px; }
.cl-done h2 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; color: var(--text-strong); margin: 0 0 10px; }
.cl-done p { margin: 0 auto 22px; max-width: 46ch; color: var(--text-muted); font-size: 16px; }
.cl-done b { color: var(--text-strong); }
.cl-done-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cl-ghost-btn { height: 44px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); color: var(--text-strong); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.cl-ghost-btn:hover { background: var(--surface-hover); color: var(--text-strong); text-decoration: none; }

@media (max-width: 760px) {
  .cl-page { padding: 32px 16px 72px; }
  .cl-head h1 { font-size: 28px; }
  .cl-card { padding: 22px 18px; }
  .cl-grid2 { grid-template-columns: 1fr; gap: 0; }
  .cl-wa { grid-template-columns: auto 1fr; }
  .cl-wa-btn { grid-column: 1 / -1; justify-content: center; }
  .cl-host { grid-template-columns: auto 1fr; }
  .cl-host-btn { grid-column: 1 / -1; justify-content: center; }
  .cl-send { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-send i, .cl-send::after { animation: none; }
}
