/* dropshiper.app — monochrome product showcase. One stylesheet,
   self-hosted font, no external resource, no inline style (CSP). */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Non-Latin scripts (ja, hi, ar pages): Noto Sans, SIL OFL 1.1, subset by
   i18n/fonts.py. The unicode-range keeps Latin on Archivo and means a page
   downloads only its own script's file. */
@font-face { font-family: "Noto Sans JP"; src: url("/assets/fonts/noto-jp-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+3000-30FF, U+3400-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "Noto Sans JP"; src: url("/assets/fonts/noto-jp-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+3000-30FF, U+3400-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "Noto Sans Devanagari"; src: url("/assets/fonts/noto-dev-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CFF, U+A8E0-A8FF, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Noto Sans Devanagari"; src: url("/assets/fonts/noto-dev-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CFF, U+A8E0-A8FF, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Noto Sans Arabic"; src: url("/assets/fonts/noto-ar-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC; }
@font-face { font-family: "Noto Sans Arabic"; src: url("/assets/fonts/noto-ar-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC; }

:root {
  --page: #1b1b1b;
  --frame: #f4f4f3;
  --ink: #111;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, 0.09);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-2: rgba(255, 255, 255, 0.11);
  --glass-line: rgba(255, 255, 255, 0.14);
  --on-dark: #f5f5f5;
  --on-dark-2: rgba(245, 245, 245, 0.62);
  --r-xl: 34px;
  --r-lg: 24px;
  --r-md: 16px;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
html:lang(ja) { --font: "Archivo", "Noto Sans JP", ui-sans-serif, system-ui, sans-serif; --mono: ui-monospace, Menlo, Consolas, "Noto Sans JP", monospace; line-break: strict; }
html:lang(hi) { --font: "Archivo", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif; --mono: ui-monospace, Menlo, Consolas, "Noto Sans Devanagari", monospace; }
html:lang(ar) { --font: "Archivo", "Noto Sans Arabic", ui-sans-serif, system-ui, sans-serif; --mono: ui-monospace, Menlo, Consolas, "Noto Sans Arabic", monospace; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--page) linear-gradient(180deg, #a9a9a9 0, #3d3d3d 760px, var(--page) 1300px) no-repeat;
  color: var(--ink); font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-weight: 700; }
.mono { font-family: var(--mono); font-size: 0.95em; }

.skip { position: absolute; left: 1rem; top: -4rem; background: #fff; color: #000; padding: 0.5rem 0.9rem; border-radius: 999px; z-index: 30; }
.skip:focus { top: 1rem; }

/* ---------- The white frame around everything ---------- */
.shell {
  width: min(1240px, 100% - 2.5rem); margin: clamp(1.25rem, 4vw, 3rem) auto;
  background: var(--frame); border-radius: var(--r-xl); padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

/* ---------- Stage: dark, with a diagonal sheen ---------- */
.stage {
  position: relative; overflow: hidden; border-radius: calc(var(--r-xl) - 8px);
  padding: 22px 26px 0; color: var(--on-dark);
  background:
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.2) 32%, rgba(255, 255, 255, 0.05) 44%, transparent 58%),
    radial-gradient(120% 90% at 50% 0%, #585858 0%, #2a2a2a 45%, #1b1b1b 100%);
}

/* A plain line, not a floating pill: wordmark left, three words right. */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.mark-sq { width: 14px; height: 14px; border-radius: 4px; background: #fff; box-shadow: 6px 6px 0 -1px rgba(255, 255, 255, 0.35); }
.bar-nav { display: flex; gap: 1.6rem; }
.bar-nav a { color: var(--on-dark-2); text-decoration: none; font-size: 0.9rem; }
.bar-nav a:hover { color: #fff; }

.hero-copy { text-align: center; margin: clamp(2.6rem, 7vw, 4.8rem) auto clamp(2rem, 4vw, 3rem); padding: 0 1rem; }
.hero-copy h1 { font-size: clamp(2.8rem, 7.2vw, 5rem); line-height: 1; letter-spacing: -0.045em; margin-bottom: 0.9rem; color: #fff; }
.hero-copy p { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--on-dark-2); margin: 0; }

/* ---------- The app window (animated demo) ---------- */
.app {
  --cycle: 12s;
  margin: 0 auto; width: min(1080px, 100%);
  border-radius: 20px 20px 0 0; overflow: hidden;
  background: rgba(70, 70, 70, 0.55); border: 1px solid var(--glass-line); border-bottom: 0;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 -10px 60px -20px rgba(0, 0, 0, 0.6);
}
.app-chrome { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 12px 16px; border-bottom: 1px solid var(--glass-line); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.addr { justify-self: center; min-width: min(300px, 46vw); text-align: center; font-size: 0.78rem; color: var(--on-dark-2); background: var(--glass-2); border: 1px solid var(--glass-line); border-radius: 8px; padding: 0.3rem 1rem; }
.live { justify-self: end; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.74rem; color: var(--on-dark-2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 2s ease-in-out infinite; }

.app-body { position: relative; display: grid; grid-template-columns: 210px 1fr 270px; gap: 18px; padding: 18px 18px 66px; min-height: 300px; }
.app-side, .app-main { color: var(--on-dark); }
.who { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; font-size: 0.85rem; }
.who b { display: block; font-weight: 600; }
.who small { display: block; color: var(--on-dark-2); font-family: var(--mono); font-size: 0.7rem; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e9e9e9; color: #111; font-weight: 700; font-size: 0.75rem; }
.side-nav { position: relative; list-style: none; margin: 0; padding: 8px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--glass-line); font-size: 0.86rem; }
.side-nav li { position: relative; z-index: 1; height: 2.2rem; line-height: 2.2rem; padding: 0 0.75rem; color: var(--on-dark-2); display: flex; justify-content: space-between; align-items: center; }
.side-nav .side-hl { position: absolute; z-index: 0; left: 8px; right: 8px; top: 8px; height: 2.2rem; padding: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); animation: nav-hl var(--cycle) cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.count { display: grid; place-items: center; min-width: 1.2rem; height: 1.2rem; line-height: 1; border-radius: 999px; background: #fff; color: #111; font-size: 0.7rem; font-weight: 700; opacity: 0; animation: show-count var(--cycle) infinite; }

.app-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.app-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--glass-line); font-size: 0.76rem; }
.seg > * { white-space: nowrap; padding: 0.28rem 0.65rem; border-radius: 7px; color: var(--on-dark-2); font-weight: 400; }
.seg b { background: #fff; color: #111; font-weight: 600; }
.shop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop-list li { position: relative; overflow: hidden; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 0.8rem; padding: 11px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 0.9rem; }
.sname small { display: block; color: var(--on-dark-2); font-size: 0.75rem; }
.sw { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #d9d9d9, #8a8a8a); }
.sw2 { background: linear-gradient(135deg, #bdbdbd, #5e5e5e); }
.sw3 { background: linear-gradient(135deg, #f0f0f0, #a3a3a3); }
.state { font-size: 0.73rem; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--glass-line); color: var(--on-dark-2); white-space: nowrap; }
.swap { display: grid; }
.swap > span { grid-area: 1 / 1; }
.swap > span:first-child { animation: fade-out-at var(--cycle) infinite; }
.swap > span:last-child { color: #fff; opacity: 0; animation: fade-in-at var(--cycle) infinite; }
.shop-list li.new { animation: row-in var(--cycle) cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.bar-load { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); animation: load var(--cycle) linear infinite; }

.app-panel { position: relative; padding: 16px 16px 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.93); color: #111; }
.panel-label { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; position: relative; z-index: 1; }
.flow li { position: relative; padding: 0.35rem 0 0.35rem 1.9rem; font-size: 0.86rem; color: #9a9a9a; }
.flow li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #c5c5c5; background: #fff; box-sizing: border-box; }
.flow li:nth-child(1) { animation: s1 var(--cycle) infinite; }
.flow li:nth-child(2) { animation: s2 var(--cycle) infinite; }
.flow li:nth-child(3) { animation: s3 var(--cycle) infinite; }
.flow li:nth-child(4) { animation: s4 var(--cycle) infinite; }
.flow li:nth-child(1)::before { animation: d1 var(--cycle) infinite; }
.flow li:nth-child(2)::before { animation: d2 var(--cycle) infinite; }
.flow li:nth-child(3)::before { animation: d3 var(--cycle) infinite; }
.flow li:nth-child(4)::before { animation: d4 var(--cycle) infinite; }
.flow::before { content: ""; position: absolute; left: 7px; top: 1.05rem; bottom: 1.05rem; width: 1px; background: #d6d6d6; z-index: -1; }
.flow::after { content: ""; position: absolute; left: 7px; top: 1.05rem; bottom: 1.05rem; width: 1px; background: var(--accent-deep); z-index: -1; transform-origin: top; transform: scaleY(0); animation: rail var(--cycle) infinite; }

.toast { position: absolute; left: calc(18px + 210px + 18px); bottom: 16px; display: grid; padding: 0.6rem 0.9rem; border-radius: 12px; background: #111; color: #fff; font-size: 0.8rem; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.12); opacity: 0; animation: toast var(--cycle) cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.toast > span { grid-area: 1 / 1; }
.toast-a { animation: fade-out-late var(--cycle) infinite; }
.toast-b { opacity: 0; animation: fade-in-late var(--cycle) infinite; }

.cursor { position: absolute; z-index: 5; left: 62%; top: 70%; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); animation: cursor var(--cycle) cubic-bezier(0.45, 0, 0.2, 1) infinite; }

.app figcaption { padding: 0.6rem 18px 0.9rem; font-size: 0.74rem; color: var(--on-dark-2); text-align: center; }

/* ---------- Bento: two small live demos ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tile { --cycle: 9s; position: relative; overflow: hidden; border-radius: calc(var(--r-xl) - 8px); padding: 22px 22px 26px; background: radial-gradient(110% 80% at 0% 0%, #d6d6d6 0%, #b3b3b3 45%, #9a9a9a 100%); }
.tile:nth-child(2) { background: radial-gradient(110% 80% at 100% 0%, #d9d9d9 0%, #b8b8b8 50%, #9c9c9c 100%); }
.tile h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 1.3rem 0 0.35rem; }
.tile p { color: #2b2b2b; font-size: 0.93rem; margin: 0; }
.tile a { color: #000; }
.demo { position: relative; height: 170px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow: hidden; }

.route { color: rgba(0, 0, 0, 0.35); }
.route-svg { position: absolute; inset: 14px 0 26px; width: 100%; height: calc(100% - 40px); }
.parcel { position: absolute; width: 22px; height: 22px; border-radius: 6px; background: #111; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.5); left: 5%; top: 66%; animation: parcel var(--cycle) cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.parcel::after { content: ""; position: absolute; inset: 5px 9px; background: rgba(255, 255, 255, 0.55); border-radius: 1px; }
.stop { position: absolute; bottom: 10px; font-size: 0.75rem; color: #333; font-weight: 600; }
.s1 { left: 4%; } .s2 { left: 50%; transform: translateX(-50%); } .s3 { right: 4%; }

.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.msg { max-width: 78%; padding: 0.5rem 0.8rem; border-radius: 14px; font-size: 0.82rem; line-height: 1.35; opacity: 0; transform: translateY(8px); }
.msg.in { align-self: flex-start; background: #fff; color: #111; border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: #111; color: #fff; border-bottom-right-radius: 4px; }
.m1 { animation: m1 var(--cycle) cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.m2 { animation: m2 var(--cycle) cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.m3 { animation: m3 var(--cycle) cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.typing { position: absolute; right: 14px; top: 58px; display: flex; gap: 4px; padding: 0.55rem 0.7rem; border-radius: 14px; background: #111; opacity: 0; animation: typing var(--cycle) infinite; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.8); animation: bounce 0.9s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

/* ---------- Text blocks ---------- */
.block { margin-top: 10px; border-radius: calc(var(--r-xl) - 8px); background: #fff; padding: clamp(1.8rem, 5vw, 3rem); }
.block h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 0.8rem; }
.block-lead { font-size: clamp(1rem, 1.4vw, 1.12rem); color: #3a3a3a; max-width: 40rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.6rem 0 0; }
.facts > div { padding: 1rem 1.2rem; border-radius: var(--r-md); background: #f2f2f1; }
.facts dt { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }
.facts dd { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.block-dark { background: radial-gradient(90% 120% at 100% 0%, #4a4a4a 0%, #222 55%, #191919 100%); color: var(--on-dark); }
.block-dark h2 { color: #fff; }
.block-dark .block-lead { color: var(--on-dark-2); margin-bottom: 1.5rem; }
.chip-soon { display: inline-block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--glass-line); color: var(--on-dark-2); margin-bottom: 1rem; }
.cta { display: inline-block; padding: 0.75rem 1.2rem; border-radius: 12px; background: #fff; color: #111; text-decoration: none; font-weight: 700; transition: transform 0.12s ease; }
.cta:active { transform: scale(0.97); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.2rem 14px 0.4rem; font-size: 0.85rem; color: var(--muted); }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 1.2rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #000; text-decoration: underline; }

/* ---------- Legal and contact pages (same frame, simpler header) ---------- */
body:not(.home) { padding: clamp(1.25rem, 4vw, 3rem) 0; }
body:not(.home) .site-header, body:not(.home) main, body:not(.home) .site-footer { width: min(900px, 100% - 2.5rem); margin-inline: auto; }
.site-header { background: var(--frame); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 18px; }
.brand { font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.site-nav a { text-decoration: none; font-size: 0.9rem; padding: 0.4rem 0.75rem; border-radius: 999px; color: #333; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #e6e6e5; color: #000; }
body:not(.home) main { background: #fff; }
.page { padding: clamp(2rem, 6vw, 3.5rem) clamp(1.2rem, 5vw, 3rem); }
.page h1 { font-size: clamp(2.1rem, 5vw, 3rem); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 1.8rem; }
.page h2 { font-size: 1.15rem; margin: 2rem 0 0.7rem; letter-spacing: -0.01em; }
.page p, .page li { color: #444; }
.rows, .contact-list { margin: 0 0 1rem; border-radius: var(--r-md); background: #f4f4f3; overflow: hidden; }
.rows > div, .contact-list > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.8rem 1.1rem; }
.rows > div + div, .contact-list > div + div { border-top: 1px solid var(--line); }
.rows dt, .contact-list dt { color: var(--muted); }
.rows dd, .contact-list dd { margin: 0; }
.updated { font-size: 0.82rem; color: var(--muted); margin-top: 2.5rem; font-family: var(--mono); }
.site-footer { background: var(--frame); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1rem 18px; font-size: 0.85rem; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer a { text-decoration: none; }
.wrap { width: auto; }


/* ---------- Accent: one colour in a few shades, used sparingly ----------
   Every colour that differs between sites is a variable set by the site's
   own assets/theme.css (loaded after this file). Nothing here names a hue. */
body { background: var(--page) linear-gradient(180deg, #b0b0ae 0, #3e3e3c 720px, var(--page) 1300px) no-repeat; }
.stage {
  background:
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.16) 32%, rgba(255, 255, 255, 0.04) 44%, transparent 58%),
    radial-gradient(45% 55% at 85% 85%, rgb(var(--accent-rgb) / 0.16), transparent 70%),
    radial-gradient(120% 90% at 50% 0%, #4a4a48 0%, #262625 50%, #1a1a19 100%);
}
.mark-sq { background: var(--accent); box-shadow: 6px 6px 0 -1px rgb(var(--accent-rgb) / 0.45); }
.hero-copy h1 .hl { color: var(--accent); }

.live { color: var(--accent); }
.live i { background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.18); }
.side-nav .side-hl { background: rgb(var(--accent-rgb) / 0.12); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.4); }
.count { background: var(--accent); color: var(--accent-ink); }
.avatar { background: var(--accent); color: var(--accent-ink); }

.sw1 { background: linear-gradient(135deg, var(--accent-soft), var(--accent)); }
.sw2 { background: linear-gradient(135deg, #d9d9d9, #8a8a8a); }
.sw3 { background: linear-gradient(135deg, var(--accent-mid), var(--accent-deep)); }
.swap > span:last-child { color: var(--accent-ink); background: var(--accent); margin: -0.25rem -0.6rem; padding: 0.25rem 0.6rem; border-radius: 999px; }
.bar-load { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); height: 3px; }
.seg b { background: var(--accent); color: var(--accent-ink); }

.toast-b { color: var(--accent); }
.toast { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgb(var(--accent-rgb) / 0.35); }

.tile { background: radial-gradient(120% 90% at 0% 0%, var(--tile-a) 0%, var(--accent-mid) 50%, var(--tile-c) 100%); }
.tile:nth-child(2) { background: radial-gradient(110% 80% at 100% 0%, #d9d9d9 0%, #b8b8b8 50%, #9c9c9c 100%); }
.tile p, .tile a { color: #1d1d1d; }
.demo { background: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, 0.75); }
.route { color: var(--route-ink); }
.parcel { background: var(--accent-ink); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.5); }
.parcel::after { background: var(--accent); }
.msg.out, .typing { background: #111; }

.facts > div { background: #f2f2f1; }
.facts > div:nth-child(1) { box-shadow: inset 3px 0 0 var(--accent); }

.block-dark { background: radial-gradient(70% 90% at 100% 0%, rgb(var(--accent-rgb) / 0.16), transparent 60%), #1a1a19; }
.chip-soon { color: var(--accent); border-color: rgb(var(--accent-rgb) / 0.45); }
.cta { background: var(--accent); color: var(--accent-ink); }
.cta:hover { background: var(--accent-hover); }
a:focus-visible, :focus-visible { outline-color: var(--accent); }

/* ---------- Motion: one shared cycle per demo, all CSS ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* sidebar highlight: Boutiques → Commandes → Messages → À valider */
@keyframes nav-hl {
  0%, 22% { transform: translateY(0); }
  27%, 45% { transform: translateY(2.2rem); }
  50%, 55% { transform: translateY(4.4rem); }
  60%, 92% { transform: translateY(6.6rem); }
  100% { transform: translateY(0); }
}
@keyframes show-count { 0%, 52% { opacity: 0; } 56%, 80% { opacity: 1; } 84%, 100% { opacity: 0; } }

/* a shop gets added, its catalogue imports, another one goes ready */
@keyframes row-in { 0%, 8% { opacity: 0; transform: translateY(10px) scale(0.98); } 13%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes load { 0%, 12% { transform: scaleX(0); opacity: 1; } 38% { transform: scaleX(1); opacity: 1; } 42%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes fade-out-at { 0%, 38% { opacity: 1; } 42%, 92% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes fade-in-at { 0%, 38% { opacity: 0; } 42%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* order flow: four steps light up, the rail fills */
@keyframes d1 { 0%, 6% { background: #fff; border-color: #c5c5c5; } 9%, 92% { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: inset 0 0 0 3px #fff; } 96%, 100% { background: #fff; border-color: #c5c5c5; box-shadow: none; } }
@keyframes d2 { 0%, 22% { background: #fff; border-color: #c5c5c5; } 25%, 92% { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: inset 0 0 0 3px #fff; } 96%, 100% { background: #fff; border-color: #c5c5c5; box-shadow: none; } }
@keyframes d3 { 0%, 40% { background: #fff; border-color: #c5c5c5; } 43%, 92% { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: inset 0 0 0 3px #fff; } 96%, 100% { background: #fff; border-color: #c5c5c5; box-shadow: none; } }
@keyframes d4 { 0%, 80% { background: #fff; border-color: #c5c5c5; } 83%, 92% { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: inset 0 0 0 3px #fff; } 96%, 100% { background: #fff; border-color: #c5c5c5; box-shadow: none; } }
@keyframes s1 { 0%, 6% { color: #9a9a9a; } 9%, 92% { color: #111; } 96%, 100% { color: #9a9a9a; } }
@keyframes s2 { 0%, 22% { color: #9a9a9a; } 25%, 92% { color: #111; } 96%, 100% { color: #9a9a9a; } }
@keyframes s3 { 0%, 40% { color: #9a9a9a; } 43%, 92% { color: #111; } 96%, 100% { color: #9a9a9a; } }
@keyframes s4 { 0%, 80% { color: #9a9a9a; } 83%, 92% { color: #111; } 96%, 100% { color: #9a9a9a; } }
@keyframes rail { 0%, 8% { transform: scaleY(0); } 25% { transform: scaleY(0.33); } 43% { transform: scaleY(0.66); } 82%, 92% { transform: scaleY(1); } 96%, 100% { transform: scaleY(0); } }

/* a refund waits for a human, then gets approved */
@keyframes toast { 0%, 56% { opacity: 0; transform: translateY(10px); } 60%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes fade-out-late { 0%, 72% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes fade-in-late { 0%, 72% { opacity: 0; } 75%, 100% { opacity: 1; } }
@keyframes cursor {
  0%, 10% { left: 62%; top: 72%; transform: scale(1); }
  22% { left: 40%; top: 66%; }
  50% { left: 9%; top: 77%; transform: scale(1); }
  53% { transform: scale(0.85); }
  56% { transform: scale(1); }
  70% { left: 36%; top: 88%; transform: scale(1); }
  73% { transform: scale(0.85); }
  76%, 92% { left: 36%; top: 88%; transform: scale(1); }
  100% { left: 62%; top: 72%; }
}

/* parcel: warehouse → transit → door */
@keyframes parcel {
  0% { left: 5%; top: 66%; transform: scale(0.9); opacity: 0; }
  4%, 8% { left: 5%; top: 66%; transform: scale(0.9); opacity: 1; }
  30% { left: 28%; top: 44%; transform: scale(1); }
  50% { left: 48%; top: 22%; }
  72% { left: 72%; top: 46%; }
  86%, 94% { left: 91%; top: 36%; transform: scale(1.08); opacity: 1; }
  100% { left: 91%; top: 36%; transform: scale(0.9); opacity: 0; }
}

/* support chat */
@keyframes m1 { 0%, 4% { opacity: 0; transform: translateY(8px); } 9%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes typing { 0%, 14% { opacity: 0; } 18%, 34% { opacity: 1; } 37%, 100% { opacity: 0; } }
@keyframes m2 { 0%, 35% { opacity: 0; transform: translateY(8px); } 40%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes m3 { 0%, 58% { opacity: 0; transform: translateY(8px); } 63%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

.hero-copy { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.app { animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }

/* Reduced motion: every demo shows its finished state, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .side-hl { transform: translateY(6.6rem); }
  .count, .toast, .toast-b, .swap > span:last-child, .msg { opacity: 1 !important; transform: none !important; }
  .toast-a, .swap > span:first-child, .typing, .cursor, .bar-load { opacity: 0 !important; }
  .flow li { color: #111; }
  .flow li::before { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: inset 0 0 0 3px #fff; }
  .flow::after { transform: none; }
  .parcel { left: 91%; top: 36%; }
}
@media (prefers-reduced-transparency: reduce) {
  .app, .demo { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .app { background: #4a4a4a; }
  .demo { background: #e9e9e9; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 980px) {
  .app-body { grid-template-columns: 1fr 250px; }
  .app-side, .cursor { display: none; }
  .toast { left: 18px; }
}
@media (max-width: 760px) {
  .bar-nav { gap: 1rem; }
  .app-body { grid-template-columns: 1fr; padding-bottom: 70px; }
  .addr { min-width: 0; }
  .live { display: none; }
  .bento, .facts { grid-template-columns: 1fr; }
  .rows > div, .contact-list > div { grid-template-columns: 1fr; gap: 0.15rem; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 1rem); margin: 0.5rem auto; border-radius: 26px; padding: 6px; }
  .stage { padding: 16px 14px 0; }
  .bar-nav a:not(:last-child) { display: none; }
  .seg span { display: none; }
}

/* =====================================================================
   Course pages (storyrun.dropshiper.app…): same frame, same motion rules.
   Colours come from the site's theme.css, like everything above.
   ===================================================================== */

.buy-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1rem; margin-top: 1.6rem !important; }
.price-note { font-size: 0.9rem; color: var(--on-dark-2); }

/* ---------- Studio: script → storyboard → render → voice → captions ---------- */
.studio { --cycle: 15s; }
.studio-body { display: grid; grid-template-columns: 190px 1fr 230px; gap: 18px; padding: 18px; min-height: 320px; }

.pipe { position: relative; list-style: none; margin: 0; padding: 8px; align-self: start; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--glass-line); font-size: 0.88rem; }
.pipe li { position: relative; z-index: 1; height: 2.4rem; line-height: 2.4rem; padding-block: 0; padding-inline: 2.1rem 0.8rem; color: var(--on-dark-2); }
.pipe li:not(.pipe-hl)::before { content: ""; position: absolute; inset-inline-start: 0.75rem; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.pipe .pipe-hl { position: absolute; z-index: 0; inset-inline: 8px; top: 8px; height: 2.4rem; padding: 0; border-radius: 9px; background: rgb(var(--accent-rgb) / 0.13); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.45); animation: pipe-hl var(--cycle) cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.pipe li:nth-child(2) { animation: p1 var(--cycle) infinite; }
.pipe li:nth-child(3) { animation: p2 var(--cycle) infinite; }
.pipe li:nth-child(4) { animation: p3 var(--cycle) infinite; }
.pipe li:nth-child(5) { animation: p4 var(--cycle) infinite; }
.pipe li:nth-child(6) { animation: p5 var(--cycle) infinite; }
.pipe li:nth-child(2)::before { animation: q1 var(--cycle) infinite; }
.pipe li:nth-child(3)::before { animation: q2 var(--cycle) infinite; }
.pipe li:nth-child(4)::before { animation: q3 var(--cycle) infinite; }
.pipe li:nth-child(5)::before { animation: q4 var(--cycle) infinite; }
.pipe li:nth-child(6)::before { animation: q5 var(--cycle) infinite; }

.term { position: relative; align-self: stretch; padding: 14px 16px 22px; border-radius: var(--r-md); background: rgba(10, 10, 10, 0.55); border: 1px solid var(--glass-line); font-family: var(--mono); font-size: 0.8rem; color: var(--on-dark); }
.term p { margin: 0 0 0.45rem; opacity: 0; transform: translateY(4px); }
.term b { color: var(--accent); font-weight: 700; margin-inline-end: 0.35rem; }
.t1 { animation: l1 var(--cycle) infinite; }
.t2 { animation: l2 var(--cycle) infinite; }
.t3 { animation: l3 var(--cycle) infinite; }
.t4 { animation: l4 var(--cycle) infinite; }
.t5 { animation: l5 var(--cycle) infinite; }
.t-bar { position: absolute; inset-inline: 16px; bottom: 10px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transform-origin: left; transform: scaleX(0); animation: t-bar var(--cycle) linear infinite; }

/* an editor-style timeline under the log: shots, voice, captions fill in
   at their own stage */
.tracks { position: absolute; inset-inline: 16px; bottom: 26px; display: grid; gap: 7px; font-family: var(--font); }
.track { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 0.6rem; font-size: 0.72rem; color: var(--on-dark-2); }
.lane { display: flex; gap: 4px; height: 22px; padding: 3px; border-radius: 7px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.clip { flex: 1; border-radius: 4px; background: linear-gradient(180deg, var(--accent-mid), var(--accent-deep)); opacity: 0; }
.c1 { animation: c1 var(--cycle) infinite; }
.c2 { animation: c2 var(--cycle) infinite; }
.c3 { animation: c3 var(--cycle) infinite; }
.c4 { animation: c4 var(--cycle) infinite; }
.vo { flex: 1; border-radius: 4px; background: repeating-linear-gradient(90deg, rgb(var(--accent-rgb) / 0.85) 0 2px, transparent 2px 5px); transform-origin: left; transform: scaleX(0); animation: vo var(--cycle) infinite; }
.st { width: 22%; border-radius: 4px; background: rgba(255, 255, 255, 0.75); opacity: 0; }
.s-2 { width: 30%; }
.s-3 { width: 18%; }
.s-1 { animation: st1 var(--cycle) infinite; }
.s-2 { animation: st2 var(--cycle) infinite; }
.s-3 { animation: st3 var(--cycle) infinite; }

/* the 9:16 preview: one layer per stage, the scene stays once rendered */
.screen { position: relative; justify-self: center; width: 100%; max-width: 230px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #1c2532, #0e1219); box-shadow: inset 0 0 0 1px var(--glass-line), 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
.layer { position: absolute; inset: 0; opacity: 0; }
.script-layer { display: flex; flex-direction: column; gap: 9px; padding: 22px 18px; animation: lay-script var(--cycle) infinite; }
.script-layer i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.35); }
.script-layer i:nth-child(2n) { width: 78%; }
.script-layer i:nth-child(3n) { width: 56%; }
.board-layer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 14px; align-content: center; animation: lay-board var(--cycle) infinite; }
.board-layer span { aspect-ratio: 9 / 16; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.25); background: linear-gradient(180deg, transparent 58%, rgb(var(--accent-rgb) / 0.35) 58%); }
.board-layer span:nth-child(2) { background: linear-gradient(180deg, transparent 40%, rgb(var(--accent-rgb) / 0.25) 40%); }
.board-layer span:nth-child(3) { background: linear-gradient(135deg, transparent 50%, rgb(var(--accent-rgb) / 0.3) 50%); }
.scene-layer { animation: lay-scene var(--cycle) infinite; }
.sun { position: absolute; left: 62%; top: 14%; width: 22%; aspect-ratio: 1; background: var(--accent-mid); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hill { position: absolute; bottom: 24%; height: 34%; width: 70%; clip-path: polygon(0 100%, 50% 0, 100% 100%); background: linear-gradient(90deg, #2b4a73 50%, #1f3a5e 50%); }
.h1 { left: -12%; }
.h2 { left: 40%; height: 26%; background: linear-gradient(90deg, #335a8a 50%, #24456e 50%); }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(170deg, var(--accent-deep) 0 45%, #174f9c 45%); clip-path: polygon(0 18%, 30% 8%, 62% 20%, 100% 6%, 100% 100%, 0 100%); }
.tree { position: absolute; left: 14%; bottom: 22%; width: 18%; aspect-ratio: 3 / 4; background: linear-gradient(90deg, var(--accent-mid) 50%, var(--accent) 50%); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
/* the character: a trapezoid body (::before) and a hexagon head — the body
   is drawn by a pseudo-element so the head is not clipped with it */
.hero-body { position: absolute; left: 48%; bottom: 21%; width: 20%; aspect-ratio: 4 / 5; animation: bob 1.2s ease-in-out infinite; }
.hero-body::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent) 50%, var(--accent-deep) 50%); clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%); }
.head { position: absolute; left: 20%; top: -62%; width: 60%; aspect-ratio: 1; background: var(--accent-soft); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.wave-layer { display: flex; align-items: center; justify-content: center; gap: 4px; inset: auto 0 9% 0; height: 34px; animation: lay-wave var(--cycle) infinite; }
.wave-layer i { width: 4px; height: 30%; border-radius: 2px; background: #fff; animation: wave 0.9s ease-in-out infinite; }
.wave-layer i:nth-child(2n) { animation-delay: -0.3s; }
.wave-layer i:nth-child(3n) { animation-delay: -0.6s; }
.caption-layer { display: flex; justify-content: center; inset: auto 8% 9% 8%; animation: lay-caption var(--cycle) infinite; }
.caption-layer span { padding: 0.35rem 0.6rem; border-radius: 8px; background: rgba(0, 0, 0, 0.6); color: #fff; font-weight: 700; font-size: 0.82rem; text-align: center; }
.caption-layer b { color: var(--accent); }

/* ---------- Video tile and steps ---------- */
.tile-video { display: flex; flex-direction: column; }
.demo-video { display: block; width: min(100%, 300px); height: auto; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: var(--r-md); background: #111; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 14px; display: grid; gap: 10px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.75); }
.steps li { counter-increment: step; position: relative; padding-block: 0.7rem; padding-inline: 3rem 0.9rem; border-radius: 12px; background: #fff; font-size: 0.92rem; color: #2b2b2b; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0.8rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 7px; background: var(--accent-ink); color: var(--accent); font-weight: 700; font-size: 0.8rem; }
.steps b { color: #111; }

/* ---------- Lists in the white blocks ---------- */
ul.facts { list-style: none; padding: 0; }
ul.facts > li { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.2rem; border-radius: var(--r-md); background: #f2f2f1; }
ul.facts > li:nth-child(1) { box-shadow: inset 3px 0 0 var(--accent); }
ul.facts b { letter-spacing: -0.01em; }
ul.facts span { color: #4a4a4a; font-size: 0.93rem; }
.facts-4 { grid-template-columns: repeat(4, 1fr); }
.fine { list-style: none; margin: 1.6rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 0.4rem; font-size: 0.85rem; color: var(--on-dark-2); }
.block-dark .cta { margin-bottom: 0.2rem; }

/* ---------- Course motion (cycle: 5 stages × 20%) ---------- */
@keyframes pipe-hl {
  0%, 17% { transform: translateY(0); }
  20%, 37% { transform: translateY(2.4rem); }
  40%, 57% { transform: translateY(4.8rem); }
  60%, 77% { transform: translateY(7.2rem); }
  80%, 96% { transform: translateY(9.6rem); }
  100% { transform: translateY(0); }
}
@keyframes p1 { 0%, 96% { color: #fff; } 100% { color: var(--on-dark-2); } }
@keyframes p2 { 0%, 19% { color: var(--on-dark-2); } 21%, 96% { color: #fff; } 100% { color: var(--on-dark-2); } }
@keyframes p3 { 0%, 39% { color: var(--on-dark-2); } 41%, 96% { color: #fff; } 100% { color: var(--on-dark-2); } }
@keyframes p4 { 0%, 59% { color: var(--on-dark-2); } 61%, 96% { color: #fff; } 100% { color: var(--on-dark-2); } }
@keyframes p5 { 0%, 79% { color: var(--on-dark-2); } 81%, 96% { color: #fff; } 100% { color: var(--on-dark-2); } }
@keyframes q1 { 0%, 17% { background: rgba(255, 255, 255, 0.22); } 19%, 96% { background: var(--accent); } 100% { background: rgba(255, 255, 255, 0.22); } }
@keyframes q2 { 0%, 37% { background: rgba(255, 255, 255, 0.22); } 39%, 96% { background: var(--accent); } 100% { background: rgba(255, 255, 255, 0.22); } }
@keyframes q3 { 0%, 57% { background: rgba(255, 255, 255, 0.22); } 59%, 96% { background: var(--accent); } 100% { background: rgba(255, 255, 255, 0.22); } }
@keyframes q4 { 0%, 77% { background: rgba(255, 255, 255, 0.22); } 79%, 96% { background: var(--accent); } 100% { background: rgba(255, 255, 255, 0.22); } }
@keyframes q5 { 0%, 92% { background: rgba(255, 255, 255, 0.22); } 94%, 96% { background: var(--accent); } 100% { background: rgba(255, 255, 255, 0.22); } }
@keyframes l1 { 0%, 2% { opacity: 0; transform: translateY(4px); } 5%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes l2 { 0%, 21% { opacity: 0; transform: translateY(4px); } 24%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes l3 { 0%, 41% { opacity: 0; transform: translateY(4px); } 44%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes l4 { 0%, 61% { opacity: 0; transform: translateY(4px); } 64%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes l5 { 0%, 81% { opacity: 0; transform: translateY(4px); } 84%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes t-bar { 0% { transform: scaleX(0); opacity: 1; } 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes lay-script { 0%, 17% { opacity: 1; } 21%, 100% { opacity: 0; } }
@keyframes lay-board { 0%, 18% { opacity: 0; transform: scale(0.96); } 22%, 37% { opacity: 1; transform: none; } 41%, 100% { opacity: 0; } }
@keyframes lay-scene { 0%, 38% { opacity: 0; transform: scale(1.04); } 44%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes lay-wave { 0%, 59% { opacity: 0; } 62%, 78% { opacity: 1; } 81%, 100% { opacity: 0; } }
@keyframes lay-caption { 0%, 79% { opacity: 0; transform: translateY(6px); } 83%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes c1 { 0%, 41% { opacity: 0; } 44%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes c2 { 0%, 45% { opacity: 0; } 48%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes c3 { 0%, 49% { opacity: 0; } 52%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes c4 { 0%, 53% { opacity: 0; } 56%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vo { 0%, 60% { transform: scaleX(0); } 77%, 96% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes st1 { 0%, 81% { opacity: 0; } 84%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes st2 { 0%, 85% { opacity: 0; } 88%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes st3 { 0%, 89% { opacity: 0; } 92%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 95%; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }

@media (prefers-reduced-motion: reduce) {
  .pipe .pipe-hl { transform: translateY(9.6rem); }
  .pipe li { color: #fff; }
  .pipe li:not(.pipe-hl)::before { background: var(--accent); }
  .term p { opacity: 1 !important; transform: none !important; }
  .t-bar { transform: none; }
  .clip, .st { opacity: 1 !important; }
  .vo { transform: none; }
  .scene-layer, .caption-layer { opacity: 1 !important; transform: none !important; }
  .script-layer, .board-layer, .wave-layer { opacity: 0 !important; }
}

@media (max-width: 980px) {
  .studio-body { grid-template-columns: 1fr 220px; }
  .term { display: none; }
  .facts-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .studio-body { grid-template-columns: 1fr; }
  .pipe { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; }
  .pipe .pipe-hl { display: none; }
  .pipe li { height: auto; line-height: 1.2; padding-block: 0.4rem; padding-inline: 1.5rem 0.6rem; font-size: 0.8rem; }
  .pipe li:not(.pipe-hl)::before { inset-inline-start: 0.5rem; }
  .screen { max-width: 240px; }
  .facts-4 { grid-template-columns: 1fr; }
  .buy-row { flex-direction: column; }
}

/* ---------- dropshiper.app: the trainings, one card each ---------- */
.courses { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.course { display: flex; flex-direction: column; align-items: flex-start; padding: 1.4rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-line); }
.course h3 { font-size: 1.35rem; letter-spacing: -0.02em; color: #fff; margin-bottom: 0.4rem; }
.course > p:not(.chip-soon) { color: var(--on-dark-2); flex: 1; }
.chip-on { border-color: #fff; color: #fff; }
.cta-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--glass-line); }
.cta-ghost:hover { background: rgba(255, 255, 255, 0.08); }
@media (max-width: 760px) { .courses { grid-template-columns: 1fr; } }

/* =====================================================================
   Course gallery (storyrun « Ce que vous recevez » / « Ce qu'il vous
   faut »): renders of the bundle instead of paragraphs. Accent from the
   site's theme; the karaoke yellow is the real subtitle colour.
   ===================================================================== */
.g-block h2 { margin-bottom: 0.3rem; }
.g-lead { color: var(--muted); margin-bottom: 1.4rem; }
.g-card { position: relative; padding: 18px; border-radius: var(--r-lg); background: #f2f2f1; }
.g-card h3 { font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 0.8rem; }
.g-wide { margin-bottom: 10px; }
.g-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 10px; margin-bottom: 10px; align-items: start; }
.g-card img { display: block; width: 100%; height: auto; border-radius: 12px; background: #1c2532; }

/* five sets: a row on desktop, a snapping strip on phones */
.g-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.g-strip figure { margin: 0; overflow: hidden; border-radius: 12px; }
.g-strip img { aspect-ratio: 9 / 16; object-fit: cover; animation: drift 14s ease-in-out infinite alternate; }
.g-strip li:nth-child(2n) img { animation-delay: -5s; }
.g-strip li:nth-child(3n) img { animation-delay: -9s; }
.g-strip figcaption, .g-plans figcaption { margin-top: 0.5rem; font-size: 0.85rem; font-weight: 700; text-align: center; }

.g-portraits { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.g-portraits img { aspect-ratio: 3 / 4; object-fit: cover; }
.g-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.g-pills span, .g-pill-note { display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.8rem; font-weight: 600; color: #222; }
.g-pills span:first-child { background: var(--accent-ink); color: var(--accent-soft); box-shadow: none; }

.g-subs-row { display: grid; grid-template-columns: 0.9fr 1fr; gap: 12px; align-items: center; }
.g-subs-row img { aspect-ratio: 9 / 16; object-fit: cover; }
.g-karaoke { margin: 0; padding: 0.8rem 0.9rem; border-radius: 12px; background: #111; color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.5; text-align: center; }
/* the active word in the real subtitle colour (yellow), one after another */
.g-karaoke span { animation: kara 5s infinite; }
.g-karaoke span:nth-child(2) { animation-delay: 1s; }
.g-karaoke span:nth-child(3) { animation-delay: 2s; }
.g-karaoke span:nth-child(4) { animation-delay: 3s; }
.g-karaoke span:nth-child(5) { animation-delay: 4s; }

.g-plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.g-more-tile { align-self: start; display: grid; place-items: center; aspect-ratio: 9 / 16; border-radius: 12px; background: var(--accent-ink); color: var(--accent-soft); font-weight: 700; font-size: 1.05rem; }
.g-plans figure { margin: 0; position: relative; }
.g-plans img { aspect-ratio: 9 / 16; object-fit: cover; }
.g-plans figure::before { content: ""; position: absolute; z-index: 1; top: 10px; inset-inline-start: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.25); animation: pulse 1.6s ease-in-out infinite; }

.g-numbers { list-style: none; margin: 0 0 10px; padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border-radius: var(--r-lg); background: radial-gradient(70% 120% at 100% 0%, rgb(var(--accent-rgb) / 0.22), transparent 60%), #15171c; color: #fff; text-align: center; }
.g-numbers b { display: block; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--accent); animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.g-numbers span { font-size: 0.9rem; color: var(--on-dark-2); }

.g-term { margin-bottom: 0.9rem; padding: 14px 16px; border-radius: 12px; background: #111; color: #eee; font-family: var(--mono); font-size: 0.85rem; }
.g-term p { margin: 0 0 0.4rem; }
.g-term b { color: var(--accent); margin-inline-end: 0.35rem; }
.g-keyline { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 6px; background: rgb(var(--accent-rgb) / 0.16); color: var(--accent-soft); letter-spacing: 0.02em; }
.g-ok { color: var(--accent-mid); margin: 0 !important; animation: blink-in 4s infinite; }
.g-updates { display: flex; flex-direction: column; }
.g-versions { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 0.4rem 0 1rem; font-family: var(--mono); font-weight: 700; }
.g-versions span { padding: 0.5rem 0.9rem; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.g-versions .g-new { background: var(--accent); color: var(--accent-ink); box-shadow: none; animation: bump 3s ease-in-out infinite; }
.g-versions i { font-style: normal; color: var(--muted); }

.g-needs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-needs li { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 18px; border-radius: var(--r-lg); background: #f2f2f1; }
.g-needs svg { color: var(--accent-deep); }
.g-needs b { font-size: 1rem; letter-spacing: -0.01em; }
.g-pill-note { font-weight: 500; border-radius: 12px; }

@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateY(-2%); } }
@keyframes kara { 0%, 18% { color: #ffd60a; } 20%, 100% { color: #fff; } }
@keyframes blink-in { 0%, 30% { opacity: 0; } 40%, 100% { opacity: 1; } }
@keyframes bump { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .g-strip img { transform: none; }
  .g-karaoke span:nth-child(2) { color: #ffd60a; }
  .g-ok { opacity: 1; }
}
@media (max-width: 980px) {
  .g-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* the strip scrolls inside its card; the page itself never does */
  .g-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .g-strip li { scroll-snap-align: start; }
  .g-plans { grid-template-columns: repeat(2, 1fr); }
  .g-more-tile { aspect-ratio: auto; padding: 1rem; }
  .g-numbers { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .g-needs { grid-template-columns: 1fr; }
  .g-subs-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- storyrun « Ce qu'il vous faut »: honest numbers, one per row ---------- */
.needs h2 { margin-bottom: 1.2rem; }
.needs-list { margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.needs-list > div { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.needs-list dt { font-weight: 700; color: #fff; }
.needs-list dt::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-block: 0 0.15rem; margin-inline: 0 0.7rem; border-radius: 2px; background: var(--accent); vertical-align: middle; }
.needs-list dd { margin: 0; color: var(--on-dark-2); line-height: 1.55; }
.needs-honest { margin: 1.4rem 0 0; color: var(--on-dark-2); font-size: 0.95rem; }
@media (max-width: 760px) {
  .needs-list > div { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ---------- storyrun FAQ: native <details>, a round +/− on the right ---------- */
.faq h2 { margin-bottom: 1.2rem; }
.faq-list { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.faq-list details { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.faq-list summary { position: relative; display: block; list-style: none; cursor: pointer; padding-block: 1.1rem; padding-inline: 0 3.4rem; font-weight: 700; color: #fff; border-radius: 8px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { content: ""; }
/* the round button: a circle with a + drawn by two bars; the vertical bar
   folds away when the question is open, leaving a − */
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; top: 50%; }
.faq-list summary::before { inset-inline-end: 0; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat; transition: background-color 0.2s ease; }
.faq-list summary::after { inset-inline-end: 16px; width: 2px; height: 12px; margin-top: -6px; background: currentColor; transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: scaleY(0); }
.faq-list details[open] summary::before { background-color: rgb(var(--accent-rgb) / 0.18); }
.faq-list summary:hover::before { box-shadow: inset 0 0 0 1px var(--accent); }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-list details p { margin-block: -0.3rem 1.2rem; margin-inline: 0 3.4rem; color: var(--on-dark-2); line-height: 1.6; }
.faq-list details a { color: var(--accent); }
@media (max-width: 760px) {
  .faq-list details p { margin-inline-end: 0; }
}

/* ---------- Course pages in other languages ---------- */
/* language switcher: a native <details>, no script; each language is
   written in its own language */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.85rem; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.85; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::marker { content: ""; }
.lang-switch summary::after { content: ""; width: 6px; height: 6px; border-block-end: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang-switch[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-switch summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lang-switch ul { position: absolute; z-index: 40; inset-inline-end: 0; top: calc(100% + 6px); min-width: 11rem; margin: 0; padding: 6px; list-style: none; border-radius: 12px; background: #15171c; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.lang-switch a { display: block; padding: 0.45rem 0.7rem; border-radius: 8px; color: #fff; text-decoration: none; font-size: 0.9rem; }
.lang-switch a:hover, .lang-switch a:focus-visible { background: rgb(var(--accent-rgb) / 0.18); }
.lang-switch a[aria-current] { color: var(--accent); font-weight: 700; }
.bar .lang-switch { color: #fff; }
.site-header .lang-switch { color: #222; }
.bar { flex-wrap: wrap; }
.demo-lang { margin: 0.7rem 0 0; text-align: center; font-size: 0.85rem; color: #1d1d1d; }
.translation-note { margin-top: 2rem; font-size: 0.9rem; color: var(--muted); }
[dir="rtl"] .bar-nav, [dir="rtl"] .site-nav { direction: rtl; }

/* Launch-price counter (storyrun): an image served by get.dropshiper.app,
   no script. Every launch-price mention carries .launch, so ending the offer
   is deleting those elements. */
.offer-row { margin: 0.9rem 0 0 !important; display: flex; justify-content: center; }
.block-dark .offer-row { justify-content: flex-start; }
.offer { display: block; max-width: 100%; height: auto; }

/* ---------- Course home: buy path (hero → after prerequisites → final) ---------- */
/* The demo sits next to the button: the real result is what sells, not the mockup. */
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); max-width: 920px; margin: 0 auto clamp(2rem, 4vw, 3rem); padding: 0 1rem; }
.hero-buy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.9rem; }
.hero-buy .price-note, .needs-buy .price-note { margin: 0; font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.45; color: var(--on-dark); max-width: 30rem; }
.hero-buy .offer-row { margin: 0 !important; }
.hero-demo { margin: 0; }
.hero-demo figcaption { margin-top: 0.6rem; font-size: 0.8rem; color: var(--on-dark-2); text-align: center; }
.cta-lg { padding: 1rem 1.8rem; font-size: 1.15rem; border-radius: 14px; box-shadow: 0 14px 34px -14px rgb(var(--accent-rgb, 255 255 255) / 0.7); }
.bento-1 { grid-template-columns: 1fr; }
.needs-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.needs-buy-lead { margin: 0; color: #fff; font-weight: 600; }
.needs-buy .offer-row, .buy-final .offer-row { margin: 0 !important; }
.recap { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.75rem; max-width: 44rem; }
.recap li { position: relative; padding-inline-start: 1.6rem; color: var(--on-dark-2); line-height: 1.5; }
.recap li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }
.recap b { color: #fff; }
.final-price { margin: 0 0 1rem; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; color: #fff; }
.buy-final .offer-row { margin-top: 0.9rem !important; }
.waiver { margin: 0.8rem 0 0; font-size: 0.82rem; color: var(--on-dark-2); max-width: 40rem; }
@media (max-width: 760px) {
  .hero-main { grid-template-columns: 1fr; padding: 0; }
  .hero-demo .demo-video { width: min(100%, 260px); }
  .cta-lg { display: block; width: 100%; text-align: center; }
  .needs-buy .cta { display: block; width: 100%; text-align: center; }
}

/* Arabic letters join and Devanagari forms conjuncts: any letter-spacing
   (the headings' negative tracking included) breaks them apart. */
:lang(ar) *, :lang(hi) * { letter-spacing: normal !important; }
