:root {
  --bg: #f5f5f8;
  --surface: #ffffff;
  --ink: #1d1b2c;
  --muted: #6c6a7c;
  --faint: #a3a1b2;
  --line: #e8e7ef;
  --navy: #24213a;
  --navy-2: #2e2a49;
  --lav: #c9c2ff;
  --peach: #ffd8c4;
  --sky: #bfe0ff;
  --ok: #1d9a6c;
  --bad: #d2453b;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }

.page { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 500 15px/1 Onest, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, opacity .15s;
}
.pill.small { height: 38px; padding: 0 18px; font-size: 14px; }
.pill.dark { background: var(--navy); color: #fff; }
.pill.dark:hover:not(:disabled) { background: var(--navy-2); box-shadow: 0 8px 20px -8px rgba(36, 33, 58, .5); }
.pill.light { background: #ecebf3; color: var(--ink); }
.pill.light:hover:not(:disabled) { background: #e3e1ee; }
.pill.ghost { background: transparent; color: var(--muted); }
.pill.ghost:hover:not(:disabled) { color: var(--ink); }
.pill:active:not(:disabled) { transform: scale(.97); }
.pill:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 2px solid #7b6ff0; outline-offset: 3px; }

/* Header */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo svg { color: var(--navy); }
.platforms { display: flex; gap: 28px; font-size: 14px; }
.platforms a, .platforms span { color: var(--faint); text-decoration: none; }
.platforms .on { color: var(--ink); font-weight: 500; }
.top > .pill { justify-self: end; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl);
  min-height: 600px;
  display: grid; place-items: center;
  padding: 80px 24px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 18% 28%, #d9d3ff 0%, transparent 60%),
    radial-gradient(50% 60% at 85% 18%, #ffe0cf 0%, transparent 65%),
    radial-gradient(55% 60% at 75% 95%, #c9e4ff 0%, transparent 60%),
    radial-gradient(45% 50% at 10% 95%, #ffd9ea 0%, transparent 60%),
    linear-gradient(180deg, #eeecfb 0%, #f6f2f4 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(36, 33, 58, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 80%);
}
.hero-copy { position: relative; text-align: center; max-width: 760px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 22px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 33em; margin: 0 auto 32px; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--muted); }

/* Glass stickers floating in the hero */
.float {
  position: absolute; width: 112px; height: 112px; border-radius: 30px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,.75), rgba(255,255,255,.28));
  border: 1px solid rgba(255,255,255,.85);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 30px 50px -24px rgba(60, 50, 120, .35),
    0 10px 18px -12px rgba(60, 50, 120, .25);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: drift 9s ease-in-out infinite;
}
.float span { font-size: 58px; line-height: 1; filter: drop-shadow(0 6px 8px rgba(40, 30, 90, .18)); }
.f1 { left: 7%; top: 16%; transform: rotate(-10deg); --r: -10deg; }
.f2 { right: 8%; top: 13%; width: 132px; height: 132px; --r: 8deg; animation-delay: -3s; }
.f2 span { font-size: 70px; }
.f3 { left: 13%; bottom: 13%; width: 92px; height: 92px; border-radius: 26px; --r: 6deg; animation-delay: -5s; }
.f3 span { font-size: 46px; }
.f4 { right: 14%; bottom: 15%; width: 96px; height: 96px; border-radius: 26px; --r: -7deg; animation-delay: -1.5s; }
.f4 span { font-size: 48px; }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink);
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 24px -14px rgba(60, 50, 120, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(29, 154, 108, .15); }
.c1 { right: 5%; top: 50%; }
.c2 { left: 5%; top: 52%; }

@media (prefers-reduced-motion: reduce) { .float { animation: none; transform: rotate(var(--r, 0deg)); } }

/* Intro */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; padding: 110px 0 36px; scroll-margin-top: 20px; }
.intro h2, .split h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; }
.intro p { font-size: 19px; color: var(--muted); max-width: 30em; justify-self: end; }

.banner { background: #fdeceb; color: var(--bad); border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 16px; }

/* Tool */
.tool {
  background: var(--surface); border-radius: var(--r-xl); padding: 28px;
  box-shadow: 0 1px 2px rgba(29, 27, 44, .04), 0 40px 80px -48px rgba(60, 50, 120, .28);
}
.modes { display: inline-flex; gap: 4px; padding: 5px; background: var(--bg); border-radius: 999px; margin-bottom: 20px; max-width: 100%; overflow-x: auto; }
.mode, .seg-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 500 15px/1 Onest, system-ui, sans-serif; padding: 12px 20px; border-radius: 999px; white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.mode small, .seg-btn small { font-size: 13px; color: var(--faint); margin-left: 6px; }
.mode.active, .seg-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(29, 27, 44, .1), 0 4px 12px -6px rgba(29, 27, 44, .12); }

.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 52px 20px; border-radius: var(--r-lg); cursor: pointer;
  background:
    radial-gradient(60% 120% at 20% 0%, rgba(201, 194, 255, .28), transparent 70%),
    radial-gradient(60% 120% at 85% 100%, rgba(255, 216, 196, .3), transparent 70%),
    #fafafc;
  border: 1.5px dashed #d8d5e6;
  transition: border-color .15s, background-color .15s;
}
.drop:hover, .drop.over { border-color: #9d93f2; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop b { font-weight: 500; font-size: 17px; }
.drop small { color: var(--muted); font-size: 14px; }
.drop-icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 10px;
  display: grid; place-items: center; color: var(--navy);
  background: #fff; box-shadow: 0 8px 20px -10px rgba(60, 50, 120, .4), inset 0 0 0 1px var(--line);
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#count { color: var(--muted); font-size: 15px; }

.cards { display: grid; gap: 10px; }
.card {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  padding: 14px; border-radius: 20px; background: #fafafc; border: 1px solid var(--line);
}
.card-media { display: flex; align-items: center; gap: 10px; }
.src, .out { width: 116px; height: 116px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; }
.src { background: #ecebf3; }
.out {
  background-color: #fff;
  background-image: linear-gradient(45deg, #f1f0f6 25%, transparent 25%, transparent 75%, #f1f0f6 75%), linear-gradient(45deg, #f1f0f6 25%, transparent 25%, transparent 75%, #f1f0f6 75%);
  background-size: 14px 14px; background-position: 0 0, 7px 7px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.src video, .src img, .out video, .out img { max-width: 100%; max-height: 100%; display: block; }
.placeholder { width: 28px; height: 28px; border-radius: 9px; border: 1.5px dashed #cfcce0; }
.arrow { color: var(--faint); flex: none; }
.card-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x { border: 0; background: transparent; color: var(--faint); cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.x:hover { background: #ecebf3; color: var(--ink); }
.controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.ctl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.ctl.trim { flex: 1; min-width: 180px; }
.ctl input[type=range] { width: 100%; accent-color: var(--navy); }
.ctl select {
  font: 500 14px Onest, system-ui, sans-serif; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px;
}
.status { font-size: 14px; color: var(--muted); min-height: 22px; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }
.progress { height: 4px; background: #ecebf3; border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #9d93f2, #f2a98a); transition: width .12s; }
.card-actions { display: flex; gap: 8px; }

/* Bento */
.bento { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; margin-top: 110px; }
.tile { border-radius: var(--r-lg); padding: 28px; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; position: relative; overflow: hidden; }
.tile h3 { font-size: 26px; line-height: 1.15; }
.tile p { font-size: 15px; max-width: 26em; }
.tile-light {
  background:
    radial-gradient(70% 90% at 80% 10%, #ddd8ff, transparent 70%),
    radial-gradient(60% 80% at 10% 100%, #ffe3d4, transparent 70%),
    #f0eef9;
}
.tile-light p { color: var(--muted); }
.tile-dark { background: var(--navy); color: #fff; }
.tile-dark p { color: #b5b2cb; }
.tile-dark::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 147, 242, .45), transparent 70%);
}
.tile-visual { flex: 1; display: grid; place-items: center; padding-bottom: 12px; min-height: 190px; }
.tile-dark .tile-visual { position: relative; z-index: 1; }

/* Dark tile: files stay on the device */
.vault { position: relative; width: 210px; height: 210px; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(201, 194, 255, .18); }
.r1 { inset: 0; border-style: dashed; border-color: rgba(201, 194, 255, .14); }
.r2 { inset: 30px; }
.r3 { inset: 60px; background: radial-gradient(circle, rgba(157, 147, 242, .28), transparent 70%); border-color: rgba(201, 194, 255, .28); }
.lock {
  position: relative; width: 66px; height: 66px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(145deg, #a99ff7, #6f62d9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 16px 30px -10px rgba(120, 104, 240, .75), 0 0 0 8px rgba(157, 147, 242, .12);
}
.orb {
  position: absolute; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #e9e6ff;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.o1 { top: 18px; left: 34px; }
.o2 { top: 92px; right: -4px; }
.o3 { bottom: 20px; left: 52px; }

/* Dark tile: whole pack at once */
.fan { position: relative; width: 230px; height: 190px; }
.card-s {
  position: absolute; top: 34px; width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center;
  font-size: 46px; line-height: 1;
  background: linear-gradient(145deg, #ffffff, #e6e2ff);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 -6px 12px -6px rgba(110, 98, 217, .25), 0 22px 30px -14px rgba(0,0,0,.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.k1 { left: 0; transform: rotate(-14deg) translateY(10px); }
.k2 { left: 46px; transform: rotate(-5deg); z-index: 1; }
.k3 { left: 92px; transform: rotate(5deg); z-index: 2; }
.k4 { left: 138px; transform: rotate(14deg) translateY(10px); z-index: 3; }
.zip {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 4; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--navy); background: #fff;
  box-shadow: 0 12px 24px -10px rgba(0,0,0,.55);
}
.meter-glass {
  width: min(320px, 100%); padding: 20px 22px; border-radius: 22px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 40px -24px rgba(60, 50, 120, .4), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.meter-num { font-size: 44px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.meter-num span { font-size: 18px; color: var(--muted); letter-spacing: 0; }
.meter-track { position: relative; height: 10px; border-radius: 5px; background: #e6e4f0; margin: 16px 0 8px; }
.meter-track i { position: absolute; inset: 0 23% 0 0; border-radius: 5px; background: linear-gradient(90deg, #9d93f2, #f2a98a); }
.meter-track b { position: absolute; right: 0; top: -5px; bottom: -5px; width: 2px; background: var(--ink); border-radius: 1px; }
.meter-cap { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* Platforms strip */
.platforms-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.platforms-strip p { font-size: 14px; color: var(--muted); }
.platforms-strip ul { list-style: none; display: flex; gap: 44px; padding: 0; margin: 0; flex-wrap: wrap; }
.platforms-strip li { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: #c4c2d2; }

.ad { margin: 56px 0 0; border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 36px; text-align: center; color: var(--faint); font-size: 13px; }

/* Content splits */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; padding: 110px 0 0; }
.split .muted { margin-top: 14px; font-size: 17px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 52px; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--ink); background: #ecebf3;
}
.steps b { color: var(--ink); font-weight: 500; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--ink); }
td:first-child { color: var(--muted); padding-left: 0; }
th:first-child { padding-left: 0; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 48px 0; margin-top: 110px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot span:first-child { color: var(--ink); font-weight: 600; }

/* Tablet */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-light { grid-column: 1 / -1; }
  .float { width: 88px; height: 88px; border-radius: 24px; }
  .float span { font-size: 44px; }
  .f2 { width: 100px; height: 100px; }
  .f2 span { font-size: 52px; }
  .chip { display: none; }
}

/* Phone */
@media (max-width: 680px) {
  .page { padding: 0 16px; }
  .top { grid-template-columns: 1fr auto; height: 64px; }
  .platforms { display: none; }
  .hero { min-height: 560px; padding: 150px 18px 140px; border-radius: 26px; }
  .hero p { font-size: 16px; }
  .f1 { left: 6%; top: 5%; }
  .f2 { right: 6%; top: 7%; }
  .f3 { left: 8%; bottom: 4%; }
  .f4 { right: 8%; bottom: 5%; }
  .float, .f2 { width: 76px; height: 76px; border-radius: 22px; }
  .float span, .f2 span { font-size: 38px; }
  .intro, .split { grid-template-columns: 1fr; gap: 16px; padding-top: 72px; }
  .intro p { justify-self: start; font-size: 17px; }
  .tool { padding: 14px; border-radius: 24px; }
  .mode, .seg-btn { padding: 11px 14px; }
  .mode small, .seg-btn small { display: none; }
  .cmp-main, .cmp-result { grid-template-columns: 1fr; }
  .cmp-trim { grid-template-columns: 1fr; }
  .hero-actions .pill { width: 100%; }
  .drop { padding: 36px 16px; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .toolbar-actions #all { grid-column: 1 / -1; order: -1; }
  .card { grid-template-columns: 1fr; }
  .card-media { justify-content: center; }
  .src, .out { width: 120px; height: 120px; }
  .bento { grid-template-columns: 1fr; margin-top: 72px; }
  .tile { min-height: 0; }
  .tile-dark { min-height: 200px; }
  .platforms-strip ul { gap: 24px; }
  .platforms-strip li { font-size: 17px; }
  .foot { margin-top: 72px; }
}

/* ---------- Discord page ---------- */
.pill.glass { background: rgba(255,255,255,.6); color: var(--ink); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill.glass:hover { background: rgba(255,255,255,.85); }
.float.film { background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(255,255,255,.35)); }
.hero-discord .hero-bg {
  background:
    radial-gradient(60% 70% at 15% 25%, #d6d3ff 0%, transparent 60%),
    radial-gradient(50% 60% at 88% 20%, #cfe2ff 0%, transparent 65%),
    radial-gradient(55% 60% at 70% 95%, #ffe0d2 0%, transparent 60%),
    radial-gradient(45% 50% at 8% 95%, #e6dcff 0%, transparent 60%),
    linear-gradient(180deg, #eceefc 0%, #f5f3f6 100%);
}

.custom-limit { display: inline-flex; align-items: center; gap: 10px; margin: -6px 0 16px 8px; font-size: 14px; color: var(--muted); }
.custom-limit input { width: 90px; font: 500 15px Onest, system-ui, sans-serif; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }

.cmp-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cmp-main video, .cmp-result video { width: 100%; aspect-ratio: 16 / 9; background: #14121f; border-radius: 18px; display: block; object-fit: contain; }
.cmp-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cmp-side .name { font-size: 18px; }
.cmp-meta { color: var(--muted); font-size: 14px; }
.cmp-trim { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp-trim input[type=range] { width: 100%; accent-color: var(--navy); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.cmp-plan { font-size: 15px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.cmp-plan.bad { color: var(--bad); background: #fdeceb; }
.cmp-plan:empty { display: none; }

.cmp-result { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.cmp-result-body { display: flex; flex-direction: column; gap: 16px; }
.cmp-compare { display: flex; align-items: center; gap: 18px; color: var(--faint); }
.cmp-compare small { display: block; font-size: 13px; color: var(--muted); }
.cmp-compare b { font-size: 34px; font-weight: 500; letter-spacing: -.03em; color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cmp-compare b.after { color: var(--ink); text-decoration: none; }
.card-actions { flex-wrap: wrap; }

/* Sound-wave visual for the dark tile */
.wave { display: flex; align-items: center; gap: 6px; height: 120px; }
.wave i { width: 8px; border-radius: 4px; background: linear-gradient(180deg, #c9c2ff, #8d80f0); box-shadow: 0 0 18px rgba(157, 147, 242, .35); }
.wave i:nth-child(1) { height: 22%; } .wave i:nth-child(2) { height: 45%; } .wave i:nth-child(3) { height: 70%; }
.wave i:nth-child(4) { height: 38%; } .wave i:nth-child(5) { height: 90%; } .wave i:nth-child(6) { height: 60%; }
.wave i:nth-child(7) { height: 100%; } .wave i:nth-child(8) { height: 52%; } .wave i:nth-child(9) { height: 80%; }
.wave i:nth-child(10) { height: 34%; } .wave i:nth-child(11) { height: 64%; } .wave i:nth-child(12) { height: 42%; }
.wave i:nth-child(13) { height: 26%; } .wave i:nth-child(14) { height: 14%; }

.platforms-strip li a { color: inherit; text-decoration: none; }
.platforms-strip li a:hover { color: var(--ink); }
.platforms a:hover { color: var(--ink); }

@media (max-width: 680px) {
  .cmp-main, .cmp-result { grid-template-columns: 1fr; gap: 18px; }
  .cmp-trim { grid-template-columns: 1fr; }
  .cmp-compare b { font-size: 28px; }
  .cmp .card-actions .pill, .cmp-result .card-actions .pill { flex: 1 1 100%; }
}

/* ---------- Twitch page ---------- */
.hero-twitch .hero-bg {
  background:
    radial-gradient(60% 70% at 15% 25%, #ddd0ff 0%, transparent 60%),
    radial-gradient(50% 60% at 88% 18%, #f3d6ff 0%, transparent 65%),
    radial-gradient(55% 60% at 72% 95%, #d4e6ff 0%, transparent 60%),
    radial-gradient(45% 50% at 8% 95%, #ffe2d6 0%, transparent 60%),
    linear-gradient(180deg, #efeafc 0%, #f6f3f7 100%);
}
.sizes-chip i { display: inline-block; border-radius: 4px; background: linear-gradient(145deg, #b9adff, #7f71e6); }
.sizes-chip .s112 { width: 16px; height: 16px; }
.sizes-chip .s56 { width: 11px; height: 11px; margin-left: -4px; }
.sizes-chip .s28 { width: 7px; height: 7px; margin-left: -4px; margin-right: 4px; }

.size-stack { display: flex; align-items: flex-end; gap: 18px; }
.sq {
  position: relative; display: grid; place-items: center; border-radius: 22%;
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 20px 34px -20px rgba(60, 50, 120, .45), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sq span { line-height: 1; }
.sq small { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); }
.q112 { width: 112px; height: 112px; } .q112 span { font-size: 64px; }
.q56 { width: 56px; height: 56px; } .q56 span { font-size: 32px; }
.q28 { width: 28px; height: 28px; border-radius: 8px; } .q28 span { font-size: 16px; }

.sizes-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px;
  background-color: #fff;
  background-image: linear-gradient(45deg, #f1f0f6 25%, transparent 25%, transparent 75%, #f1f0f6 75%), linear-gradient(45deg, #f1f0f6 25%, transparent 25%, transparent 75%, #f1f0f6 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px; box-shadow: inset 0 0 0 1px var(--line); align-self: flex-start; }
.sizes-row figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sizes-row img { display: block; image-rendering: auto; max-width: 240px; height: auto; }
.sizes-row figcaption { font-size: 11px; color: var(--muted); }
.out img { object-fit: contain; }

@media (max-width: 680px) {
  .modes { display: flex; flex-wrap: wrap; border-radius: 22px; overflow: visible; }
  .modes .mode, .modes .seg-btn { flex: 1 1 auto; }
}

/* ---------- Slack page ---------- */
.hero-slack .hero-bg {
  background:
    radial-gradient(60% 70% at 15% 25%, #ffe0ea 0%, transparent 60%),
    radial-gradient(50% 60% at 88% 18%, #d9ecff 0%, transparent 65%),
    radial-gradient(55% 60% at 72% 95%, #dcf5e7 0%, transparent 60%),
    radial-gradient(45% 50% at 8% 95%, #fff0cc 0%, transparent 60%),
    linear-gradient(180deg, #f3f0fb 0%, #f7f4f5 100%);
}
.float.word b { font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.float .w1 { font-size: 28px; color: #fff; background: #e5484d; padding: 14px 10px; border-radius: 18px; }
.float .w2 { font-size: 34px; color: #fff; background: #30a46c; padding: 12px 14px; border-radius: 16px; }
.fan.words .card-s b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: var(--navy); }

.tm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.tm-stage {
  display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 32px 20px; border-radius: var(--r-lg);
  background:
    radial-gradient(60% 120% at 20% 0%, rgba(201, 194, 255, .3), transparent 70%),
    radial-gradient(60% 120% at 85% 100%, rgba(255, 216, 196, .32), transparent 70%),
    #fafafc;
}
#tm-canvas {
  width: 192px; height: 192px; border-radius: 28px;
  background-color: #fff;
  background-image: linear-gradient(45deg, #f1f0f6 25%, transparent 25%, transparent 75%, #f1f0f6 75%), linear-gradient(45deg, #f1f0f6 25%, transparent 25%, transparent 75%, #f1f0f6 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
  box-shadow: 0 24px 40px -24px rgba(60, 50, 120, .45), inset 0 0 0 1px var(--line);
}
.tm-chat { display: flex; gap: 10px; width: 100%; max-width: 320px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 24px -16px rgba(60, 50, 120, .35); font-size: 14px; }
.tm-chat p { color: var(--muted); }
.tm-avatar { width: 34px; height: 34px; border-radius: 9px; flex: none; background: linear-gradient(145deg, #b9adff, #f2a98a); }
.tm-reaction { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 2px 8px 2px 4px; border-radius: 999px; background: #eef4ff; border: 1px solid #c8dafc; font-size: 12px; color: #2f5fb3; font-weight: 500; }
#tm-mini { width: 20px; height: 20px; }
.tm-controls { display: flex; flex-direction: column; gap: 18px; }
.tm-field input {
  font: 500 22px Onest, system-ui, sans-serif; color: var(--ink); letter-spacing: -.01em;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: #fff;
}
.tm-field input:focus { outline: 2px solid #7b6ff0; outline-offset: 1px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font: 600 16px Onest, system-ui, sans-serif;
  box-shadow: inset 0 0 0 1px rgba(29, 27, 44, .08);
}
.swatch.clear { background-image: linear-gradient(45deg, #f1f0f6 25%, transparent 25%, transparent 75%, #f1f0f6 75%), linear-gradient(45deg, #f1f0f6 25%, transparent 25%, transparent 75%, #f1f0f6 75%); background-size: 10px 10px; background-position: 0 0, 5px 5px; }
.swatch.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); }
.tm-anims { margin-bottom: 0; align-self: flex-start; }

@media (max-width: 680px) {
  .tm-grid { grid-template-columns: 1fr; gap: 20px; }
  #tm-canvas { width: 160px; height: 160px; }
  .float .w1 { font-size: 20px; padding: 10px 8px; }
  .float .w2 { font-size: 24px; padding: 9px 10px; }
}

/* ---------- YouTube page ---------- */
.hero-youtube .hero-bg {
  background:
    radial-gradient(60% 70% at 15% 25%, #ffd9d6 0%, transparent 60%),
    radial-gradient(50% 60% at 88% 18%, #e2dcff 0%, transparent 65%),
    radial-gradient(55% 60% at 72% 95%, #d7e8ff 0%, transparent 60%),
    radial-gradient(45% 50% at 8% 95%, #ffe9cf 0%, transparent 60%),
    linear-gradient(180deg, #f4effa 0%, #f7f4f5 100%);
}
.float.phone { width: 78px; height: 132px; border-radius: 22px; }
.float.wide { width: 170px; height: 100px; border-radius: 22px; }
.float.phone i, .float.wide i { position: absolute; inset: 10px; border-radius: 14px; background: linear-gradient(160deg, #ff8a7a, #a796ff 60%, #7fc3ff); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.float.phone i::after, .float.wide i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%); border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

.sh-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; }
.sh-stage { padding: 18px; border-radius: var(--r-lg); background: radial-gradient(60% 120% at 20% 0%, rgba(201, 194, 255, .3), transparent 70%), radial-gradient(60% 120% at 85% 100%, rgba(255, 216, 196, .32), transparent 70%), #fafafc; }
#sh-preview { display: block; width: 270px; height: 480px; border-radius: 22px; background: #14121f; box-shadow: 0 30px 50px -28px rgba(40, 30, 90, .55); }
.sh-source { width: 100%; max-width: 360px; aspect-ratio: 16 / 9; border-radius: 14px; background: #14121f; display: block; }
.sh-layouts { margin-bottom: 0; align-self: flex-start; }
.sh-result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.sh-result video { width: 270px; aspect-ratio: 9 / 16; border-radius: 22px; background: #14121f; display: block; }
.sh-result h3 { font-size: 30px; }

.sizes-row figure.safe { align-items: flex-start; }
.sizes-row figure.safe canvas { border-radius: 8px; display: block; }

.ratio-demo { display: flex; align-items: center; gap: 18px; color: var(--muted); }
.ratio-demo .r-wide { width: 150px; height: 84px; border-radius: 14px; padding: 6px; background: rgba(255,255,255,.7); box-shadow: 0 20px 34px -20px rgba(60, 50, 120, .45); }
.ratio-demo .r-tall { position: relative; width: 96px; height: 170px; border-radius: 18px; padding: 6px; overflow: hidden; background: rgba(255,255,255,.7); box-shadow: 0 20px 34px -20px rgba(60, 50, 120, .45); }
.ratio-demo i { display: block; width: 100%; height: 100%; border-radius: 10px; background: linear-gradient(160deg, #ff8a7a, #a796ff 60%, #7fc3ff); }
.ratio-demo .r-tall b { position: absolute; inset: 6px; border-radius: 13px; background: linear-gradient(160deg, #ff8a7a, #a796ff 60%, #7fc3ff); filter: blur(8px) saturate(.8); opacity: .7; }
.ratio-demo .r-tall i { position: absolute; left: 6px; right: 6px; top: 50%; height: 47px; transform: translateY(-50%); }

.safe-demo { position: relative; width: 220px; height: 124px; border-radius: 14px; background: linear-gradient(160deg, #ff8a7a33, #a796ff55 60%, #7fc3ff33); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.safe-demo i { position: absolute; left: 50%; top: 50%; width: 60%; height: 29%; transform: translate(-50%, -50%); border: 2px dashed #fff; border-radius: 6px; background: rgba(255,255,255,.1); }
.safe-demo span { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); font-size: 12px; color: #b5b2cb; white-space: nowrap; }

@media (max-width: 860px) {
  .platforms { gap: 18px; }
}
@media (max-width: 680px) {
  .sh-main, .sh-result { grid-template-columns: 1fr; gap: 18px; }
  .sh-stage { justify-self: center; padding: 12px; }
  #sh-preview, .sh-result video { width: 216px; height: 384px; justify-self: center; }
  .sh-result video { height: auto; }
  .sh-source { max-width: none; }
  .float.wide { width: 110px; height: 66px; }
  .float.phone { width: 56px; height: 96px; }
}

/* Safe-area preview must shrink on narrow cards */
.sizes-row { max-width: 100%; box-sizing: border-box; }
.sizes-row figure.safe { max-width: 100%; }
.sizes-row figure.safe canvas { max-width: 100%; height: auto !important; }

/* ---------- Site menu ---------- */
.site-nav { display: flex; gap: 6px; justify-content: center; }
.menu { position: relative; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer;
  font: 500 14px Onest, system-ui, sans-serif; color: var(--muted); padding: 8px 14px; border-radius: 999px;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: #ecebf3; color: var(--ink); }
.menu-btn.on { color: var(--ink); }
.menu-btn svg { transition: transform .15s; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 20;
  display: grid; gap: 2px; padding: 8px; border-radius: 20px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(29, 27, 44, .06), 0 24px 60px -20px rgba(40, 30, 90, .35); border: 1px solid var(--line);
}
.menu-panel.cols-3 { grid-template-columns: repeat(3, 210px); }
.menu-panel.cols-1 { grid-template-columns: 260px; }
.menu-panel[hidden] { display: none; }
.menu-item { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.menu-item b { font-weight: 500; font-size: 15px; }
.menu-item small { font-size: 12.5px; color: var(--muted); }
.menu-item:hover { background: var(--bg); }
.menu-item.on { background: #efedfb; }
.top { position: relative; z-index: 10; }

@media (max-width: 760px) {
  .menu-panel.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .top { grid-template-columns: auto 1fr auto; gap: 6px; }
  .site-nav { gap: 0; }
  .menu { position: static; }
  .menu-btn { padding: 8px 9px; font-size: 13px; }
  .menu-panel { position: absolute; left: 0; right: 0; transform: none; top: 100%; width: auto; }
  .menu-panel.cols-1 { grid-template-columns: 1fr; }
  .top > .pill { display: none; }
}
.menu { position: static; }
.menu-panel { max-width: calc(100vw - 24px); }

/* ---------- Tool pages ---------- */
.hero-tools .hero-bg {
  background:
    radial-gradient(60% 70% at 15% 25%, #dcd6ff 0%, transparent 60%),
    radial-gradient(50% 60% at 88% 18%, #d2ecf2 0%, transparent 65%),
    radial-gradient(55% 60% at 72% 95%, #ffe1d2 0%, transparent 60%),
    radial-gradient(45% 50% at 8% 95%, #e8f6dc 0%, transparent 60%),
    linear-gradient(180deg, #f0eefb 0%, #f6f4f5 100%);
}
.img-settings { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-end; margin-bottom: 20px; }
.img-settings .modes { margin-bottom: 0; }
.img-settings .num { width: 140px; font: 500 15px Onest, system-ui, sans-serif; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: #fff; }
#img-quality-row { min-width: 200px; }
#img-quality-row input { width: 100%; accent-color: var(--navy); }
#img-quality-row.dim { opacity: .45; }
.img-total { color: var(--ok); margin-left: 8px; }
.img-list { display: grid; gap: 8px; }
.img-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 10px 12px; border-radius: 18px; background: #fafafc; border: 1px solid var(--line); }
.img-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #ecebf3; }
.img-info { display: flex; flex-direction: column; min-width: 0; }
.img-info .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-meta { font-size: 13px; color: var(--muted); }
.img-size { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; }
.img-size .before { color: var(--faint); }
.img-size .after { font-weight: 500; }
.img-size .after.ok { color: var(--ok); }
.img-actions { display: flex; align-items: center; gap: 6px; }
@media (max-width: 680px) {
  .img-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .img-thumb { width: 52px; height: 52px; }
  .img-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .img-settings .num { width: 120px; }
}

/* Sliced outputs (carousel, Steam showcases): show the parts side by side */
.sizes-row.slices { gap: 3px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
.sizes-row.slices img { height: 120px; width: auto; max-width: none; }
.sizes-row.slices figcaption { display: none; }

/* ---------- Platform page backgrounds ---------- */
.hero-kick .hero-bg { background: radial-gradient(60% 70% at 15% 25%, #d7f7d9 0%, transparent 60%), radial-gradient(50% 60% at 88% 18%, #e2dcff 0%, transparent 65%), radial-gradient(55% 60% at 72% 95%, #e6f9e0 0%, transparent 60%), radial-gradient(45% 50% at 8% 95%, #fff1cf 0%, transparent 60%), linear-gradient(180deg, #f1f4f6 0%, #f6f5f5 100%); }
.hero-tiktok .hero-bg { background: radial-gradient(60% 70% at 15% 25%, #d3f4f6 0%, transparent 60%), radial-gradient(50% 60% at 88% 18%, #ffd9e6 0%, transparent 65%), radial-gradient(55% 60% at 72% 95%, #e2dcff 0%, transparent 60%), radial-gradient(45% 50% at 8% 95%, #dff3f8 0%, transparent 60%), linear-gradient(180deg, #f2f2fa 0%, #f7f4f6 100%); }
.hero-instagram .hero-bg { background: radial-gradient(60% 70% at 15% 25%, #ffe0cc 0%, transparent 60%), radial-gradient(50% 60% at 88% 18%, #f6d5f2 0%, transparent 65%), radial-gradient(55% 60% at 72% 95%, #e0d8ff 0%, transparent 60%), radial-gradient(45% 50% at 8% 95%, #fff0c9 0%, transparent 60%), linear-gradient(180deg, #f6f0f6 0%, #f8f4f4 100%); }
.hero-x .hero-bg { background: radial-gradient(60% 70% at 15% 25%, #e3e6ef 0%, transparent 60%), radial-gradient(50% 60% at 88% 18%, #dde9fb 0%, transparent 65%), radial-gradient(55% 60% at 72% 95%, #ece6fa 0%, transparent 60%), linear-gradient(180deg, #f1f2f6 0%, #f6f6f7 100%); }
.hero-linkedin .hero-bg { background: radial-gradient(60% 70% at 15% 25%, #d6e7fb 0%, transparent 60%), radial-gradient(50% 60% at 88% 18%, #e2dcff 0%, transparent 65%), radial-gradient(55% 60% at 72% 95%, #d9f1ef 0%, transparent 60%), linear-gradient(180deg, #eff2f8 0%, #f6f5f6 100%); }
.hero-reddit .hero-bg { background: radial-gradient(60% 70% at 15% 25%, #ffdccc 0%, transparent 60%), radial-gradient(50% 60% at 88% 18%, #e2dcff 0%, transparent 65%), radial-gradient(55% 60% at 72% 95%, #ffe9d6 0%, transparent 60%), linear-gradient(180deg, #f6f1f3 0%, #f8f5f4 100%); }
.hero-steam .hero-bg { background: radial-gradient(60% 70% at 15% 25%, #d5e3f3 0%, transparent 60%), radial-gradient(50% 60% at 88% 18%, #dcd8f6 0%, transparent 65%), radial-gradient(55% 60% at 72% 95%, #d6eef2 0%, transparent 60%), linear-gradient(180deg, #eef1f6 0%, #f5f5f7 100%); }

/* Strip visual: parts that add up to one picture */
.strip-demo { display: flex; gap: 4px; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.6); box-shadow: 0 20px 34px -20px rgba(60, 50, 120, .45); }
.strip-demo i { width: 44px; height: 120px; border-radius: 6px; background: linear-gradient(100deg, #ff8a7a, #a796ff 50%, #7fc3ff); background-size: 240px 100%; }
.strip-demo i:nth-child(2) { background-position: -48px 0; } .strip-demo i:nth-child(3) { background-position: -96px 0; }
.strip-demo i:nth-child(4) { background-position: -144px 0; } .strip-demo i:nth-child(5) { background-position: -192px 0; }

/* Very narrow phones: logo icon only, so the menu fits */
@media (max-width: 420px) {
  .logo { font-size: 0; gap: 0; }
  .menu-btn { padding: 8px 8px; }
}

/* ---------- Editor ---------- */
.ed-app { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.ed-stage {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-lg);
  background: radial-gradient(60% 120% at 20% 0%, rgba(201, 194, 255, .3), transparent 70%), radial-gradient(60% 120% at 85% 100%, rgba(255, 216, 196, .32), transparent 70%), #fafafc;
  position: sticky; top: 12px;
}
#ed-canvas {
  display: block; border-radius: 10px; touch-action: none; cursor: grab;
  background-color: #fff;
  background-image: linear-gradient(45deg, #ecebf3 25%, transparent 25%, transparent 75%, #ecebf3 75%), linear-gradient(45deg, #ecebf3 25%, transparent 25%, transparent 75%, #ecebf3 75%);
  background-size: 18px 18px; background-position: 0 0, 9px 9px;
  box-shadow: 0 24px 40px -28px rgba(40, 30, 90, .5), inset 0 0 0 1px var(--line);
}
#ed-canvas:active { cursor: grabbing; }
.ed-hint { font-size: 12.5px; color: var(--muted); text-align: center; }
.ed-hint span { color: var(--faint); margin-left: 4px; }
.ed-panel { display: flex; flex-direction: column; gap: 18px; }
.ed-tabs { margin-bottom: 0; align-self: flex-start; }
.ed-pane { display: flex; flex-direction: column; gap: 16px; }
.ed-pane[hidden] { display: none; }
.ed-pane > .pill { align-self: flex-start; }
.ed-note { font-size: 13.5px; color: var(--muted); }
.ed-bgs { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-bgs .swatch.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); }
.swatch.picker { position: relative; overflow: hidden; background: conic-gradient(#ff8a7a, #f5c542, #30a46c, #3e8ef5, #7c66dc, #ff8a7a); }
.swatch.picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ed-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.ed-row .grow { flex: 1; min-width: 140px; }
.ed-pane input[type=range] { width: 100%; accent-color: var(--navy); }
.ed-pane input[type=color] { width: 44px; height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; }
.ed-pane textarea { font: 500 16px Onest, system-ui, sans-serif; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.ed-pane select { font: 500 14px Onest, system-ui, sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.ed-text-props { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 16px; background: var(--bg); }
.ed-send { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-send button { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 13.5px Onest, system-ui, sans-serif; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.ed-send button:hover { border-color: #9d93f2; background: #f6f4ff; }

.sticker-demo { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.sticker-demo span { font-size: 110px; line-height: 1; filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 12px 16px rgba(40, 30, 90, .35)); }
.sticker-demo b { position: absolute; bottom: 4px; font: 900 30px Rubik, Onest, sans-serif; color: #fff; -webkit-text-stroke: 6px #1d1b2c; paint-order: stroke; letter-spacing: .02em; }

@media (max-width: 900px) {
  .ed-app { grid-template-columns: 1fr; }
  .ed-stage { position: static; }
}

/* ---------- Home ---------- */
.hero-home .hero-bg {
  background:
    radial-gradient(60% 70% at 15% 25%, #dcd5ff 0%, transparent 60%),
    radial-gradient(50% 60% at 88% 18%, #ffdcc9 0%, transparent 65%),
    radial-gradient(55% 60% at 72% 95%, #cfe6ff 0%, transparent 60%),
    radial-gradient(45% 50% at 8% 95%, #ffdcea 0%, transparent 60%),
    linear-gradient(180deg, #efecfb 0%, #f7f3f4 100%);
}
.hub-result { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.hub-file { display: flex; flex-direction: column; gap: 14px; }
.hub-preview { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background-color: #fff;
  background-image: linear-gradient(45deg, #f1f0f6 25%, transparent 25%, transparent 75%, #f1f0f6 75%), linear-gradient(45deg, #f1f0f6 25%, transparent 25%, transparent 75%, #f1f0f6 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; box-shadow: inset 0 0 0 1px var(--line); }
.hub-preview img, .hub-preview video { max-width: 100%; max-height: 100%; display: block; }
.hub-info { display: flex; flex-direction: column; gap: 2px; }
.hub-info b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-info span { color: var(--muted); font-size: 14px; }
.hub-info .pill { align-self: flex-start; margin-top: 6px; margin-left: -18px; }
.hub-ask { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 14px; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.idea { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 15px Onest, system-ui, sans-serif; padding: 11px 16px; border-radius: 999px; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
.idea:hover { border-color: #9d93f2; background: #f6f4ff; }
.idea:active { transform: scale(.97); }
.idea.busy { opacity: .6; }

.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.p-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--ink); border: 1px solid transparent; box-shadow: 0 1px 2px rgba(29, 27, 44, .04); transition: border-color .15s, transform .15s, box-shadow .15s; }
.p-card:hover { border-color: #d9d4fb; transform: translateY(-2px); box-shadow: 0 18px 34px -24px rgba(60, 50, 120, .45); }
.p-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; margin-bottom: 6px;
  background: linear-gradient(145deg, #f4f2ff, #ffeee6); box-shadow: inset 0 0 0 1px rgba(29, 27, 44, .05); }
.p-card b { font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.p-card small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.p-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.p-chips span { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 3px 9px; }
.t-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.t-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.t-card:hover { border-color: #d9d4fb; transform: translateY(-2px); }
.t-card .p-icon { margin: 0; flex: none; }
.t-card b { display: block; font-weight: 500; font-size: 17px; }
.t-card small { color: var(--muted); font-size: 14px; }
.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 8px; }

@media (max-width: 1000px) { .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-grid, .hub-result { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .p-card { padding: 16px; }
  .p-card small { font-size: 13px; }
}


/* ---------- Header v2: search + platform bar ---------- */
.top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 8px; justify-content: center; }
.search { position: relative; flex: 1; max-width: 460px; }
.search input {
  width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 18px 0 42px; font: 400 15px Onest, system-ui, sans-serif; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: #b4abf5; box-shadow: 0 0 0 4px rgba(157, 147, 242, .18); }
.search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; padding: 6px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(40, 30, 90, .35);
}
.search-results[hidden] { display: none; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 15px; }
.search-item.active, .search-item:hover { background: var(--bg); }
.search-empty { padding: 12px; font-size: 14px; color: var(--muted); }
.menu-btn .l-short { display: none; }

.b-icon {
  width: var(--b-size); height: var(--b-size); border-radius: 28%; flex: none;
  display: inline-grid; place-items: center; background: var(--b-bg); color: var(--b-fg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.08);
}
.b-icon svg { width: 56%; height: 56%; display: block; }

.pbar {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; margin-top: -4px;
  justify-content: center;
}
.pbar::-webkit-scrollbar { display: none; }
.pbar-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; flex: none;
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; background: transparent;
  transition: background-color .15s, color .15s;
}
.pbar-item:hover { background: var(--surface); color: var(--ink); }
.pbar-item.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(29, 27, 44, .06), 0 6px 16px -10px rgba(40, 30, 90, .3); }

.menu-item { flex-direction: row; align-items: center; gap: 12px; }
.menu-item > span:last-child { display: flex; flex-direction: column; gap: 1px; }

.float .b-icon { box-shadow: 0 10px 20px -10px rgba(0,0,0,.35); }
.p-icon .b-icon, .p-card .b-icon { border-radius: 30%; }

@media (max-width: 1200px) { .pbar { justify-content: flex-start; mask-image: linear-gradient(90deg, #000 92%, transparent); } }
@media (max-width: 680px) {
  .top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .search input { height: 40px; font-size: 14px; padding-left: 36px; }
  .search input::placeholder { font-size: 13px; }
  .search-ico { left: 13px; }
  .menu-btn .l-full { display: none; }
  .menu-btn .l-short { display: inline; }
  .pbar { margin: -2px -16px 0; padding: 2px 16px 12px; }
}

/* ---------- Calmer motion and real-looking video scenes ---------- */
:root { --scene: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23a99ff7'/%3E%3Cstop offset='.55' stop-color='%23f6b9c6'/%3E%3Cstop offset='1' stop-color='%23ffd9c2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='90' fill='url%28%23s%29'/%3E%3Ccircle cx='112' cy='36' r='12' fill='%23fff7ec' opacity='.95'/%3E%3Cpath d='M0 62 Q28 44 56 56 T110 50 T160 54 V90 H0Z' fill='%238a7fe6' opacity='.6'/%3E%3Cpath d='M0 74 Q40 58 82 70 T160 66 V90 H0Z' fill='%235f55c9' opacity='.85'/%3E%3C/svg%3E"); }
.float { animation-duration: 16s; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
  50% { transform: translate3d(0, -7px, 0) rotate(calc(var(--r, 0deg) + 1.5deg)); }
}
.float.phone i, .float.wide i { background: var(--scene) center / cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.float.phone i::after, .float.wide i::after {
  content: ""; left: 50%; top: 50%; width: 26px; height: 26px; border: 0; border-radius: 50%; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M10.5 8.5v9l7-4.5z' fill='%2324213a'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: 0 4px 10px rgba(36, 33, 58, .25); backdrop-filter: blur(4px);
}
.ratio-demo i, .ratio-demo .r-tall b { background: var(--scene) center / cover; }
.ratio-demo .r-tall b { filter: blur(6px) saturate(1.1); opacity: .8; }
.safe-demo { background: var(--scene) center / cover; box-shadow: inset 0 0 0 999px rgba(20, 16, 40, .35); }
.strip-demo i { background: var(--scene); background-size: 240px 120px; }
.strip-demo i:nth-child(2) { background-position: -48px 0; } .strip-demo i:nth-child(3) { background-position: -96px 0; }
.strip-demo i:nth-child(4) { background-position: -144px 0; } .strip-demo i:nth-child(5) { background-position: -192px 0; }
.meter-track i { transition: none; }
/* Centre the platform bar when it fits, scroll from the first item when it doesn't */
.pbar { justify-content: flex-start; gap: 2px; }
.pbar > :first-child { margin-left: auto; }
.pbar > :last-child { margin-right: auto; }
.pbar-item { padding: 6px 10px 6px 6px; }
@media (max-width: 1200px) { .pbar { justify-content: flex-start; } }
.b-icon svg { width: var(--b-glyph, 56%); height: var(--b-glyph, 56%); }

/* ---------- Bilingual layout ---------- */
.modes.single { display: none; }
.anchor { display: block; position: relative; top: -16px; }
.lang-switch {
  justify-self: end; display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none;
}
.lang-switch:hover { border-color: #b4abf5; }
.foot a { color: var(--muted); }
.hero-compact { min-height: 440px; padding: 56px 24px; }
.hero-compact h1 { font-size: clamp(34px, 5.2vw, 62px); }
.hero-compact + .anchor + .tool, .hero-compact + .anchor + section { margin-top: 28px; }
.t-card > .b-icon { flex: none; }
.p-card small { flex: 1; }
@media (max-width: 680px) {
  .lang-switch { height: 34px; padding: 0 10px; font-size: 13px; }
  .hero-compact { min-height: 0; padding: 120px 18px 110px; }
}
@media (max-width: 680px) { .hero-compact { padding-top: 150px; } }

/* ---------- Language menu ---------- */
.lang-menu { position: relative; justify-self: end; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border-radius: 999px; color: var(--muted); font-size: 13px; transition: background-color .15s, color .15s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: #ecebf3; color: var(--ink); }
.lang-menu summary b { font-weight: 600; letter-spacing: .02em; }
.lang-menu .chev { transition: transform .15s; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px; padding: 6px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(40, 30, 90, .35);
  display: flex; flex-direction: column; gap: 2px;
}
.lang-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 15px; }
.lang-panel a span { flex: 1; }
.lang-panel a small { color: var(--faint); font-size: 12px; font-weight: 500; }
.lang-panel a:hover { background: var(--bg); }
.lang-panel a[aria-current] { background: #efedfb; }
.lang-panel a[aria-current] svg { color: #6f62d9; }
.foot-langs { display: inline-flex; gap: 14px; }
.foot-langs a { text-decoration: none; }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 500; }
@media (max-width: 680px) { .lang-menu summary { padding: 0 8px; } .lang-menu summary > svg:first-child { display: none; } }

/* ---------- Docs (privacy, terms, about, 404) ---------- */
.doc { max-width: 720px; margin: 56px auto 0; padding: 40px; background: var(--surface); border-radius: var(--r-xl); }
.doc h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; margin-bottom: 24px; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; letter-spacing: -.02em; }
.doc p { color: var(--muted); }
.doc .muted { margin-top: 32px; font-size: 14px; }
.doc-404 { text-align: center; }
.doc-404 h1 { font-size: 96px; }
.doc-404 .actions { margin-top: 24px; display: flex; gap: 8px; justify-content: center; }
.foot-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover, .foot-langs a:hover { color: var(--ink); }
@media (max-width: 680px) { .doc { padding: 24px 20px; margin-top: 24px; } }

/* ---------- Hero spacing v2: text never runs into the floating tiles ---------- */
.hero h1, .intro h2, .split h2, .tool h2 { text-wrap: balance; }
.hero p { text-wrap: pretty; }
.hero-compact .hero-copy { max-width: min(720px, calc(100% - 340px)); }
.hero-compact h1 { font-size: clamp(34px, 4.6vw, 58px); }
.hero-compact .f1 { left: 4%; top: 12%; }
.hero-compact .f2 { right: 4%; top: 10%; }
.hero-compact .f3 { left: 7%; bottom: 10%; }
.hero-compact .f4 { right: 7%; bottom: 12%; }
.chip { display: none; }
@media (min-width: 1500px) { .hero-home .chip { display: inline-flex; } }
@media (max-width: 960px) { .hero-compact .hero-copy { max-width: min(720px, calc(100% - 220px)); } }
@media (max-width: 680px) {
  .hero-compact .hero-copy { max-width: none; }
  /* Phones: tool first, decoration second */
  .hero-compact { padding: 104px 18px 36px; }
  .hero-compact .f3, .hero-compact .f4 { display: none; }
  .hero-compact .hero-note { display: none; }
  .hero-compact .f1 { left: 6%; top: 14px; }
  .hero-compact .f2 { right: 6%; top: 10px; }
  input, select, textarea { font-size: 16px; }
  .ed-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
}
@media (max-width: 680px) { .hero-compact { padding-top: 104px; } }

/* Readable secondary text (was 2.5:1) */
:root { --faint: #77758a; }

/* Platforms bar edge fade */
@media (max-width: 1200px) { .pbar { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); } }

/* Pack rows: previews sit at the top */
.card { align-items: start; }
.parts-badge { position: absolute; right: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(36,33,58,.82); color: #fff; font-size: 12px; font-weight: 600; }
.out { position: relative; }
.doc-404 { max-width: 640px; }
.doc-404 .e404 { font-size: 88px; font-weight: 600; letter-spacing: -.05em; line-height: 1; margin-bottom: 8px; background: linear-gradient(120deg, #8f7dff, #ff9a8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc-404 h1 { font-size: 32px; margin-bottom: 14px; }
.doc-404 p { color: var(--muted); }
.t-grid-404 { margin-top: 32px; }

/* ---------- File checker ---------- */
.ck-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ck-head b { display: block; font-size: 18px; word-break: break-all; }
.ck-head small { color: var(--muted); font-size: 14px; }
.ck-summary { margin: 18px 0 6px; font-size: 17px; }
.ck-sub { font-size: 20px; margin: 28px 0 14px; letter-spacing: -.02em; }
.ck-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ck-group { background: var(--bg); border-radius: var(--r-md); padding: 14px; }
.ck-group h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 8px; }
.ck-group h3 small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 13px; }
.ck-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); }
.ck-row:first-of-type { border-top: 0; }
.ck-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.is-ok .ck-mark { background: #dcf3e8; color: var(--ok); }
.is-fix .ck-mark { background: #fdf0dc; color: #b26b00; }
.ck-text { min-width: 0; }
.ck-text b { display: block; font-size: 14.5px; font-weight: 500; }
.ck-text small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.ck-badge { font-size: 13px; font-weight: 600; color: var(--ok); padding: 0 6px; }
.ck-fix { height: 34px; padding: 0 14px; font-size: 13.5px; }

.ck-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pv { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pv figcaption { font-size: 13px; color: var(--muted); }
.pv img, .pv video { object-fit: cover; display: inline-block; vertical-align: middle; }
.pv-chat { border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 28px; }
.pv-chat.dark { background: #18181b; color: #efeff1; }
.pv-chat.light { background: #fff; color: #0e0e10; border: 1px solid var(--line); }
.pv-chat p { margin: 0; }
.pv-emote { width: 28px; height: 28px; margin: 0 2px; }
.pv-dc { display: flex; gap: 10px; background: #313338; color: #dbdee1; border-radius: 12px; padding: 12px; font-size: 14px; min-height: 150px; }
.pv-dc b { color: #fff; font-weight: 600; font-size: 14px; }
.pv-dc p { margin: 2px 0 6px; }
.pv-ava { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; }
.pv-fill { width: 100%; height: 100%; }
.pv-emoji { width: 22px; height: 22px; }
.pv-sticker { width: 96px; height: 96px; object-fit: contain !important; }
.pv-tg { min-height: 150px; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  background: linear-gradient(160deg, #d5e6c3, #b9d7a8 55%, #a8cfa0); }
.pv-bubble { background: #effdde; border-radius: 14px 14px 4px 14px; padding: 6px 10px; font-size: 13px; color: #111; }
.pv-tgsticker { width: 112px; height: 112px; object-fit: contain !important; }
.pv-avas { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 12px; padding: 18px; min-height: 150px; }
.pv-av96, .pv-av40, .pv-av24 { border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.pv-av96 { width: 96px; height: 96px; } .pv-av40 { width: 40px; height: 40px; } .pv-av24 { width: 24px; height: 24px; }
.idea-main { background: var(--navy); color: #fff; }
@media (max-width: 680px) {
  .ck-list { grid-template-columns: 1fr; }
  .ck-head { flex-wrap: wrap; }
}
.hero-whatsapp .hero-bg { background: radial-gradient(60% 70% at 15% 25%, #d3f6dc 0%, transparent 60%), radial-gradient(50% 60% at 88% 18%, #e2dcff 0%, transparent 65%), radial-gradient(55% 60% at 72% 95%, #dcf5e6 0%, transparent 60%), radial-gradient(45% 50% at 8% 95%, #fff1cf 0%, transparent 60%), linear-gradient(180deg, #f0f5f2 0%, #f6f5f5 100%); }

/* ---------- My files ---------- */
.top-end { justify-self: end; display: flex; align-items: center; gap: 6px; }
.top-end .lang-menu { justify-self: auto; }
.my-link { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.my-link:hover { background: rgba(255,255,255,.7); }
@media (max-width: 1100px) { .my-link span { display: none; } .my-link { padding: 0 10px; } }
.recent { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0 0; }
.recent p { color: var(--muted); font-size: 14px; margin: 0; }
.recent[hidden] { display: none; }
.doc.my { max-width: 1040px; }
.my h2 { font-size: 22px; margin: 34px 0 14px; }
.my-note { color: var(--muted); }
.my-toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; margin-top: 6px; cursor: pointer; }
.my-toggle input { width: 18px; height: 18px; accent-color: var(--navy); }
.my-recent { margin: 0; }
.my-head { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.my-head h2 { margin: 0; }
.my-head span { color: var(--muted); font-size: 14px; }
.my-head button { margin-left: auto; }
.my-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.my-file { background: var(--bg); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.my-thumb { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; overflow: hidden; font-weight: 600; color: var(--muted);
  background-color: #fff; background-image: linear-gradient(45deg, #ecebf3 25%, transparent 25%, transparent 75%, #ecebf3 75%), linear-gradient(45deg, #ecebf3 25%, transparent 25%, transparent 75%, #ecebf3 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.my-thumb img, .my-thumb video { max-width: 100%; max-height: 100%; object-fit: contain; }
.my-info b { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-info small { color: var(--muted); font-size: 12.5px; }
.my-actions { display: flex; gap: 6px; }
.my-actions .pill { height: 36px; padding: 0 14px; font-size: 13.5px; flex: 1; justify-content: center; }
.install-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 13.5px Onest, system-ui, sans-serif; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; }
.install-btn:hover { border-color: #b4abf5; }
.install-btn[hidden] { display: none; }

/* ---------- Layout v3: tighter rhythm, wider page ---------- */
.page { max-width: 1290px; }
.intro { padding: 64px 0 22px; gap: 32px; }
.intro h2, .split h2 { font-size: clamp(28px, 3.6vw, 44px); }
.intro p { font-size: 17px; }
.intro p:empty { display: none; }
.split { padding: 64px 0 0; gap: 40px; }
.bento { margin-top: 64px; }
.tile { min-height: 280px; }
.tile-visual { min-height: 160px; }
.platforms-strip { padding: 40px 4px; }
.foot { margin-top: 72px; padding: 36px 0; }
.drop { padding: 44px 20px; }
.hero-home { min-height: 520px; padding: 64px 24px; }
.hero-compact { min-height: 340px; padding: 44px 24px; }
.hero-compact h1 { font-size: clamp(32px, 4.2vw, 54px); margin-bottom: 16px; }
.hero-compact p { margin-bottom: 24px; }
.hero .hero-note { font-size: 14px; color: var(--muted); margin: 16px auto 0; }
.hero-copy > p:not(.hero-note) + .hero-note { margin-top: -8px; }
.hero-compact + .anchor + .tool, .hero-compact + .anchor + section { margin-top: 20px; }
@media (max-width: 680px) {
  .intro, .split { padding-top: 44px; }
  .bento { margin-top: 44px; }
  .foot { margin-top: 48px; }
  .hero-home { min-height: 0; padding: 150px 18px 140px; }
  .hero-compact { padding: 100px 18px 32px; }
  .hero-compact .hero-note { display: block; }
}

/* ---------- Home: platform first ---------- */
.hub-platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.hub-plat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 18px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: 500 13.5px Onest, system-ui, sans-serif; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.hub-plat:hover { border-color: #b4abf5; }
.hub-plat.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; background: #f7f6fd; }
.hub-other-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.hub-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.hub-options[hidden] { display: none; }
.hub-check { margin-top: 18px; }
@media (max-width: 680px) { .hub-platforms { grid-template-columns: repeat(3, 1fr); } }
a.idea { text-decoration: none; display: inline-flex; align-items: center; }
.hero-home .hero-copy { max-width: min(760px, calc(100% - 300px)); }
@media (max-width: 680px) { .hero-home .hero-copy { max-width: none; } }
#hub-ideas { display: block; }
.hub-preview img, .hub-preview video { object-fit: contain !important; }

/* ---------- Light tiles everywhere (plain page background kept for contrast) ---------- */
.tile-dark {
  color: var(--ink);
  background:
    radial-gradient(80% 90% at 85% 0%, #d9e6ff, transparent 70%),
    radial-gradient(70% 80% at 0% 100%, #ece6ff, transparent 70%),
    #f1f0f9;
}
.tile-dark + .tile-dark {
  background:
    radial-gradient(80% 90% at 90% 0%, #ffe1d6, transparent 70%),
    radial-gradient(70% 80% at 0% 100%, #f3e4ff, transparent 70%),
    #f7f1f6;
}
.tile-dark p { color: var(--muted); }
.tile-dark::before { background: radial-gradient(circle, rgba(255, 255, 255, .7), transparent 70%); }
.ring { border-color: rgba(111, 98, 217, .18); }
.r1 { border-color: rgba(111, 98, 217, .16); }
.r3 { background: radial-gradient(circle, rgba(157, 147, 242, .22), transparent 70%); border-color: rgba(111, 98, 217, .22); }
.orb { color: var(--ink); background: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .95); box-shadow: 0 6px 14px -8px rgba(60, 50, 120, .35); }
.card-s { box-shadow: inset 0 -6px 12px -6px rgba(110, 98, 217, .25), 0 22px 30px -16px rgba(60, 50, 120, .45); }
.zip { box-shadow: 0 12px 24px -12px rgba(60, 50, 120, .45); }

/* Home hero: a bit shorter so the upload block peeks into the first screen */
.hero-home { min-height: 480px; padding: 52px 24px; }
.hero-home h1 { font-size: clamp(40px, 5.4vw, 66px); }
@media (max-width: 680px) { .hero-home { min-height: 0; padding: 150px 18px 140px; } }

/* ---------- Review fixes, Nov 2026 ---------- */
:root { --ok: #13805a; }
/* Home: long file names never widen the page */
.hub-file, .hub-info { min-width: 0; }
#hub-name { overflow-wrap: anywhere; }
@media (max-width: 760px) { .hub-result { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .hub-platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hub-platforms { grid-template-columns: repeat(7, minmax(0, 1fr)); } .hub-result { grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); } }
.hub-plat.on { background: #efedfb; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; }
.hub-ask.small { width: 100%; font-size: 16px; margin: 0 0 4px; }
.hub-info .pill { margin-left: 0; background: var(--bg); }
/* Footer links readable */
.platforms-strip li { color: var(--muted); font-size: 17px; font-weight: 500; }
/* Keyboard focus on drop zones */
.drop:focus-within { border-color: #7b6ff0; box-shadow: 0 0 0 4px rgba(123, 111, 240, .18); }
/* Compact drop zone once files are added */
.drop.compact { padding: 16px 20px; flex-direction: row; gap: 12px; }
.drop.compact .drop-icon { width: 36px; height: 36px; margin: 0; border-radius: 12px; }
.drop.compact small { display: none; }
.drop.compact b { font-size: 15px; }
/* My files: empty state across the whole row */
.my-note { grid-column: 1 / -1; }
/* Editor swatches easier to tell apart */
.swatch { box-shadow: inset 0 0 0 1px rgba(29, 27, 44, .18); }
.swatch.clear { background-color: #fff; background-image: conic-gradient(#dcdbe6 25%, #fff 0 50%, #dcdbe6 0 75%, #fff 0); background-size: 10px 10px; background-position: 0 0; }
/* Checker cards */
.ck-group h3 small.has-ok { color: var(--ok); }
.ck-more { border-top: 1px solid var(--line); margin-top: 4px; }
.ck-more > summary { cursor: pointer; list-style: none; padding: 10px 4px; font-size: 14px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ck-more > summary::-webkit-details-marker { display: none; }
.ck-more > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-left: auto; transition: transform .2s; }
.ck-more[open] > summary::after { transform: rotate(-135deg); }
.ck-group > .ck-row:first-of-type { border-top: 0; }
/* Even grids: last row centered instead of one lonely card */
.p-grid, .home-tools { display: flex; flex-wrap: wrap; justify-content: center; }
.p-grid > * { flex: 0 1 calc((100% - 3 * 12px) / 4); }
.home-tools > * { flex: 0 1 calc((100% - 2 * 12px) / 3); }
@media (max-width: 1000px) { .p-grid > * { flex-basis: calc((100% - 2 * 12px) / 3); } .home-tools > * { flex-basis: calc((100% - 12px) / 2); } }
@media (max-width: 760px) { .p-grid > * { flex-basis: calc((100% - 12px) / 2); } .home-tools > * { flex-basis: 100%; } }
/* Home hero on phones: two tiles beside the title, upload zone closer */
@media (max-width: 680px) {
  .hero-home { padding: 110px 18px 40px; }
  .hero-home .f3, .hero-home .f4 { display: none; }
  .hero-home .f1 { top: 16px; left: 8%; }
  .hero-home .f2 { top: 12px; right: 8%; }
}
/* Guides */
.tips { margin: 0; padding: 0; list-style: none; }
.tips li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); color: var(--muted); position: relative; }
.tips li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* ---------- Ad slots: hidden until ads are switched on ---------- */
.ad-slot { margin: 56px 0 0; min-height: 100px; }
/* Side rails sit only in the empty margins of wide screens, so the layout is the same with or without them */
.page { position: relative; }
.ad-slot.ad-rail { position: absolute; top: 96px; bottom: 0; width: 160px; margin: 0; min-height: 0; display: none; }
.ad-rail-l { right: calc(100% + 4px); }
.ad-rail-r { left: calc(100% + 4px); }
.ad-rail-in { position: sticky; top: 24px; min-height: 600px; }
@media (min-width: 1680px) { .ad-slot.ad-rail:not([hidden]) { display: block !important; } }
