/* Cloudsnap homepage, version C: the Polarsteps reading. Loaded after home.css and scoped to body.variant-c,
   so versions A and B are untouched. Same tokens, type scale and colours; the structure follows Polarsteps:
   centred hero on a full-bleed photo, one pinned phone scene with a chapter bar, a grid of cards, a photo close. */

.variant-c { --radius-card: 16px; --hero-phone-show: 320px;
  /* Motion: three durations and three curves. UI feedback is quick; things that travel across the screen ease
     in and out; things that arrive decelerate, things that leave accelerate away. */
  --dur-ui: 180ms; --dur-move: 420ms; --dur-scene: 800ms;
  --ease-enter: cubic-bezier(.16, 1, .3, 1); --ease-exit: cubic-bezier(.4, 0, 1, 1); --ease-move: cubic-bezier(.65, 0, .35, 1); }

/* ---------- Header: transparent on the hero photo, then a floating bar ---------- */
.variant-c .site-header { position: fixed; top: 0; left: 50%; right: auto; width: 100%; transform: translateX(-50%); border: 1px solid transparent; border-radius: 0;
  transition: top var(--dur-move) var(--ease-move), width var(--dur-move) var(--ease-move), border-radius var(--dur-move) var(--ease-move),
    background-color var(--dur-ui), border-color var(--dur-move), box-shadow var(--dur-move), color var(--dur-ui); }
.variant-c .header-inner { transition: height var(--dur-move) var(--ease-move), padding var(--dur-move) var(--ease-move); }
.variant-c .site-header.on-photo { background: transparent; border-color: transparent transparent color-mix(in srgb, var(--white) 25%, transparent); color: var(--white); }
.variant-c .site-header.on-photo .logo-ink { opacity: 0; }
.variant-c .site-header.on-photo .logo-white { opacity: 1; }
.variant-c .site-header.on-photo .header-cta { background: var(--white); color: var(--ink); }
.variant-c .site-header.floating { top: 12px; width: min(760px, calc(100% - 24px)); border-color: var(--line); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 12px 32px -18px color-mix(in srgb, var(--ink) 45%, transparent); }
.variant-c .site-header.floating .header-inner { height: 60px; padding: 0 10px 0 24px; }
.variant-c .site-header.floating .main-nav, .variant-c .site-header.floating .hide-narrow { display: none; }
.variant-c .site-header.floating .menu-button { display: block; }
.variant-c .site-header.floating .header-tools { margin-left: auto; }

/* ---------- 1. Hero ---------- */
.variant-c .hero { display: flex; flex-direction: column; align-items: center; padding-top: 148px; color: var(--white); text-align: center; overflow-x: clip; }
.variant-c .hero-photo { position: absolute; inset: 0; background-position: 50% 30%; }
.variant-c .hero-photo::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, color-mix(in srgb, var(--ink) 62%, transparent) 0%, color-mix(in srgb, var(--ink) 62%, transparent) 50%, color-mix(in srgb, var(--ink) 10%, transparent) 100%); }
/* The album in the hero phone fills one photo at a time, once, after the page has settled. */
@keyframes tile-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
#hero-phone .tile { animation: tile-in var(--dur-move) var(--ease-enter) calc(700ms + var(--n, 0) * 90ms) both; }
/* The page colour rises into the bottom of the photo as a shallow curve; the phone stands in front of it. */
.variant-c .hero::after { content: ''; position: absolute; left: -15%; right: -15%; bottom: -90px; height: 180px; border-radius: 50%; background: var(--paper); z-index: 1; }
.variant-c .hero-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.variant-c .hero-display { margin-bottom: 8px; }
.variant-c .hero-display .line { display: inline; }
.variant-c .hero-sub { max-width: 58ch; color: color-mix(in srgb, var(--white) 90%, transparent); }
.variant-c .hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.variant-c .hero .note { color: color-mix(in srgb, var(--white) 90%, transparent); }
/* Full width, so the phone (absolutely placed) has a width to size against on narrow screens. */
.variant-c .hero-phone-wrap { position: relative; z-index: 3; align-self: stretch; height: var(--hero-phone-show); margin-top: 56px; display: flex; justify-content: center; }
.variant-c .hero-phone-wrap .phone { position: absolute; top: 0; right: auto; }

/* ---------- 2. Journey ---------- */
/* The intro clears the part of the hero phone that hangs below the hero. */
.journey-intro { padding: calc(620px - var(--hero-phone-show) + 72px) 0 24px; text-align: center; }
.journey-intro .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* 100vh for the pinned screen plus 60vh of scrolling per step. */
.journey { position: relative; height: calc(100vh + 4 * 60vh); background: var(--paper); transition: background-color 600ms var(--ease-move), color 600ms var(--ease-move); --swap-delay: 160ms; --sp: 0.5; }
.journey[data-chapter="2"] { background: var(--ink); color: var(--paper); }
.journey[data-chapter="3"] { background: var(--paper-raised); }
.journey-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.journey-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.journey-stage { grid-column: 1; grid-row: 1; position: relative; height: min(74vh, 660px); display: grid; place-items: center; transition: transform var(--dur-scene) var(--ease-move); }
/* The phone drifts a few pixels with the scroll inside a step, so scrolling always moves something. */
.journey-stage > .phone { position: relative; z-index: 2; translate: 0 calc((0.5 - var(--sp)) * 28px); }
/* Screens swap after the phone has settled: the new one fades in on top after --swap-delay (longer when the phone
   also travels to a new place), and the old one stays underneath until it has, so the phone is never empty. */
#journey-phone .screen { opacity: 0; z-index: 0; transition: opacity 0s linear calc(var(--swap-delay) + var(--dur-move)); }
#journey-phone .screen[data-active] { opacity: 1; z-index: 1; transition: opacity var(--dur-move) var(--ease-enter) var(--swap-delay); }
.journey-copy { grid-column: 2; grid-row: 1; position: relative; min-height: 380px; transition: transform var(--dur-scene) var(--ease-move); }
.jstep { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 520px; opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity var(--dur-ui) var(--ease-exit), transform var(--dur-ui) var(--ease-exit); }
.journey[data-step="1"] .jstep[data-step="1"], .journey[data-step="2"] .jstep[data-step="2"],
.journey[data-step="3"] .jstep[data-step="3"], .journey[data-step="4"] .jstep[data-step="4"] { opacity: 1; transform: none; pointer-events: auto;
  transition: opacity var(--dur-move) var(--ease-enter) var(--swap-delay), transform var(--dur-scene) var(--ease-enter) var(--swap-delay); }
/* An entering step rises from below; a leaving one lifts away. */
.journey .jstep:not([data-step="1"]) { transform: translateY(20px); }
.journey[data-step="2"] .jstep[data-step="1"], .journey[data-step="3"] .jstep[data-step="2"], .journey[data-step="3"] .jstep[data-step="1"],
.journey[data-step="4"] .jstep:not([data-step="4"]) { transform: translateY(-12px); }
.jstep-label { color: var(--accent-on-light); }
.jstep-media { display: none; }
/* Chapter 2: the phone crosses to the right, the text to the left, on the dark background. */
.journey[data-chapter="2"] .journey-stage { transform: translateX(calc(100% + 64px)); }
.journey[data-chapter="2"] .journey-copy { transform: translateX(calc(-100% - 64px)); }
.journey[data-chapter="2"] .muted { color: color-mix(in srgb, var(--paper) 74%, transparent); }
.journey[data-chapter="2"] .jstep-label { color: var(--accent-on-dark); }
.journey[data-chapter="2"] .support { border-color: var(--paper); }
/* Chapter 3: the phone in the middle, smaller, with the album's photos around it; the text underneath. */
.journey[data-chapter="3"] .journey-stage { transform: translateX(calc(50% + 32px)) translateY(-11vh) scale(0.78); }
.journey[data-chapter="3"] .journey-copy { transform: translateX(calc(-50% - 32px)) translateY(30vh); }
.journey[data-chapter="3"] .jstep[data-step="4"] { align-items: center; text-align: center; margin: 0 auto; inset: 0 -40px; max-width: none; gap: 10px; }
.journey[data-chapter="3"] .jstep[data-step="4"] .support { display: none; }
.journey[data-chapter="3"] .jstep[data-step="4"] { inset: 0 -24%; }
.journey[data-chapter="3"] .jstep[data-step="4"] .muted { max-width: 60ch; }

/* Cards that slide out of the phone */
.float-card { position: absolute; z-index: 3; opacity: 0; transition: opacity var(--dur-ui) var(--ease-exit), transform var(--dur-ui) var(--ease-exit); pointer-events: none; }
.journey[data-step="2"] .float-qr, .journey[data-step="3"] .float-upload { transition: opacity var(--dur-move) var(--ease-enter) calc(var(--swap-delay) + 120ms), transform var(--dur-scene) var(--ease-enter) calc(var(--swap-delay) + 120ms); }
.float-qr { left: calc(50% + 70px); top: 58%; width: 280px; transform: translate(-40px, 20px) rotate(0deg); }
.float-qr .qr-card { box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--ink) 45%, transparent); }
.journey[data-step="2"] .float-qr { opacity: 1; transform: translate(0, 0) rotate(-4deg); }
.float-upload { right: calc(50% + 80px); top: 30%; width: 240px; background: var(--white); border-radius: 12px; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 10px; transform: translate(40px, 20px) rotate(0deg); box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--ink) 60%, transparent); }
.float-upload .bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.float-upload .bar > span { display: block; height: 100%; width: 66%; background: var(--accent); }
.float-photo { display: block; aspect-ratio: 4 / 5; border-radius: 6px; background-position: 50% 50%; }
.journey[data-step="3"] .float-upload { opacity: 1; transform: rotate(-3deg); }

/* Step 3: the upload stalls when the Wi-Fi drops, then resumes and reaches 12 of 18 (66%), as the screen says. */
@keyframes upload-resume { 0% { width: 18%; } 32% { width: 44%; } 62% { width: 44%; } 100% { width: 66%; } }
@keyframes upload-stall { 0%, 32% { opacity: 1; } 40%, 56% { opacity: 0.3; } 62%, 100% { opacity: 1; } }
@keyframes appear-late { 0%, 60% { opacity: 0; transform: translateY(4px); } 72%, 100% { opacity: 1; transform: none; } }
@keyframes fill-up { from { width: 8%; } to { width: 100%; } }
/* Phones: until the step-3 phone is in view, the bar waits at its starting point so the story does not jump back. */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .jstep[data-step="3"]:not(.is-playing) .bar > span { width: 18%; }
  .jstep[data-step="3"]:not(.is-playing) .bar + p { opacity: 0; }
}
#journey-phone [data-screen="guestUpload"][data-active] .bar > span,
.jstep.is-playing .bar > span { animation: upload-resume 3.4s var(--ease-move) var(--swap-delay) both, upload-stall 3.4s linear var(--swap-delay) both; }
#journey-phone [data-screen="guestUpload"][data-active] .bar + p,
.jstep.is-playing .bar + p { animation: appear-late 3.4s var(--ease-enter) var(--swap-delay) both; }
.journey[data-step="3"] .float-upload .bar > span { animation: fill-up 1.6s var(--ease-enter) calc(var(--swap-delay) + 300ms) both; }

/* Step 4: photos spread around the phone */
.memories { position: absolute; inset: 0; z-index: 1; }
.memory { position: absolute; width: 150px; aspect-ratio: 4 / 5; border-radius: 12px; opacity: 0; transform: scale(0.6); transition: opacity var(--dur-ui) var(--ease-exit), transform var(--dur-ui) var(--ease-exit); box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--ink) 50%, transparent); }
/* Each photo is centred on the orbit drawn below (ellipse centred at 50% / 44%, radii 78% and 34% of the stage),
   at 235°, 180° and 140° on the left and their mirror images on the right. */
.memories .memory { left: var(--x); top: var(--y); translate: -50% -50%; width: 112px; }
.memories .memory:nth-child(1) { --x: 5.2%; --y: 16.2%; width: 104px; }
.memories .memory:nth-child(2) { --x: -28%; --y: 44%; width: 128px; }
.memories .memory:nth-child(3) { --x: -9.7%; --y: 65.9%; }
.memories .memory:nth-child(4) { --x: 94.8%; --y: 16.2%; width: 104px; }
.memories .memory:nth-child(5) { --x: 128%; --y: 44%; width: 128px; }
.memories .memory:nth-child(6) { --x: 109.7%; --y: 65.9%; }
/* The orbit and a warm glow behind the phone tie the photos to it, so none floats on its own. */
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; opacity: 0; transform: scale(0.92);
  transition: opacity var(--dur-ui) var(--ease-exit), transform var(--dur-ui) var(--ease-exit); }
.orbit ellipse { fill: none; stroke: var(--ink); stroke-opacity: 0.36; stroke-width: 1.2; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.orbit ellipse + ellipse { stroke-opacity: 0.14; stroke-dasharray: none; }
.halo { position: absolute; left: 50%; top: 46%; width: 150%; aspect-ratio: 1.6; translate: -50% -50%; z-index: 0; pointer-events: none; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 6%, transparent) 55%, transparent);
  transition: opacity var(--dur-move) var(--ease-exit); }
.journey[data-step="4"] .orbit { opacity: 1; transform: none; transition: opacity var(--dur-move) var(--ease-enter) var(--swap-delay), transform var(--dur-scene) var(--ease-enter) var(--swap-delay); }
.journey[data-step="4"] .halo { opacity: 1; transition: opacity var(--dur-scene) var(--ease-enter) var(--swap-delay); }
@keyframes orbit-drift { to { stroke-dashoffset: -90; } }
.journey[data-step="4"] .orbit ellipse:first-child { animation: orbit-drift 18s linear infinite; }
.journey[data-step="4"] .memory { opacity: 1; transform: none;
  transition: opacity var(--dur-move) var(--ease-enter) calc(var(--swap-delay) + var(--i, 0) * 70ms), transform var(--dur-scene) var(--ease-enter) calc(var(--swap-delay) + var(--i, 0) * 70ms); }
.journey[data-step="4"] .memory:nth-child(even) { transform: rotate(3deg); }
.journey[data-step="4"] .memory:nth-child(odd) { transform: rotate(-3deg); }

/* Chapter bar: where you are in the story; each chapter is a link to its first step */
.journey-nav { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.journey-nav a { position: relative; text-decoration: none; padding: 9px 16px 8px; border-radius: var(--radius-pill); color: inherit; opacity: 0.6; transition: opacity var(--dur-ui), background-color var(--dur-move) var(--ease-move), color var(--dur-move) var(--ease-move); }
.journey-nav a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px; border-radius: 1px; background: currentColor; opacity: 0.55; transform: scaleX(var(--fill, 0)); transform-origin: left; }
.journey-nav a:hover { opacity: 1; }
.journey-nav a[aria-current] { opacity: 1; background: var(--ink); color: var(--paper); }
.journey[data-chapter="2"] .journey-nav a[aria-current] { background: var(--paper); color: var(--ink); }

/* ---------- 3. Events: one phone per kind of event ---------- */
.events-c { padding: var(--section-y) 0; background: var(--paper-raised); }

/* ---------- 4. Why Cloudsnap: card grid ---------- */
.why { padding: var(--section-y) 0; }
.why-title { text-align: center; margin-bottom: 56px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.card { position: relative; overflow: hidden; border-radius: var(--radius-card); padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px; }
.card-wide { grid-column: span 2; }
.card-ink { background: var(--ink); color: var(--paper); }
.card-ink .h2 { max-width: 18ch; }
.card-stone { background: var(--stone); }
.card-mist { background: var(--mist); }
.card-photo { grid-column: 3; grid-row: 1 / span 2; min-height: 520px; color: var(--white); }
.card-photo .photo { position: absolute; inset: 0; background-position: 55% 50%; }
.card-photo .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 0%, transparent) 30%, color-mix(in srgb, var(--ink) 78%, transparent) 100%); }
.card-photo-text { position: relative; display: flex; flex-direction: column; gap: 8px; }
.card-photo-text p { color: color-mix(in srgb, var(--white) 90%, transparent); }
.variant-c .card-photo .meta-chips { top: 24px; left: 24px; bottom: auto; transform: none; flex-direction: column; align-items: flex-start; }
.variant-c .compare-more { margin-top: 24px; }
.variant-c .compare-more:not([open]) { display: none; }
.variant-c .compare-table { margin-top: 0; }
.compare-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }

/* ---------- 5. Founder: one card, same radius and tones as the grid above ---------- */
.variant-c .founder { background: var(--paper); padding: 0 0 var(--section-y); }
.variant-c .founder-card { background: var(--mist); border-radius: var(--radius-card); padding: 48px; gap: 64px; }
.variant-c .founder-photo { border-radius: 12px; }

/* ---------- 6. Pricing: centred heading, two plan cards ---------- */
.variant-c .pricing { background: var(--paper-raised); }
.pricing-head { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 56px auto 0; }
.variant-c .plan { border-radius: var(--radius-card); padding: 40px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.variant-c .plan-free { background: var(--ink); color: var(--paper); box-shadow: none; }
.variant-c .plan-free .label, .variant-c .plan-free .plan-list { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.pricing-fine { margin-top: 24px; text-align: center; }

/* ---------- 7. FAQ: centred, each question a rounded row ---------- */
.variant-c .faq-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 48px; }
.variant-c .faq-grid > .h2 { text-align: center; }
.variant-c .faq-list { width: 100%; max-width: 820px; display: flex; flex-direction: column; gap: 8px; }
.variant-c .faq-list details { border: 0; border-radius: var(--radius-card); background: var(--paper-raised); transition: background-color 200ms; }
.variant-c .faq-list details:last-child { border: 0; }
.variant-c .faq-list summary { padding: 22px 28px; border-radius: var(--radius-card); align-items: center; }
.variant-c .faq-list summary::after { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--stone); line-height: 1; transition: background-color 200ms, color 200ms; }
.variant-c .faq-list details:hover, .variant-c .faq-list details[open] { background: var(--white); }
.variant-c .faq-list details[open] summary::after { background: var(--ink); color: var(--paper); }
.variant-c .faq-list details p { padding: 0 76px 24px 28px; }
.variant-c .faq-list { interpolate-size: allow-keywords; }
.variant-c .faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-move) var(--ease-move), content-visibility var(--dur-move) allow-discrete; }
.variant-c .faq-list details[open]::details-content { block-size: auto; }

/* ---------- Footer: a rounded block inset from the page edge, like the floating header ---------- */
.variant-c .site-footer { margin: 12px; border-radius: var(--radius-card); }

/* ---------- Menu: a card dropping from the header ---------- */
.variant-c .menu-button[aria-expanded="true"]::after { content: ' ×' / ''; }
.menu-panel { position: absolute; top: calc(100% + 8px); right: 12px; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper-raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px;
  box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--ink) 45%, transparent); text-align: left; }
.menu-panel { transition: opacity var(--dur-ui) var(--ease-enter), translate var(--dur-move) var(--ease-enter), display var(--dur-ui) allow-discrete; }
.menu-panel[hidden] { display: none; opacity: 0; translate: 0 -6px; transition: opacity var(--dur-ui) var(--ease-exit), translate var(--dur-ui) var(--ease-exit), display var(--dur-ui) allow-discrete; }
@starting-style { .menu-panel:not([hidden]) { opacity: 0; translate: 0 -6px; } }
.variant-c .site-header.floating .menu-panel { left: 0; right: 0; width: auto; }
.menu-groups { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 32px; }
.menu-heading { color: var(--ink-muted); margin-bottom: 14px; }
.menu-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.menu-list-two { gap: 10px 24px; }
.menu-list a { text-decoration: none; color: inherit; }
.menu-list a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-main { gap: 12px; }
.menu-foot { display: flex; align-items: center; gap: 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.menu-foot > a:not(.pill), .menu-lang a { color: inherit; }
/* The header already carries the start button on wider screens; the menu repeats it only on a phone. */
.menu-foot .pill { display: none; }
.menu-lang { color: var(--ink-muted); }

/* ---------- Interaction states ---------- */
.variant-c .pill:active { transform: translateY(0) scale(0.98); }
.variant-c .pill-ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.variant-c .pill-white:hover { background: var(--paper); }
.variant-c .pill-outline:hover { background: var(--ink); color: var(--paper); }
.variant-c .text-link:hover { text-decoration-thickness: 2px; }
.variant-c .journey-nav a:focus-visible { opacity: 1; }
/* Focus rings stay visible on dark cards and photos. */
.variant-c :is(.card-ink, .plan-free, .journey[data-chapter="2"], .jstep[data-chapter="2"], .site-footer) :focus-visible { outline-color: var(--accent-on-dark); }
.variant-c :is(.hero, .closing, .card-photo, .site-header.on-photo) :focus-visible { outline-color: var(--white); }
.variant-c .site-header.on-photo .menu-panel :focus-visible { outline-color: var(--accent-on-light); }

/* ---------- Journey photographs ---------- */
/* Step 1: the planning table peeks out from behind the phone. */
.float-setup { right: calc(50% + 60px); top: 10%; width: 240px; aspect-ratio: 4 / 5; border-radius: 12px; z-index: 1; transform: translate(40px, 16px) rotate(0deg);
  box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--ink) 45%, transparent); }
.journey[data-step="1"] .float-setup { opacity: 1; transform: rotate(-4deg); transition: opacity var(--dur-move) var(--ease-enter) calc(var(--swap-delay) + 120ms), transform var(--dur-scene) var(--ease-enter) calc(var(--swap-delay) + 120ms); }
/* Step 2: the table card from the photograph, with the real QR code in its blank panel. */
/* The photographs sit behind the phone and peek out beside it, so the app screens stay fully visible. */
.float-qr { left: calc(50% + 30px); top: 30%; width: 250px; z-index: 1; }
.float-upload { right: calc(50% + 30px); top: 26%; width: 230px; z-index: 1; }
.qr-photo { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 12px; background-position: 50% 50%; box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--ink) 45%, transparent); }
/* Measured on c-qr-card.jpg: the blank panel is centred at 51.4% / 67.3% and 25.8% of the photo wide. */
.qr-on-card { position: absolute; left: 51.4%; top: 67.3%; width: 19%; transform: translate(-50%, -50%); }
.qr-on-card .qr { opacity: 0.88; }

/* ---------- App screens (illustrative interface inside the phones) ---------- */
.screen.app .screen-pad { gap: 10px; }
.screen.app svg { width: 14px; height: 14px; display: block; }
.app-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.app-chip { padding: 6px 10px 5px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line); background: var(--white); }
.app-chip.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }
.app-field { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.app-input { align-items: center; }
.app-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.app-theme { aspect-ratio: 3 / 4; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: flex-end; padding: 6px; }
.app-theme i { display: block; height: 6px; width: 70%; border-radius: 3px; }
.app-theme.is-on { box-shadow: 0 0 0 2px var(--ink); }
.app-tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--paper); flex: none; }
.app-tick.is-wait { background: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.app-done { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.app-qr-big { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 16px 16px; border-radius: 14px; background: var(--white); text-align: center; box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--ink) 40%, transparent); }
.app-qr-big .qr { width: 132px; margin-bottom: 6px; }
.app-qr-big .event-title { font-size: var(--fs-h3); }
.app-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border-radius: var(--radius-pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.app-link > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen .pill-outline { box-shadow: inset 0 0 0 1px var(--ink); }
.app-event-head { display: flex; align-items: center; gap: 8px; }
.app-event-head .tile { width: 28px; border-radius: 6px; background-size: cover; background-position: 30% 70%; background-image: var(--photo-src); }
.screen .code .is-caret { box-shadow: inset 0 0 0 1.5px var(--ink); }
.app-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 -8px -8px; padding: 8px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 6%, var(--paper)); }
.app-keypad span { display: grid; place-items: center; height: 30px; border-radius: 8px; background: var(--white); font-weight: 600; }
.app-keypad span:empty { background: none; }
.app-bar-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app-picker, .app-album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 -8px; }
.app-pick { position: relative; display: block; }
.app-pick .tile { display: block; border-radius: 3px; }
.app-pick > i { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 2px var(--white); }
.app-pick > i.is-no { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.app-pick > i.is-video { top: auto; right: auto; left: 5px; bottom: 5px; background: color-mix(in srgb, var(--ink) 70%, transparent); box-shadow: none; }
.app-pick.is-on .tile { outline: 2px solid var(--ink); outline-offset: -2px; opacity: 0.85; }
.app-uploads { display: flex; flex-direction: column; gap: 8px; }
.app-upload { display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 10px; }
.app-upload .tile { display: block; width: 40px; border-radius: 6px; }
.app-mini-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.app-mini-bar > span { display: block; height: 100%; background: var(--ink); }
.app-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--ink) 7%, var(--paper)); text-align: center; }
.app-tabs span { padding: 6px 0 5px; border-radius: var(--radius-pill); }
.app-tabs .is-on { background: var(--white); font-weight: 600; box-shadow: 0 2px 6px -3px color-mix(in srgb, var(--ink) 40%, transparent); }
.app-request { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--white); }
.app-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); font-weight: 600; flex: none; }
.app-round { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.app-round.is-ok { background: var(--ink); color: var(--paper); box-shadow: none; }
.app-pending { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.app-pending .tile { border-radius: 6px; }
.app-toggle { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--white); }
.app-switch { width: 34px; height: 20px; border-radius: 10px; background: var(--line); position: relative; }
.app-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 30%, transparent); }
.app-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 3px; border-radius: var(--radius-pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.app-badge svg { width: 12px; height: 12px; }

/* ---------- 3. Events: pick a kind of event; one large phone and the photo behind it follow ---------- */
.events-switch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.events-copy { display: flex; flex-direction: column; gap: 16px; }
.events-copy .event-picker { margin-top: 16px; }
.event-picker { list-style: none; padding: 0; display: flex; flex-direction: column; }
.event-picker li { border-top: 1px solid var(--line); padding: 14px 0; }
.event-picker li:last-child { border-bottom: 1px solid var(--line); }
.event-picker button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; color: var(--ink-muted); transition: color var(--dur-ui); }
.event-picker button:hover, .event-picker li.is-active button { color: var(--ink); }
.event-picker button:focus-visible { outline: 2px solid var(--accent-on-light); outline-offset: 4px; border-radius: 4px; }
.event-picker .text-link { display: none; margin-top: 6px; }
.event-picker li.is-active .text-link { display: inline-block; }
.events-visual { position: relative; display: grid; place-items: center; padding: 48px 0; }
.events-backdrop { position: absolute; inset: 0; border-radius: var(--radius-card); overflow: hidden; }
.events-backdrop .photo { position: absolute; inset: 0; opacity: 0; background-position: 50% 50%; transition: opacity var(--dur-scene) var(--ease-move); }
.events-backdrop .photo[data-active] { opacity: 1; }
.events-backdrop::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 20%, transparent); }
#events-phone { position: relative; z-index: 1; }
#events-phone .screen { opacity: 0; z-index: 0; transition: opacity 0s linear calc(var(--dur-move) + 80ms); }
#events-phone .screen[data-active] { opacity: 1; z-index: 1; transition: opacity var(--dur-move) var(--ease-enter) 80ms; }

/* ---------- 4. Cards: chat photos gathering into one album; the privacy chips arriving one by one ---------- */
.chat-to-album { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-self: stretch; margin-bottom: auto; }
.chat-thread { display: flex; flex-direction: column; gap: 5px; }
.chat-thread i { display: block; height: 10px; width: 80%; border-radius: 5px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.chat-thread i.short { width: 50%; align-self: flex-end; }
.chat-thread b { display: block; width: 46px; aspect-ratio: 1; border-radius: 5px; filter: blur(0.6px) saturate(0.8); transition: opacity var(--dur-move) var(--ease-exit), transform var(--dur-scene) var(--ease-move); }
.chat-thread b:nth-of-type(2) { align-self: flex-end; }
.mini-album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; align-content: start; padding: 8px; border-radius: 10px; background: var(--paper-raised); box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--ink) 50%, transparent); }
.mini-album b { display: block; aspect-ratio: 1; border-radius: 4px; }
.card-mist.is-playing .chat-thread b { opacity: 0; transform: translateX(110px) scale(0.6); }
.card-mist.is-playing .chat-thread b:nth-of-type(2) { transition-delay: 120ms; }
.card-mist.is-playing .chat-thread b:nth-of-type(3) { transition-delay: 240ms; }
.mini-album b { opacity: 0.35; transition: opacity var(--dur-move) var(--ease-enter); }
.card-mist.is-playing .mini-album b { opacity: 1; transition-delay: calc(500ms + var(--i, 0) * 60ms); }
.mini-album b:nth-child(2) { --i: 1; } .mini-album b:nth-child(3) { --i: 2; } .mini-album b:nth-child(4) { --i: 3; } .mini-album b:nth-child(5) { --i: 4; } .mini-album b:nth-child(6) { --i: 5; }
.variant-c .card-photo .meta-chips li { opacity: 0; transform: translateX(-10px); transition: opacity var(--dur-move) var(--ease-enter), transform var(--dur-scene) var(--ease-enter); }
.variant-c .card-photo.is-playing .meta-chips li { opacity: 1; transform: none; }
.variant-c .card-photo.is-playing .meta-chips li:nth-child(2) { transition-delay: 220ms; }

/* ---------- Quality: drag between the chat-app copy and the original ---------- */
.quality { margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.quality-frame { position: relative; aspect-ratio: 1; border-radius: var(--radius-card); overflow: hidden; --split: 50%; }
.quality-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quality-chat { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.quality-handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: var(--white); transform: translateX(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 20%, transparent); pointer-events: none; }
.quality-label { position: absolute; top: 12px; padding: 6px 10px 5px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--ink) 72%, transparent); color: var(--white); }
.quality-label-chat { left: 12px; }
.quality-label-us { right: 12px; }
.quality-range { width: 100%; accent-color: var(--ink); }

/* ---------- 8. Closing on a full-bleed photo ---------- */
.variant-c .closing { min-height: min(92vh, 860px); display: grid; align-items: center; color: var(--white); padding: var(--section-y) 0; }
.variant-c .closing-photo { position: absolute; inset: 0; background-position: 70% 50%; }
.variant-c .closing-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 70%, transparent) 0%, color-mix(in srgb, var(--ink) 45%, transparent) 45%, color-mix(in srgb, var(--ink) 0%, transparent) 75%); }
.variant-c .closing-inner { position: relative; align-items: flex-start; text-align: left; }
.variant-c .closing-inner > * { max-width: 560px; }
.variant-c .closing .lead { color: color-mix(in srgb, var(--white) 90%, transparent); }

/* Short screens (laptops, landscape tablets): the pinned phone shrinks so it clears the header and the chapter bar. */
@media (min-width: 761px) and (max-height: 860px) {
  .journey-stage > .phone { zoom: 0.86; }
  /* Step 4 on a laptop screen: the phone takes the height; the chapter label is dropped, the bar below already shows it. */
  .journey[data-chapter="3"] .journey-stage { transform: translateX(calc(50% + 32px)) translateY(-11vh) scale(0.78); }
  .journey[data-chapter="3"] .journey-copy { transform: translateX(calc(-50% - 32px)) translateY(30vh); }
  .journey[data-chapter="3"] .jstep[data-step="4"] .jstep-label { display: none; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .journey-stage > .phone { zoom: 0.76; }
  .journey[data-chapter="3"] .journey-stage { transform: translateX(calc(50% + 32px)) translateY(-12vh) scale(0.78); }
  .journey[data-chapter="3"] .journey-copy { transform: translateX(calc(-50% - 32px)) translateY(27vh); }
}
@media (min-width: 761px) and (max-height: 660px) { .journey-stage > .phone { zoom: 0.66; } }
/* Tablets: the two columns are too narrow for cards beside the phone, so they land on the phone itself. */
@media (min-width: 761px) and (max-width: 1000px) {
  .float-qr { left: calc(50% + 40px); top: 34%; width: 180px; }
  .float-upload { right: calc(50% + 40px); top: 30%; width: 170px; }
  .float-setup { right: calc(50% + 30px); top: 6%; width: 170px; }
  .journey[data-chapter="3"] .jstep[data-step="4"] { inset: 0 -40%; }
}

@media (prefers-reduced-motion: reduce) {
  .variant-c .site-header, .variant-c .header-inner, .menu-panel, .menu-panel[hidden], .variant-c .faq-list details::details-content,
  .journey, .journey-stage, .journey-copy, .jstep, .journey .jstep, .float-card, .journey .float-card, .memory, .journey .memory,
  #journey-phone .screen, #journey-phone .screen[data-active], #events-phone .screen, .events-backdrop .photo, .chat-to-album *, .meta-chips li, #hero-phone .tile { transition: none !important; animation: none !important; }
  .journey-stage > .phone { translate: none; }
  .orbit ellipse { animation: none !important; }
  .orbit, .halo { transition: none !important; }
  .variant-c .bar > span, .variant-c .bar + p { animation: none !important; }
  .variant-c .pill:hover, .variant-c .pill:active { transform: none; }
  .chat-thread b, .meta-chips li { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .events-switch { gap: 32px; }
  .compare-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-photo { grid-column: 2; }
  .card-wide { grid-column: 1; }
  .variant-c .founder-card { gap: 32px; }
  .variant-c .founder-photo { width: min(320px, 100%); }
  .menu-groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .menu-groups > .menu-group:first-child { grid-column: 1 / -1; }
  .menu-list-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones: no pinning (as on Polarsteps); every step is a large phone followed by its text. */
@media (max-width: 760px) {
  /* Events: the kinds of event become a row of choices above the phone. */
  .events-switch { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .events-copy { text-align: center; align-items: center; }
  .events-copy .event-picker { align-self: stretch; }
  .event-picker { flex-direction: row; overflow-x: auto; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-snap-type: x mandatory; }
  .event-picker li, .event-picker li:last-child { border: 0; padding: 0; flex: none; scroll-snap-align: start; }
  .event-picker button { font-size: var(--fs-small); font-weight: 600; padding: 10px 16px 9px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
  .event-picker li.is-active button { background: var(--ink); color: var(--paper); box-shadow: none; }
  .event-picker li.is-active .text-link { display: none; }
  .events-visual { padding: 32px 0; }
  #events-phone { width: 76%; max-width: 300px; }
  /* Journey on a phone: each step's photograph peeks out from behind its phone. */
  /* The phone moves to one side so the photograph shows on the other. */
  .jstep-media .scene { position: absolute; z-index: 0; top: 12%; width: 48%; aspect-ratio: 4 / 5; border-radius: 10px; transform: rotate(-4deg); box-shadow: 0 16px 32px -18px color-mix(in srgb, var(--ink) 50%, transparent); }
  .jstep[data-step="1"] .scene, .jstep[data-step="3"] .scene { left: -2%; }
  .jstep[data-step="2"] .scene { right: -2%; top: 40%; transform: rotate(4deg); }
  .jstep[data-step="1"] .jstep-media .phone, .jstep[data-step="3"] .jstep-media .phone { width: 70%; margin: 0 0 0 auto; }
  .jstep[data-step="2"] .jstep-media .phone { width: 70%; margin: 0 auto 0 0; }
  .jstep-media .scene .qr-on-card { width: 19%; }
  .variant-c .closing-photo { background-position: 78% 50%; }
  .variant-c .closing-photo::after { background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 78%, transparent) 0%, color-mix(in srgb, var(--ink) 66%, transparent) 65%, color-mix(in srgb, var(--ink) 35%, transparent) 100%); }
  /* The hero text runs over the busiest part of the photo on a phone, so the veil is deeper there. */
  .variant-c .hero-photo::after { background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 68%, transparent) 0%, color-mix(in srgb, var(--ink) 68%, transparent) 62%, color-mix(in srgb, var(--ink) 15%, transparent) 100%); }
  .journey { overflow-x: clip; }
  .variant-c { --hero-phone-show: 300px; }
  .variant-c .hero { padding-top: 112px; }
  .variant-c .hero-display .line { display: block; }
  .variant-c .hero-actions { flex-direction: column; gap: 16px; }
  .variant-c .hero-phone-wrap .phone { width: 82%; max-width: 320px; }
  .variant-c .hero::after { bottom: -60px; height: 120px; }
  .journey-intro { padding-top: calc(640px - var(--hero-phone-show) + 40px); }
  .journey { height: auto; }
  .journey-sticky { position: static; height: auto; overflow: visible; display: block; padding-bottom: 32px; }
  .journey-grid { display: block; }
  .journey-stage, .journey-nav { display: none; }
  .journey-copy { min-height: 0; transform: none !important; }
  .jstep { position: static; opacity: 1; transform: none; pointer-events: auto; max-width: none; padding: 40px 0; }
  .journey .jstep { transform: none; transition: none; }
  .jstep-media { display: block; position: relative; margin-bottom: 12px; }
  .jstep-media .phone { width: 82%; max-width: 320px; margin: 0 auto; z-index: 1; }
  /* The upload chapter keeps its dark background on a phone. */
  .jstep[data-chapter="2"] { background: var(--ink); color: var(--paper); margin: 0 calc(-1 * var(--gutter)); padding: 48px var(--gutter); }
  .jstep[data-chapter="2"] .muted { color: color-mix(in srgb, var(--paper) 74%, transparent); }
  .jstep[data-chapter="2"] .jstep-label { color: var(--accent-on-dark); }
  .jstep[data-chapter="2"] .support { border-color: var(--paper); }
  .jstep-memories { padding: 48px 0; }
  .jstep-memories .memory { opacity: 1; transform: rotate(-4deg); width: 34%; z-index: 0; }
  .jstep-memories .memory:nth-child(1) { left: 0; top: 0; }
  .jstep-memories .memory:nth-child(2) { right: 0; top: 18%; transform: rotate(4deg); }
  .jstep-memories .memory:nth-child(3) { left: 2%; bottom: 8%; transform: rotate(3deg); }
  .jstep-memories .memory:nth-child(4) { right: 2%; bottom: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card-wide, .card-photo { grid-column: auto; grid-row: auto; }
  .card { padding: 28px; }
  .card-photo { min-height: 440px; }
  .variant-c .closing { min-height: 560px; }
  .variant-c .founder-card { padding: 24px 24px 32px; }
  .variant-c .founder-photo { width: 100%; aspect-ratio: 4 / 3; }
  .plans { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .variant-c .plan { padding: 28px; }
  .variant-c .faq-grid { gap: 32px; }
  .variant-c .faq-list summary { padding: 18px 20px; }
  .variant-c .faq-list details p { padding: 0 20px 20px; }
  .variant-c .site-footer { margin: 8px; }
  .menu-panel { right: 8px; width: calc(100vw - 16px); padding: 24px; max-height: calc(100dvh - 96px); }
  .menu-groups { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .menu-foot { flex-wrap: wrap; gap: 16px 24px; }
  .menu-list-two { grid-template-columns: minmax(0, 1fr); }
  .menu-foot .pill { display: inline-flex; width: 100%; order: -1; }
}
