/* Reampo landing — the app's light theme (A050 ui/theme/Color.kt): white and pale-red surfaces, colorBrand #EF0606 with
   the brand gradient #FF6364 → #CD0004, one colour per file type, Lexend throughout (res/font). Depth comes from soft
   shadows, CSS perspective and the three.js hero. */

:root {
  --bg: #ffffff;
  --soft: #fafafa;
  --pale: #fde6e6;
  --wash: #fef4f4;
  --tile: #f4f4f4;
  --ink: #05141d;
  --body: #2d2b29;
  --muted: #50545b;
  --sub: #797979;
  --line: rgba(5, 20, 29, .08);
  --line-2: rgba(5, 20, 29, .14);
  --red: #ef0606;
  --red-top: #ff6364;
  --red-bot: #cd0004;
  --grad: linear-gradient(180deg, #ff6364 0%, #ef0606 55%, #cd0004 100%);
  /* one colour per file type (colorFile*), with their pale backgrounds (bgFile*) */
  --pdf: #ef0606;
  --doc: #006aff;
  --xls: #16a949;
  --ppt: #fa6b1e;
  --txt: #7c3aed;
  --pdf-bg: #fdeeee;
  --doc-bg: #eef5fe;
  --xls-bg: #eefef4;
  --ppt-bg: #fef4ee;
  --txt-bg: #f4eefe;
  --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --shadow: 0 30px 60px rgba(60, 10, 10, .10), 0 8px 20px rgba(60, 10, 10, .06);
  --shadow-sm: 0 10px 24px rgba(60, 10, 10, .08), 0 2px 6px rgba(60, 10, 10, .05);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .9, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
html[lang='hi'] { --font: 'Mukta', 'Lexend', system-ui, sans-serif; }
html[lang='ja'] { --font: 'Noto Sans JP', 'Lexend', system-ui, sans-serif; }
html[lang='ru'], html[lang='uk'] { --font: 'Manrope', 'Lexend', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.i18n-wait main, html.i18n-wait .site-header, html.i18n-wait .site-footer { visibility: hidden; }
html.modal-open { overflow: hidden; }
html { overflow-x: hidden; overflow-x: clip; } /* on the root only: on body it would turn body into a scroller and break position: sticky */
body { margin: 0; min-height: 100vh; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; } /* a width in CSS must not leave the height attribute (900, 560…) in charge: no stretched art */
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--red); color: #fff; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
.flip { transform: scaleX(-1); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); }

/* ---------- background washes ---------- */
.bg-wash { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-wash i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .7; animation: wash 30s ease-in-out infinite alternate; }
.bg-wash .w1 { width: 44vw; height: 44vw; right: -12vw; top: -14vw; background: #fccdcd; }
.bg-wash .w2 { width: 30vw; height: 30vw; left: -10vw; top: 40vh; background: #eef5fe; animation-delay: -10s; }
.bg-wash .w3 { width: 34vw; height: 34vw; right: 10vw; bottom: -18vw; background: #fef4ee; animation-delay: -20s; }
@keyframes wash { to { transform: translate3d(-4vw, 3vh, 0) scale(1.1); } }
.lite .bg-wash i { animation: none; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
html[lang='ja'] .eyebrow, html[lang='hi'] .eyebrow { letter-spacing: .04em; }
.hl { color: var(--red); }
.section { position: relative; padding: 120px 0; }
/* Nothing may widen the page: on phones any overflow (a spinning ring's square box, an off-screen coverflow phone)
   zooms the whole page out and pushes the header buttons off screen. clip, not hidden: no scroller, sticky still works */
.hero, .section { overflow-x: clip; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); margin: 14px 0 18px; }
.section-sub { font-size: 17.5px; color: var(--muted); max-width: 660px; margin: 0 auto; font-weight: 300; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, border-color .25s, color .25s; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 12px 26px rgba(239, 6, 6, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(239, 6, 6, .36), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:disabled { background: #dfdfdf; color: #a1a1a1; box-shadow: none; cursor: default; transform: none; }
.btn-ghost { color: var(--ink); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(239, 6, 6, .4); color: var(--red); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn:active { transform: translateY(0) scale(.97); }
.play-badge { display: inline-block; transition: transform .25s var(--ease), filter .25s; }
.play-badge img { height: 58px; width: auto; }
.play-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 20px rgba(5, 20, 29, .2)); }
.round-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s, color .2s, border-color .2s; }
.round-btn:hover { transform: scale(1.06); color: var(--red); border-color: rgba(239, 6, 6, .4); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tile); color: var(--ink); transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--pale); color: var(--red); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background-color .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.lite .site-header.is-scrolled { background: rgba(255, 255, 255, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 16px rgba(239, 6, 6, .25); }
.brand-name { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand-name b { color: var(--red); font-weight: 700; margin-left: 4px; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { position: relative; padding: 8px 13px; font-size: 14.5px; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .2s, background-color .2s; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); background: var(--tile); }
.main-nav a.is-active { color: var(--red); background: var(--wash); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { padding: 0 18px; min-height: 40px; }
.lang-menu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); transition: border-color .2s; }
.lang-btn:hover { border-color: rgba(239, 6, 6, .4); }
.lang-btn .ic { width: 18px; height: 18px; }
.lang-btn .chev { width: 14px; height: 14px; opacity: .6; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 10; }
.lang-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: var(--body); }
.lang-list li small { color: var(--sub); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; }
.lang-list li:hover, .lang-list li:focus { background: var(--tile); outline: none; }
.lang-list li[aria-selected='true'] { color: var(--red); background: var(--wash); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); position: relative; background: #fff; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded='true'] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { top: 20px; transform: rotate(-45deg); }
.progress-track { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress-fill { height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }
.site-header.is-compact .main-nav { display: none; }
.site-header.is-compact .menu-toggle { display: block; }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
}
.site-header .main-nav.is-open { display: flex; position: fixed; top: var(--header-h); left: 12px; right: 12px; flex-direction: column; padding: 10px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.site-header .main-nav.is-open a { padding: 13px 16px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 48px) 0 40px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; }
.hero-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.hero-chip img { width: 26px; height: 26px; border-radius: 8px; }
.hero-title { font-size: clamp(40px, 5.8vw, 72px); margin: 22px 0 20px; line-height: 1.04; letter-spacing: -.035em; }
.hero-title .hl { display: inline; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; max-width: 560px; color: var(--muted); font-weight: 300; }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 32px 0 28px; }
.type-row { display: flex; flex-wrap: wrap; gap: 8px; }
.type-row li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px 5px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--c); box-shadow: 0 4px 10px rgba(5, 20, 29, .04); }
.type-row img { width: 26px; height: 26px; }
.hero-facts { display: flex; justify-content: center; margin-top: 48px; }
.hero-facts li { flex: 1; max-width: 240px; text-align: center; padding: 6px 12px; border-left: 1px solid var(--line-2); }
.hero-facts li:first-child { border-left: 0; }
.hero-facts strong { display: block; font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--red); letter-spacing: -.03em; }
.hero-facts span { font-size: 13.5px; color: var(--muted); }

.hero-visual { position: relative; }
.stage3d { position: relative; width: min(100%, 640px); aspect-ratio: 1; margin: 0 auto; }
.stage3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); touch-action: pan-y; cursor: grab; }
.stage3d canvas:active { cursor: grabbing; }
.stage3d.is-ready canvas { opacity: 1; }
.stage-fallback { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(60, 10, 10, .18)); animation: floatA 7s ease-in-out infinite; transition: opacity .6s; }
.stage3d.is-ready .stage-fallback { opacity: 0; pointer-events: none; }
.stage-chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 16px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 2; }
.stage-chip img { width: 26px; height: 26px; }
.stage-chip .ic { width: 18px; height: 18px; color: var(--red); }
.chip-convert { left: 0; bottom: 14%; animation: floatA 8s ease-in-out infinite; }
.chip-merge { right: 2%; top: 12%; animation: floatB 9s ease-in-out infinite; }
.chip-merge .ic { width: 22px; height: 22px; padding: 3px; border-radius: 8px; background: var(--wash); }
@keyframes floatA { 50% { transform: translateY(-12px); } }
@keyframes floatB { 50% { transform: translateY(10px); } }
.is-paused .stage-chip, .is-paused .stage-fallback { animation-play-state: paused; }
.stage-chip { pointer-events: none; }
.lite .stage-chip { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } /* no re-blur of the WebGL canvas every frame */

/* ---------- phone ---------- */
.phone { position: relative; width: 280px; aspect-ratio: 480 / 1025; padding: 10px; border-radius: 46px; background: linear-gradient(145deg, #2b2b2b, #0e0e0e 60%, #222); box-shadow: 0 50px 80px rgba(30, 10, 10, .22), 0 14px 30px rgba(30, 10, 10, .14), inset 0 0 0 1.5px rgba(255, 255, 255, .12); transform-style: preserve-3d; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #fff; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-glare { position: absolute; inset: 10px; border-radius: 37px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 32%); mix-blend-mode: soft-light; }

/* ---------- read ---------- */
.read-layout { display: grid; grid-template-columns: 1fr auto 260px; gap: 48px; align-items: center; }
.type-tabs { display: grid; gap: 10px; }
.type-tabs button { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-align: left; background: #fff; border: 1.5px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.type-tabs button img { width: 44px; height: 44px; flex: none; }
.type-tabs strong { display: block; font-size: 16px; color: var(--ink); }
.type-tabs small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; font-weight: 300; }
.type-tabs button:hover { transform: translateX(4px); }
.type-tabs button[aria-selected='true'] { border-color: var(--c); box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 18%, transparent); }
.type-tabs button[aria-selected='true'] strong { color: var(--c); }
.phone-3d { position: relative; perspective: 1400px; padding: 10px 30px; }
.phone-3d .phone { transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)); transition: transform .6s var(--ease); }
.phone-screen img.is-swap { animation: swap .55s var(--ease); }
@keyframes swap { 0% { transform: rotateY(0); opacity: 1; } 45% { transform: rotateY(80deg); opacity: .2; } 55% { transform: rotateY(-80deg); opacity: .2; } 100% { transform: rotateY(0); opacity: 1; } }
.float-type { position: absolute; right: -6px; top: 18%; width: 96px; height: 96px; filter: drop-shadow(0 18px 24px rgba(30, 10, 10, .2)); animation: floatA 6s ease-in-out infinite; transform-origin: center; }
.float-type.is-swap { animation: pop .6s var(--spring), floatA 6s ease-in-out infinite .6s; }
@keyframes pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.type-caption { display: none; }
.read-perks { display: grid; gap: 10px; }
.read-perks li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.read-perks .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: var(--red); background: var(--wash); }

/* ---------- convert ---------- */
.conv-layout { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 40px; align-items: stretch; }
.conv-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.conv-sources button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; border-radius: 20px; text-align: left; background: #fff; border: 1.5px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.conv-sources img, .src-ic { width: 44px; height: 44px; }
.src-ic { display: grid; place-items: center; border-radius: 12px; background: var(--wash); color: var(--red); }
.src-ic .ic { width: 24px; height: 24px; }
.conv-sources strong { font-size: 15.5px; color: var(--ink); }
.conv-sources small { font-size: 13px; color: var(--sub); }
.conv-sources button:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.conv-sources button[aria-checked='true'] { border-color: var(--c); box-shadow: 0 14px 28px color-mix(in srgb, var(--c) 18%, transparent); }
.conv-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 34px 24px 26px; border-radius: 32px; background: radial-gradient(80% 70% at 50% 40%, #fff 0%, #fef4f4 70%, #fde6e6 100%); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; min-height: 520px; }
.conv-scene { position: relative; width: 100%; max-width: 520px; height: 300px; perspective: 1100px; }
.conv-card { position: absolute; top: 30px; width: 170px; height: 226px; border-radius: 16px; transform-style: preserve-3d; transition: transform 1s var(--ease), opacity .6s; }
.conv-card.src { left: 6%; transform: rotateY(18deg) rotateZ(-4deg); }
.conv-card.out { right: 6%; transform: rotateY(-18deg) rotateZ(4deg) scale(.6); opacity: 0; }
.doc { position: absolute; inset: 0; border-radius: 16px; background: #fff; box-shadow: 0 30px 50px rgba(30, 10, 10, .16), 0 8px 16px rgba(30, 10, 10, .08), inset 0 0 0 1px var(--line); overflow: hidden; }
.doc::after { content: ''; position: absolute; right: 0; top: 0; width: 38px; height: 38px; background: linear-gradient(225deg, #fff 0 50%, color-mix(in srgb, var(--c) 30%, #fff) 50% 100%); border-bottom-left-radius: 10px; box-shadow: -3px 3px 8px rgba(30, 10, 10, .08); }
.doc-head { display: flex; align-items: center; gap: 8px; padding: 16px 14px 10px; }
.doc-head img { width: 34px; height: 34px; }
.doc-head b { min-width: 0; padding-right: 22px; font-size: 12px; color: var(--c); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-lines { display: grid; gap: 7px; padding: 6px 16px; }
.doc-lines i { display: block; height: 7px; border-radius: 4px; background: var(--tile); }
.doc-lines i:nth-child(1) { width: 80%; background: color-mix(in srgb, var(--c) 30%, #fff); height: 10px; }
.doc-lines i:nth-child(3n) { width: 64%; }
.doc-lines i:nth-child(4n) { width: 88%; }
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 6px 14px; }
.doc-grid i { height: 12px; border-radius: 2px; background: var(--xls-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--xls) 25%, transparent); }
.doc-grid i:nth-child(-n + 4) { background: color-mix(in srgb, var(--xls) 40%, #fff); }
.doc-slide { margin: 6px 14px; aspect-ratio: 16 / 10; border-radius: 6px; background: linear-gradient(135deg, var(--ppt-bg), color-mix(in srgb, var(--ppt) 30%, #fff)); display: grid; place-items: center; }
.doc-slide i { width: 46%; height: 44%; border-radius: 6px; background: color-mix(in srgb, var(--ppt) 70%, #fff); }
.doc-photo { margin: 0; height: 100%; background-size: cover; background-position: center; }
.conv-ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; display: grid; place-items: center; z-index: 2; }
.conv-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.conv-ring .track { fill: #fff; stroke: var(--pale); stroke-width: 8; }
.conv-ring .bar { fill: none; stroke: var(--red); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(239, 6, 6, .5)); }
.conv-ring span { position: relative; font-size: 22px; font-weight: 700; color: var(--ink); }
.conv-scene.is-running .conv-card.src { transform: translateX(var(--to, 160px)) rotateY(-70deg) scale(.4); opacity: 0; transition-duration: 1.1s; }
.conv-scene.is-done .conv-card.out { transform: rotateY(-12deg) rotateZ(2deg) scale(1); opacity: 1; }
.conv-scene.is-done .conv-ring { transform: scale(.8); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.conv-scene .beam { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(239, 6, 6, 0), rgba(239, 6, 6, .25), rgba(239, 6, 6, 0) 40%); opacity: 0; pointer-events: none; }
.conv-scene.is-running .beam { opacity: 1; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.conv-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.ok-badge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 24px rgba(239, 6, 6, .35); margin-bottom: 6px; animation: pop .6s var(--spring); }
.ok-badge .ic { width: 26px; height: 26px; }
.cr-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.cr-file { font-size: 15px; font-weight: 600; color: var(--body); }
.cr-path { font-size: 12.5px; color: var(--sub); }
.cr-actions { display: flex; gap: 10px; margin-top: 12px; }
.conv-go { min-width: 260px; }
.demo-note { font-size: 13px; color: var(--sub); text-align: center; max-width: 440px; }

/* ---------- organize ---------- */
.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card-head { display: flex; align-items: center; gap: 14px; padding: 24px 24px 12px; }
.card-head img { width: 48px; height: 48px; }
.card-head h3 { font-size: 21px; }
.card-head p { font-size: 14px; color: var(--muted); }
.card-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 24px; }
.merge-card, .order-card { display: flex; flex-direction: column; }
.merge-list { display: grid; gap: 8px; padding: 6px 24px; flex: 1; }
.merge-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .25s, background-color .25s, transform .7s var(--ease), opacity .5s; user-select: none; }
.merge-list li img { width: 36px; height: 36px; }
.merge-list li span { flex: 1; min-width: 0; }
.merge-list li strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merge-list li small { font-size: 12px; color: var(--sub); }
.merge-list .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #cfcfcf; display: grid; place-items: center; color: #fff; transition: background-color .2s, border-color .2s; flex: none; }
.merge-list .box .ic { width: 14px; height: 14px; opacity: 0; transition: opacity .2s; }
.merge-list li[aria-checked='true'] { border-color: rgba(239, 6, 6, .45); background: var(--wash); }
.merge-list li[aria-checked='true'] .box { background: var(--red); border-color: var(--red); }
.merge-list li[aria-checked='true'] .box .ic { opacity: 1; }
.merge-list li .ord { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--red); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .3s var(--spring); flex: none; }
.merge-list li[aria-checked='true'] .ord { opacity: 1; transform: none; }
.merge-card.is-merging .merge-list li[aria-checked='true'] { transform: translate(var(--mx, 0), var(--my, 0)) scale(.5) rotate(var(--mr, 0deg)); opacity: 0; }
.merge-card.is-merging .merge-list li[aria-checked='false'] { opacity: .25; }
.merge-stack { position: absolute; left: 50%; top: 52%; width: 120px; height: 156px; margin: -78px 0 0 -60px; perspective: 800px; pointer-events: none; }
.merge-stack i { position: absolute; inset: 0; border-radius: 12px; background: #fff; box-shadow: 0 16px 30px rgba(30, 10, 10, .14), inset 0 0 0 1px var(--line); opacity: 0; transform: translateY(40px) rotateX(50deg); transition: transform .7s var(--spring), opacity .4s; }
.merge-stack i::before { content: 'PDF'; position: absolute; left: 12px; top: 12px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; background: var(--red); }
.merge-stack.is-in i { opacity: 1; transform: translate(calc(var(--k) * 6px), calc(var(--k) * -6px)) rotateZ(calc(var(--k) * 3deg - 4deg)); }
.merge-done { position: absolute; inset: 70px 24px 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; background: rgba(255, 255, 255, .94); border-radius: 20px; animation: rise .6s var(--ease); }
.page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 8px 24px; flex: 1; counter-reset: pg; touch-action: pan-y; -webkit-touch-callout: none; }
.page-grid li { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; background: #fff; border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm); cursor: grab; user-select: none; -webkit-user-select: none; transition: transform .35s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden; touch-action: pan-y; }
.page-grid li.is-pressing { transform: scale(.94); border-color: rgba(239, 6, 6, .5); transition: transform .3s var(--ease), border-color .3s; }
.page-grid li:active { cursor: grabbing; }
.page-grid li .num { position: absolute; left: 8px; bottom: 8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--red); }
.page-grid li .mini { position: absolute; inset: 12px 12px 38px; display: grid; gap: 5px; align-content: start; }
.page-grid li .mini i { display: block; height: 5px; border-radius: 3px; background: var(--tile); }
.page-grid li .mini i.t { height: 9px; width: 70%; background: #e3e3e3; }
.page-grid li .mini i.img { height: 34px; border-radius: 5px; background: linear-gradient(135deg, var(--pale), #fff); }
.page-grid li .mini i:nth-child(4n) { width: 82%; }
.page-grid li .tag { position: absolute; right: 8px; top: 8px; font-size: 10.5px; font-weight: 700; color: var(--sub); }
.page-grid li::after { content: attr(data-page); position: absolute; inset: 20% 0 0; display: grid; place-items: center; font-size: clamp(34px, 4vw, 52px); font-weight: 800; color: rgba(239, 6, 6, .09); pointer-events: none; }
.page-grid li.is-dragging { z-index: 5; transform: scale(1.08) rotate(-3deg); box-shadow: 0 30px 50px rgba(30, 10, 10, .25); border-color: var(--red); transition: box-shadow .25s, border-color .25s; }
.page-grid li.is-target { border-color: rgba(239, 6, 6, .5); }

/* ---------- sign ---------- */
.sign-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.desk { perspective: 1600px; padding: 10px; }
.paper { position: relative; max-width: 620px; margin: 0 auto; aspect-ratio: 900 / 1292; border-radius: 6px; background: #fff; box-shadow: 0 50px 80px rgba(30, 10, 10, .16), 0 10px 24px rgba(30, 10, 10, .08), inset 0 0 0 1px var(--line); transform: rotateX(6deg) rotateZ(-1deg); transform-origin: 50% 0; transition: transform .6s var(--ease); }
.paper.is-active { transform: none; }
.paper img { width: 100%; height: 100%; border-radius: 6px; user-select: none; pointer-events: none; }
.ink { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; border-radius: 6px; }
.paper.is-text .ink { cursor: text; }
.stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker { position: absolute; pointer-events: auto; cursor: move; touch-action: none; border: 1.5px dashed transparent; border-radius: 6px; padding: 4px; transition: border-color .2s; }
.sticker:hover, .sticker.is-active { border-color: #787878; }
.sticker img { width: 100%; height: auto; pointer-events: none; }
.sticker.text { font-size: 18px; font-weight: 500; color: var(--ink); white-space: nowrap; background: rgba(255, 255, 255, .6); }
.sticker .x { position: absolute; right: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #464646; color: #fff; display: none; place-items: center; font-size: 14px; line-height: 1; }
.sticker:hover .x, .sticker.is-active .x { display: grid; }
.toolbox { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 16px; }
.tool-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--tile); }
.tool-tabs button { flex: 1; padding: 10px 6px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.tool-tabs button[aria-selected='true'] { background: #fff; color: var(--red); box-shadow: var(--shadow-sm); }
.tool-pane { display: grid; gap: 14px; }
.pens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pens button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--muted); transition: border-color .2s, color .2s, background-color .2s; }
.pens .ic { width: 24px; height: 24px; }
.pens button[aria-checked='true'] { border-color: var(--red); color: var(--red); background: var(--wash); }
.tool-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .2s var(--spring), box-shadow .2s; }
.swatches button[aria-checked='true'] { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.slider input { grid-column: 1 / -1; accent-color: var(--red); width: 100%; }
.slider output { grid-row: 1; grid-column: 2; font-weight: 700; color: var(--ink); }
.tool-tip { font-size: 14px; color: var(--muted); }
.tool-foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.tool-foot .btn { margin-left: auto; }
.editor-bar, .paper-try { display: none; }
.sig-pad { width: 100%; aspect-ratio: 2 / 1; border-radius: 16px; background: var(--tile); touch-action: none; cursor: crosshair; }

/* ---------- lock ---------- */
.lock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lock-visual { position: relative; display: grid; place-items: center; min-height: 460px; perspective: 1000px; }
.lock-orbit { position: relative; width: min(100%, 480px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #fff 0 40%, #fef4f4 60%, rgba(253, 230, 230, 0) 72%); }
.lock-orbit::before, .lock-orbit::after { content: ''; position: absolute; inset: 6%; border-radius: 50%; border: 1.5px dashed rgba(239, 6, 6, .2); animation: spin 40s linear infinite; }
.lock-orbit::after { inset: 18%; border-style: solid; border-color: rgba(239, 6, 6, .1); animation-direction: reverse; animation-duration: 60s; }
.lock-3d { width: 86%; filter: drop-shadow(0 30px 40px rgba(30, 10, 10, .2)); transition: transform .8s var(--spring), filter .5s; transform: rotateY(-14deg) rotateX(6deg); animation: floatA 7s ease-in-out infinite; }
.lock-visual.is-locked .lock-3d { transform: rotateY(8deg) rotateX(4deg) scale(1.06); filter: drop-shadow(0 30px 40px rgba(239, 6, 6, .35)); }
.lock-visual.is-shake .lock-3d { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.lock-file { position: absolute; left: 6%; bottom: 8%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .5s var(--spring); }
.lock-file img { width: 40px; height: 40px; }
.lock-file strong { display: block; font-size: 14.5px; color: var(--ink); }
.lock-file small { font-size: 12.5px; color: var(--sub); }
.lock-file .lock-ic { width: 32px; height: 32px; padding: 6px; border-radius: 10px; background: var(--tile); color: var(--muted); }
.lock-visual.is-locked .lock-file { transform: translateY(-6px); }
.lock-visual.is-locked .lock-file small { color: var(--red); font-weight: 600; }
.lock-visual.is-locked .lock-file .lock-ic { background: var(--red); color: #fff; }
.lock-copy h2 { font-size: clamp(32px, 4.4vw, 50px); margin: 14px 0 16px; }
.lock-copy .section-sub { margin: 0; }
.sheet { margin-top: 28px; padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; max-width: 460px; }
.sheet-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.pw-field { position: relative; display: block; }
.pw-field input { width: 100%; height: 52px; padding: 0 52px 0 16px; border-radius: 14px; border: 1.5px solid transparent; background: var(--tile); font-size: 16px; color: var(--ink); transition: border-color .2s, background-color .2s; }
.pw-field input:focus { outline: none; border-color: var(--red); background: #fff; }
.pw-field input::placeholder { color: #b5b5b5; }
.pw-eye { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.pw-q { font-size: 13px; color: var(--muted); }
.pw-q small { color: var(--sub); }
.field-error { font-size: 13.5px; font-weight: 600; color: var(--red); }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- files hub ---------- */
.files-grid { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.files-copy h2 { font-size: clamp(32px, 4.4vw, 50px); margin: 14px 0 16px; }
.files-copy .section-sub { margin: 0; }
.files-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.files-perks li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.files-perks .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: var(--red); background: var(--wash); flex: none; }
.hub-phone { perspective: 1400px; }
.phone.hub { width: 340px; aspect-ratio: auto; height: 680px; display: flex; flex-direction: column; padding: 0; overflow: hidden; background: #fff; border: 10px solid #151515; transform: rotateY(-10deg) rotateX(4deg); transition: transform .6s var(--ease); }
.hub-phone:hover .phone.hub { transform: rotateY(-4deg) rotateX(2deg); }
.hub-top { padding: 22px 16px 8px; background: #fff; }
.hub-brand { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.hub-brand b { color: var(--red); }
.hub-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--tile); color: var(--sub); }
.hub-search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 14px; color: var(--ink); }
.hub-search input:focus { outline: none; }
.hub-filters { display: flex; gap: 6px; margin: 12px 0 8px; overflow-x: auto; scrollbar-width: none; }
.hub-filters::-webkit-scrollbar { display: none; }
.hub-filters button { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--tile); transition: background-color .2s, color .2s; }
.hub-filters button[aria-selected='true'] { color: #fff; background: var(--red); }
.hub-count { font-size: 12px; color: var(--sub); }
.hub-list { flex: 1; overflow-y: auto; padding: 0 10px; scrollbar-width: thin; }
.hub-list li { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line); animation: rise .35s var(--ease) both; }
.hub-list .ft { width: 34px; height: 34px; flex: none; }
.hub-list .meta { flex: 1; min-width: 0; }
.hub-list .meta b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-list .meta b em { font-style: normal; color: var(--c); }
.hub-list .meta small { font-size: 11px; color: var(--sub); }
.hub-list .star { width: 30px; height: 30px; display: grid; place-items: center; color: #d4d4d4; transition: color .2s, transform .3s var(--spring); }
.hub-list .star[aria-pressed='true'] { color: var(--c, var(--red)); }
.hub-list .star:active { transform: scale(1.3); }
.hub-list .star .ic { width: 18px; height: 18px; }
.hub-empty { padding: 40px 10px; text-align: center; color: var(--sub); font-size: 13.5px; border: 0 !important; }
.hub-tabs { display: flex; align-items: center; justify-content: space-around; padding: 8px 6px 12px; border-top: 1px solid var(--line); background: #fff; }
.hub-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: #afb2b7; width: 58px; }
.hub-tabs button .ic { width: 22px; height: 22px; }
.hub-tabs button[aria-pressed='true'] { color: var(--red); }
.hub-fab { width: 48px; height: 48px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 20px rgba(239, 6, 6, .35); }

/* ---------- gallery ---------- */
.inside { overflow: hidden; overflow: clip; } /* browsers without overflow: clip still clip the coverflow */
.gal-stage { position: relative; height: 620px; perspective: 1600px; touch-action: pan-y; cursor: grab; }
.gal-stage:active { cursor: grabbing; }
.gal-phone { position: absolute; left: 50%; top: 10px; width: 270px; margin-left: -135px; aspect-ratio: 480 / 997; padding: 9px; border-radius: 42px; background: linear-gradient(145deg, #2b2b2b, #0e0e0e 60%, #222); box-shadow: 0 34px 60px rgba(30, 10, 10, .18); transition: transform .8s var(--ease), opacity .6s, filter .6s; }
.gal-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; background: #fff; }
.gal-phone.is-active { box-shadow: 0 44px 80px rgba(30, 10, 10, .24), 0 0 0 4px rgba(239, 6, 6, .15); }
.gal-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 18px; }
.gal-caption { min-width: 240px; text-align: center; font-weight: 600; color: var(--ink); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.perks li { display: flex; gap: 14px; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.perks .ic { width: 38px; height: 38px; padding: 8px; border-radius: 12px; color: var(--red); background: var(--wash); flex: none; }
.perks strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 3px; }
.perks span { font-size: 13.5px; color: var(--muted); }

/* ---------- download ---------- */
.dl-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 40px; background: radial-gradient(70% 90% at 15% 50%, #fff 0%, #fde6e6 60%, #fccdcd 100%); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.dl-visual { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; perspective: 1000px; }
.dl-folder { position: absolute; inset: 6%; width: 88%; filter: drop-shadow(0 30px 40px rgba(30, 10, 10, .2)); animation: floatA 8s ease-in-out infinite; }
.dl-star { position: absolute; right: 2%; top: 4%; width: 24%; animation: floatB 6s ease-in-out infinite; filter: drop-shadow(0 14px 20px rgba(200, 140, 0, .3)); }
.dl-sign { position: absolute; left: 0; bottom: 2%; width: 34%; animation: floatA 7s ease-in-out infinite -2s; filter: drop-shadow(0 18px 24px rgba(30, 10, 10, .18)); }
.dl-icon { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 12px 26px rgba(239, 6, 6, .3); margin-bottom: 18px; }
.dl-copy h2 { font-size: clamp(32px, 4.4vw, 50px); margin: 12px 0 14px; }
.dl-copy .section-sub { margin: 0; }
.dl-actions { display: flex; align-items: center; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.qr-block { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-block p { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.qr-tile { position: relative; width: 140px; height: 140px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.qr-tile > img:first-child { width: 100%; height: 100%; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 8px; box-shadow: 0 0 0 4px #fff; }
.dl-buttons { display: flex; flex-direction: column; gap: 10px; }
.dl-meta { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { max-width: 440px; margin-top: 14px; color: var(--muted); font-size: 14.5px; font-weight: 300; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: flex-start; }
.footer-links a { color: var(--body); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.disclaimer, .copyright { font-size: 13px; color: var(--sub); }
.disclaimer { max-width: 760px; }

/* ---------- modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 20, 29, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .3s forwards; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; } }
.modal-dialog { position: relative; width: min(100%, 560px); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 30px; border-radius: 30px; background: #fff; box-shadow: 0 30px 80px rgba(5, 20, 29, .3); animation: modalIn .5s var(--spring); }
.modal-dialog:focus { outline: none; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--tile); transition: color .2s, background-color .2s, transform .3s var(--ease); }
.modal-close .ic { width: 18px; height: 18px; }
.modal-close:hover, .modal-close:focus-visible { color: var(--red); background: var(--pale); transform: rotate(90deg); }
.modal-app { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-right: 48px; }
.modal-app img { width: 56px; height: 56px; border-radius: 16px; }
.modal-app-name { font-weight: 700; color: var(--ink); }
.modal-app-meta { font-size: 13px; color: var(--sub); }
.modal-title { font-size: 26px; margin-bottom: 8px; }
.modal-sub { color: var(--muted); margin-bottom: 18px; font-weight: 300; }
.modal-visual { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.modal-visual:empty { display: none; }
.modal-visual img { height: 130px; width: auto; border-radius: 14px; box-shadow: var(--shadow-sm); }
.modal-get { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-actions { display: flex; flex-direction: column; gap: 12px; }
.modal-actions .play-badge img { height: 54px; }
.modal-steps .step-tap { display: none; }
.modal-steps { list-style: decimal; padding-left: 20px; font-size: 13.5px; color: var(--body); display: grid; gap: 3px; }
.sig-modal .modal-title { padding-right: 40px; }
.sig-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); text-align: center; z-index: 400; transform: translate(-50%, 30px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: rgba(17, 17, 17, .85); color: #fff; font-weight: 500; font-size: 14.5px; transition: opacity .3s, transform .4s var(--spring); pointer-events: none; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .read-layout { grid-template-columns: 1fr auto; }
  .read-perks { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .sign-layout { grid-template-columns: 1fr 320px; }
}
@media (max-width: 980px) {
  .section { padding: 90px 0; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 32px); }
  .hero-grid, .conv-layout, .org-grid, .lock-grid, .files-grid, .sign-layout { grid-template-columns: 1fr; }
  /* one column, and the 3D hub right under the headline so it shows on the first screen */
  .hero-grid { gap: 0; justify-items: center; text-align: center; }
  .hero-copy { display: contents; }
  .hero-chip { order: 1; }
  .hero-title { order: 2; margin-bottom: 4px; }
  .hero-visual { order: 3; width: 100%; }
  .hero-sub { order: 4; margin: 4px auto 0; }
  .hero-ctas { order: 5; justify-content: center; }
  .type-row { order: 6; justify-content: center; }
  .stage3d { width: min(100%, 460px); }
  .read-layout { grid-template-columns: 1fr; justify-items: center; }
  /* all five types in one row, no hidden scroller; the caption names the selected one */
  .type-tabs { grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; max-width: 620px; }
  .type-tabs button { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 4px; text-align: center; border-radius: 16px; }
  .type-tabs button img { width: 38px; height: 38px; }
  .type-tabs strong { font-size: 13.5px; }
  .type-tabs small { display: none; }
  .type-tabs button:hover { transform: none; }
  .type-caption { display: block; max-width: 520px; margin: -28px 0 -18px; text-align: center; font-size: 14.5px; color: var(--muted); font-weight: 300; min-height: 3.2em; }
  .type-caption strong { font-weight: 600; color: var(--ink); }
  .read-perks { width: 100%; }
  .toolbox { position: relative; top: 0; }
  /* Edit · Annotate · Fill & Sign: on the page the sample sits still (it scrolls like the rest); "Tap to draw" opens it
     full screen like the app's editor — top bar, the page in the middle, the tools docked at the bottom (sign.js) */
  .sign-layout:not(.is-focus) .ink, .sign-layout:not(.is-focus) .sticker { pointer-events: none; }
  .sign-layout:not(.is-focus) .toolbox { display: none; }
  .sign-layout:not(.is-focus) .paper { max-width: 460px; }
  .paper-try { display: inline-flex; position: absolute; left: 50%; bottom: 12%; z-index: 3; transform: translateX(-50%); padding: 0 22px; animation: tryPulse 2.4s ease-in-out infinite; }
  .paper-try:hover, .paper-try:active { transform: translateX(-50%) scale(.97); }
  @keyframes tryPulse { 50% { box-shadow: 0 12px 26px rgba(239, 6, 6, .28), 0 0 0 10px rgba(239, 6, 6, .12); } }
  .sign-layout.is-focus { position: fixed; inset: 0; z-index: 260; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: #ececec; transform: none; opacity: 1; animation: editorIn .35s var(--ease); }
  @keyframes editorIn { from { opacity: 0; transform: translateY(24px); } }
  .is-focus .editor-bar { display: flex; align-items: center; gap: 10px; flex: none; height: calc(58px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); background: #fff; box-shadow: 0 1px 0 var(--line); }
  .is-focus .editor-bar .icon-btn { background: none; }
  .editor-file { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .editor-file img { width: 26px; height: 26px; flex: none; }
  .is-focus .desk { flex: 1; min-height: 0; display: grid; place-items: center; padding: 14px; perspective: none; overflow: hidden; container-type: size; }
  .is-focus .paper { width: min(100cqw, 100cqh * 900 / 1292); max-width: none; margin: 0; transform: none; box-shadow: 0 16px 40px rgba(30, 10, 10, .14); }
  .is-focus .paper-try { display: none; }
  .is-focus .toolbox { flex: none; gap: 10px; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px rgba(30, 10, 10, .08); }
  .is-focus .toolbox > * { width: min(100%, 620px); justify-self: center; } /* tablets: tools stay a phone's width */
  .is-focus .tool-pane { min-height: 128px; align-content: start; gap: 10px; }
  .is-focus .pens button { flex-direction: row; justify-content: center; padding: 9px 6px; font-size: 12px; }
  .is-focus .pens .ic { width: 20px; height: 20px; }
  .is-focus .tool-label { display: none; }
  .is-focus .swatches { flex-wrap: nowrap; justify-content: space-between; }
  .is-focus .tool-tip { font-size: 13.5px; }
  /* Undo · Clear · Save move up into the editor's top bar (sign.js moves the node) */
  .editor-bar .tool-foot { flex: none; padding: 0; border: 0; gap: 4px; }
  .editor-bar .tool-foot .icon-btn { width: 40px; height: 40px; }
  .editor-bar .tool-foot .btn { margin-left: 4px; min-height: 40px; padding: 0 16px; }
  html.editor-open { overflow: hidden; }
  .lock-visual { min-height: 360px; }
  .files-copy { text-align: center; }
  .files-copy .eyebrow { justify-content: center; }
  .files-perks { text-align: left; }
  .hub-phone { justify-self: center; }
  .dl-card { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
  .dl-visual { max-width: 300px; }
  .dl-actions { justify-content: center; }
  .dl-icon { margin: 0 auto 18px; }
  .lock-copy { text-align: center; }
  .lock-copy .eyebrow { justify-content: center; }
  .sheet { margin-left: auto; margin-right: auto; text-align: left; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-sub { font-size: 16px; }
  .header-cta { display: none; }
  .hero-sub { font-size: 16.5px; }
  .hero-facts { margin-top: 28px; flex-wrap: wrap; }
  .hero-facts li { flex: 1 1 45%; padding: 8px 6px; border-left: 0; }
  .hero-facts strong { font-size: 30px; }
  .hero-facts span { font-size: 12.5px; }
  .stage3d { aspect-ratio: 1.12; } /* the scene's height is what the camera frames: a wider box only trims empty space */
  .stage-chip { font-size: 12px; padding: 7px 10px 7px 8px; }
  .chip-convert span { display: none; }
  .phone { width: 240px; }
  .float-type { width: 72px; height: 72px; right: 0; }
  .read-perks { grid-template-columns: 1fr 1fr; }
  .conv-sources { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .conv-sources button { padding: 12px 10px; align-items: center; text-align: center; }
  .conv-sources small { display: none; }
  .conv-sources strong { font-size: 13px; }
  .conv-stage { padding: 24px 14px 20px; min-height: 0; }
  .conv-scene { height: 250px; }
  .conv-card { width: 132px; height: 176px; top: 30px; }
  /* small cards: the file name goes under the icon, clear of the folded corner */
  .doc-head { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 12px 6px; }
  .doc-head img { width: 28px; height: 28px; }
  .doc-head b { max-width: 100%; padding-right: 0; font-size: 11px; letter-spacing: 0; }
  .conv-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
  .conv-ring span { font-size: 18px; }
  .conv-go { min-width: 0; width: 100%; }
  .page-grid { gap: 10px; padding: 8px 16px; }
  .card-head, .card-foot { padding-left: 16px; padding-right: 16px; }
  .merge-list { padding: 6px 16px; }
  .files-perks { grid-template-columns: 1fr; }
  .phone.hub, .hub-phone:hover .phone.hub { width: min(300px, 100%); height: 580px; transform: none; }
  .gal-stage { height: 520px; }
  .gal-phone { width: 220px; margin-left: -110px; }
  .perks { grid-template-columns: 1fr; margin-top: 40px; }
  .modal-dialog { padding: 24px 20px; }
  .modal-get { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .modal-get .qr-block { display: none; }
  .modal-steps .step-scan { display: none; } /* no QR code here, so no "scan the code" */
  .modal-steps .step-tap { display: list-item; }
  .modal-steps { text-align: left; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .hero-title { font-size: 36px; }
  .play-badge img { height: 52px; }
  .conv-sources button { padding: 12px 6px; }
  .conv-sources img, .src-ic { width: 36px; height: 36px; }
  .conv-sources strong { font-size: 12.5px; line-height: 1.3; }
}
@media (max-width: 380px) {
  /* 320–380 px phones: brand, language and menu must share one row */
  .header-inner { gap: 8px; }
  .header-actions { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .brand-name { font-size: 18px; }
  .lang-btn { padding: 0 10px; gap: 4px; }
  .lang-btn .ic { display: none; }
  .get-dock { gap: 10px; }
  .get-dock-text strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .get-dock .btn { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 560px) {
  .type-tabs { gap: 6px; }
  .type-tabs button { padding: 10px 2px; border-radius: 14px; }
  .type-tabs strong { display: none; }
}

/* ---------- phones: get-the-app bar, and the modal as a bottom sheet ---------- */
.get-dock { display: none; }
@media (max-width: 720px) {
  .get-dock { position: fixed; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 22px; background: rgba(255, 255, 255, .97); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(30, 10, 10, .18); transform: translateY(calc(100% + 40px)); transition: transform .45s var(--ease); }
  .get-dock img { width: 40px; height: 40px; border-radius: 12px; flex: none; }
  .get-dock-text { flex: 1; min-width: 0; line-height: 1.3; }
  .get-dock-text strong { display: block; font-size: 14.5px; color: var(--ink); }
  .get-dock-text small { display: block; font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .get-dock .btn { flex: none; min-height: 42px; padding: 0 18px; }
  html.show-dock .get-dock { transform: none; }
  html.editor-open .get-dock, html.modal-open .get-dock { transform: translateY(calc(100% + 40px)); }
  html.show-dock .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

  .modal { place-items: end center; padding: 0; }
  .modal-dialog { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 28px 28px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); animation: sheetIn .45s var(--ease); }
  .modal-dialog::before { content: ''; display: block; width: 40px; height: 4px; margin: -12px auto 14px; border-radius: 4px; background: #dcdcdc; }
  @keyframes sheetIn { from { transform: translateY(100%); } }
}

/* ---------- touch screens ---------- */
@media (hover: none) {
  /* a tap must not leave a button lifted or recoloured */
  .btn-primary:hover, .btn-ghost:hover, .play-badge:hover, .round-btn:hover, .conv-sources button:hover, .type-tabs button:hover { transform: none; }
  .btn-ghost:hover { color: var(--ink); border-color: var(--line-2); }
  .play-badge:hover { filter: none; }
}
@media (pointer: coarse) {
  .hub-search input { font-size: 16px; } /* under 16 px iOS zooms the page into the field */
  .swatches button { width: 34px; height: 34px; }
  .sticker .x { width: 28px; height: 28px; right: -14px; top: -14px; font-size: 16px; }
  .hub-list .star { width: 38px; height: 38px; }
  .lang-list li { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
