/* Centralino AI: stili della pagina. Il pannello della prova e' in centralino-ai-linea.css.
   Idea: la voce e' l'unico colore. Tutto e' inchiostro viola su carta fredda; lo spettro
   (indaco, magenta, oro) compare solo dove c'e' una voce che parla: la linea dell'hero,
   la telefonata simulata, il pulsante che apre la prova. */

:root {
    --ink: #170f2f;
    --ink-2: #4b4466;
    --paper: #f5f4fa;
    --paper-2: #ebe8f4;
    --surface: #ffffff;
    --rule: rgba(23, 15, 47, 0.13);
    --rule-strong: rgba(23, 15, 47, 0.32);
    --v1: #4f35e8;
    --v2: #c72a7c;
    --v3: #e8922a;
    --ok: #12845a;
    --link: #4f35e8;
    --cta-bg: #170f2f;
    --cta-fg: #ffffff;
    --band-bg: #170f2f;
    --band-bg-2: #221943;
    --band-fg: #f1eefb;
    --band-fg-2: #b9b2d3;
    --band-rule: rgba(241, 238, 251, 0.14);
    --mail-bg: #ffffff;
    --mail-fg: #170f2f;
    --spectrum: linear-gradient(90deg, var(--v1), var(--v2) 55%, var(--v3));
    --display: 'Anybody', 'Arial Narrow', system-ui, sans-serif;
    --body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f1eefb;
        --ink-2: #b2abc9;
        --paper: #110b22;
        --paper-2: #170f2e;
        --surface: #1c1436;
        --rule: rgba(241, 238, 251, 0.13);
        --rule-strong: rgba(241, 238, 251, 0.34);
        --v1: #8d7bff;
        --v2: #ff5fae;
        --v3: #ffbd5c;
        --ok: #4fd69c;
        --link: #a99bff;
        --cta-bg: #f1eefb;
        --cta-fg: #110b22;
        --band-bg: #1a1236;
        --band-bg-2: #251b49;
        --mail-bg: #f5f4fa;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.ca {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

/* regole di base a specificita' zero: non devono mai battere gli stili del pannello */
:where(.ca) img {
    max-width: 100%;
    height: auto;
}

:where(.ca) a {
    color: inherit;
}

:where(.ca main) :where(h1, h2, h3, h4) {
    font-family: var(--display);
    font-stretch: 82%;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
}

:where(.ca main) p {
    text-wrap: pretty;
}

.ca :focus-visible {
    outline: 3px solid var(--v2);
    outline-offset: 3px;
}

:where(.ca main) button {
    font: inherit;
    color: inherit;
}

.ca-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    padding: 10px 14px;
    background: var(--cta-bg);
    color: var(--cta-fg);
    z-index: 10;
    border-radius: 8px;
}

.ca-skip:focus {
    top: 12px;
}

.ca-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ca-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- testata ---------- */

.ca-top {
    border-bottom: 1px solid var(--rule);
}

.ca-top-row {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 64px;
}

.ca-brand {
    font-family: var(--display);
    font-stretch: 90%;
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
}

.ca-top-nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
    font-size: 0.95rem;
}

.ca-top-nav a {
    text-decoration: none;
    color: var(--ink-2);
}

.ca-top-nav a:hover {
    color: var(--ink);
}

.ca-top-wa {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding-bottom: 2px;
    background: var(--spectrum) left bottom / 100% 2px no-repeat;
}

/* ---------- pulsanti ---------- */

.ca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.18s var(--ease-out), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.ca-btn:active {
    transform: scale(0.97);
}

.ca-btn-main {
    position: relative;
    background: var(--cta-bg);
    color: var(--cta-fg);
    isolation: isolate;
}

/* l'alone dello spettro si accende sotto il pulsante quando ci si passa sopra */
.ca-btn-main::before {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: inherit;
    background: var(--spectrum);
    opacity: 0;
    filter: blur(14px);
    transition: opacity 0.3s ease;
}

.ca-btn-main:hover::before,
.ca-btn-main:focus-visible::before {
    opacity: 0.75;
}

.ca-btn-main:hover {
    transform: translateY(-2px);
}

.ca-btn-main:active {
    transform: scale(0.97);
}

.ca-btn-quiet {
    border-color: var(--ink);
    color: var(--ink);
}

.ca-btn-quiet:hover {
    background: var(--paper-2);
}

.ca-btn-onDark {
    border-color: rgba(241, 238, 251, 0.45);
    color: var(--band-fg);
}

.ca-btn-onDark:hover {
    border-color: var(--band-fg);
}

.ca-btn-block {
    width: 100%;
}

.ca-btn-big {
    min-height: 62px;
    padding: 0 32px;
    font-size: 1.1rem;
}

/* il piccolo equalizzatore nel pulsante: la prova e' a voce */
.ca-eq {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.ca-eq i {
    display: block;
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: currentColor;
    transform: scaleY(0.35);
    transform-origin: center;
}

.ca-eq i:nth-child(2) { transform: scaleY(0.7); }
.ca-eq i:nth-child(3) { transform: scaleY(1); }
.ca-eq i:nth-child(4) { transform: scaleY(0.6); }
.ca-eq i:nth-child(5) { transform: scaleY(0.3); }

@media (prefers-reduced-motion: no-preference) {
    .ca-eq i {
        animation: ca-eq 1.6s ease-in-out infinite;
    }
    .ca-eq i:nth-child(2) { animation-delay: -0.3s; }
    .ca-eq i:nth-child(3) { animation-delay: -0.9s; }
    .ca-eq i:nth-child(4) { animation-delay: -0.5s; }
    .ca-eq i:nth-child(5) { animation-delay: -1.2s; }
    .ca-btn:hover .ca-eq i,
    .ca-btn:focus-visible .ca-eq i {
        animation-duration: 0.55s;
    }
}

@keyframes ca-eq {
    0%, 100% { transform: scaleY(0.25); }
    50% { transform: scaleY(1); }
}

.ca-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 700;
    color: var(--link);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* ---------- hero ---------- */

.ca-hero {
    padding: 64px 0 40px;
}

.ca-hero-kicker {
    margin: 0 0 22px;
    color: var(--ink-2);
    font-size: 1rem;
    max-width: 60ch;
}

.ca-h1 {
    font-size: clamp(2.7rem, 7.6vw, 6.6rem);
    line-height: 0.94;
    font-stretch: 76%;
    font-weight: 850;
    letter-spacing: -0.02em;
    max-width: 15ch;
}

.ca-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: end;
    margin-top: 36px;
}

.ca-lead {
    margin: 0;
    font-size: clamp(1.08rem, 1.6vw, 1.22rem);
    color: var(--ink-2);
    max-width: 56ch;
}

.ca-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ca-hero-note {
    flex-basis: 100%;
    margin: 6px 0 0;
    font-size: 0.93rem;
    color: var(--ink-2);
}

/* la linea: tutta la larghezza, squilla e poi parla */
.ca-line {
    margin: 52px 0 0;
}

.ca-line-canvas {
    display: block;
    width: 100%;
    height: 150px;
}

.ca-line-cap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: 4.6em;
    margin-top: 6px;
    align-content: start;
}

.ca-line-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 5px;
    border-radius: 999px;
    border: 1px solid var(--rule-strong);
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
}

.ca-line-state::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink-2);
}

.ca-line-state[data-kind="ring"]::before { background: var(--v3); }
.ca-line-state[data-kind="ai"]::before { background: var(--v2); }
.ca-line-state[data-kind="cli"]::before { background: var(--v1); }
.ca-line-state[data-kind="done"]::before { background: var(--ok); }

.ca-line-note {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    color: var(--ink-2);
}

.ca-line-say {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    max-width: 70ch;
}

.ca-line-say.is-typing::after,
.ca-phone-log .is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 2px;
    vertical-align: -0.15em;
    background: currentColor;
    animation: ca-caret 0.9s steps(2, start) infinite;
}

@keyframes ca-caret {
    to { visibility: hidden; }
}

.ca-facts {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.ca-facts li {
    padding-top: 14px;
    border-top: 2px solid var(--ink);
    font-size: 0.92rem;
    color: var(--ink-2);
    line-height: 1.4;
}

.ca-facts b {
    display: block;
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 2px;
}

/* l'unico ingresso al caricamento: la pagina si apre come una chiamata */
@media (prefers-reduced-motion: no-preference) {
    .ca-hero-kicker,
    .ca-h1,
    .ca-hero-grid,
    .ca-line,
    .ca-facts {
        animation: ca-rise 0.8s var(--ease-out) both;
    }
    .ca-h1 { animation-delay: 0.08s; }
    .ca-hero-grid { animation-delay: 0.22s; }
    .ca-line { animation: ca-fade 1.2s ease 0.35s both; }
    .ca-facts { animation-delay: 0.5s; }
}

@keyframes ca-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

@keyframes ca-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- entrate allo scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
    .cm-ready [data-rv] {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity 0.7s ease, transform 0.8s var(--ease-out);
        transition-delay: var(--rv-delay, 0s);
    }
    .cm-ready [data-rv].is-in {
        opacity: 1;
        transform: none;
    }
}

/* ---------- sezioni ---------- */

.ca-section {
    padding: 104px 0;
}

.ca-section h2 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1;
    max-width: 20ch;
}

.ca-section-lead {
    margin: 20px 0 0;
    color: var(--ink-2);
    font-size: 1.12rem;
    max-width: 62ch;
}

/* il problema */
.ca-problem {
    border-top: 1px solid var(--rule);
}

.ca-problem-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: start;
}

.ca-problem-text p {
    margin: 20px 0 0;
    max-width: 60ch;
}

.ca-problem-text h2 + p {
    margin-top: 28px;
}

.ca-problem-turn {
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 800;
    font-size: 1.55rem;
    line-height: 1.15;
    padding-left: 18px;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, var(--v1), var(--v2), var(--v3)) 1;
}

/* il conto */
.ca-calc {
    position: sticky;
    top: 24px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 24px;
    padding: 30px;
}

.ca-calc h3 {
    font-size: 1.6rem;
    line-height: 1.08;
}

.ca-calc-help {
    margin: 10px 0 0;
    font-size: 0.92rem;
    color: var(--ink-2);
}

.ca-calc-form {
    margin-top: 22px;
    display: grid;
    gap: 18px;
}

.ca-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: baseline;
}

.ca-range label {
    font-size: 0.95rem;
    font-weight: 600;
}

.ca-range output {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ca-range input {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    height: 28px;
    background: transparent;
    accent-color: var(--v1);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.ca-range input::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--v1) var(--fill, 20%), var(--paper-2) var(--fill, 20%));
}

.ca-range input::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--paper-2);
}

.ca-range input::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--v1);
}

.ca-range input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    margin-top: -9px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--v1);
    transition: transform 0.15s ease;
}

.ca-range input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--v1);
}

.ca-range input:active::-webkit-slider-thumb {
    transform: scale(1.15);
}

.ca-calc-result {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed var(--rule-strong);
}

.ca-calc-big {
    margin: 0;
    font-family: var(--display);
    font-stretch: 78%;
    font-weight: 850;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ca-calc-big span {
    background: var(--spectrum);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ca-calc-small {
    margin: 8px 0 0;
    color: var(--ink-2);
}

.ca-calc-small b {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.ca-calc-vs {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--paper-2);
    font-weight: 600;
    font-size: 0.95rem;
}

.ca-calc-note {
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: var(--ink-2);
}

/* ---------- la telefonata simulata ---------- */

.ca-call-sec {
    background: var(--band-bg);
    color: var(--band-fg);
}

.ca-call-sec .ca-section-lead {
    color: var(--band-fg-2);
}

.ca-call-head h2 {
    max-width: 18ch;
}

.ca-scen {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.ca-scen-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--band-rule);
    background: transparent;
    color: var(--band-fg-2);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ca-scen-btn:hover {
    color: var(--band-fg);
    border-color: rgba(241, 238, 251, 0.4);
}

.ca-scen-btn[aria-pressed="true"] {
    background: var(--band-fg);
    color: #170f2f;
    border-color: var(--band-fg);
}

.ca-call-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    margin-top: 24px;
    align-items: start;
}

.ca-phone {
    background: var(--band-bg-2);
    border: 1px solid var(--band-rule);
    border-radius: 26px;
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
}

.ca-phone-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 12px;
    border-bottom: 1px solid var(--band-rule);
}

.ca-phone-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--band-fg-2);
    flex: 0 0 auto;
}

.ca-phone[data-state="ringing"] .ca-phone-dot {
    background: #ffbd5c;
    animation: ca-ring-dot 0.5s ease-in-out infinite alternate;
}

.ca-phone[data-state="live"] .ca-phone-dot {
    background: #4fd69c;
    box-shadow: 0 0 0 4px rgba(79, 214, 156, 0.2);
}

.ca-phone[data-state="done"] .ca-phone-dot {
    background: #4fd69c;
}

@keyframes ca-ring-dot {
    to { box-shadow: 0 0 0 7px rgba(255, 189, 92, 0.25); }
}

.ca-phone-name {
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ca-phone-time {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--band-fg-2);
}

.ca-phone-wave {
    height: 64px;
    margin: 8px 0 4px;
}

.ca-phone-wave canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.ca-phone-log {
    list-style: none;
    margin: 0;
    padding: 6px 4px;
    height: 380px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 60px);
    mask-image: linear-gradient(180deg, transparent 0, #000 60px);
}

.ca-phone-log li {
    max-width: 88%;
    padding: 10px 14px 11px;
    border-radius: 16px;
    font-size: 0.98rem;
    line-height: 1.45;
    flex: 0 0 auto;
}

.ca-phone-log li b {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--band-fg-2);
}

.ca-phone-log .ca-say-ai {
    align-self: flex-start;
    background: rgba(241, 238, 251, 0.07);
    border: 1px solid var(--band-rule);
    border-bottom-left-radius: 4px;
    position: relative;
}

.ca-phone-log .ca-say-ai::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #8d7bff, #ff5fae, #ffbd5c);
}

.ca-phone-log .ca-say-cli {
    align-self: flex-end;
    background: #f1eefb;
    color: #170f2f;
    border-bottom-right-radius: 4px;
}

.ca-phone-log .ca-say-cli b {
    color: #4b4466;
}

.ca-phone-log .ca-sys {
    align-self: center;
    padding: 4px 12px;
    font-size: 0.82rem;
    color: var(--band-fg-2);
    border: 1px dashed var(--band-rule);
    border-radius: 999px;
}

.ca-phone-empty {
    align-self: center !important;
    margin: auto 0;
    color: var(--band-fg-2);
    font-size: 0.92rem;
}

@media (prefers-reduced-motion: no-preference) {
    .ca-phone-log li {
        animation: ca-bubble 0.35s var(--ease-out) both;
    }
}

@keyframes ca-bubble {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.ca-phone-foot {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid var(--band-rule);
    margin-top: 8px;
}

.ca-replay {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--band-rule);
    background: transparent;
    color: var(--band-fg);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.ca-replay:hover {
    border-color: var(--band-fg);
}

/* il riassunto per email: arriva quando la telefonata finisce */
.ca-mail {
    background: var(--mail-bg);
    color: var(--mail-fg);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s var(--ease-out), opacity 0.6s ease;
}

.ca-mail[data-state="waiting"] {
    opacity: 0.5;
    transform: translateY(14px);
}

.ca-mail-from {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4b4466;
}

.ca-mail-from span {
    font-weight: 400;
}

.ca-mail-subj {
    margin-top: 8px !important;
    font-size: 1.35rem;
    line-height: 1.15;
    min-height: 2.3em;
}

.ca-mail-body {
    margin: 18px 0 0;
    display: grid;
    gap: 0;
}

.ca-mail-body > div {
    padding: 10px 0;
    border-top: 1px solid rgba(23, 15, 47, 0.12);
}

.ca-mail-body dt {
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b4466;
}

.ca-mail-body dd {
    margin: 2px 0 0;
    font-weight: 600;
    min-height: 1.5em;
}

@media (prefers-reduced-motion: no-preference) {
    .ca-mail[data-state="filled"] .ca-mail-body dd {
        animation: ca-mark 0.9s ease both;
        animation-delay: var(--d, 0s);
    }
}

@keyframes ca-mark {
    0% { opacity: 0; background-size: 0 100%; }
    30% { opacity: 1; }
    100% { opacity: 1; background-size: 100% 100%; }
}

.ca-mail-body dd {
    background: linear-gradient(90deg, rgba(232, 146, 42, 0.18), rgba(199, 42, 124, 0.1)) left / 0 100% no-repeat;
}

.ca-mail[data-state="filled"] .ca-mail-body dd {
    background-size: 100% 100%;
}

.ca-mail-foot {
    margin: 14px 0 0;
    font-size: 0.85rem;
    color: #4b4466;
}

.ca-fine {
    margin: 18px 0 0;
    font-size: 0.85rem;
    color: var(--band-fg-2);
}

/* come va una telefonata: cinque momenti in fila */
.ca-flow-title {
    margin-top: 88px !important;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.ca-flow-lead {
    margin: 10px 0 0;
    color: var(--band-fg-2);
}

.ca-flow {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    counter-reset: ca-flow;
}

.ca-flow li {
    counter-increment: ca-flow;
    position: relative;
    padding-top: 40px;
}

.ca-flow li::before {
    content: counter(ca-flow);
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--band-fg);
    color: #170f2f;
}

.ca-flow li::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 36px;
    right: -14px;
    height: 2px;
    background: var(--band-rule);
}

.ca-flow li:last-child::after {
    display: none;
}

.ca-flow h4 {
    font-size: 1.12rem;
    line-height: 1.2;
}

.ca-flow p {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: var(--band-fg-2);
}

/* ---------- cosa fa ---------- */

.ca-does-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}

.ca-does-side {
    position: sticky;
    top: 32px;
}

.ca-does-list {
    margin: 0;
}

.ca-does-list > div {
    padding: 26px 0;
    border-top: 1px solid var(--rule);
}

.ca-does-list > div:last-child {
    border-bottom: 1px solid var(--rule);
}

.ca-does-list dt {
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.1;
}

.ca-does-list dd {
    margin: 8px 0 0;
    color: var(--ink-2);
    max-width: 58ch;
}

/* i saluti nelle cinque lingue si danno il cambio, senza spostare il testo */
.ca-hello {
    display: grid;
    margin-top: 12px;
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ink);
}

.ca-hello span {
    grid-area: 1 / 1;
    opacity: 0;
}

.ca-hello span:first-child {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .ca-hello span {
        opacity: 0;
        animation: ca-hello 10s linear infinite;
    }
    .ca-hello span:nth-child(2) { animation-delay: 2s; }
    .ca-hello span:nth-child(3) { animation-delay: 4s; }
    .ca-hello span:nth-child(4) { animation-delay: 6s; }
    .ca-hello span:nth-child(5) { animation-delay: 8s; }
}

@keyframes ca-hello {
    0% { opacity: 0; transform: translateY(8px); }
    4%, 18% { opacity: 1; transform: none; }
    22%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* ---------- lo preparo sulla sua attivita' ---------- */

.ca-made {
    background: var(--paper-2);
}

.ca-made-head {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.ca-made-head img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 3px var(--v2);
}

.ca-made-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    margin-top: 48px;
    align-items: start;
}

.ca-sheet {
    list-style: none;
    margin: 0;
    padding: 10px 28px;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--rule);
}

.ca-sheet li {
    position: relative;
    padding: 16px 0 16px 44px;
    border-bottom: 1px dashed var(--rule);
}

.ca-sheet li:last-child {
    border-bottom: 0;
}

.ca-sheet b {
    display: block;
    font-weight: 700;
}

.ca-sheet span {
    color: var(--ink-2);
    font-size: 0.95rem;
}

/* la spunta si disegna quando la scheda entra nello schermo */
.ca-sheet li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--rule-strong);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    transition-delay: calc(0.3s + var(--i, 0) * 0.18s);
}

.ca-sheet li::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 24px;
    width: 8px;
    height: 13px;
    border: solid var(--cta-fg);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.3s var(--ease-out);
    transition-delay: calc(0.4s + var(--i, 0) * 0.18s);
}

.ca-sheet.is-in li::before {
    background: var(--ok);
    border-color: var(--ok);
}

.ca-sheet.is-in li::after {
    transform: rotate(45deg) scale(1);
}

.ca-sheet li:nth-child(1) { --i: 0; }
.ca-sheet li:nth-child(2) { --i: 1; }
.ca-sheet li:nth-child(3) { --i: 2; }
.ca-sheet li:nth-child(4) { --i: 3; }
.ca-sheet li:nth-child(5) { --i: 4; }
.ca-sheet li:nth-child(6) { --i: 5; }

/* senza JavaScript, o con il movimento ridotto, la scheda e' gia' spuntata */
html:not(.cm-ready) .ca-sheet li::before {
    background: var(--ok);
    border-color: var(--ok);
}

html:not(.cm-ready) .ca-sheet li::after {
    transform: rotate(45deg) scale(1);
}

.ca-hours {
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--rule);
    padding: 28px;
}

.ca-hours h3 {
    font-size: 1.6rem;
    line-height: 1.1;
}

.ca-hours-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.ca-hours-modes button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--rule-strong);
    background: transparent;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ca-hours-modes button[aria-pressed="true"] {
    background: var(--cta-bg);
    color: var(--cta-fg);
    border-color: var(--cta-bg);
}

.ca-day {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 3px;
    height: 56px;
    margin-top: 24px;
}

.ca-day span {
    border-radius: 4px;
    background: var(--paper-2);
    transition: background-color 0.35s ease, transform 0.35s var(--ease-out);
    transition-delay: calc(var(--h, 0) * 18ms);
}

/* orario d'esempio: aperto 8-12 e 14-19 */
.ca-day span:nth-child(n+9):nth-child(-n+12),
.ca-day span:nth-child(n+15):nth-child(-n+19) {
    background: var(--rule-strong);
}

.ca-day[data-mode="sempre"] span,
.ca-day[data-mode="sempre"] span:nth-child(n) {
    background: var(--v2);
}

.ca-day[data-mode="fuori"] span {
    background: var(--v2);
}

.ca-day[data-mode="fuori"] span:nth-child(n+9):nth-child(-n+12),
.ca-day[data-mode="fuori"] span:nth-child(n+15):nth-child(-n+19) {
    background: var(--rule-strong);
}

.ca-day[data-mode="pausa"] span:nth-child(13),
.ca-day[data-mode="pausa"] span:nth-child(14) {
    background: var(--v2);
}

.ca-day[data-mode="occupato"] span {
    background: var(--v2);
}

.ca-day[data-mode="occupato"] span:nth-child(n+9):nth-child(-n+12),
.ca-day[data-mode="occupato"] span:nth-child(n+15):nth-child(-n+19) {
    background: repeating-linear-gradient(135deg, var(--v2) 0 5px, var(--rule-strong) 5px 10px);
}

.ca-day-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

.ca-hours-say {
    margin: 16px 0 0;
    min-height: 3.3em;
    font-weight: 500;
}

.ca-hours-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: var(--ink-2);
}

.ca-hours-legend i {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.ca-hours-legend .is-ai { background: var(--v2); }
.ca-hours-legend .is-you { background: var(--rule-strong); }

.ca-hours-legend span {
    flex-basis: 100%;
}

.ca-made-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.ca-made-foot p {
    margin: 0;
    color: var(--ink-2);
}

.ca-made-foot strong {
    color: var(--ink);
}

/* ---------- settori ---------- */

.ca-who {
    list-style: none;
    margin: 48px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 36px;
}

.ca-who li {
    padding-top: 20px;
    border-top: 2px solid var(--ink);
    display: flex;
    flex-direction: column;
}

.ca-who h3 {
    font-size: 1.05rem;
    font-stretch: 95%;
    font-weight: 700;
    color: var(--ink-2);
}

.ca-who q {
    display: block;
    margin-top: 12px;
    font-family: var(--display);
    font-stretch: 80%;
    font-weight: 800;
    font-size: 1.65rem;
    line-height: 1.08;
    quotes: "«" "»";
}

.ca-who p {
    margin: 12px 0 0;
    color: var(--ink-2);
    font-size: 0.97rem;
}

.ca-who-play {
    position: relative;
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0 0;
    border: 0;
    background: none;
    font-weight: 700;
    color: var(--link);
    cursor: pointer;
}

.ca-who-play::before {
    content: "";
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--link);
    transition: transform 0.2s var(--ease-out);
}

.ca-who-play::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 25px;
    border-style: solid;
    border-width: 6px 0 6px 9px;
    border-color: transparent transparent transparent var(--paper);
}

.ca-who-play:hover::before {
    transform: scale(1.12);
}

.ca-who-more {
    margin: 48px 0 0;
    font-size: 1.1rem;
    color: var(--ink-2);
}

/* ---------- come si attiva: il cavo che unisce i passi ---------- */

.ca-steps-sec {
    border-top: 1px solid var(--rule);
}

.ca-steps {
    list-style: none;
    margin: 56px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    counter-reset: ca-step;
    position: relative;
}

.ca-steps::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--spectrum);
    transform-origin: left;
    transform: scaleX(var(--cable, 1));
    transition: transform 1.6s var(--ease-out);
    border-radius: 2px;
}

.ca-steps li {
    counter-increment: ca-step;
    position: relative;
}

.ca-steps li::before {
    content: counter(ca-step);
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--ink);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.ca-steps h3 {
    font-size: 1.3rem;
    line-height: 1.15;
}

.ca-steps p {
    margin: 10px 0 0;
    color: var(--ink-2);
    font-size: 0.98rem;
}

@media (prefers-reduced-motion: no-preference) {
    .cm-ready .ca-steps { --cable: 0; }
    .cm-ready .ca-steps.is-in { --cable: 1; }
}

/* ---------- confronto ---------- */

.ca-vs-sec {
    background: var(--paper-2);
}

.ca-table-scroll {
    margin-top: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    border: 1px solid var(--rule);
    background: var(--surface);
}

.ca-vs {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.ca-vs th,
.ca-vs td {
    text-align: left;
    vertical-align: top;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rule);
    font-size: 0.97rem;
}

.ca-vs tr:last-child th,
.ca-vs tr:last-child td {
    border-bottom: 0;
}

.ca-vs thead th {
    font-family: var(--display);
    font-stretch: 90%;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.2;
    vertical-align: bottom;
}

.ca-vs tbody th {
    font-weight: 600;
    width: 22%;
}

.ca-vs td {
    color: var(--ink-2);
}

.ca-vs .ca-vs-us {
    background: linear-gradient(180deg, rgba(79, 53, 232, 0.08), rgba(199, 42, 124, 0.06));
    color: var(--ink);
    font-weight: 600;
}

.ca-vs thead .ca-vs-us {
    background: var(--cta-bg);
    color: var(--cta-fg);
}

/* ---------- cosa non fa ---------- */

.ca-not-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
}

.ca-not {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 36px;
}

.ca-not > div {
    padding-top: 16px;
    border-top: 1px solid var(--rule-strong);
}

.ca-not dt {
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 800;
    font-size: 1.3rem;
}

.ca-not dd {
    margin: 6px 0 0;
    color: var(--ink-2);
}

/* ---------- prezzi ---------- */

.ca-price-sec {
    border-top: 1px solid var(--rule);
}

.ca-ways-title {
    margin-top: 56px !important;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.ca-ways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.ca-way {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 22px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.ca-way-sub {
    border: 2px solid var(--ink);
}

.ca-way h4 {
    font-size: 1.5rem;
}

.ca-way-for {
    margin: 6px 0 16px;
    color: var(--ink-2);
}

.ca-way ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.ca-way-price {
    margin: auto 0 0;
    padding-top: 18px;
    font-weight: 700;
    border-top: 1px solid var(--rule);
    transform: translateY(0);
}

.ca-way ul + .ca-way-price {
    margin-top: 20px;
}

.ca-note {
    margin: 16px 0 0;
    font-size: 0.92rem;
    color: var(--ink-2);
    max-width: 72ch;
}

.ca-plans-lead {
    margin: 10px 0 0;
    color: var(--ink-2);
    max-width: 66ch;
}

.ca-billing {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 26px;
    padding: 4px;
    border-radius: 999px;
    background: var(--paper-2);
    border: 1px solid var(--rule);
}

.ca-billing button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.ca-billing button[aria-pressed="true"] {
    background: var(--cta-bg);
    color: var(--cta-fg);
}

.ca-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
    align-items: stretch;
}

.ca-plan {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 22px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.ca-plan-pro {
    position: relative;
    border-color: transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--spectrum) border-box;
    border: 2px solid transparent;
}

.ca-plan h3 {
    font-size: 1.8rem;
}

.ca-plan-for {
    margin: 6px 0 0;
    color: var(--ink-2);
    font-size: 0.95rem;
    min-height: 3em;
}

.ca-plan-price {
    margin: 18px 0 0;
    font-family: var(--display);
    font-stretch: 78%;
    font-weight: 850;
    font-size: 3.4rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ca-plan-per {
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-2);
}

/* righe da bolletta, con i puntini fra voce e importo */
.ca-bill {
    margin: 22px 0 24px;
    display: grid;
    gap: 10px;
}

.ca-bill > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.97rem;
}

.ca-bill > div::after {
    content: "";
    order: 1;
    flex: 1 1 auto;
    min-width: 12px;
    border-bottom: 2px dotted var(--rule-strong);
    transform: translateY(-4px);
}

.ca-bill dt {
    order: 0;
    color: var(--ink-2);
}

.ca-bill dd {
    order: 2;
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.ca-plan .ca-btn {
    margin-top: auto;
}

.ca-setup {
    border-radius: 22px;
    padding: 28px;
    background: var(--paper-2);
    border: 1px dashed var(--rule-strong);
}

.ca-setup-price {
    margin: 0;
    color: var(--ink-2);
}

.ca-setup-price b {
    display: block;
    font-family: var(--display);
    font-stretch: 78%;
    font-weight: 850;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--ink);
}

.ca-setup ul {
    margin: 16px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

.ca-setup-cond {
    margin: 16px 0 0;
    font-size: 0.86rem;
    color: var(--ink-2);
}

.ca-server {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    padding: 22px 28px;
    border-radius: 22px;
    border: 1px solid var(--rule);
    background: var(--surface);
}

.ca-server p {
    margin: 0;
    max-width: 78ch;
    color: var(--ink-2);
}

.ca-server strong {
    color: var(--ink);
}

.ca-server .ca-btn {
    flex: 0 0 auto;
}

.ca-connect {
    margin: 28px 0 0;
    max-width: 78ch;
    color: var(--ink-2);
}

.ca-connect strong {
    color: var(--ink);
}

/* ---------- prima lo sente, poi decide ---------- */

.ca-sure {
    background: var(--paper-2);
}

.ca-sure-list {
    list-style: none;
    margin: 48px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.ca-sure-list li {
    padding-top: 22px;
    border-top: 4px solid;
    border-image: var(--spectrum) 1;
}

.ca-sure-list h3 {
    font-size: 1.45rem;
    line-height: 1.12;
}

.ca-sure-list p {
    margin: 10px 0 0;
    color: var(--ink-2);
}

/* ---------- domande ---------- */

.ca-faq-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 64px;
    align-items: start;
}

.ca-faq-side {
    position: sticky;
    top: 32px;
}

.ca-faq details {
    border-top: 1px solid var(--rule);
}

.ca-faq details:last-child {
    border-bottom: 1px solid var(--rule);
}

.ca-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 44px 20px 0;
    font-weight: 700;
    font-size: 1.07rem;
    position: relative;
}

.ca-faq summary::-webkit-details-marker {
    display: none;
}

.ca-faq summary::before,
.ca-faq summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 16px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.25s var(--ease-out);
}

.ca-faq summary::after {
    transform: rotate(90deg);
}

.ca-faq details[open] summary::before {
    transform: rotate(45deg);
}

.ca-faq details[open] summary::after {
    transform: rotate(135deg);
}

.ca-faq details p {
    margin: 0 0 20px;
    color: var(--ink-2);
    max-width: 64ch;
}

.ca-faq details a {
    color: var(--link);
    font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
    .ca-faq details[open] p {
        animation: ca-rise 0.35s var(--ease-out) both;
    }
}

/* ---------- chiusura ---------- */

.ca-close {
    position: relative;
    background: var(--band-bg);
    color: var(--band-fg);
    padding: 120px 0 150px;
    overflow: hidden;
}

.ca-close-canvas {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 220px;
    opacity: 0.55;
    pointer-events: none;
}

.ca-close .ca-wrap {
    position: relative;
}

.ca-close h2 {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.96;
    font-stretch: 76%;
    font-weight: 850;
    max-width: 16ch;
}

.ca-close-lead {
    margin: 22px 0 0;
    font-size: 1.15rem;
    color: var(--band-fg-2);
    max-width: 56ch;
}

.ca-close-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.ca-close .ca-btn-main {
    background: var(--band-fg);
    color: #170f2f;
}

.ca-ps {
    margin: 40px 0 0;
    max-width: 62ch;
    font-size: 1rem;
    color: var(--band-fg-2);
    padding-left: 16px;
    border-left: 2px solid rgba(241, 238, 251, 0.3);
}

.ca-ps b {
    color: var(--band-fg);
}

.ca-foot {
    background: var(--band-bg);
    color: var(--band-fg-2);
    border-top: 1px solid var(--band-rule);
    font-size: 0.88rem;
    padding: 28px 0 120px;
}

.ca-foot p {
    margin: 4px 0;
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
    .ca-hero-grid,
    .ca-problem-grid,
    .ca-call-stage,
    .ca-does-grid,
    .ca-made-grid,
    .ca-not-grid,
    .ca-faq-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    .ca-calc,
    .ca-does-side,
    .ca-faq-side {
        position: static;
    }
    .ca-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ca-flow li::after {
        display: none;
    }
    .ca-who {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ca-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ca-steps::before {
        display: none;
    }
    .ca-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ca-setup {
        grid-column: 1 / -1;
    }
    .ca-top-nav {
        display: none;
    }
    .ca-top-wa {
        margin-left: auto;
    }
}

@media (max-width: 680px) {
    body.ca {
        font-size: 1rem;
    }
    .ca-wrap {
        padding: 0 16px;
    }
    .ca-hero {
        padding: 40px 0 28px;
    }
    .ca-hero-cta .ca-btn {
        width: 100%;
    }
    .ca-line {
        margin-top: 36px;
    }
    .ca-line-canvas {
        height: 110px;
    }
    .ca-line-cap {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        min-height: 10.5em;
        align-content: start;
    }
    .ca-line-state {
        justify-self: start;
    }
    .ca-line-say {
        font-size: 0.98rem;
    }
    .ca-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }
    .ca-section {
        padding: 72px 0;
    }
    .ca-calc,
    .ca-hours,
    .ca-plan,
    .ca-way,
    .ca-setup {
        padding: 22px;
    }
    .ca-sheet {
        padding: 6px 18px;
    }
    .ca-phone {
        padding: 14px 12px 12px;
        border-radius: 20px;
    }
    .ca-phone-log {
        height: 400px;
    }
    .ca-phone-log li {
        max-width: 94%;
        font-size: 0.94rem;
    }
    .ca-flow,
    .ca-who,
    .ca-steps,
    .ca-not,
    .ca-sure-list,
    .ca-ways,
    .ca-plans,
    .ca-made-foot {
        grid-template-columns: minmax(0, 1fr);
    }
    .ca-made-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .ca-made-head img {
        width: 92px;
        height: 92px;
    }
    .ca-day {
        height: 44px;
        gap: 2px;
    }
    .ca-server {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
    }
    .ca-billing {
        display: flex;
        border-radius: 18px;
    }
    .ca-billing button {
        flex: 1 1 auto;
        border-radius: 14px;
        padding: 8px 14px;
        min-height: 44px;
    }
    .ca-close {
        padding: 80px 0 120px;
    }
    .ca-close-actions .ca-btn {
        width: 100%;
    }
    .ca-top-wa {
        font-size: 0.88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .ca-btn,
    .ca-btn-main::before,
    .ca-mail,
    .ca-day span,
    .ca-sheet li::before,
    .ca-sheet li::after,
    .ca-steps::before {
        transition: none;
    }
    .ca-line-say.is-typing::after,
    .ca-phone-log .is-typing::after {
        animation: none;
    }
}
