/* ===================================================================
   Wordly — pricing page redesign v2 (2026-10-24)
   Styles for public/js/pricing-v2.js. Every rule is scoped under
   html[data-pricing="v2"]: remove that attribute from pricing.html and
   the page is exactly as it was. Pre-change copies:
   Reference/backups/2026-10-24-pricing-redesign/.

   Built on the dark shell's own tokens (site-public.css). The quote
   card and the WhatsApp button keep their existing rules — including
   the (0,3,1) prefix fix for the white-on-white hover — untouched.
   =================================================================== */

/* ── Hero: copy + a receipt that prints itself ─────────────────── */
html[data-pricing="v2"] .pv-hero {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; text-align: left;
}
html[data-pricing="v2"] .pv-hero-copy p { margin-left: 0; }
html[data-pricing="v2"] .pv-receipt-wrap { position: relative; height: 330px; }
html[data-pricing="v2"] .pv-receipt {
    position: absolute; left: 50%; top: 10px; width: 270px; margin-left: -135px;
    padding: 22px 20px 30px; border-radius: 14px 14px 0 0;
    background: #fbfaff; color: #17152a;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.4);
    transform: rotate(-3deg);
    animation: pv-float 7s ease-in-out infinite;
}
@keyframes pv-float { 50% { transform: rotate(-1deg) translateY(-10px); } }
.pv-r-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 2px dashed #e2ddf0; }
.pv-r-head b { font-size: 0.95rem; color: #17152a; }
.pv-r-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-weight: 900;
    background: linear-gradient(130deg, #7c3aed, #a21caf); }
.pv-r-line { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 0.82rem; color: #615e78;
    animation: pv-print 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.18s); }
.pv-r-line i { height: 7px; width: 70px; border-radius: 4px; background: #e2ddf0; }
@keyframes pv-print { 0% { opacity: 0; transform: translateX(-6px); } 15%, 100% { opacity: 1; transform: none; } }
.pv-r-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 2px solid #17152a; }
.pv-r-total span { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pv-r-count { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; color: #6d28d9; font-variant-numeric: tabular-nums; }
.pv-r-zig { position: absolute; left: 0; right: 0; bottom: -10px; height: 12px;
    background: linear-gradient(-45deg, transparent 6px, #fbfaff 0) 0 0 / 12px 12px repeat-x,
                linear-gradient(45deg, transparent 6px, #fbfaff 0) 0 0 / 12px 12px repeat-x; }
html[data-pricing="v2"] .pv-tag {
    position: absolute; padding: 0.45rem 0.85rem; border-radius: 999px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid var(--hair-2);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: var(--ink); font-size: 0.8rem; font-weight: 700;
    animation: pv-drift 8s ease-in-out infinite;
}
.pv-tag-1 { left: -10px; top: 210px; }
.pv-tag-2 { right: 0; top: 120px; animation-delay: -3s; color: #67e8f9 !important; }
.pv-tag-3 { right: 20px; bottom: 20px; animation-delay: -5s; color: #f0abfc !important; }
@keyframes pv-drift { 50% { transform: translate(8px, -12px); } }

/* ── The assistant box: a slowly turning gradient border ──────────
   The border is a conic gradient behind a 1px inset of the box's own
   background, rotated through a registered custom property. Browsers
   without @property simply show a static gradient border. */
@property --pv-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
html[data-pricing="v2"] .pv-box {
    position: relative; isolation: isolate;
    border-color: transparent;
    background: linear-gradient(var(--site-bg-2), var(--site-bg-2)) padding-box,
                conic-gradient(from var(--pv-angle), rgba(167, 139, 250, 0.7), rgba(232, 121, 249, 0.5),
                                rgba(34, 211, 238, 0.65), rgba(167, 139, 250, 0.7)) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 40px 90px rgba(124, 58, 237, 0.22);
    animation: pv-spin 10s linear infinite;
}
@keyframes pv-spin { to { --pv-angle: 360deg; } }
html[data-pricing="v2"] .pv-box .quote-dot { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); animation: pv-ping 1.8s ease-out infinite; }
@keyframes pv-ping { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }

/* Service choices become tiles */
html[data-pricing="v2"] .pv-box .q-choices:has(.q-choice-svc) {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.6rem;
}
html[data-pricing="v2"] .pv-box .q-choice {
    --mx: 50%; --my: 50%;
    position: relative; overflow: hidden; isolation: isolate;
}
html[data-pricing="v2"] .pv-box .q-choice::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(160px circle at var(--mx) var(--my), rgba(167, 139, 250, 0.32), transparent 65%);
    opacity: 0; transition: opacity .25s ease;
}
html[data-pricing="v2"] .pv-box .q-choice:hover::after { opacity: 1; }
html[data-pricing="v2"] .pv-box .q-choice-svc {
    display: flex; align-items: center; gap: 0.7rem; justify-content: flex-start;
    min-height: 58px; padding: 0.75rem 0.95rem; border-radius: 16px; text-align: left;
    font-weight: 700;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
html[data-pricing="v2"] .pv-box .q-choice-svc:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.6);
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.28);
}
html[data-pricing="v2"] .pv-box .q-choice-svc .q-choice-icon {
    width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
    display: grid; place-items: center;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
html[data-pricing="v2"] .pv-box .q-choice-svc .q-choice-icon .icon { width: 17px; height: 17px; }
html[data-pricing="v2"] .pv-box .q-choice-svc:hover .q-choice-icon { transform: rotate(-10deg) scale(1.1); }
html[data-pricing="v2"] .pv-box .q-group {
    display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem;
}
html[data-pricing="v2"] .pv-box .q-group::after { content: ''; flex: 1; height: 1px; background: var(--hair-2); }

/* The quote card arrives with a little ceremony */
html[data-pricing="v2"] .pv-box .q-quote { position: relative; overflow: hidden; animation: grad-drift 18s var(--ease) infinite, pv-pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes pv-pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }
html[data-pricing="v2"] .pv-box .q-quote::before {
    content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    animation: pv-shine 3.5s ease-in-out .4s infinite;
}
@keyframes pv-shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
html[data-pricing="v2"] .pv-box .q-quote > * { position: relative; }

/* ── Promises strip ─────────────────────────────────────────────── */
html[data-pricing="v2"] .pv-promises {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem;
}
html[data-pricing="v2"] .pv-promises > div {
    display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; align-items: center;
    padding: 1rem 1.1rem; border-radius: 18px; background: var(--glass); border: 1px solid var(--hair);
}
html[data-pricing="v2"] .pv-p-icon {
    grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: var(--grad-accent); color: #160d2e;
}
html[data-pricing="v2"] .pv-p-icon .icon { width: 19px; height: 19px; }
html[data-pricing="v2"] .pv-promises b { color: var(--ink); font-size: 0.95rem; }
html[data-pricing="v2"] .pv-promises small { color: var(--text-2); font-size: 0.84rem; line-height: 1.45; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    html[data-pricing="v2"] .pv-hero { grid-template-columns: 1fr; text-align: center; }
    html[data-pricing="v2"] .pv-hero-copy p { margin-inline: auto; }
    /* The drawing is decoration; on a phone the form is what matters. */
    html[data-pricing="v2"] .pv-receipt-wrap { height: 250px; transform: scale(.8); transform-origin: top center; margin-bottom: -40px; }
    html[data-pricing="v2"] .pv-promises { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    html[data-pricing="v2"] .pv-receipt-wrap { display: none; }
    html[data-pricing="v2"] .pv-box .q-choices:has(.q-choice-svc) { grid-template-columns: 1fr; }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html[data-pricing="v2"] .pv-box,
    html[data-pricing="v2"] .pv-box *,
    html[data-pricing="v2"] .pv-box *::before,
    html[data-pricing="v2"] .pv-receipt-wrap * { animation: none !important; transition: none !important; }
    html[data-pricing="v2"] .pv-receipt { transform: rotate(-3deg); }
    html[data-pricing="v2"] .pv-box .q-quote::before { display: none; }
}

/* ── Price checker | upload a brief: ONE at a time, at every width ──
   The brief upload used to sit below the whole assistant and was missed.
   Two columns were tried on desktop (2026-10-28) and left each tool cramped
   with a hole beside the shorter one; the phone's switch was better, so it
   is now the layout everywhere (owner, 2026-10-31). */
.pv-duo-switch {
    display: flex; gap: 4px; padding: 4px; margin: 0 auto 1.25rem; max-width: 420px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hair-2);
}
.pv-duo-switch button {
    flex: 1; padding: 0.6rem 0.9rem; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--text-2); background: transparent;
}
.pv-duo-switch button[aria-selected="true"] { color: #fff; background: linear-gradient(120deg, #7c3aed, #a21caf); }
.pv-duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; max-width: 820px; margin-inline: auto; }
.pv-duo[data-duo-show="ask"]   [data-duo-col="brief"],
.pv-duo[data-duo-show="brief"] [data-duo-col="ask"] { display: none; }
.pv-duo-col { min-width: 0; display: grid; gap: 0.8rem; }
/* site-public.css gives the box `margin: 0 auto`, and auto margins stop a grid
   item stretching — it shrank to its content (381px) beside an 820px column. */
html[data-pricing="v2"] .pv-duo-col .quote-box { width: 100%; max-width: none; margin: 0; }
.pv-duo-label {
    display: flex; align-items: center; gap: 0.55rem; margin: 0;
    font-size: 0.85rem; font-weight: 800; letter-spacing: 0.02em; color: var(--ink);
}
/* Tabs, not steps: the number badge is gone. */
.pv-duo-label span { display: none; }
/* The promises sit UNDER the tool, at its width (pricing-v2.js inserts
   them after .pv-duo). They used to land inside a half-width column,
   where html[data-pricing="v2"] .pv-promises (three columns) outranked
   the rule meant to stack them — a word per line. */
.pv-duo-wrap > .pv-promises { margin: 2rem auto 0; max-width: 820px; }
}
