:root{
  --brand:#10b981; --brand-dark:#059669; --brand-tint:#ecfdf5;
  --ink:#0f172a; --muted:#64748b; --line:#e2e8f0; --bg:#f8fafc; --card:#fff;
  --radius:16px; --shadow:0 10px 30px -12px rgba(2,32,20,.18);
  --display:'Sora',system-ui,sans-serif;
  --body:system-ui,-apple-system,'Segoe UI',Roboto,'Noto Sans',sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);
  line-height:1.55;font-size:16px;padding-bottom:64px}
.is-hidden{display:none!important}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wrap{max-width:1024px;margin:0 auto;padding:0 16px}

/* Header */
.site-head{max-width:1024px;margin:0 auto;padding:14px 16px;display:flex;
  align-items:center;justify-content:space-between;gap:12px}
.brand{font-family:var(--display);font-weight:800;font-size:20px;color:var(--ink);
  text-decoration:none;display:flex;align-items:center;gap:7px}
.brand__dot{width:11px;height:11px;border-radius:50%;background:var(--brand)}
.brand__tld{color:var(--muted);font-weight:600}
.lang{display:flex;gap:10px;font-size:13px}
.lang a{color:var(--muted);text-decoration:none}
.lang a.is-active{color:var(--brand-dark);font-weight:700}

/* Hero — full-bleed emerald→teal gradient (135deg) with a lighter teal radial
   glow overlaid for depth. Holds the H1, subhead, and the white tool card. */
.hero{
  --hero-glow: 82% -12%;             /* radial-glow anchor; mirrored in RTL below */
  position:relative;
  background:
    radial-gradient(85% 120% at var(--hero-glow), rgba(94,234,212,.65), rgba(94,234,212,0) 60%),
    linear-gradient(135deg, #10b981 0%, #0d9488 52%, #059669 100%);
  padding:30px 0 42px;
  border-radius:0 0 28px 28px;       /* symmetric: RTL-safe */
}
.hero__inner{max-width:816px;margin:0 auto;padding:0 16px;text-align:center}
.hero__h1{font-family:var(--display);font-weight:800;font-size:clamp(26px,6vw,40px);line-height:1.15;
  letter-spacing:-.01em;margin:6px 0 8px;color:#fff;text-wrap:balance}
/* size suffix on its own centered second line (direction-neutral → RTL-safe) */
.hero__h1-size{display:block;text-align:center;font-size:.72em;font-weight:700;margin-top:2px;opacity:.92}
.hero__tag{color:rgba(255,255,255,.95);font-weight:700;margin:0 0 10px}
.hero__sub{color:rgba(255,255,255,.95);margin:20px 0 20px}

/* Mirror the decorative glow for RTL (ur) */
[dir=rtl] .hero{--hero-glow:18% -12%}

/* One orchestrated reveal: H1 → subhead → card fade-and-rise, staggered.
   Gated behind no-preference so reduced-motion users get static content. */
@keyframes heroRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: no-preference){
  .hero__h1 {animation:heroRise .55s cubic-bezier(.22,1,.36,1) both}
  .hero__tag{animation:heroRise .55s cubic-bezier(.22,1,.36,1) .08s both}
  .hero__sub{animation:heroRise .55s cubic-bezier(.22,1,.36,1) .16s both}
  .hero .tool{animation:heroRise .6s cubic-bezier(.22,1,.36,1) .26s both}
}

/* Tool */
.tool{background:var(--card);border:1px solid rgba(2,32,20,.06);border-radius:20px;
  box-shadow:0 20px 50px -15px rgba(2,32,20,.35);padding:18px;
  max-width:580px;margin-inline:auto;margin-top:30px}  /* capped + centered inside the 816 hero */
.tool__zone{border:2px dashed var(--line);border-radius:12px;padding:30px 16px 49px;
  text-align:center;cursor:pointer;color:var(--muted);transition:border-color .15s,background .15s}
.tool__zone:hover,.tool__zone.is-drag{border-color:var(--brand);background:var(--brand-tint)}
.tool__zone-inner{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--brand-dark)}
.tool__zone strong{color:var(--ink)}
.tool__zone small{color:var(--muted)}
.tool__file{display:flex;justify-content:space-between;gap:10px;background:var(--bg);
  border-radius:10px;padding:10px 12px;font-size:14px;margin-bottom:14px}
.tool__size{color:var(--brand-dark);font-weight:700;flex:none}
.tool__presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.preset{border:2px solid var(--line);background:#fff;border-radius:14px;padding:10px 6px;
  display:flex;flex-direction:column;gap:2px;align-items:center;cursor:pointer;font:inherit}
.preset span{font-weight:700;font-size:14px}
.preset small{color:var(--muted);font-size:11px}
.preset.is-active{border-color:var(--brand);background:var(--brand-tint);color:var(--brand-dark)}
.tool__custom{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);margin-top:12px}
.tool__custom input{padding:10px;border:1px solid var(--line);border-radius:10px;font:inherit}
.tool__privacy{text-align:center;color:var(--muted);font-size:13px;margin:12px 0 0}

.btn{display:block;width:100%;text-align:center;border:0;border-radius:999px;padding:14px;
  font:inherit;font-weight:700;cursor:pointer;text-decoration:none;margin-top:14px}
.btn--primary{background:var(--brand);color:#fff;box-shadow:0 8px 20px -8px var(--brand)}
.btn--primary:hover{background:var(--brand-dark)}
.btn--ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}
.link{display:block;margin:12px auto 0;background:none;border:0;color:var(--brand-dark);
  font:inherit;font-weight:700;cursor:pointer}

/* Processing */
.tool__processing{text-align:center;padding:24px 0}
.spinner{width:38px;height:38px;border:4px solid var(--line);border-top-color:var(--brand);
  border-radius:50%;margin:0 auto 12px;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.tool__status{font-weight:600;margin:0 0 12px}
.bar{height:8px;background:var(--line);border-radius:99px;overflow:hidden;max-width:280px;margin:0 auto}
.bar__fill{height:100%;width:0;background:var(--brand);transition:width .3s}

/* Success / error */
.tool__success,.tool__error{text-align:center;padding:18px 0}
.tool__tick{width:48px;height:48px;border-radius:50%;background:var(--brand-tint);color:var(--brand-dark);
  font-size:26px;line-height:48px;margin:0 auto 8px}
.tool__success h2{font-family:var(--display);margin:0 0 4px}
.tool__result{color:var(--brand-dark);font-weight:700;margin:0}

/* Content blocks */
.block{margin:34px 0}
.block h2{font-family:var(--display);font-size:21px;margin:0 0 14px}
.block > h2{text-align:center}
.block > p{text-align:center}
.steps{list-style:none;counter-reset:s;padding:0;margin:0;display:grid;gap:12px}
.steps li{counter-increment:s;background:var(--card);border:1px solid var(--line);
  border-radius:12px;padding:14px 14px 14px 50px;position:relative}
.steps li::before{content:counter(s);position:absolute;left:14px;top:14px;width:24px;height:24px;
  background:var(--brand);color:#fff;border-radius:50%;text-align:center;line-height:24px;font-weight:700;font-size:13px}
.steps strong{display:block}
.steps span{color:var(--muted);font-size:14px}
.features{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.features li{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px}
.features strong{display:block;color:var(--brand-dark)}
.features span{color:var(--muted);font-size:13px}
.faq__item{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:8px}
.faq h3{font-weight:700;margin:0;font-size:16px}
.faq p{color:var(--muted);margin:8px 0 0;font-size:14px}
.crosslinks{display:flex;flex-wrap:wrap;gap:8px;margin:28px 0}
.crosslinks a{font-size:13px;color:var(--brand-dark);text-decoration:none;background:var(--brand-tint);
  border:1px solid #d1fae5;border-radius:99px;padding:6px 12px}

/* RTL (ur): mirror the absolutely-positioned step counter; flex blocks mirror
   automatically from dir=rtl on <html>, but absolute offsets do not. */
[dir=rtl] .steps li{padding:14px 50px 14px 14px}
[dir=rtl] .steps li::before{left:auto;right:14px}

/* Ads — neutral reserved boxes until real units load */
.ad{display:flex;align-items:center;justify-content:center;margin:16px 0;
  background:#f1f5f9;border:1px dashed #cbd5e1;border-radius:10px}
.ad__ph{color:#94a3b8;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.sticky-ad{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);
  display:flex;justify-content:center;padding:2px;z-index:40}
.sticky-ad .ad{margin:0;border:0;background:transparent}

/* Footer */
.site-foot{max-width:1024px;margin:24px auto 0;padding:18px 16px;text-align:center;color:var(--muted);font-size:13px}
.site-foot nav{display:flex;gap:14px;justify-content:center;margin:8px 0}
.site-foot a{color:var(--muted)}
.site-foot small{display:block;margin-top:8px;color:#94a3b8}

@media(min-width:560px){ .hero{padding:44px 0 58px} .sticky-ad{display:none} body{padding-bottom:0} }

/* Desktop card grids — span the wide 1024 shell. Below 768px these are
   unchanged (steps stay 1-col, features stay 2-col). */
@media(min-width:768px){
  .steps{grid-template-columns:repeat(3,1fr)}
  .features{grid-template-columns:repeat(3,1fr)}
}
