/* ==========================================================================
   Grapphen Atelier — Vox: product layer
   Logo lockup, the Vox product artefacts (softphone, IVR, inbox, call record,
   usage) and small page adjustments. Uses only the tokens in atelier.css.
   Every selector is prefixed gav- or vx-, or scoped under .at.

   1 Lockup   2 Artefacts   3 Pages   4 Forms   5 Responsive
   ========================================================================== */

/* 1 Lockup ---------------------------------------------------------------- */
.gav-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.gav-lockup img { height: 30px; width: auto; }
.gav-lockup__product {
	padding-left: 12px;
	border-left: 1px solid var(--rule-strong);
	font-family: var(--font-display);
	font-size: 1.3125rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--ink);
}
.at-footer__logo.gav-lockup img { height: 28px; }
.at-footer__logo .gav-lockup__product { font-size: 1.25rem; }
.gav-footer__sign { margin-top: 14px; }
.gav-footer__sign a { color: var(--cobalt); text-decoration: underline; text-decoration-color: rgba(40, 74, 241, .35); text-underline-offset: .22em; }
.gav-footer__sign a:hover { text-decoration-color: currentColor; }

/* 2 Artefacts ------------------------------------------------------------- */
.vx-state--live { color: var(--cobalt); }
.vx-state--live::before { border-color: var(--cobalt); background: var(--cobalt); }
.vx-state--live .at-mono { color: var(--ink); }

/* Static waveform */
.vx-wave { display: flex; align-items: center; justify-content: space-between; gap: 2px; flex: 1; min-width: 0; height: 26px; overflow: hidden; }
.vx-wave span { flex: 1 1 0; max-width: 5px; height: calc(var(--h, .4) * 100%); min-height: 2px; border-radius: 1px; background: var(--rule-strong); }

/* Softphone */
.vx-phone__line { padding: 16px 22px 14px; border-bottom: 1px solid var(--rule); }
.vx-phone__channel { display: flex; align-items: center; gap: 14px; }
.vx-phone__channel + .vx-phone__channel { margin-top: 8px; }
.vx-phone__channel:first-child .vx-wave span { background: var(--ink); }
.vx-phone__who { flex: 0 0 4.75rem; font-size: .75rem; color: var(--slate); }
.vx-phone__rec { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .75rem; color: var(--slate); }
.vx-rec { width: 7px; height: 7px; border-radius: 50%; background: var(--error); }
.vx-phone__controls { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px; border-bottom: 1px solid var(--rule); }
.vx-phone__controls .at-fakebtn { padding: 7px 12px; }
.vx-fakebtn--end { margin-left: auto; border-color: var(--error); color: var(--error); }

.vx-log { width: 100%; border-collapse: collapse; }
.vx-log__caption { caption-side: top; text-align: left; padding: 14px 22px 8px; font-size: .75rem; color: var(--slate); }
.vx-log th, .vx-log td { padding: 10px 10px; text-align: left; font-weight: 400; white-space: nowrap; border-top: 1px solid var(--rule-soft); }
.vx-log th:first-child, .vx-log td:first-child { padding-left: 22px; }
.vx-log th:last-child, .vx-log td:last-child { padding-right: 22px; }
.vx-log tbody th { font-weight: 500; }
.vx-log__time { color: var(--slate); }
.vx-log__route { color: var(--slate); }

/* IVR */
.vx-ivr__label { font-size: .75rem; color: var(--slate); margin-bottom: 4px; }
.vx-ivr__greeting, .vx-ivr__after { padding: 14px 22px; }
.vx-ivr__greeting { border-bottom: 1px solid var(--rule); }
.vx-ivr__greeting p:last-child { font-size: .875rem; }
.vx-ivr__after { background: var(--mist); border-top: 1px solid var(--rule); }
.vx-ivr__list li {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 14px;
	align-items: start;
	padding: 13px 22px;
}
.vx-ivr__list li + li { border-top: 1px solid var(--rule-soft); }
.vx-key {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px;
	border: 1px solid var(--rule-strong);
	border-radius: var(--r-btn);
	font-size: .8125rem; font-weight: 500;
	background: var(--paper);
}
.vx-ivr__heard { padding-top: 4px; }
.vx-ivr__dest { padding-top: 4px; font-weight: 500; }
.vx-ivr__dest span { display: block; margin-top: 2px; font-weight: 400; font-size: .8125rem; color: var(--slate); }

/* Inbox */
.vx-inbox__channels { display: flex; gap: 6px; }
.vx-inbox__channels span { padding: 3px 9px; border: 1px solid var(--rule); border-radius: 999px; font-size: .75rem; color: var(--slate); white-space: nowrap; }

/* Candidate record timeline */
.vx-record__dial { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.vx-record__dial .at-mono { margin-right: 4px; font-size: .8125rem; color: var(--slate); }
.vx-record__dial .at-fakebtn { padding: 6px 12px; }
.vx-timeline__item { padding: 16px 22px; }
.vx-timeline__item + .vx-timeline__item { border-top: 1px solid var(--rule-soft); }
.vx-timeline__line { display: flex; justify-content: space-between; gap: 16px; }
.vx-timeline__what { font-weight: 500; }
.vx-timeline__when { color: var(--slate); font-size: .8125rem; white-space: nowrap; }
.vx-timeline__note { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .8125rem; color: var(--slate); }
.vx-timeline__audio { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; background: var(--mist); border-radius: var(--r-btn); }
.vx-timeline__audio .vx-wave span { background: var(--ink); opacity: .7; }
.vx-timeline__dur { font-size: .75rem; color: var(--slate); }
.vx-play { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); position: relative; }
.vx-play::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.vx-summary { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--cobalt); }
.vx-summary__label { font-size: .75rem; font-weight: 500; color: var(--cobalt); }
.vx-summary ul { margin: 6px 0 0; padding: 0; list-style: none; }
.vx-summary li { font-size: .8125rem; line-height: 1.5; }
.vx-summary li + li { margin-top: 4px; }

/* Usage */
.vx-usage__list li { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding: 14px 22px; }
.vx-usage__list li + li { border-top: 1px solid var(--rule-soft); }
.vx-usage__name { font-weight: 500; }
.vx-usage__fig { color: var(--slate); font-size: .8125rem; }
.vx-usage__list .pp-meter { grid-column: 1 / -1; }

/* 3 Pages ----------------------------------------------------------------- */
.gav-compare__more { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-size: .9375rem; }
.at-table.gav-table--wide { min-width: 52rem; }
.at-table.gav-table--wide td { font-size: .875rem; }
.at-cta .at-note a { color: var(--cobalt); }

/* Pricing: hero controls and plans */
.gav-plan-note { margin-top: 24px; }
.gav-pricing-art { padding-top: 0; }

/* Demo page agenda */
.gav-demo__aside > * + * { margin-top: 48px; }
.gav-demo__aside .at-h3 { margin-bottom: 18px; }
.gav-demo__aside .at-note { margin-top: 18px; }

/* 404 */
.gav-404 .at-hero__text { padding-bottom: var(--band); }

/* 4 Forms ----------------------------------------------------------------- */
/* The OTP mu-plugin prints a gradient button with color:#fff !important;
   keep it on-system inside the form card. */
.at-formcard .btn-cf7-otp { color: var(--ink) !important; background: var(--paper) !important; box-shadow: none !important; height: auto; }
.at-formcard .btn-cf7-otp:hover:not(:disabled) { transform: none; box-shadow: none; }
.at-formcard .btn-cf7-otp:disabled { background: var(--mist) !important; color: var(--slate) !important; }
.at-formcard .cf7-otp-msg.success { color: var(--sage-ink); }
.at-formcard .cf7-otp-msg.error { color: var(--error); }
.at-formcard .cf7-otp-msg.info { color: var(--slate); }
.at-formcard .cf7-row { margin-bottom: 0; }
.at-formcard .cf7-field { margin-bottom: 0; }
.at-formcard .cf7-row label, .at-formcard .cf7-field label { margin-bottom: 0; font-weight: 500; }
.at-formcard .cf7-turnstile-slot { margin: 0; min-height: 0; }

/* 5 Responsive ------------------------------------------------------------ */
@media (max-width: 1079px) {
	.gav-lockup img { height: 28px; }
	.gav-lockup__product { font-size: 1.25rem; }
}
@media (max-width: 480px) {
	.vx-phone__line, .vx-phone__controls, .vx-ivr__greeting, .vx-ivr__after,
	.vx-timeline__item, .vx-usage__list li { padding-inline: 18px; }
	.vx-log__caption { padding-inline: 18px; }
	.vx-log th:first-child, .vx-log td:first-child { padding-left: 18px; }
	.vx-log th:last-child, .vx-log td:last-child { padding-right: 18px; }
	.vx-log__route { display: none; }
	.vx-log th, .vx-log td { white-space: normal; }
	.vx-log tbody th { white-space: nowrap; }
	.vx-phone__who { flex-basis: 4.25rem; }
	.vx-fakebtn--end { margin-left: auto; }
	.vx-phone__controls { gap: 6px; }
	.vx-phone__controls .at-fakebtn { padding: 6px 10px; }
	.vx-phone__controls .vx-keypad { display: none; }
	.vx-log .at-state { white-space: normal; align-items: flex-start; }
	.vx-log .at-state::before { margin-top: 5px; }
	.vx-ivr__list li { grid-template-columns: 28px 1fr; padding-inline: 18px; }
	.vx-ivr__dest { grid-column: 2; padding-top: 0; }
	.vx-record__dial .at-mono { display: none; }
	.vx-timeline__line { flex-direction: column; gap: 2px; }
	.at-artefact__head { flex-wrap: wrap; }
}

/* Posts index */
.gav-posts { border-top: 1px solid var(--ink); max-width: 68ch; }
.gav-posts__item { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.gav-posts__item .at-h3 a { text-decoration: none; }
.gav-posts__item .at-h3 a:hover { color: var(--cobalt); }
.gav-posts__item .at-note { margin-top: 4px; }
.gav-posts__excerpt { margin-top: 10px; color: var(--slate); }
#not-found { padding-bottom: var(--band); }

/* Screen-reader labels inside a scrolling table are absolutely positioned;
   anchor them to the scroller so they never widen the page. */
.at-table-wrap { position: relative; }

/* Wide comparison tables scroll sideways on small screens */
.gav-scroll-hint { display: none; margin-bottom: 12px; }
@media (max-width: 860px) { .gav-scroll-hint { display: block; } }

/* CF7 runs wpautop on the stored form: fields arrive wrapped in <p> with <br>. */
.at-formcard .cf7-col > p,
.at-formcard .cf7-field > p { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.at-formcard .cf7-col br,
.at-formcard .cf7-field br,
.at-formcard .cf7-otp-group br { display: none; }
.at-formcard .cf7-otp-group > p { display: flex; flex: 1; gap: 8px; margin: 0; min-width: 0; }
.at-formcard .cf7-otp-group > p .wpcf7-form-control-wrap { flex: 1; min-width: 0; }
.at-formcard .wpcf7-form > p:has(input[type="submit"]) { margin-top: 4px; }
.at-formcard .wpcf7-list-item { margin: 0; }
.at-formcard .wpcf7-acceptance label,
.at-formcard .wpcf7-checkbox label { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-weight: 400; }
/* SMS consent block stored inside the CF7 form (inline styles in the form body). */
.at-formcard .cf7-sms-consent { margin: 0 !important; padding: 16px 18px !important; background: var(--mist) !important; border: 0 !important; border-radius: var(--r-field) !important; color: var(--slate) !important; font-size: .8125rem !important; line-height: 1.55 !important; }
.at-formcard .cf7-sms-consent p { margin: 0; }
.at-formcard .cf7-sms-consent br { display: none; }
.at-formcard .cf7-sms-consent label { gap: 12px !important; font-size: .8125rem; font-weight: 400; color: var(--slate); }
.at-formcard .cf7-sms-consent input[type="checkbox"] { margin-top: 2px !important; accent-color: var(--cobalt); }
.at-formcard .cf7-sms-consent strong { color: var(--ink); font-weight: 500; }
.at-formcard .cf7-sms-consent a { color: var(--cobalt) !important; font-weight: 400 !important; text-decoration-color: rgba(40, 74, 241, .35) !important; text-underline-offset: .2em; }
.at-formcard .cf7-otp-msg { min-height: 0; margin-top: 0; }

/* Compare pages: the two offers, Grapphen Vox on the left */
.gav-vs-offer .c-vs-fit__col--us { grid-column: 1 / span 5; grid-row: 1; }
.gav-vs-offer .gav-vs-them { grid-column: 7 / span 5; grid-row: 1; }
.gav-vs-price { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.gav-vs-them .at-plan__amount { color: var(--slate); }
.gav-vs-offer .at-points { margin-top: 24px; }
@media (max-width: 1079px) {
	.gav-vs-offer .c-vs-fit__col--us, .gav-vs-offer .gav-vs-them { grid-column: 1 / -1; grid-row: auto; }
}
.gav-vs-price { flex-wrap: wrap; }
.gav-vs-price .at-plan__amount { white-space: nowrap; }
@media (max-width: 480px) { .gav-vs-price .at-plan__amount { font-size: 2.5rem; } }
