/* Plannix 2027 · Blocchi CTA finali A-D. Every class is cta- prefixed; relies on home.css only for .wrap, .btn, .link, .stars and colour tokens. */

.cta { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(56px, 7vw, 96px); }
.cta-h { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; margin: 0; }
.cta-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cta-btn-light { background: var(--white); color: var(--navy); }
.cta-link-light { color: var(--white); }
.cta-dark { color: var(--white); }
.cta-dark :focus-visible { outline-color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .cta-btn-light:hover { background: #e6eefb; }
}

/* A · Prodotto: the product bleeds off the bottom edge, the way Linear and ClickUp end a page. */
.cta-a { background: var(--night, #011a53); padding-bottom: 0; }
.cta-a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 78% 100%, rgba(2, 125, 250, 0.32), transparent 70%), radial-gradient(40% 50% at 12% 0%, rgba(98, 206, 254, 0.10), transparent 70%); }
.cta-a-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 24px 48px; }
.cta-a-head .cta-h { max-width: 15em; }
.cta-a-head .cta-acts { justify-content: flex-end; }
.cta-a-stage { position: relative; margin-top: clamp(40px, 5vw, 64px); height: clamp(260px, 25vw, 360px); overflow: hidden; }
/* Construction lines frame the card on its outer edges only, never crossing text. */
.cta-a-stage::before, .cta-a-stage::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(rgba(157, 178, 204, 0.32), rgba(157, 178, 204, 0)); }
.cta-a-stage::before { left: calc(50% - min(440px, 46%) - 20px); }
.cta-a-stage::after { right: calc(50% - min(440px, 46%) - 20px); }
.cta-a-frame { position: relative; width: min(880px, 92%); margin-inline: auto; border-radius: 14px 14px 0 0; box-shadow: 0 0 0 1px rgba(157, 178, 204, 0.18), 0 -24px 80px -24px rgba(2, 125, 250, 0.45); transition: transform 320ms var(--ease-out); }
.cta-a-frame plannix-roadmap { display: block; }
.cta-a-node { position: absolute; top: 0; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--night, #011a53); box-shadow: inset 0 0 0 1.2px rgba(157, 178, 204, 0.7); }
.cta-a-node.l { left: calc(50% - min(440px, 46%) - 20px); }
.cta-a-node.r { left: calc(50% + min(440px, 46%) + 20px); }

/* B · Persona: real portrait, natural colour, overlapped by the real review that names him. */
.cta-b { background: var(--surface); }
.cta-b-panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 40px 56px; padding: clamp(32px, 4.5vw, 64px); border-radius: 16px; background: var(--night, #011a53); color: var(--white); }
.cta-b-panel::before { content: none; }
.cta-b-body { display: grid; gap: 28px; }
.cta-b-body .cta-h { max-width: 13em; }
.cta-b-art { position: relative; display: grid; justify-items: end; padding-bottom: 96px; transition: transform 320ms var(--ease-out); }
.cta-b-photo { position: relative; margin: 0; width: min(320px, 70%); aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.cta-b-photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-b-photo::after { content: ""; position: absolute; inset: 0 0 auto; height: 34%; background: linear-gradient(rgba(1, 16, 52, 0.72), transparent); }
.cta-b-photo figcaption { position: absolute; left: 16px; top: 14px; z-index: 1; display: grid; gap: 2px; font-size: 13px; color: rgba(226, 235, 250, 0.86); }
.cta-b-photo figcaption b { font-size: 15px; font-weight: 500; color: var(--white); }
.cta-b-art .cta-rev { position: absolute; left: 0; bottom: 0; width: min(340px, 62%); background: #13265e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 48px -20px rgba(0, 0, 0, 0.55); }
.cta-rev { margin: 0; display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--r-card, 12px); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10); max-width: 34rem; }
.cta-rev blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; }
.cta-rev figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: rgba(226, 235, 250, 0.7); }
.cta-rev figcaption b { font-weight: 500; color: var(--white); }
.cta-dark .stars i.off { background: rgba(255, 255, 255, 0.22); }

/* C · Prova: the score sits beside the headline as data, never as the headline. */
.cta-c { background: linear-gradient(118deg, var(--cobalt-deep) 0%, var(--cobalt) 46%, var(--brand) 100%); }
.cta-c::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 0%, rgba(98, 206, 254, 0.28), transparent 70%); }
.cta-c-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px; }
.cta-c-main { display: grid; gap: 28px; }
.cta-c-main .cta-h { max-width: 14em; }
.cta-score { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 16px; padding: 18px 22px; border-radius: 14px; background: rgba(1, 26, 83, 0.28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); color: var(--white); text-decoration: none; transition: background-color 120ms ease; }
.cta-score-num { grid-row: span 2; font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cta-score-meta { display: grid; gap: 6px; font-size: 14px; color: rgba(226, 235, 250, 0.86); }
.cta-score-meta b { font-weight: 600; color: var(--white); }
.cta-score .stars i { width: 18px; height: 18px; -webkit-mask-size: 13px; mask-size: 13px; }
.cta-c-revs li { display: grid; }
.cta-c-revs { margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cta-c-revs .cta-rev { max-width: none; background: var(--white); box-shadow: 0 1px 0 rgba(1, 26, 83, 0.06), 0 12px 32px -16px rgba(1, 26, 83, 0.5); color: var(--navy); align-content: space-between; }
.cta-c-revs .cta-rev figcaption { color: var(--ink-3, #66758c); }
.cta-c-revs .cta-rev figcaption b { color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .cta-score:hover { background: rgba(1, 26, 83, 0.4); } }

/* D · Rassicurazione: warm page, one dark card that says what you get and what it costs. Price lives in the card, never in the button. */
.cta-d { background: var(--surface); }
.cta-d-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px 72px; }
.cta-d-copy { display: grid; gap: 32px; }
.cta-d-copy .cta-h { color: var(--navy); max-width: 13em; }
.cta-facts { margin: 0; display: grid; border-top: 1px solid var(--line-2); }
.cta-facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.cta-facts dt { font-weight: 500; color: var(--navy); }
.cta-facts dd { margin: 0; color: var(--ink-2, #44546c); }
.cta-card { display: grid; gap: 22px; padding: 28px; border-radius: 16px; background: var(--night, #011a53); color: var(--white); box-shadow: 0 30px 60px -30px rgba(1, 26, 83, 0.6); }
.cta-card-name { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.cta-card-name img { width: 22px; height: 22px; }
.cta-card-price { margin: 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -0.03em; }
.cta-card-price small { font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: rgba(226, 235, 250, 0.72); }
.cta-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: rgba(226, 235, 250, 0.9); }
.cta-card li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.cta-card li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(98, 206, 254, 0.16) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' stroke='%2362cefe' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cta-card .btn { width: 100%; margin-top: 4px; }
.cta-card .tbd { background: rgba(255, 242, 198, 0.9); }

/* Reveal moves, never hides: without JS (or with reduced motion) everything is already in place. */
.cta-js [data-cta-reveal]:not(.is-in) { transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { .cta-a-frame { transition: none; } .cta-js [data-cta-reveal]:not(.is-in) { transform: none; } }

@media (max-width: 1023px) {
  .cta-a-head, .cta-c-top, .cta-d-in { grid-template-columns: minmax(0, 1fr); }
  .cta-a-head .cta-acts { justify-content: flex-start; }
  .cta-c-revs { grid-template-columns: minmax(0, 1fr); }
  .cta-c-revs li:nth-child(n + 2) { display: none; }
  .cta-b-panel { grid-template-columns: minmax(0, 1fr); }
  .cta-b-art { justify-items: start; padding-bottom: 0; gap: 0; }
  .cta-b-photo { width: min(320px, 100%); }
  .cta-b-art .cta-rev { position: relative; width: auto; margin: 12px 0 0; }
}
@media (max-width: 560px) {
  .cta-acts { flex-direction: column; align-items: stretch; }
  .cta-acts .btn { width: 100%; }
  .cta-acts .link { align-self: flex-start; }
  .cta-a-stage { height: 260px; }
  .cta-a-stage::before, .cta-a-stage::after, .cta-a-node { display: none; }
  .cta-a-frame { width: 100%; }
  /* the review card hugs the panel's bottom corners here: same inset on every side, panel radius = card radius + inset */
  .cta-b-panel { --cta-b-pad: 20px; padding: var(--cta-b-pad); border-radius: calc(var(--r-card, 12px) + var(--cta-b-pad)); }
  .cta-b-photo { width: 78%; }

  .cta-score { grid-template-columns: auto minmax(0, 1fr); justify-self: stretch; }
  .cta-score-num { font-size: 52px; }
  .cta-facts > div { grid-template-columns: minmax(0, 1fr); }
  .cta-card { padding: 22px; }
  .cta-card-price { font-size: 44px; }
}
