/* ── /insights/ — the point-of-view slide deck (WIP) ──────────────────────────────────
   One near-full-screen slide. The shell is the same object as the prices
   offer box (.gsmq__box): white, radius 28, 4px brand-gradient top edge, deep
   far-thrown shadow — but a single column, no side panel. Nothing on the
   slide but the content and the button.

   Content lives in pov/index.html (one <section data-pv-step> per slide) so
   copy can be edited without touching JS. js/pov2.js only toggles slides and
   keeps ?s= in the URL.                                                     */

.pv { width: 100%; max-width: 1440px; margin: 0 auto; justify-self: center; padding: clamp(12px, 1.8vw, 24px) 0 clamp(22px, 3.5vw, 40px); }

.pv__box {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border-radius: 28px; overflow: hidden;
    border: 1px solid rgba(17,17,16,.05);
    box-shadow: 0 1px 2px rgba(17,17,16,.04), 0 24px 60px -30px rgba(17,17,16,.35);
    /* "almost full screen": viewport minus the header, the footer and the
       page gutters. A fixed HEIGHT (not min-height) is what lets .pv__body
       scroll internally so the Back/Next bar never leaves the screen. */
    height: max(540px, calc(100dvh - var(--pv-chrome, 206px)));
}
.pv__box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #ff1e80, #9c32b0, #6000ff); z-index: 1; }

.pv__stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; flex: 1; padding: clamp(30px, 4vw, 62px) clamp(24px, 3.4vw, 56px) clamp(20px, 2.2vw, 30px); }

.pv__label { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); background: var(--panel, #f5f4f0); border: 1px solid var(--card-border, rgba(17,17,16,.08)); border-radius: 999px; padding: 6px 16px; margin: 0 0 clamp(16px, 1.8vw, 24px); }
.pv__label span { color: var(--ink-mute); font-weight: 400; font-variant-numeric: tabular-nums; }

.pv__cta .btn-dark, .pv__nav .btn-dark, .pv__nav .btn-login { cursor: pointer; }

/* ── corner sticker (slide 1) ──────────────────────────────────────────────
   Stuck to the top-right of the card, tilted. The site allows exactly one
   rotated element (the offer ribbon) — this is the deck's equivalent, so it
   stays ink-on-white like a button rather than adding a second gradient.
   Absolutely positioned against .pv__box, so it sits in the card corner while
   living inside slide 1's markup and appearing only there. */
.pv__sticker {
    position: absolute; top: clamp(20px, 2.2vw, 32px); right: clamp(20px, 2.2vw, 34px); z-index: 2;
    display: grid; place-items: center; width: clamp(112px, 9.5vw, 134px); aspect-ratio: 1;
    border-radius: 50%; background: var(--ink); color: #fff; text-decoration: none;
    border: 0; padding: 0; font: inherit; cursor: pointer;
    box-shadow: 0 10px 30px -12px rgba(17,17,16,.45);
    transform: rotate(-8deg);
    transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s cubic-bezier(.2,.7,.2,1);
}
.pv__sticker::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); pointer-events: none; }
.pv__sticker-in { display: grid; justify-items: center; gap: 4px; text-align: center; line-height: 1.2; }
.pv__sticker em { font-style: normal; font-family: var(--font-sans); font-size: clamp(11px, .9vw, 12.5px); font-weight: 500; line-height: 1.25; color: rgba(255,255,255,.8); }
.pv__sticker b { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 25px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.pv__sticker svg { width: 15px; height: 15px; margin-top: 3px; opacity: .8; transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.pv__sticker:hover, .pv__sticker:focus-visible { transform: rotate(-2deg) scale(1.045); box-shadow: 0 16px 40px -14px rgba(17,17,16,.55); }
.pv__sticker:hover svg, .pv__sticker:focus-visible svg { transform: translateX(3px); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pv__sticker, .pv__sticker svg { transition: none; } }
@media (max-width: 760px) {
    .pv__sticker { position: relative; top: auto; right: auto; width: 96px; margin: 0 0 20px; transform: rotate(-6deg); }
    .pv__sticker em { font-size: 10.5px; }
    .pv__sticker b { font-size: 19px; }
    .pv__sticker svg { width: 13px; margin-top: 2px; }
}
.pv__h { font-family: var(--font-serif); font-weight: 400; font-variation-settings: 'SOFT' 50; font-size: clamp(32px, 3.6vw, 58px); line-height: 1.04; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 20px; max-width: none; text-wrap: balance; }
.pv__h--sm { font-size: clamp(24px, 2.3vw, 36px); line-height: 1.16; letter-spacing: -0.02em; max-width: none; }
.pv__lead { font-size: clamp(19px, 1.7vw, 27px); font-weight: 400; line-height: 1.4; color: var(--ink-soft); margin: 0 0 clamp(20px, 2.4vw, 30px); max-width: none; text-wrap: pretty; }
.pv__lead b { font-weight: 600; color: var(--ink); }

/* the scrolling middle — the button bar below it never moves */
/* Short slides sit centred in the card rather than stranded at the top;
   `safe` keeps a slide that overflows anchored to the top so nothing is
   scrolled off the beginning. */
.pv__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding-right: 4px; scrollbar-width: thin; display: flex; flex-direction: column; justify-content: safe center; }
.pv__body > * { flex: 0 0 auto; }
.pv__step > * + * { margin-top: clamp(16px, 1.8vw, 24px); }
/* When a slide is taller than the card, fade its last line rather than
   slicing it — a hard clip at the nav rule reads as a broken layout. */
.pv__body.is-over { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 46px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 46px), transparent); }
.pv__body.is-end { -webkit-mask-image: none; mask-image: none; }

.pv__p { font-size: clamp(17px, 1.35vw, 21px); font-weight: 300; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: none; text-wrap: pretty; }
.pv__p--wide { max-width: none; }
.pv__p b { font-weight: 600; color: var(--ink); }
.pv__p a, .pv__lead a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(17,17,16,.35); transition: text-decoration-color .25s cubic-bezier(.2,.7,.2,1); }
.pv__p a:hover, .pv__lead a:hover { text-decoration-color: var(--ink); }
.pv__ticks { max-width: none; gap: 13px; }
.pv__ticks li { font-size: clamp(17px, 1.4vw, 22px); text-wrap: pretty; }

/* the slide's own call to action — the second half of "content and button" */
.pv__cta { margin-top: clamp(24px, 3vw, 38px) !important; }
.pv__cta .btn-dark { font-size: 16.5px; }
/* two side-by-side CTAs (slide 9) — the primary and the ghost, never two primaries */
.pv__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(24px, 3vw, 38px) !important; }
.pv__ctas .btn-dark, .pv__ctas .btn-login { font-size: 16.5px; cursor: pointer; }

/* ── the three options (slide 2) ───────────────────────────────────────── */
.pv__opts-h { font-size: 13px; font-weight: 600; color: var(--ink-mute); margin: 0; }
.pv__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pv__cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pv__alt { background: #fff; border: 1px solid rgba(17,17,16,.12); border-radius: 16px; padding: 17px 16px 16px; box-shadow: var(--shadow-tile, 0 1px 2px rgba(17,17,16,.04), 0 10px 30px -20px rgba(17,17,16,.25)); }
.pv__alt h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 12px; }
.pv__alt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
/* Pros carry the same drawn tick as .ticks; cons carry a cross in a muted
   disc — drawn, not a glyph, and no colour (see the frontend4 design rules). */
.pv__alt li { position: relative; padding-left: 23px; font-size: 14.5px; font-weight: 300; line-height: 1.5; color: var(--ink-soft); }
.pv__alt li::before { content: ""; position: absolute; left: 0; top: .22em; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.pv__alt li::after { content: ""; position: absolute; left: 4px; top: calc(.22em + 5px); width: 8px; height: 4px; border-left: 1.7px solid #fff; border-bottom: 1.7px solid #fff; transform: rotate(-45deg); }
.pv__alt li.is-limit { color: var(--ink-mute); }
.pv__alt li.is-limit::before { background: rgba(17,17,16,.3); }
.pv__alt li.is-limit::after {
    left: 0; top: .22em; width: 16px; height: 16px; border: 0; transform: none;
    background-image:
        linear-gradient(45deg, transparent 43%, #fff 43%, #fff 57%, transparent 57%),
        linear-gradient(-45deg, transparent 43%, #fff 43%, #fff 57%, transparent 57%);
    background-size: 8px 8px; background-position: center; background-repeat: no-repeat;
}
.pv__alt li.is-limit:first-of-type { margin-top: 4px; }

/* Slide 9 uses the shared .qbox component (css/learn.css); only its spacing
   below the buttons is a deck concern. */
.qboxes { margin-top: clamp(30px, 3.6vw, 48px) !important; }

/* ── the comparison table (slide 8) ────────────────────────────────────── */
/* The table is the point of this slide, so its heading and intro give way. */
.pv__step--table .pv__h { font-size: clamp(28px, 2.6vw, 42px); margin-bottom: 14px; }
.pv__step--table .pv__p { font-size: 15.5px; line-height: 1.55; }
.pv__step--table > * + * { margin-top: 14px; }
.pvt { max-width: 100%; overflow-x: auto; }
.pvt__t { width: 100%; min-width: 640px; border-collapse: collapse; }
.pvt__t caption { text-align: left; }
.pvt__t th, .pvt__t td { padding: 10px 12px; text-align: center; vertical-align: middle; }
.pvt__t thead th:first-child { text-align: left; }
.pvt__t thead th { font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; border-bottom: 1px solid rgba(17,17,16,.14); padding-bottom: 12px; }
.pvt__t tbody th { text-align: left; font-size: 14.5px; font-weight: 300; line-height: 1.4; color: var(--ink-soft); width: 46%; }
.pvt__t tbody tr + tr th, .pvt__t tbody tr + tr td { border-top: 1px solid rgba(17,17,16,.07); }
.pvt__vs { font-family: var(--font-serif); font-weight: 400; font-variation-settings: 'SOFT' 50; font-size: 19px; letter-spacing: -0.02em; }
/* our column is the one the eye should land on */
.pvt__t .pvt__us { background: var(--panel, #f5f4f0); }
.pvt__t thead .pvt__us { border-radius: 12px 12px 0 0; }
.pvt__t tbody tr:last-child .pvt__us { border-radius: 0 0 12px 12px; }

.pvt-y, .pvt-p, .pvt-n { display: inline-block; position: relative; width: 16px; height: 16px; vertical-align: middle; }
.pvt-y { border-radius: 50%; background: var(--ink); }
.pvt-y::after { content: ""; position: absolute; left: 4px; top: 5px; width: 8px; height: 4px; border-left: 1.7px solid #fff; border-bottom: 1.7px solid #fff; transform: rotate(-45deg); }
.pvt-p { border-radius: 50%; border: 1.6px solid rgba(17,17,16,.42); background: linear-gradient(90deg, rgba(17,17,16,.42) 50%, transparent 50%); }
.pvt-n { height: 16px; }
.pvt-n::after { content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 1.6px; background: rgba(17,17,16,.22); }

/* the legend and the slide's button share one row — the table is tall, and a
   CTA on its own line pushed the button below the fold */
.pvt__swipe { display: none; }
.pvt__foot { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); flex-wrap: wrap; margin-top: 14px; }
.pvt__foot .pvt__key { margin: 0; flex: 1 1 320px; }
.pvt__foot .btn-dark { flex: none; height: 46px; padding: 0 18px; font-size: 14.5px; cursor: pointer; }
.pvt__key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 18px 0 0; font-size: 13px; font-weight: 300; color: var(--ink-mute); }
.pvt__key span { display: inline-flex; align-items: center; gap: 7px; }
.pvt__key em { font-style: normal; margin-left: auto; }

/* ── bottom: back / progress / next ────────────────────────────────────── */
.pv__nav { display: flex; align-items: center; gap: 14px; margin: clamp(18px, 2vw, 26px) clamp(24px, 3.4vw, 56px) clamp(22px, 2.6vw, 34px); padding-top: clamp(16px, 1.8vw, 22px); border-top: 1px solid rgba(17,17,16,.08); }
.pv__nav .btn-dark, .pv__nav .btn-login { height: 48px; padding: 0 20px; font-size: 15px; }
.pv__nav .btn-dark { margin-left: auto; }
.pv__count { font-size: 13px; font-weight: 400; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.pv__count b { color: var(--ink); font-weight: 600; }
.pv__dots { display: flex; gap: 7px; }
.pv__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(17,17,16,.16); cursor: pointer; transition: background .25s cubic-bezier(.2,.7,.2,1), transform .25s cubic-bezier(.2,.7,.2,1); }
.pv__dots button:hover { background: rgba(17,17,16,.4); }
.pv__dots button.is-on { background: var(--ink); transform: scale(1.35); }

/* ── slide visibility (JS adds .is-on; no-JS shows them all, stacked) ───── */
.pv__step[hidden] { display: none; }
.pv--js .pv__step { display: none; }
.pv--js .pv__step.is-on { display: block; animation: pvIn .34s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pvIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pv--js .pv__step.is-on { animation: none; } }

/* Short laptops: tighten so a slide still lands without an inner scroll. */
@media (min-width: 1001px) and (max-height: 900px) {
    .pv__h { font-size: clamp(30px, 2.9vw, 44px); margin-bottom: 16px; }
    .pv__h--sm { font-size: clamp(23px, 2vw, 30px); }
    .pv__lead { font-size: 21px; margin-bottom: 20px; }
    .pv__step > * + * { margin-top: 15px; }
    .pv__p { font-size: 18px; line-height: 1.58; }
    .pv__ticks { gap: 8px; }
    .pv__ticks li { font-size: 17.5px; }
    .pv__step > * + * { margin-top: 13px; }
    .pv__cta, .pv__ctas { margin-top: 14px !important; }
    .pv__stage { padding: 38px 44px 16px; }
    .pv__nav { margin: 16px 44px 24px; }
    .pv__alt { padding: 15px 14px 14px; }
    .pv__alt h3 { margin-bottom: 9px; }
    .pv__alt ul { gap: 6px; }
    .pv__alt li { font-size: 14px; }
    .pvt__t th, .pvt__t td { padding: 5px 10px; }
    .pvt__t tbody th { font-size: 13.5px; }
    .pv__step--table .pv__h { font-size: clamp(26px, 2.2vw, 34px); margin-bottom: 10px; }
    .pv__step--table .pv__p { font-size: 14.5px; line-height: 1.5; }
    .pv__step--table > * + * { margin-top: 11px; }
    .pvt__foot { margin-top: 10px; }
    .pvt__key { font-size: 12px; }
    .pvt__t th, .pvt__t td { padding: 4px 10px; }
}

@media (max-width: 1000px) {
    .pv__box { height: auto; }
    .pv__body { overflow: visible; }
    .pv__cols--3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .pv__cols { grid-template-columns: 1fr; }
    .pvt__key em { margin-left: 0; }
    /* Ten dots + a counter + two buttons do not fit 390px: the counter wrapped
       to three lines and Next overflowed the card. Dots go, the counter stays
       on one line, and the two buttons take the ends. */
    .pv__nav { gap: 10px; justify-content: space-between; }
    .pv__dots { display: none; }
    .pv__count { white-space: nowrap; }
    .pv__nav .btn-login, .pv__nav .btn-dark { height: 46px; padding: 0 16px; font-size: 14.5px; }
    /* a little more air between blocks once everything is one column */
    .pv__step > * + * { margin-top: 20px; }

    /* Footer: the shared .foot wraps mid-list and leaves a dangling separator.
       Scoped to this page (.foot--insights) so 70+ other pages are untouched. */
    /* Drop the "·" separators entirely rather than leave one dangling at each
       wrap point — space does the separating once the row wraps. */
    .foot--insights nav { justify-content: center; text-align: center; gap: 8px 18px; }
    .foot--insights nav > span:not([class]), .foot--insights .foot__sep--note { display: none; }
    .foot--insights .foot__note { flex: 0 0 100%; margin-top: 2px; }
    /* The comparison table cannot fit five columns in 390px, so it scrolls
       inside .pvt — say so, otherwise the reader sees row labels and no marks. */
    .pvt__swipe { display: block; margin: 10px 0 0; font-size: 12.5px; font-weight: 400; color: var(--ink-mute); }
    /* A 42%-wide label column left barely one comparison column on screen.
       Narrow it to a fixed 124px, tighten the cells, and make it STICKY so the
       row you are reading stays anchored while the marks scroll past it. */
    .pvt__t { min-width: 430px; }
    .pvt__t th, .pvt__t td { padding: 7px 5px; }
    .pvt__t tbody th {
        width: 124px; min-width: 124px; font-size: 12px; line-height: 1.3;
        position: sticky; left: 0; z-index: 1; background: #fff;
        padding-left: 0; padding-right: 8px;
    }
    .pvt__t thead th:first-child { position: sticky; left: 0; z-index: 2; background: #fff; padding-left: 0; }
    .pvt__vs { font-size: 16px; }
    .pvt__t thead th { font-size: 11px; }
}
