/*
 * Octopia — the demonstration page, `/p/{token}`.
 *
 * It is a SALES page: the one page a prospect who received our email ever
 * sees (owner, 2026-10-01: « il faut que ça claque autant que la landing…
 * là on dirait une page technique »). It speaks the landing's visual
 * language — the night-blue aurora band, the big headline, the glowing
 * button — without loading the landing's stylesheets, which carry their own
 * navigation and reveal machinery. Tokens come from octopia.css.
 *
 * The order is ADR-0107's and does not move: the comparison comes first.
 * Everything that sells Octopia sits BELOW it.
 */

.pv-main { display: block; padding: 0; }
.pv-shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pv-section { padding: clamp(40px, 6vw, 72px) 0; }
.pv-section-tight { padding: clamp(28px, 4vw, 44px) 0 0; }

.pv-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--blue-100); color: var(--blue-700);
}
.pv-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- hero */
.pv-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 88px);
  background: radial-gradient(120% 100% at 50% 0%, #123f6e 0%, #0a2444 45%, #061527 100%);
}
.pv-aurora { position: absolute; inset: 0; pointer-events: none; }
.pv-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: pv-drift 18s ease-in-out infinite alternate; }
.pv-blob-1 { width: 520px; height: 520px; left: -140px; top: -160px; background: #2c78c2; }
.pv-blob-2 { width: 420px; height: 420px; right: -100px; top: 20px; background: #1c5fa1; animation-delay: -6s; }
.pv-blob-3 { width: 380px; height: 380px; left: 45%; bottom: -220px; background: #b98314; opacity: .3; animation-delay: -12s; }
@keyframes pv-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -40px, 0) scale(1.15); }
}
.pv-grid-lines {
  position: absolute; inset: 0; opacity: .25;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 40%, #000 0%, transparent 100%);
          mask-image: radial-gradient(90% 70% at 50% 40%, #000 0%, transparent 100%);
}
.pv-hero-inner { position: relative; z-index: 1; }
.pv-hero .pv-eyebrow { background: rgba(255, 255, 255, .12); color: #dbeafe; }
/* The product's own title, above a headline that sells. */
.pv-hero-kicker { margin: 0 0 14px; max-width: 46ch; font-size: 17px; font-weight: 600; line-height: 1.35; color: #b9d6f3; }
.pv-hero h1 {
  margin: 0 0 18px; max-width: 14ch;
  font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.04em; font-weight: 750;
}
.pv-hero-lede { margin: 0 0 30px; max-width: 46ch; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .8); }

/* The before → after figures: counted on the two descriptions, never estimated. */
.pv-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 34px; padding: 0; list-style: none; }
.pv-stat {
  min-width: 150px; padding: 16px 20px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pv-stat-figures { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.pv-stat-before { font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .5); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.pv-stat-arrow { color: rgba(255, 255, 255, .45); font-size: 16px; }
.pv-stat-after { font-size: 34px; font-weight: 750; letter-spacing: -.03em; line-height: 1; color: #fff; }
.pv-stat-label { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #9cc4ee; }

.pv-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Two halves on a wide screen (owner, 2026-10-01: the words alone used half
   the width and the band ran very tall). The words sit centred against the
   right half: the page's own first pictures, with the counted figures laid
   over them. Below 980px everything stacks, the pictures before the buttons. */
.pv-hero-visual { margin: 6px 0 34px; }
@media (min-width: 980px) {
  .pv-hero-inner.is-split {
    max-width: 1260px; display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: clamp(40px, 5vw, 80px);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". visual" "copy visual" "cta visual" ". visual";
  }
  .is-split .pv-hero-copy { grid-area: copy; }
  .is-split .pv-hero-cta { grid-area: cta; }
  .is-split .pv-hero-visual { grid-area: visual; align-self: center; margin: 0; }
  .is-split .pv-hero-lede { margin-bottom: 34px; }
}

.pv-hero-visual.has-shots { position: relative; width: 100%; max-width: 540px; margin-left: auto; margin-right: auto; }
@media (min-width: 980px) { .pv-hero-visual.has-shots { margin-right: 0; } }
.pv-shots { position: relative; aspect-ratio: 1 / .86; }
.pv-shot {
  position: absolute; margin: 0; overflow: hidden; aspect-ratio: 1; border-radius: 22px; background: #fff;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .16);
}
.pv-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-shot-1 { z-index: 1; top: 0; right: 0; width: 70%; }
.pv-shot-2 { z-index: 2; left: 0; top: 31%; width: 36%; border-radius: 18px; transform: rotate(-5deg); }
.pv-shot-3 { z-index: 0; left: 8%; top: 2%; width: 25%; border-radius: 16px; transform: rotate(5deg); opacity: .92; }
/* A page with a single picture: it takes the centre of the half. */
.pv-shot-1:last-of-type { right: 12%; width: 76%; }

/* The figures, as one glass bar across the foot of the pictures. */
.has-shots .pv-stats {
  position: absolute; z-index: 3; left: 4%; right: 4%; bottom: 0; margin: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0;
  padding: 6px; border-radius: 20px;
  background: rgba(7, 24, 45, .78); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6);
}
.has-shots .pv-stats:has(> :nth-child(4)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.has-shots .pv-stat { min-width: 0; padding: 12px 18px 10px; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-shots .pv-stat + .pv-stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.has-shots .pv-stats:has(> :nth-child(4)) .pv-stat:nth-child(3) { border-left: 0; }
.has-shots .pv-stats:has(> :nth-child(4)) .pv-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
.has-shots .pv-stat-before { font-size: 15px; }
.has-shots .pv-stat-after { font-size: 30px; }
.has-shots .pv-stat-label { font-size: 11.5px; }

/* No picture to show: the figures alone fill the half, two by two. */
.pv-hero-visual:not(.has-shots) .pv-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.pv-hero-visual:not(.has-shots) .pv-stat { min-width: 0; padding: 22px 24px 18px; }
@media (min-width: 980px) { .pv-hero-visual:not(.has-shots) .pv-stat-after { font-size: 46px; } }

.pv-btn-outline {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .38);
  transition: background .2s ease, border-color .2s ease, transform .25s ease;
}
.pv-btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); color: #fff; transform: translateY(-2px); }
/* The Shopify App Store listing, in Shopify's own green and bag. */
.pv-btn-shopify {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #008060; color: #fff; border: 1px solid #008060;
  transition: background .2s ease, border-color .2s ease, transform .25s ease;
}
.pv-btn-shopify svg { width: 20px; height: 20px; flex: 0 0 auto; }
.pv-btn-shopify:hover { background: #006e52; border-color: #006e52; color: #fff; transform: translateY(-2px); }

/* ------------------------------------------------------------- pending */
.pv-pending { margin-top: clamp(28px, 4vw, 44px); }
.pv-step { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }

/* ---------------------------------------------------------- comparison */
/* Centred in the page's own column, one above the other. On a screen wide
   enough the two sit side by side, 50/50 (owner, 2026-10-01) — but only
   there: the "after" side is a real storefront layout whose rows fold into a
   stack below 640px of FRAME width (ADR-0107), so the pair needs a container
   of 1392px at least, which is what a 1440px viewport gives it. */
.pv-duo { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pv-duo .pv-arrow { margin: 14px 0; }
@media (min-width: 1440px) {
  .pv-duo.is-pair { max-width: 1640px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 18px; align-items: start; }
  /* Their page stays in view while the reader scrolls down ours. */
  .pv-duo.is-pair .pv-side-before { position: sticky; top: 84px; }
  .pv-duo.is-pair .pv-arrow { position: sticky; top: 50vh; margin: 110px 0 0; }
  .pv-duo.is-pair .pv-arrow svg { transform: rotate(-90deg); }
}
.pv-side { margin: 0; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pv-side-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 20px 24px 16px; }
.pv-side-head h2 { margin: 0; font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -.02em; line-height: 1.2; }
.pv-badge {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--surface-sunken); color: var(--ink-500); border: 1px solid var(--line);
}
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.pv-chip { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-sunken); color: var(--ink-500); border: 1px solid var(--line); white-space: nowrap; }
.pv-side-notes { margin: 0; padding: 0 24px 18px; }
.pv-observations { margin: 0 0 6px; padding-left: 20px; }
.pv-observations li { margin: 0 0 4px; color: var(--ink-700); font-size: 14.5px; line-height: 1.55; }
.pv-side-notes .muted { margin: 0; font-size: 12.5px; }

/* The side Octopia produced is the hero of the page: it carries the accent. */
/* The hero's button lands here; the sticky navigation must not cover the title. */
.pv-side-after { scroll-margin-top: 84px; }
html:has(.pv-main) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.pv-main) { scroll-behavior: auto; } }
.pv-side-after { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(44, 120, 194, .12), var(--shadow-lg); }
.pv-side-after .pv-side-head { background: linear-gradient(180deg, var(--blue-050), var(--surface)); }
.pv-side-after .pv-badge { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.pv-side-after .pv-chip { background: var(--blue-050); color: var(--blue-700); border-color: var(--blue-100); }

/* The merchant's HTML is third-party markup on an Octopia page: it renders in
   a sandboxed frame with no scripts and no forms. The frame's height follows
   its content (script below the page); 620px is what a reader without
   JavaScript gets, and the ceiling of the "before" side. */
.pv-frame-wrap { position: relative; border-top: 1px solid var(--line); background: #fff; }
.pv-frame { display: block; width: 100%; height: 620px; border: 0; background: #fff; }
.pv-frame-wrap.is-clipped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 78%);
}
.pv-expand { display: none; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1; box-shadow: var(--shadow); }
.pv-frame-wrap.is-clipped .pv-expand { display: inline-flex; }

/* Between the two sides: the eye is told which way to read. */
.pv-arrow { display: flex; justify-content: center; margin: -6px 0; position: relative; z-index: 1; }
.pv-arrow span {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-600); color: #fff; box-shadow: 0 8px 24px rgba(28, 95, 161, .35); border: 4px solid var(--surface);
}
.pv-arrow svg { width: 22px; height: 22px; }

/* ------------------------------------------------- what Octopia did here */
.pv-h2 { margin: 0 0 18px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.03em; }
.pv-sub { margin: 0 0 30px; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--ink-500); }
.pv-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.pv-reasons li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-700); }
.pv-reasons strong { color: var(--ink-900); font-weight: 750; }
.pv-check { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--success-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-check circle { stroke-width: 1.5; fill: var(--success-050); }

/* --------------------------------------- what Octopia does, once connected */
.pv-band { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pv-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.pv-feature {
  margin: 0; padding: 24px 24px 22px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pv-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.pv-feature-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 16px; border-radius: 12px; background: var(--blue-050); color: var(--blue-600); }
.pv-feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv-feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.pv-feature p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-500); }

/* Right under the title: a team is the first thing the title promises. */
.pv-team { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 32px; }
.pv-team-faces { display: flex; padding-left: 10px; }
.pv-team-faces img { width: 38px; height: 38px; margin-left: -10px; border-radius: 50%; object-fit: cover; border: 3px solid var(--canvas); background: var(--surface); }
.pv-team p { margin: 0; font-size: 16.5px; font-weight: 600; color: var(--ink-900); }
.pv-team a { font-weight: 650; color: var(--blue-600); text-decoration: none; white-space: nowrap; }
.pv-team a:hover { text-decoration: underline; }

/* ------------------------------------------------------- call to action */
.pv-cta-band { position: relative; overflow: hidden; color: #fff; text-align: center; padding: clamp(56px, 8vw, 96px) 0; background: radial-gradient(120% 120% at 50% 100%, #123f6e 0%, #0a2444 50%, #061527 100%); }
.pv-cta-band .pv-shell { position: relative; z-index: 1; }
.pv-cta-band .pv-eyebrow { background: rgba(185, 131, 20, .22); color: #fbe3ad; }
.pv-cta-band h2 { margin: 0 auto 14px; max-width: 18ch; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -.035em; }
.pv-cta-band p { margin: 0 auto; max-width: 56ch; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.pv-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 32px 0 0; }
.pv-cta-band .pv-cta-fine { margin-top: 20px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }

@media (max-width: 720px) {
  .pv-chips { margin-left: 0; }
  .pv-stat { flex: 1 1 140px; }
  /* On a phone the bar sits under the pictures, overlapping their foot. */
  .has-shots .pv-stats { position: relative; left: auto; right: auto; margin-top: -36px; grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .has-shots .pv-stat { padding: 10px 10px 8px; }
  .has-shots .pv-stat-before { font-size: 12.5px; }
  .has-shots .pv-stat-arrow { font-size: 13px; }
  .has-shots .pv-stat-after { font-size: 22px; }
  .has-shots .pv-stat-figures { gap: 5px; }
  .has-shots .pv-stat-label { font-size: 10.5px; }
  .pv-hero-cta .btn, .pv-cta-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-blob { animation: none; }
  .pv-feature, .pv-btn-outline, .pv-btn-shopify { transition: none; }
}

/* The way on, always in view (ADR-0162). */
.pv-next { position: sticky; bottom: 0; z-index: 30; padding: 12px 16px; background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(12, 49, 89, .10); backdrop-filter: blur(8px); }
.pv-next-row { display: flex; align-items: center; justify-content: center; gap: 18px; max-width: 760px; margin: 0 auto; }
.pv-next p { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink-900); }
.pv-next .btn { padding: 13px 34px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 520px) {
  .pv-next-row { gap: 10px; justify-content: space-between; }
  .pv-next p { font-size: 15px; }
  .pv-next .btn { padding: 12px 20px; font-size: 15px; }
}
