/* Started from the CVW repository, web/src/ui/ContactCard/ContactCard.css, at c9e33ef9.
   The free contact card page (CORVAIR-AI-CARD-1 and -2), in the site's own style. The card's own
   colours are drawn on the canvas; this file styles only the page around it. */
.page-contact-card .cc-lead { padding: 72px 0 32px; }
.page-contact-card .cc-lead h1 { font-size: clamp(40px, 4.6vw, 64px); max-width: 18ch; }
.page-contact-card .cc-lead p { margin-top: 18px; font-size: 17px; color: var(--muted); }

.page-contact-card .cc-tool { padding: 8px 0 56px; }
.page-contact-card .cc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 340px) minmax(220px, 280px); gap: 32px; align-items: start; }
.page-contact-card .cc-panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.page-contact-card .cc-details h2 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 16px; }

.page-contact-card .cc-hint { font-size: 12px; color: var(--muted); }
.page-contact-card .cc-status { font-size: 13px; color: var(--teal); min-height: 0; }
.page-contact-card .cc-status:empty { display: none; }
.page-contact-card .cc-label { font-size: 13px; font-weight: 600; margin: 18px 0 8px; }

.page-contact-card .cc-drop { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px dashed #9fb4b8; border-radius: 10px; background: var(--paper); }
.page-contact-card .cc-drop > div { flex: 1; min-width: 0; }
.page-contact-card .cc-drop p { font-size: 13px; }
.page-contact-card .cc-drop.is-over { border-color: var(--teal); background: #e6f4f0; }
.page-contact-card .cc-drop-icon svg { width: 22px; height: 22px; color: var(--teal); display: block; }
.page-contact-card .cc-read { margin-bottom: 18px; }
.page-contact-card .cc-file { position: relative; flex: none; }
.page-contact-card .cc-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.page-contact-card .cc-file span, .page-contact-card .cc-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; }
.page-contact-card .cc-file input:focus-visible + span { outline: 3px solid #d1a14e; outline-offset: 3px; }

.page-contact-card .cc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.page-contact-card .cc-fields label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; min-width: 0; }
.page-contact-card .cc-fields input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #b9c9cb; border-radius: 8px; background: var(--white); color: var(--ink); font-weight: 400; }
.page-contact-card .cc-fields input::placeholder { color: #9aabb1; }
.page-contact-card .cc-fields input[aria-invalid="true"] { border-color: #b4492f; }
.page-contact-card .cc-field-note { font-size: 12px; font-weight: 400; color: #b4492f; }
.page-contact-card .cc-field-note:empty { display: none; }
.page-contact-card .cc-fields .cc-hint { font-weight: 400; }

.page-contact-card .cc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.page-contact-card .cc-segmented { display: flex; border: 1px solid #b9c9cb; border-radius: 8px; overflow: hidden; }
.page-contact-card .cc-segmented button { flex: 1; min-height: 40px; border: 0; background: var(--white); color: var(--ink); font-size: 13px; }
.page-contact-card .cc-segmented button + button { border-left: 1px solid #b9c9cb; }
.page-contact-card .cc-segmented button[aria-pressed="true"] { background: var(--ink); color: var(--white); font-weight: 600; }

.page-contact-card .cc-where { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.page-contact-card .cc-where table { width: 100%; border-collapse: collapse; font-size: 13px; }
.page-contact-card .cc-where th, .page-contact-card .cc-where td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.page-contact-card .cc-where thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
.page-contact-card .cc-where td, .page-contact-card .cc-where thead th:not(:first-child) { text-align: center; }
.page-contact-card .cc-where input { width: 18px; height: 18px; accent-color: var(--teal); }
.page-contact-card .cc-where input:disabled { opacity: .45; }

.page-contact-card .cc-promise { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #e3f3ef; color: var(--teal); font-size: 13px; max-width: none; }
.page-contact-card .cc-promise svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.page-contact-card .cc-preview { position: sticky; top: 100px; }
.page-contact-card .cc-phone { padding: 10px; border-radius: 44px; background: #14181d; box-shadow: 0 18px 40px #0e2a3930; }
.page-contact-card .cc-phone canvas { display: block; width: 100%; aspect-ratio: 1290 / 2796; border-radius: 34px; image-rendering: pixelated; }

.page-contact-card .cc-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.page-contact-card .cc-meter p { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.page-contact-card .cc-meter-chip { padding: 2px 8px; border-radius: 6px; background: #d9efe8; color: var(--teal); font-size: 12px; }
.page-contact-card .cc-meter[data-state="dense"] .cc-meter-chip { background: #f6e6c6; color: #7a5313; }
.page-contact-card .cc-meter[data-state="too_much"] .cc-meter-chip { background: #f7dcd5; color: #9b3a24; }
.page-contact-card .cc-meter-bar { position: relative; display: flex; height: 6px; margin-top: 8px; border-radius: 6px; }
.page-contact-card .cc-meter-easy { width: 65.67%; background: #cfe8e0; border-radius: 6px 0 0 6px; }
.page-contact-card .cc-meter-dense { flex: 1; background: #f3e1bd; border-radius: 0 6px 6px 0; }
.page-contact-card .cc-meter-mark { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.page-contact-card .cc-meter[data-state="too_much"] .cc-meter-mark { background: #b4492f; }
.page-contact-card .cc-meter .cc-status { color: #9b3a24; margin-top: 6px; }

.page-contact-card .cc-optin { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 13px; cursor: pointer; }
.page-contact-card .cc-optin input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--teal); }
.page-contact-card .cc-downloads { display: grid; gap: 8px; }
.page-contact-card .cc-downloads button { width: 100%; justify-content: center; }
.page-contact-card .cc-downloads button:disabled { opacity: .45; }
.page-contact-card .cc-size { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.page-contact-card .cc-size select { min-height: 36px; border: 1px solid #b9c9cb; border-radius: 8px; padding: 0 8px; background: var(--white); color: var(--ink); }
.page-contact-card .cc-phone-only { display: none; }

.page-contact-card .cc-steps { padding: 0 0 56px; }
.page-contact-card .cc-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0 0 28px; list-style: none; counter-reset: step; border-bottom: 1px solid var(--line); }
.page-contact-card .cc-steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; font-size: 14px; color: var(--muted); }
.page-contact-card .cc-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #d9efe8; color: var(--teal); font-size: 12px; font-weight: 600; }
.page-contact-card .cc-steps li strong { display: block; color: var(--ink); }
.page-contact-card .cc-credit { margin-top: 20px; font-size: 13px; color: var(--muted); }
.page-contact-card .cc-credit a { color: var(--teal); text-decoration: underline; }
.page-contact-card .cc-eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); }

@media (max-width: 1100px) {
    .page-contact-card .cc-grid { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
    .page-contact-card .cc-side { grid-column: 2; position: static; }
}
@media (max-width: 800px) {
    .page-contact-card .cc-lead { padding: 40px 0 20px; }
    .page-contact-card .cc-grid { grid-template-columns: minmax(0, 1fr); }
    .page-contact-card .cc-side { grid-column: auto; }
    .page-contact-card .cc-preview, .page-contact-card .cc-side { position: static; }
    .page-contact-card .cc-preview { max-width: 320px; margin: 0 auto; width: 100%; }
    .page-contact-card .cc-panel { padding: 18px; }
    .page-contact-card .cc-fields, .page-contact-card .cc-choices, .page-contact-card .cc-where { grid-template-columns: minmax(0, 1fr); }
    .page-contact-card .cc-where { gap: 0; }
    .page-contact-card .cc-where table + table thead { display: none; }
    .page-contact-card .cc-drop { flex-wrap: wrap; }
    .page-contact-card .cc-drop > div { flex-basis: calc(100% - 40px); }
    .page-contact-card .cc-logo > div { flex-basis: 100%; }
    .page-contact-card .cc-steps ol { grid-template-columns: minmax(0, 1fr); }
    .page-contact-card .cc-phone-only { display: block; }
    .page-contact-card .closing h2 { font-size: 36px; }
}
