@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

/* ============================================================
   PDF Tool Suite — Webrul Design System
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

:root {
  --w-dark:       #070c1a;
  --w-dark2:      #0d1424;
  --w-dark3:      #111827;
  --w-primary:    #2563EB;
  --w-primary-lt: #3B82F6;
  --w-accent:     #10B981;
  --w-white:      #FFFFFF;
  --w-surface:    #FFFFFF;
  --w-bg:         #F8FAFC;
  --w-border:     #E2E8F0;
  --w-text:       #0F172A;
  --w-muted:      #64748B;
  --w-radius:     12px;
  --w-radius-lg:  18px;
  --w-shadow:     0 1px 3px rgba(15,23,42,.06), 0 2px 8px rgba(15,23,42,.04);
  --w-shadow-md:  0 4px 20px rgba(15,23,42,.09), 0 2px 8px rgba(15,23,42,.04);
  --w-shadow-lg:  0 12px 40px rgba(15,23,42,.14), 0 4px 16px rgba(15,23,42,.06);
  --w-font-disp:  'Plus Jakarta Sans', system-ui, sans-serif;
  --w-font-body:  'Plus Jakarta Sans', system-ui, sans-serif;
  --w-trans:      0.22s cubic-bezier(0.4,0,0.2,1);


  /* SAT variable aliases — identical to PTS palette */
  --sat-primary:      var(--w-primary);
  --sat-primary-dark: #1D4ED8;
  --sat-accent:       var(--w-accent);
  --sat-bg:           var(--w-bg);
  --sat-surface:      var(--w-surface);
  --sat-border:       var(--w-border);
  --sat-text:         var(--w-text);
  --sat-muted:        var(--w-muted);
  --sat-success:      #16A34A;
  --sat-danger:       #DC2626;
  --sat-radius:       var(--w-radius);
  --sat-shadow-sm:    var(--w-shadow);
  --sat-shadow:       var(--w-shadow-md);
  --sat-shadow-lg:    var(--w-shadow-lg);
  --sat-font-ui:      var(--w-font-body);
  --sat-font-display: var(--w-font-disp);
  --sat-transition:   var(--w-trans);

  /* Legacy aliases */
  --sat-primary:      var(--w-primary);
  --sat-primary-dark: #1D4ED8;
  --sat-accent:       var(--w-accent);
  --sat-bg:           var(--w-bg);
  --sat-surface:      var(--w-surface);
  --sat-border:       var(--w-border);
  --sat-text:         var(--w-text);
  --sat-muted:        var(--w-muted);
  --sat-success:      #16A34A;
  --sat-danger:       #DC2626;
  --sat-radius:       var(--w-radius);
  --sat-shadow-sm:    var(--w-shadow);
  --sat-shadow:       var(--w-shadow-md);
  --sat-shadow-lg:    var(--w-shadow-lg);
  --sat-font-ui:      var(--w-font-body);
  --sat-font-display: var(--w-font-disp);
  --sat-transition:   var(--w-trans);
}

/* ── RESET ────────────────────────────────────────────────── */
.sat-wrap *, .sat-wrap *::before, .sat-wrap *::after,
.sat-header *, .sat-footer *, .stb-wrap * { box-sizing: border-box; }

.sat-wrap, .stb-wrap {
  font-family: var(--w-font-body);
  color: var(--w-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  background: var(--w-bg);
}

/* ============================================================
   HEADER
   ============================================================ */
.sat-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--w-white);
  border-bottom: 1px solid var(--w-border);
  box-shadow: 0 1px 12px rgba(15,23,42,.05);
}

.sat-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Logo */
.sat-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.sat-logo__icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--w-primary), var(--w-primary-lt));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.sat-logo__text {
  font-family: var(--w-font-body);
  font-size: 16px; font-weight: 500; color: var(--w-text);
  letter-spacing: -.01em;
}
.sat-logo__text strong { font-weight: 800; color: var(--w-primary); }

/* Nav */
.sat-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.sat-nav__link {
  font-family: var(--w-font-body);
  font-size: 14px; font-weight: 500; color: var(--w-muted);
  text-decoration: none !important;
  padding: 8px 14px;
  border-radius: 8px;
  background: none; border: none; cursor: pointer;
  transition: color var(--w-trans), background var(--w-trans);
}
.sat-nav__link:hover, .sat-nav__link.active { color: var(--w-text); background: var(--w-bg); }

/* Dropdown */
.sat-nav__dropdown { position: relative; }
.sat-nav__dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--w-white);
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius);
  box-shadow: var(--w-shadow-lg);
  min-width: 210px;
  padding: 8px;
  z-index: 100;
}
.sat-nav__dropdown:hover .sat-nav__dropdown-menu { display: block; }
.sat-nav__dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--w-text);
  text-decoration: none !important;
  transition: background var(--w-trans);
}
.sat-nav__dropdown-item:hover { background: var(--w-bg); text-decoration: none !important; }
.dd-icon { font-size: 16px; width: 26px; text-align: center; }

/* Header CTA */
.sat-header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: var(--w-primary);
  color: var(--w-white) !important;
  border-radius: 9px;
  font-size: 14px; font-weight: 700;
  text-decoration: none !important;
  letter-spacing: -.01em;
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
  transition: background var(--w-trans), transform var(--w-trans), box-shadow var(--w-trans);
  flex-shrink: 0;
}
.sat-header-cta:hover {
  background: var(--w-primary-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.36);
  color: #fff !important;
}

/* Hamburger */
.sat-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  margin-left: auto;
}
.sat-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--w-text); border-radius: 2px;
  transition: var(--w-trans);
}

/* Mobile nav */
.sat-mobile-nav {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--w-white);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  flex-direction: column; gap: 4px;
}
.sat-mobile-nav.open { display: flex; }
.sat-mobile-nav a {
  padding: 12px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--w-text);
  text-decoration: none !important;
  transition: background var(--w-trans);
}
.sat-mobile-nav a:hover { background: var(--w-bg); }
.sat-mobile-nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 998; background: rgba(0,0,0,.4);
}
.sat-mobile-nav-overlay.open { display: block; }

/* ============================================================
   HERO — Webrul dark style
   ============================================================ */
.sat-hero {
  background: var(--w-dark);
  padding: 100px 28px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sat-hero__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; opacity: .6;
}
.sat-hero__glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px);
}
.sat-hero__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  top: -200px; left: -100px;
}
.sat-hero__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,.1) 0%, transparent 70%);
  bottom: -100px; right: 0;
}
.sat-hero__inner { position: relative; max-width: 900px; margin: 0 auto; }
.sat-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
}
.sat-hero__h1 {
  font-family: var(--w-font-disp);
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 800;
  color: var(--w-white);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0 0 22px;
}
.sat-hero__h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--w-primary-lt), var(--w-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sat-hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,.45);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 300;
}
.sat-hero__actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 60px;
}
.sat-btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--w-primary);
  color: var(--w-white) !important;
  border-radius: 11px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none !important;
  box-shadow: 0 6px 22px rgba(37,99,235,.38);
  transition: background var(--w-trans), transform var(--w-trans), box-shadow var(--w-trans);
}
.sat-btn-hero-primary:hover {
  background: var(--w-primary-lt);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,99,235,.46);
  color: #fff !important;
}
.sat-btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255,255,255,.7) !important;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 11px;
  font-size: 15px; font-weight: 600;
  text-decoration: none !important;
  transition: all var(--w-trans);
}
.sat-btn-hero-outline:hover {
  border-color: rgba(255,255,255,.45);
  color: var(--w-white) !important;
  background: rgba(255,255,255,.05);
}

/* Hero feature cards */
.sat-hero__feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.sat-hero__feat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--w-radius);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 5px;
  text-align: left;
  transition: background var(--w-trans), border-color var(--w-trans);
}
.sat-hero__feat:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}
.sat-feat-icon { font-size: 22px; margin-bottom: 4px; }
.sat-hero__feat strong {
  font-size: 13px; font-weight: 700; color: var(--w-white); line-height: 1.3;
}
.sat-hero__feat span:not(.sat-feat-icon) {
  font-size: 11px; color: rgba(255,255,255,.4); font-weight: 400;
}

/* ============================================================
   TOOLS GRID SECTION
   ============================================================ */
.sat-grid-section {
  background: var(--w-bg);
  padding: 80px 28px;
}
.sat-grid-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sat-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--w-primary); margin: 0 0 8px;
}
.sat-section-title {
  font-family: var(--w-font-disp);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--w-text);
  margin: 0 0 10px;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.sat-section-sub {
  font-size: 15px; color: var(--w-muted); margin: 0 0 44px;
}

/* Tool grid */
.sat-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Tool Card ── */
.sat-card {
  background: var(--w-surface);
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg);
  padding: 28px 24px 22px;
  text-decoration: none !important;
  color: var(--w-text) !important;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  position: relative; overflow: hidden;
  box-shadow: var(--w-shadow);
  transition: transform var(--w-trans), box-shadow var(--w-trans), border-color var(--w-trans);
  cursor: pointer;
}
.sat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--sat-card-color, var(--w-primary))08, transparent 60%);
  opacity: 0; transition: opacity var(--w-trans);
}
.sat-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--sat-card-color, var(--w-primary));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--w-trans);
}
.sat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--w-shadow-lg);
  border-color: color-mix(in srgb, var(--sat-card-color, var(--w-primary)) 30%, transparent);
  text-decoration: none !important; color: var(--w-text) !important;
}
.sat-card:hover::before { opacity: 1; }
.sat-card:hover::after { transform: scaleX(1); }

.sat-card__icon-wrap {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: var(--sat-card-color, var(--w-primary));
  background: linear-gradient(135deg, var(--sat-card-color, var(--w-primary)), color-mix(in srgb, var(--sat-card-color, var(--w-primary)) 75%, white));
  box-shadow: 0 5px 16px color-mix(in srgb, var(--sat-card-color, var(--w-primary)) 28%, transparent);
  margin-bottom: 4px;
}
.sat-card__title {
  font-family: var(--w-font-disp);
  font-size: 16px; font-weight: 700; color: var(--w-text); line-height: 1.3;
}
.sat-card__desc {
  font-size: 13px; color: var(--w-muted); line-height: 1.55; flex: 1;
}
.sat-card__cta {
  margin-top: 6px; font-size: 13px; font-weight: 600;
  color: var(--sat-card-color, var(--w-primary)) !important;
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--w-trans);
}
.sat-card:hover .sat-card__cta { gap: 8px; }
.sat-card__cta-arrow { font-size: 15px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.sat-cta-banner {
  background: var(--w-dark);
  padding: 90px 28px;
  position: relative; overflow: hidden;
}
.sat-cta-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(37,99,235,.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(16,185,129,.08) 0%, transparent 55%);
}
.sat-cta-banner__inner {
  max-width: 720px; margin: 0 auto; text-align: center; position: relative;
}
.sat-cta-banner__label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--w-accent); margin: 0 0 14px;
}
.sat-cta-banner__title {
  font-family: var(--w-font-disp);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; color: var(--w-white);
  margin: 0 0 14px; letter-spacing: -.03em; line-height: 1.1;
}
.sat-cta-banner__sub {
  font-size: 16px; color: rgba(255,255,255,.4);
  margin: 0 0 34px; line-height: 1.65; font-weight: 300;
}

/* ============================================================
   FOOTER
   ============================================================ */
.sat-footer {
  background: var(--w-dark2);
  border-top: 1px solid rgba(255,255,255,.06);
}
.sat-footer__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 64px 28px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.sat-logo--footer .sat-logo__text { color: rgba(255,255,255,.8); }
.sat-logo--footer .sat-logo__text strong { color: var(--w-white); }
.sat-footer__tagline {
  font-size: 13px; color: rgba(255,255,255,.35);
  line-height: 1.7; margin: 14px 0 18px;
}
.sat-footer__trust {
  display: flex; flex-direction: column; gap: 8px;
}
.sat-footer__trust span {
  font-size: 12px; color: rgba(255,255,255,.35); font-weight: 500;
  display: flex; align-items: center; gap: 7px;
}
.sat-footer__trust i { font-style: normal; font-size: 14px; }
.sat-footer__col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin: 0 0 16px;
}
.sat-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sat-footer__col ul li a {
  font-size: 13px; color: rgba(255,255,255,.38); font-weight: 400;
  text-decoration: none !important; transition: color var(--w-trans);
}
.sat-footer__col ul li a:hover { color: rgba(255,255,255,.75); text-decoration: none !important; }
.sat-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 28px;
}
.sat-footer__bottom-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.sat-footer__bottom-inner span { font-size: 12px; color: rgba(255,255,255,.25); }
.sat-footer__bottom-inner a { color: rgba(255,255,255,.4); text-decoration: none !important; transition: color var(--w-trans); }
.sat-footer__bottom-inner a:hover { color: rgba(255,255,255,.7); }
.sat-footer__bottom-links { display: flex; gap: 24px; }
.sat-footer__bottom-links a { font-size: 12px; }

/* ============================================================
   TOOL PAGE — PTB BASE
   ============================================================ */
.stb-hero {
  background: var(--w-dark);
  padding: 72px 28px 80px;
  position: relative; overflow: hidden;
}
.stb-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 5% 50%, rgba(var(--stb-c1-rgb, 37,99,235), .16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 95% 20%, rgba(var(--stb-c2-rgb, 14,165,233), .1) 0%, transparent 55%);
}
.stb-hero__inner {
  max-width: 1200px; margin: 0 auto;
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.stb-back {
  position: absolute; top: -44px; left: 0;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.4);
  text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--w-trans);
}
.stb-back:hover { color: rgba(255,255,255,.75); }
.stb-hero__content { flex: 1; max-width: 560px; }
.stb-hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px; padding: 5px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 18px;
}
.stb-hero__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--stb-c1, #2563EB);
  box-shadow: 0 0 8px var(--stb-c1, #2563EB);
  animation: ptbpulse 2s ease infinite;
}
@keyframes ptbpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }
.stb-hero__title {
  font-family: var(--w-font-disp);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800; color: var(--w-white);
  line-height: 1.08; letter-spacing: -.035em;
  margin: 0 0 14px;
}
.stb-hero__title span {
  background: linear-gradient(90deg, var(--stb-c1, #2563EB), var(--stb-c2, #0ea5e9));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stb-hero__sub {
  font-size: 16px; color: rgba(255,255,255,.45);
  line-height: 1.65; margin: 0 0 22px; font-weight: 300;
}
.stb-hero__pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.stb-hero__pills span {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11);
  border-radius: 100px; padding: 5px 13px;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55);
}
.stb-hero__visual {
  flex-shrink: 0;
}

/* ── BODY ─────────────────────────────────────────────────── */
.stb-body {
  background: var(--w-bg);
  padding: 40px 28px 72px;
}
.stb-layout {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px; gap: 28px;
}

/* ── CARDS ────────────────────────────────────────────────── */
.stb-card {
  background: var(--w-surface);
  border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--w-shadow);
  overflow: hidden;
}
.stb-card__head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--w-border);
}
.stb-card__head h2 {
  font-family: var(--w-font-disp);
  font-size: 16px; font-weight: 800; color: var(--w-text);
  margin: 0;
}
.stb-step {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--w-white);
}

/* ── DROPZONE ─────────────────────────────────────────────── */
.stb-dropzone {
  margin: 20px 24px;
  border: 2px dashed var(--w-border);
  border-radius: var(--w-radius);
  transition: border-color var(--w-trans), background var(--w-trans);
}
.stb-dropzone.pts-dz-dragover, .stb-dropzone.pts-dz-hover, .stb-dropzone.sat-dragover {
  border-color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 4%, transparent);
}
.stb-dz-inner {
  padding: 44px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.stb-dz-icon {
  width: 70px; height: 70px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 6px;
  transition: transform var(--w-trans);
}
.stb-dropzone:hover .stb-dz-icon { transform: translateY(-3px); }
.stb-dz-title { font-size: 16px; font-weight: 700; color: var(--w-text); margin: 0; }
.stb-dz-or { font-size: 13px; color: var(--w-muted); margin: 0; }
.stb-select-btn {
  padding: 11px 28px; color: var(--w-white) !important;
  border: none; border-radius: 9px; cursor: pointer;
  font-family: var(--w-font-body); font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
  transition: opacity var(--w-trans), transform var(--w-trans);
}
.stb-select-btn:hover { opacity: .9; transform: translateY(-1px); }
.stb-dz-limit { font-size: 12px; color: var(--w-muted); margin: 4px 0 0; }
.pts-dropzone__input { display: none; }

.stb-dropzone.pts-has-file .stb-dz-inner {
  padding: 18px 24px 12px;
}
.stb-dropzone.pts-has-file .stb-dz-icon {
  display: none;
}
.stb-dropzone.pts-has-file .stb-dz-title {
  font-size: 13px; color: var(--w-muted); font-weight: 600;
}
.stb-dropzone.pts-has-file .stb-dz-or { display: none; }
.stb-dropzone.pts-has-file .stb-dz-limit { display: none; }

/* File list — .sat-file-row is what JS actually renders */
#pts-file-list {
  padding: 0 20px 14px;
  display: flex; flex-direction: column; gap: 7px;
}
.sat-file-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  background: var(--w-bg);
  border: 1.5px solid var(--w-border);
  border-radius: 10px;
  padding: 9px 12px;
  transition: border-color var(--w-trans);
  animation: pts-row-in .18s ease both;
}
.sat-file-row:hover { border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 40%, transparent); }
.sat-file-row__icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}
.sat-file-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sat-file-row__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--w-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.sat-file-row__size {
  font-size: 11px;
  color: var(--w-muted);
  display: block;
}
.sat-file-row__remove {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex !important; align-items: center; justify-content: center;
  background: none;
  border: 1.5px solid var(--w-border);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  color: var(--w-muted);
  transition: all var(--w-trans);
  padding: 0;
  line-height: 1;
}
.sat-file-row__remove:hover {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}

/* Legacy .pts-file-item kept for any other references */
.pts-file-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--w-bg); border: 1px solid var(--w-border);
  border-radius: 10px; padding: 10px 14px;
}
.pts-file-item__icon { font-size: 22px; flex-shrink: 0; }
.pts-file-item__name { font-size: 13px; font-weight: 600; color: var(--w-text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pts-file-item__size { font-size: 12px; color: var(--w-muted); flex-shrink: 0; }
.pts-file-item__remove { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--w-muted); padding: 2px; transition: color var(--w-trans); }
.pts-file-item__remove:hover { color: #DC2626; }

@keyframes pts-row-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Error */
.sat-error { display: none; align-items: center; gap: 8px; padding: 12px 24px; color: #DC2626; font-size: 13px; font-weight: 500; }
.sat-error.sat-error--show { display: flex; }

/* ── OPTIONS ──────────────────────────────────────────────── */
/* ============================================================
   OPTIONS — complete professional styles
   ============================================================ */
.stb-options-body { padding: 22px 24px 6px; }
.stb-field { margin-bottom: 20px; }
.stb-field:last-child { margin-bottom: 16px; }

/* Field label */
.stb-field-label, .stb-label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--w-muted);
  margin-bottom: 10px;
}

/* Text / number inputs */
.stb-input, .stb-text-input, .stb-pw-input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--w-border); border-radius: 9px;
  font-family: var(--w-font-body); font-size: 14px; color: var(--w-text);
  background: var(--w-surface);
  transition: border-color var(--w-trans), box-shadow var(--w-trans);
  outline: none;
}
.stb-input:focus, .stb-text-input:focus, .stb-pw-input:focus {
  border-color: var(--stb-c1, var(--w-primary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 14%, transparent);
}

/* Select */
.stb-select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--w-border); border-radius: 9px;
  font-family: var(--w-font-body); font-size: 14px; color: var(--w-text);
  background: var(--w-surface);
  cursor: pointer; outline: none; appearance: auto;
  transition: border-color var(--w-trans), box-shadow var(--w-trans);
}
.stb-select:focus {
  border-color: var(--stb-c1, var(--w-primary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 14%, transparent);
}

/* Slider */
.stb-slider-wrap { display: flex; align-items: center; gap: 14px; }
.stb-slider {
  flex: 1; -webkit-appearance: none; height: 5px;
  background: var(--w-border); border-radius: 3px; cursor: pointer;
}
.stb-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--stb-c1, var(--w-primary));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 35%, transparent);
  cursor: pointer;
}
.stb-slider-val, .stb-dpi-val, .stb-wm-opacity-val, .stb-wm-angle-val {
  font-size: 13px; font-weight: 700;
  color: var(--stb-c1, var(--w-primary));
  min-width: 42px; text-align: right;
}
.stb-slider-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--w-muted); margin-top: 4px;
}

/* Toggle switch */
.stb-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 4px 0;
}
.stb-toggle-label { font-size: 14px; font-weight: 500; color: var(--w-text); }
.stb-toggle input[type=checkbox] { display: none; }
.stb-toggle-wrap input[type=checkbox] { display: none; }
.stb-toggle label, .stb-toggle-track {
  display: flex; width: 42px; height: 24px;
  background: var(--w-border); border-radius: 100px; cursor: pointer;
  transition: background var(--w-trans); position: relative; flex-shrink: 0;
}
.stb-toggle label::after, .stb-toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #fff;
  border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.22);
  transition: transform var(--w-trans);
}
.stb-toggle input:checked + label,
.stb-toggle-wrap input:checked + label { background: var(--stb-c1, var(--w-primary)); }
.stb-toggle input:checked + label::after,
.stb-toggle-wrap input:checked + label::after { transform: translateX(18px); }

/* ── CHOICE CARDS (level / size / rotate / page-opt) ─────── */

/* Shared card grid */
.stb-level-grid, .stb-size-grid, .stb-rotate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Shared card label wrapper */
.stb-level-card, .stb-size-card, .stb-rotate-card { cursor: pointer; }
.stb-level-card input,
.stb-size-card input,
.stb-rotate-card input { display: none; }

/* Shared inner */
.stb-level-card__inner,
.stb-size-card__inner,
.stb-rotate-card__inner {
  border: 1.5px solid var(--w-border);
  border-radius: var(--w-radius);
  padding: 16px 12px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  position: relative;
  transition: border-color var(--w-trans), background var(--w-trans), box-shadow var(--w-trans);
  background: var(--w-surface);
}
.stb-level-card__inner:hover,
.stb-size-card__inner:hover,
.stb-rotate-card__inner:hover {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 45%, transparent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 10%, transparent);
}
.stb-level-card--active .stb-level-card__inner,
.stb-size-card--active .stb-size-card__inner,
.stb-rotate-card--active .stb-rotate-card__inner {
  border-color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 5%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 12%, transparent);
}

/* Card contents */
.stb-level-card__icon, .stb-rotate-deg { font-size: 22px; }
.stb-level-card__name, .stb-size-name, .stb-rotate-card__name {
  font-size: 13px; font-weight: 700; color: var(--w-text); line-height: 1.2;
}
.stb-level-card__desc, .stb-size-desc, .stb-rotate-card__desc {
  font-size: 11px; color: var(--w-muted); line-height: 1.35;
}

/* Active checkmark badge */
.stb-level-card__check {
  position: absolute; top: 7px; right: 7px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--stb-c1, var(--w-primary)); color: #fff;
  font-size: 9px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.4);
  transition: opacity var(--w-trans), transform var(--w-trans);
}
.stb-level-card--active .stb-level-card__check,
.stb-size-card--active .stb-level-card__check { opacity: 1; transform: scale(1); }

/* ── PAGE OPTION PILLS (Portrait/Landscape, etc.) ─────────── */
.stb-pages-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.stb-page-opt { cursor: pointer; }
.stb-page-opt input { display: none; }
.stb-page-opt span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border: 1.5px solid var(--w-border);
  border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--w-muted);
  background: var(--w-surface);
  transition: all var(--w-trans);
  user-select: none;
}
.stb-page-opt span:hover {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 45%, transparent);
  color: var(--w-text);
}
.stb-page-opt--active span {
  border-color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 8%, #fff);
  color: var(--stb-c1, var(--w-primary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 12%, transparent);
}

/* ── PERMISSIONS GRID ─────────────────────────────────────── */
.stb-perms-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.stb-perm-check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--w-border); border-radius: 9px;
  cursor: pointer; transition: all var(--w-trans);
  font-size: 13px; font-weight: 500; color: var(--w-text);
  background: var(--w-surface);
  user-select: none;
}
.stb-perm-check input[type=checkbox] { display: none; }
.stb-perm-check::before {
  content: '';
  width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0;
  border: 1.5px solid var(--w-border);
  background: var(--w-bg);
  transition: all var(--w-trans);
}
.stb-perm-check:has(input:checked)::before {
  background: var(--stb-c1, var(--w-primary));
  border-color: var(--stb-c1, var(--w-primary));
  content: '✓';
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; color: #fff;
}
.stb-perm-check:has(input:checked) {
  border-color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 5%, #fff);
}

/* ── POSITION GRID (watermark / page numbers) ─────────────── */
.stb-position-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 4px;
  max-width: 160px;
}
.stb-pos-cell {
  aspect-ratio: 1; border: 1.5px solid var(--w-border); border-radius: 6px;
  cursor: pointer; transition: all var(--w-trans);
  background: var(--w-bg);
}
.stb-pos-cell:hover { border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 50%, transparent); background: #fff; }
.stb-pos-cell--active {
  background: var(--stb-c1, var(--w-primary)) !important;
  border-color: var(--stb-c1, var(--w-primary)) !important;
}
.stb-pos-cell--mid {
  background: var(--w-bg);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; border-color: transparent;
}
.stb-pos-cell--mid-label { font-size: 14px; }

/* ── PASSWORD INPUT WITH TOGGLE ───────────────────────────── */
.stb-password-wrap { position: relative; }
.stb-password-wrap .stb-pw-input { padding-right: 44px; }
.stb-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px; color: var(--w-muted);
  padding: 4px; transition: color var(--w-trans);
}
.stb-pw-toggle:hover { color: var(--w-text); }

/* ── PILL OPTION BUTTONS ──────────────────────────────────── */
.stb-pills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.stb-pill-opt {
  padding: 7px 16px; border-radius: 100px;
  border: 1.5px solid var(--w-border); background: var(--w-surface);
  font-size: 13px; font-weight: 600; color: var(--w-muted); cursor: pointer;
  transition: all var(--w-trans);
}
.stb-pill-opt.active, .stb-pill-opt--active {
  border-color: var(--stb-c1, var(--w-primary));
  color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 8%, transparent);
}

/* ── TWO-COLUMN LAYOUT ────────────────────────────────────── */
.stb-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── FIELD HINT ───────────────────────────────────────────── */
.stb-field-hint {
  font-size: 11px; color: var(--w-muted); margin-top: 5px; line-height: 1.4;
}

/* ── MISC option notes ────────────────────────────────────── */
.stb-options-note {
  font-size: 12px; color: var(--w-muted);
  background: var(--w-bg); border: 1px solid var(--w-border);
  border-radius: 8px; padding: 10px 14px; margin-top: 16px;
}

/* Responsive */
@media (max-width: 640px) {
  .stb-level-grid, .stb-size-grid, .stb-rotate-grid { grid-template-columns: 1fr 1fr; }
  .stb-perms-grid { grid-template-columns: 1fr; }
  .stb-two-col { grid-template-columns: 1fr; }
}

/* ── CONVERT BUTTON ───────────────────────────────────────── */
.stb-card-convert { padding: 20px 24px; }
.stb-convert-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt)));
  color: var(--w-white) !important;
  border: none; border-radius: var(--w-radius); cursor: pointer;
  font-family: var(--w-font-body); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 6px 20px rgba(37,99,235,.28);
  transition: opacity var(--w-trans), transform var(--w-trans);
}
.stb-convert-btn:hover:not(:disabled) { opacity: .9; transform: translateY(-2px); }
.stb-convert-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── PROCESSING ───────────────────────────────────────────── */
.stb-processing {
  display: none; padding: 44px 24px; text-align: center; flex-direction: column; align-items: center; gap: 16px;
}
.stb-processing.sat-processing--show { display: flex; }
.stb-ring-wrap { position: relative; width: 72px; height: 72px; }
.stb-ring-wrap svg { transform: rotate(-90deg); }
.stb-ring-bg { fill: none; stroke: var(--w-border); stroke-width: 6; }
.stb-ring-fg {
  fill: none; stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 188; stroke-dashoffset: 188;
  transition: stroke-dashoffset .3s ease;
}
.stb-ring-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--w-text);
}
.stb-proc-title { font-size: 17px; font-weight: 700; color: var(--w-text); margin: 0; }
.stb-proc-sub { font-size: 13px; color: var(--w-muted); margin: 0; }
.sat-progress-bar { width: 100%; height: 5px; background: var(--w-border); border-radius: 3px; overflow: hidden; max-width: 300px; }
.sat-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt)));
  border-radius: 3px; width: 0%; transition: width .3s ease;
}

/* ── RESULT ───────────────────────────────────────────────── */
.stb-result {
  display: none; padding: 32px 24px; text-align: center; flex-direction: column; align-items: center; gap: 16px;
}
.stb-result.sat-result--show { display: flex; }
.stb-result-check {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #34D399);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--w-white);
  box-shadow: 0 8px 24px rgba(16,185,129,.28);
  animation: ptbpop .4s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes ptbpop { from{transform:scale(.5);opacity:0} to{transform:scale(1);opacity:1} }
.stb-result h3 { font-family: var(--w-font-disp); font-size: 20px; font-weight: 800; color: var(--w-text); margin: 0; }
.pts-download-list { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.pts-download-item {
  display: flex; align-items: center; gap: 12px;
  background: #F0FDF4; border: 1px solid #BBF7D0;
  border-radius: 10px; padding: 12px 16px;
}
.pts-download-item__name { font-size: 13px; font-weight: 600; color: #065F46; flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pts-download-btn {
  padding: 7px 16px;
  background: linear-gradient(135deg, #10B981, #34D399);
  color: var(--w-white) !important; border: none; border-radius: 7px;
  font-family: var(--w-font-body); font-size: 12px; font-weight: 700; cursor: pointer;
  text-decoration: none !important; flex-shrink: 0;
}
.stb-another-btn {
  padding: 10px 24px;
  background: var(--w-bg); border: 1.5px solid var(--w-border);
  border-radius: 9px; cursor: pointer;
  font-family: var(--w-font-body); font-size: 14px; font-weight: 600; color: var(--w-muted);
  transition: all var(--w-trans);
}
.stb-another-btn:hover { border-color: var(--w-primary); color: var(--w-primary); }
.pts-zip-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt)));
  color: var(--w-white) !important; border: none; border-radius: 9px;
  font-family: var(--w-font-body); font-size: 14px; font-weight: 700; cursor: pointer;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.stb-sidebar { display: flex; flex-direction: column; gap: 20px; }
.stb-sidebar-card {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg);
  box-shadow: var(--w-shadow);
}
.stb-sidebar-card__head {
  padding: 16px 20px; border-bottom: 1px solid var(--w-border);
  font-family: var(--w-font-disp); font-size: 14px; font-weight: 800; color: var(--w-text);
}
.stb-feat-list { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.stb-feat-item { display: flex; align-items: flex-start; gap: 12px; }
.stb-feat-icon-box {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.stb-feat-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--w-text); line-height: 1.3; }
.stb-feat-item p { font-size: 12px; color: var(--w-muted); margin: 2px 0 0; line-height: 1.4; }
.stb-other-tools { padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.stb-other-tools a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--w-muted);
  text-decoration: none !important; transition: all var(--w-trans);
}
.stb-other-tools a:hover { background: var(--w-bg); color: var(--w-text); }
.stb-trust-badges { padding: 16px 20px; display: flex; flex-direction: column; gap: 9px; }
.stb-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--w-muted); }
.stb-trust-item span:first-child { font-size: 15px; }

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.stb-how {
  background: var(--w-bg);
  padding: 64px 28px;
  border-top: 1px solid var(--w-border);
}
.stb-how__inner { max-width: 1200px; margin: 0 auto; }
.stb-how h2 {
  font-family: var(--w-font-disp);
  font-size: clamp(22px,3vw,32px); font-weight: 800;
  color: var(--w-text); margin: 0 0 36px; letter-spacing: -.02em;
}
.stb-how-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; position: relative; }
.stb-how-steps::before {
  content: '';
  position: absolute; top: 28px; left: calc(16.67% + 20px); right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--stb-c1, var(--w-primary)) 0%, var(--stb-c2, var(--w-primary-lt)) 100%);
  opacity: .25; pointer-events: none;
}
.stb-how-step {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg); padding: 28px 24px;
  box-shadow: var(--w-shadow);
  position: relative; text-align: center;
}
.stb-how-step__num {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt)));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(37,99,235,.22);
}
.stb-how-step h4 { font-family: var(--w-font-disp); font-size: 16px; font-weight: 800; color: var(--w-text); margin: 0 0 8px; }
.stb-how-step p { font-size: 13px; color: var(--w-muted); margin: 0; line-height: 1.55; }

/* ── MOCKUPS ──────────────────────────────────────────────── */
.stb-mockup-compress {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 24px 28px; position: relative;
}
.stb-mc__big, .stb-mc__small {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.stb-mc__label {
  width: 52px; height: 66px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .04em;
}
.stb-mc__size { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.7); }
.stb-mc__size--small { color: #4ADE80; }
.stb-mc__arrow { font-size: 20px; color: rgba(255,255,255,.3); }
.stb-mc__badge {
  position: absolute; top: -10px; right: -10px;
  background: linear-gradient(135deg, #10B981, #34D399);
  color: #fff; font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 100px;
  box-shadow: 0 4px 12px rgba(16,185,129,.3);
}

/* Generic mockup shells */
.stb-mockup-generic {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px; min-width: 200px;
}
.stb-mock-page {
  background: rgba(255,255,255,.1); border-radius: 8px; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.stb-mock-line {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.18);
}
.stb-mock-line--short { width: 55%; }
.stb-mock-line--med { width: 78%; }
.stb-mock-title {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sat-footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .sat-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .sat-header-cta { display: none; }
  .sat-nav { display: none; }
  .sat-hamburger { display: flex; }
  .sat-hero { padding: 72px 20px 80px; }
  .sat-hero__feats { grid-template-columns: 1fr 1fr; }
  .stb-layout { grid-template-columns: 1fr; }
  .stb-hero__inner { flex-direction: column; }
  .stb-hero__visual { display: none; }
  .stb-how-steps { grid-template-columns: 1fr; }
  .stb-how-steps::before { display: none; }
}
@media (max-width: 640px) {
  .sat-hero { padding: 56px 16px 64px; }
  .sat-hero__feats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sat-grid-section { padding: 56px 16px; }
  .sat-tools-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sat-card { padding: 20px 16px 16px; }
  .sat-card__icon-wrap { width: 44px; height: 44px; font-size: 22px; border-radius: 11px; }
  .sat-card__title { font-size: 14px; }
  .sat-footer__inner { grid-template-columns: 1fr 1fr; padding: 44px 20px 32px; gap: 32px; }
  .stb-body { padding: 28px 16px 56px; }
  .stb-card__head { padding: 16px 18px 14px; }
  .stb-dz-inner { padding: 32px 16px; }
  .stb-level-grid { grid-template-columns: 1fr; }
  .stb-hero { padding: 52px 16px 60px; }
  .sat-hero__h1 { font-size: clamp(32px, 10vw, 52px); }
  .stb-how { padding: 48px 16px; }
}
@media (max-width: 400px) {
  .sat-tools-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CLASS ALIASES — old ptb- names mapped to new styles
   ============================================================ */

/* Ring */
.stb-ring-track { fill: none; stroke: var(--w-border); stroke-width: 6; }
.stb-ring-fill  { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170; transition: stroke-dashoffset .3s ease; }

/* Processing */
.sat-processing { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); margin-bottom: 20px; box-shadow: var(--w-shadow); }
.stb-processing-inner { display: flex; align-items: center; gap: 20px; padding: 28px 24px 8px; }
.sat-processing-title { font-family: var(--w-font-disp); font-size: 17px; font-weight: 800; color: var(--w-text); }
.sat-processing-sub { font-size: 13px; color: var(--w-muted); margin-top: 4px; }
.stb-pbar { margin: 12px 24px 20px; }
.sat-progress-fill { height: 100%; background: linear-gradient(90deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt))); border-radius: 3px; width: 0%; transition: width .3s ease; }

/* Result */
.sat-result { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); margin-bottom: 20px; box-shadow: var(--w-shadow); }
.stb-result-head { display: flex; align-items: center; gap: 16px; padding: 24px 24px 12px; }
.sat-result__title { font-family: var(--w-font-disp); font-size: 19px; font-weight: 800; color: var(--w-text); }
.stb-result-sub { font-size: 13px; color: var(--w-muted); margin-top: 3px; }
.sat-result__downloads { padding: 0 24px 12px; display: flex; flex-direction: column; gap: 10px; }
.sat-result__actions { padding: 0 24px 20px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Convert inner */
.stb-convert-inner { padding: 20px 24px; }
.sat-convert-hint { font-size: 12px; color: var(--w-muted); text-align: center; margin: 10px 0 0; }

/* Sidebar cards */
.stb-info-card {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg); padding: 0; box-shadow: var(--w-shadow); overflow: hidden;
}
.stb-info-card h3 {
  font-family: var(--w-font-disp); font-size: 14px; font-weight: 800;
  color: var(--w-text); margin: 0; padding: 16px 20px;
  border-bottom: 1px solid var(--w-border);
}
.stb-info-list { list-style: none; margin: 0; padding: 14px 20px; display: flex; flex-direction: column; gap: 14px; }
.stb-info-list li { display: flex; align-items: flex-start; gap: 12px; }
.stb-info-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.stb-info-list li strong { display: block; font-size: 13px; font-weight: 700; color: var(--w-text); }
.stb-info-list li p { font-size: 12px; color: var(--w-muted); margin: 2px 0 0; line-height: 1.4; }

.stb-sidebar-tools {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg); padding: 0; box-shadow: var(--w-shadow); overflow: hidden;
}
.stb-sidebar-tools h3 {
  font-family: var(--w-font-disp); font-size: 14px; font-weight: 800;
  color: var(--w-text); margin: 0; padding: 16px 20px;
  border-bottom: 1px solid var(--w-border);
}
.sat-sidebar-list { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.sat-sidebar-list li a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--w-muted);
  text-decoration: none !important; transition: all var(--w-trans);
}
.sat-sidebar-list li a:hover { background: var(--w-bg); color: var(--w-text); }
.sat-sidebar-list li a span { font-size: 15px; }

.stb-trust {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg); padding: 16px 20px;
  box-shadow: var(--w-shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.stb-trust__item { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; color: var(--w-muted); }

/* How it works — old class names */
.stb-how { background: var(--w-bg); padding: 64px 28px; border-top: 1px solid var(--w-border); }
.stb-how .stb-how__title { font-family: var(--w-font-disp); font-size: clamp(22px,3vw,32px); font-weight: 800; color: var(--w-text); margin: 0 0 36px; letter-spacing: -.02em; }
.stb-how__steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: start; max-width: 1100px; }
.stb-how__arrow { display: flex; align-items: center; justify-content: center; padding-top: 24px; font-size: 20px; color: var(--w-border); width: 40px; }
.stb-how__step {
  background: var(--w-surface); border: 1px solid var(--w-border);
  border-radius: var(--w-radius-lg); padding: 28px 22px; text-align: center; box-shadow: var(--w-shadow);
}
.stb-how__num {
  font-family: var(--w-font-disp);
  font-size: 34px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary-lt)));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px;
}
.stb-how__icon { font-size: 28px; margin-bottom: 12px; }
.stb-how__step h3 { font-family: var(--w-font-disp); font-size: 15px; font-weight: 800; color: var(--w-text); margin: 0 0 8px; }
.stb-how__step p { font-size: 12px; color: var(--w-muted); margin: 0; line-height: 1.55; }

@media (max-width: 640px) {
  .stb-how__steps { grid-template-columns: 1fr; }
  .stb-how__arrow { display: none; }
}

/* ============================================================
   TOOL PAGE HEADER (replaces dark hero)
   ============================================================ */

/* Remove old hero entirely */
.stb-hero { display: none !important; }

/* Page header — light, clean, professional */
.stb-page-header {
  background: #ffffff;
  border-bottom: 1px solid var(--w-border);
  padding: 16px 0 14px;
}
.stb-page-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Breadcrumb */
.stb-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--w-muted);
  text-decoration: none !important;
  margin-bottom: 10px;
  transition: color var(--w-trans);
}
.stb-breadcrumb:hover { color: var(--w-primary); text-decoration: none !important; }
.stb-breadcrumb svg { flex-shrink: 0; transition: transform var(--w-trans); }
.stb-breadcrumb:hover svg { transform: translateX(-3px); }

/* Tool identity row */
.stb-page-header__body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.stb-page-header__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.stb-page-header__text { flex: 1; }
.stb-page-header__title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  color: var(--w-text);
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.stb-page-header__title span {
  background: linear-gradient(90deg, var(--stb-c1, var(--w-primary)), var(--stb-c2, var(--w-primary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stb-page-header__sub {
  font-size: 12px;
  color: var(--w-muted);
  margin: 3px 0 0 0;
  line-height: 1.55;
  max-width: 560px;
}

/* Pills row */
.stb-page-header__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 2px;
}
.stb-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: color-mix(in srgb, var(--pc, var(--w-primary)) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc, var(--w-primary)) 18%, transparent);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: color-mix(in srgb, var(--pc, var(--w-primary)) 80%, #000);
}

/* Typography upgrades across all elements */
.sat-section-title,
.sat-cta-banner__title,
.stb-how .stb-how__title,
.stb-how__step h3,
.stb-info-card h3,
.stb-sidebar-tools h3,
.stb-card__head h2,
.sat-result__title,
.sat-processing-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  letter-spacing: -.02em !important;
}

/* Hero typography */
.sat-hero__h1 {
  font-family: 'Instrument Serif', Georgia, serif !important;
  letter-spacing: -.02em !important;
}
.sat-hero__h1 em {
  font-style: italic;
}
.sat-section-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
}
.sat-card__title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  letter-spacing: -.015em !important;
}

/* Tighten body */
body, .sat-wrap, .stb-wrap {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
}

/* Responsive page header */
@media (max-width: 640px) {
  .stb-page-header { padding: 12px 0 10px; }
  .stb-page-header__inner { padding: 0 16px; }
  .stb-page-header__icon { width: 34px; height: 34px; font-size: 16px; border-radius: 8px; }
  .stb-page-header__title { font-size: 15px; }
  .stb-page-header__sub { font-size: 11px; margin-left: 0; }
  .stb-pill { font-size: 10px; padding: 3px 9px; }
}

/* ============================================================
   TARGETED FIXES — DPI slider, Position grid, Edit tools,
   Sign canvas, Signature placement, File input
   ============================================================ */

/* ── 1. DPI SLIDER — stack slider + labels vertically ─────── */
.stb-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stb-slider-wrap .stb-slider {
  width: 100%;
}
.stb-slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--w-muted);
  font-weight: 500;
}
.stb-slider-labels .stb-slider-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--stb-c1, var(--w-primary)) 22%, transparent);
  border-radius: 6px;
  padding: 2px 9px;
  min-width: auto;
  text-align: center;
}

/* ── 2. POSITION GRID — visual 3×3 page picker ────────────── */
.stb-position-grid {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  grid-template-rows: repeat(3, 36px);
  gap: 4px;
  width: fit-content;
}
.stb-pos-cell {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--w-border);
  border-radius: 7px;
  cursor: pointer;
  background: var(--w-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--w-trans), background var(--w-trans), box-shadow var(--w-trans);
  position: relative;
}
/* Hide the text spans — layout is self-explanatory */
.stb-pos-cell span:not(.stb-pos-cell--mid-label span) {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap;
}
.stb-pos-cell input { display: none; }
.stb-pos-cell::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--w-border);
  transition: background var(--w-trans), transform var(--w-trans);
}
.stb-pos-cell:hover {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 50%, transparent);
  background: #fff;
}
.stb-pos-cell:hover::after {
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 40%, transparent);
}
.stb-pos-cell--active {
  border-color: var(--stb-c1, var(--w-primary)) !important;
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 10%, #fff) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 14%, transparent) !important;
}
.stb-pos-cell--active::after {
  background: var(--stb-c1, var(--w-primary)) !important;
  transform: scale(1.3);
}
/* Middle cell — shows "Page" label as a mini page preview */
.stb-pos-cell--mid {
  background: transparent !important;
  border-color: transparent !important;
  cursor: default;
  pointer-events: none;
}
.stb-pos-cell--mid::after { display: none; }
.stb-pos-cell--mid-label {
  background: var(--w-border) !important;
  border-color: var(--w-border) !important;
  cursor: default;
  pointer-events: none;
}
.stb-pos-cell--mid-label::after { display: none; }
.stb-pos-cell--mid-label span {
  position: static !important;
  width: auto !important; height: auto !important;
  clip: auto !important; overflow: visible !important;
  font-size: 9px; font-weight: 700;
  color: var(--w-muted);
  text-transform: uppercase; letter-spacing: .03em;
}

/* Wrap position grid + label row nicely */
.stb-field:has(.stb-position-grid) .stb-field-label { margin-bottom: 10px; }

/* ── 3. EDIT TOOLS GRID ────────────────────────────────────── */
.stb-edit-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.stb-edit-tool { cursor: pointer; }
.stb-edit-tool input { display: none; }
.stb-edit-tool__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1.5px solid var(--w-border);
  border-radius: 10px;
  background: var(--w-surface);
  transition: all var(--w-trans);
  position: relative;
  text-align: center;
}
.stb-edit-tool__inner:hover {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 45%, transparent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 10%, transparent);
}
.stb-edit-tool--active .stb-edit-tool__inner {
  border-color: var(--stb-c1, var(--w-primary));
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 6%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stb-c1, var(--w-primary)) 12%, transparent);
}
.stb-edit-tool__icon { font-size: 22px; line-height: 1; }
.stb-edit-tool__name {
  font-size: 12px; font-weight: 700; color: var(--w-text); line-height: 1.2;
}
/* Active checkmark */
.stb-edit-tool--active .stb-edit-tool__inner::after {
  content: '✓';
  position: absolute; top: 6px; right: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--stb-c1, var(--w-primary)); color: #fff;
  font-size: 9px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

/* ── 4. SIGN PDF — canvas & controls ──────────────────────── */
.stb-sig-canvas-wrap {
  border: 1.5px solid var(--w-border);
  border-radius: 10px;
  background: #fafafa;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}
.stb-sig-canvas {
  display: block;
  width: 100%;
  height: 140px;
  cursor: crosshair;
  touch-action: none;
}
.stb-sig-canvas-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--w-muted);
  pointer-events: none;
  font-style: italic;
  transition: opacity .2s;
}
.stb-sig-canvas-hint.hidden { opacity: 0; }
.stb-sig-canvas-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.stb-sig-clear {
  padding: 7px 16px;
  border: 1.5px solid var(--w-border);
  border-radius: 8px;
  background: var(--w-surface);
  font-family: var(--w-font-body);
  font-size: 12px; font-weight: 700; color: var(--w-muted);
  cursor: pointer;
  transition: all var(--w-trans);
}
.stb-sig-clear:hover {
  border-color: #DC2626; color: #DC2626;
  background: #FEF2F2;
}
.stb-sig-colors {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stb-sig-color {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform var(--w-trans), border-color var(--w-trans);
  outline: none;
}
.stb-sig-color:hover { transform: scale(1.15); }
.stb-sig-color--active {
  border-color: rgba(0,0,0,.25) !important;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(0,0,0,.1);
}

/* ── 5. FILE INPUT (signature upload) ─────────────────────── */
.stb-file-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px dashed var(--w-border);
  border-radius: 9px;
  background: var(--w-bg);
  font-family: var(--w-font-body);
  font-size: 13px; color: var(--w-muted);
  cursor: pointer;
  transition: border-color var(--w-trans), background var(--w-trans);
}
.stb-file-input:hover {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 50%, transparent);
  background: #fff;
}
.stb-file-input:focus {
  outline: none;
  border-color: var(--stb-c1, var(--w-primary));
}

/* ── 6. TOGGLE TRACK (sign all-pages switch) ──────────────── */
.stb-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--w-border);
  border-radius: 9px;
  background: var(--w-surface);
  cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--w-text);
  transition: border-color var(--w-trans);
}
.stb-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 40%, transparent);
  background: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 4%, #fff);
}
.stb-toggle input[type=checkbox] { display: none; }
.stb-toggle-track {
  width: 42px; height: 24px;
  background: var(--w-border);
  border-radius: 100px;
  flex-shrink: 0;
  position: relative;
  transition: background var(--w-trans);
  display: block;
}
.stb-toggle-track::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
  transition: transform var(--w-trans);
}
.stb-toggle:has(input:checked) .stb-toggle-track {
  background: var(--stb-c1, var(--w-primary));
}
.stb-toggle:has(input:checked) .stb-toggle-track::after {
  transform: translateX(18px);
}

/* Responsive */
@media (max-width: 640px) {
  .stb-edit-tools { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESULT UI — upgraded single/multi layouts
   ============================================================ */

/* Single file result row */
.pts-single-result-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--w-bg); border: 1.5px solid var(--w-border);
  border-radius: 11px; width: 100%;
  animation: pts-fadein .3s ease both;
}
.pts-single-result-row__icon { font-size: 26px; flex-shrink: 0; }
.pts-single-result-row__info { flex: 1; min-width: 0; text-align: left; }
.pts-single-result-row__name { display: block; font-size: 14px; font-weight: 800; color: var(--w-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pts-single-result-row__size { font-size: 12px; color: var(--w-muted); }

/* Multi-file — widen result panel */
.sat-result--multi { align-items: stretch !important; }
.sat-result--multi #pts-result-downloads { max-width: 100% !important; width: 100%; }
.sat-result--multi .sat-result-check, .sat-result--multi .sat-result-title, .sat-result--multi #pts-result-meta, .sat-result--multi .pts-convert-another { align-self: center; }

/* ZIP download block */
.pts-zip-download-block {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  background: color-mix(in srgb, #059669 7%, #fff);
  border: 1.5px solid color-mix(in srgb, #22C55E 30%, transparent);
  border-radius: 12px; margin-bottom: 14px;
  animation: pts-fadein .3s ease both;
}
.pts-zip-download-block__left { display: flex; align-items: center; gap: 14px; }
.pts-zip-download-block__icon { font-size: 30px; }
.pts-zip-download-block__name { font-size: 15px; font-weight: 800; color: var(--w-text); }
.pts-zip-download-block__meta { font-size: 12px; color: var(--w-muted); margin-top: 2px; }

/* Divider */
.sat-result-divider {
  display: flex; align-items: center; gap: 10px; margin: 10px 0;
}
.sat-result-divider::before, .sat-result-divider::after { content: ''; flex: 1; height: 1px; background: var(--w-border); }
.sat-result-divider span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--w-muted); white-space: nowrap; }
.sat-result-divider--warn span { color: #DC2626; }
.sat-result-divider--warn::before, .sat-result-divider--warn::after { background: #FECACA; }

/* Individual file result rows */
.pts-file-result-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: #fff;
  border: 1.5px solid var(--w-border); border-radius: 10px; margin-bottom: 7px;
  animation: pts-fadein .3s ease both;
  transition: border-color var(--w-trans), box-shadow var(--w-trans);
}
.pts-file-result-row:hover { border-color: color-mix(in srgb, var(--stb-c1, var(--w-primary)) 35%, transparent); }
.pts-file-result-row__num { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; background: var(--w-bg); border: 1px solid var(--w-border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--w-muted); }
.pts-file-result-row__icon { font-size: 20px; flex-shrink: 0; }
.pts-file-result-row__info { flex: 1; min-width: 0; }
.pts-file-result-row__name { display: block; font-size: 13px; font-weight: 700; color: var(--w-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pts-file-result-row__size { font-size: 11px; color: var(--w-muted); }
.pts-file-result-row__err { font-size: 11px; color: #DC2626; }
.pts-file-result-row__btn { flex-shrink: 0; min-width: 100px; }
.pts-file-result-row--error { background: #FEF2F2; border-color: #FECACA; }

@keyframes pts-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) {
  .pts-zip-download-block { flex-direction: column; align-items: stretch; }
  .pts-zip-download-block__btn { width: 100%; justify-content: center; }
  .pts-file-result-row__btn { min-width: 80px; padding: 7px 10px; font-size: 11px; }
}

/* ============================================================
   SEO ANALYZER — Analysis Result Components
   Identical visual style to PDF Tool Suite
   ============================================================ */

/* ── Score badge ──────────────────────────────────────────── */
.sat-score-wrap { display: flex; align-items: center; gap: 20px; padding: 20px 24px; background: var(--w-bg); border-radius: var(--w-radius); margin-bottom: 20px; border: 1px solid var(--w-border); }
.sat-score-circle { width: 80px; height: 80px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.sat-score-circle__num { font-size: 28px; line-height: 1; }
.sat-score-circle__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.sat-score-detail { flex: 1; }
.sat-score-detail h3 { font-size: 18px; font-weight: 800; margin: 0 0 4px; color: var(--w-text); }
.sat-score-detail p  { font-size: 13px; color: var(--w-muted); margin: 0; }
.sat-progress-bar-wrap { margin-top: 10px; }
.sat-progress-bar-bg  { height: 8px; background: var(--w-border); border-radius: 4px; overflow: hidden; }
.sat-progress-bar-fill { height: 100%; border-radius: 4px; transition: width .8s ease; }

/* ── Issue list ───────────────────────────────────────────── */
.sat-issues { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.sat-issue-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--w-radius); font-size: 13.5px; border: 1px solid transparent; line-height: 1.5; }
.sat-issue-item--pass { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.sat-issue-item--warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.sat-issue-item--fail { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }

/* ── Metrics grid ─────────────────────────────────────────── */
.sat-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.sat-metric { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: var(--w-radius); padding: 14px 16px; text-align: center; }
.sat-metric__val  { font-size: 22px; font-weight: 800; color: var(--w-text); line-height: 1.2; }
.sat-metric__label { font-size: 11.5px; color: var(--w-muted); margin-top: 4px; font-weight: 500; }
.sat-metric--good { border-color: #BBF7D0; }
.sat-metric--warn { border-color: #FDE68A; }
.sat-metric--bad  { border-color: #FECACA; }

/* ── Checklist table ──────────────────────────────────────── */
.sat-checklist { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 16px; }
.sat-checklist th { padding: 10px 14px; background: var(--w-bg); border-bottom: 2px solid var(--w-border); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--w-muted); text-align: left; }
.sat-checklist td { padding: 10px 14px; border-bottom: 1px solid var(--w-border); vertical-align: top; color: var(--w-text); }
.sat-checklist tr:last-child td { border-bottom: none; }
.sat-checklist tr:hover td { background: var(--w-bg); }
.sat-check-icon { font-size: 15px; }
.sat-check-name { font-weight: 600; }
.sat-check-detail { color: var(--w-muted); font-size: 12.5px; }

/* ── Headings list ────────────────────────────────────────── */
.sat-heading-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; max-height: 400px; overflow-y: auto; }
.sat-heading-item { display: flex; align-items: baseline; gap: 12px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--w-border); background: var(--w-surface); }
.sat-heading-tag { font-size: 11px; font-weight: 800; min-width: 28px; text-align: center; padding: 2px 6px; border-radius: 5px; background: var(--w-text); color: var(--w-white); letter-spacing: .05em; }
.sat-heading-tag--h1 { background: #1D4ED8; }
.sat-heading-tag--h2 { background: #7C3AED; }
.sat-heading-tag--h3 { background: #059669; }
.sat-heading-tag--h4 { background: #D97706; }
.sat-heading-tag--h5 { background: #DC2626; }
.sat-heading-tag--h6 { background: #64748B; }
.sat-heading-text { font-size: 13.5px; color: var(--w-text); flex: 1; }
.sat-heading-len  { font-size: 11px; color: var(--w-muted); flex-shrink: 0; }

/* ── Link list ────────────────────────────────────────────── */
.sat-link-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sat-link-table th { padding: 9px 12px; background: var(--w-bg); border-bottom: 2px solid var(--w-border); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--w-muted); text-align: left; }
.sat-link-table td { padding: 9px 12px; border-bottom: 1px solid var(--w-border); vertical-align: middle; }
.sat-link-table tr:last-child td { border-bottom: none; }
.sat-link-url { color: var(--w-primary); text-decoration: none; font-family: monospace; font-size: 12px; word-break: break-all; }
.sat-link-url:hover { text-decoration: underline; }
.sat-link-anchor { color: var(--w-text); font-size: 12.5px; }
.sat-link-badge { display: inline-flex; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.sat-link-badge--internal { background: #EFF6FF; color: #2563EB; }
.sat-link-badge--external { background: #F5F3FF; color: #7C3AED; }

/* ── Counts bar ───────────────────────────────────────────── */
.sat-counts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sat-count-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 700; }

/* ── SERP preview ─────────────────────────────────────────── */
.sat-serp-preview { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); padding: 20px 24px; margin: 16px 0; }
.sat-serp-preview h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--w-muted); margin: 0 0 14px; }
.sat-serp-url  { font-size: 13px; color: #202124; margin-bottom: 4px; }
.sat-serp-title { font-size: 19px; color: #1a0dab; font-weight: 400; margin-bottom: 4px; text-decoration: none; display: block; }
.sat-serp-title:hover { text-decoration: underline; }
.sat-serp-desc { font-size: 13.5px; color: #4d5156; line-height: 1.55; }

/* ── Density table ────────────────────────────────────────── */
.sat-density-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sat-density-table th { padding: 8px 12px; background: var(--w-bg); border-bottom: 2px solid var(--w-border); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--w-muted); text-align: left; }
.sat-density-table td { padding: 8px 12px; border-bottom: 1px solid var(--w-border); vertical-align: middle; }
.sat-density-table tr:last-child td { border-bottom: none; }
.sat-density-bar { display: flex; align-items: center; gap: 8px; }
.sat-density-fill { height: 6px; border-radius: 3px; min-width: 4px; transition: width .4s; }

/* ── URL result card ──────────────────────────────────────── */
.sat-url-result { background: var(--w-surface); border: 1.5px solid var(--w-border); border-radius: var(--w-radius); padding: 16px 20px; margin-bottom: 12px; }
.sat-url-result--good { border-color: #BBF7D0; }
.sat-url-result--ok   { border-color: #FDE68A; }
.sat-url-result--poor { border-color: #FECACA; }
.sat-url-result__url  { font-family: monospace; font-size: 13px; color: var(--w-primary); word-break: break-all; margin-bottom: 8px; }
.sat-url-result__meta { font-size: 12.5px; color: var(--w-muted); margin-bottom: 8px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Analysis input form ──────────────────────────────────── */
.sat-url-input { width: 100%; padding: 13px 16px; border: 1.5px solid var(--w-border); border-radius: var(--w-radius); font-size: 15px; font-family: var(--w-font-body); color: var(--w-text); background: var(--w-bg); transition: border-color .2s; box-sizing: border-box; }
.sat-url-input:focus { outline: none; border-color: var(--stb-c1, var(--w-primary)); background: var(--w-surface); }
.sat-textarea { resize: vertical; min-height: 140px; font-family: var(--w-font-body); }
.sat-field { margin-bottom: 18px; }
.sat-field:last-child { margin-bottom: 0; }
.sat-field-label { display: block; font-size: 13px; font-weight: 600; color: var(--w-text); margin-bottom: 7px; }
.sat-field-hint  { font-size: 12px; color: var(--w-muted); margin-top: 5px; }
.sat-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .sat-two-col { grid-template-columns: 1fr; }
  .sat-metrics { grid-template-columns: 1fr 1fr; }
  .sat-checklist th:last-child, .sat-checklist td:last-child { display: none; }
}

/* ============================================================
   STB — SEO Tool Builder component styles (mirrors PTS ptb-)
   ============================================================ */
.sat-wrap *, .sat-header *, .sat-footer *, .stb-wrap * { box-sizing: border-box; }
.sat-wrap, .stb-wrap { font-family: var(--w-font-body); color: var(--w-text); -webkit-font-smoothing: antialiased; line-height: 1.6; background: var(--w-bg); }
.stb-page-header { background: var(--w-white); border-bottom: 1px solid var(--w-border); }
.stb-page-header__inner { max-width: 1200px; margin: 0 auto; padding: 24px 28px; }
.stb-breadcrumb { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--w-muted); text-decoration: none !important; margin-bottom: 16px; transition: color var(--w-trans); }
.stb-breadcrumb:hover { color: var(--stb-c1, var(--w-primary)); }
.stb-page-header__body { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.stb-page-header__icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.stb-page-header__title { font-size: 26px; font-weight: 800; margin: 0 0 4px; color: var(--w-text); }
.stb-page-header__sub { font-size: 14px; color: var(--w-muted); margin: 0; }
.stb-page-header__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.stb-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 600; background: color-mix(in srgb, var(--pc, var(--w-primary)) 10%, transparent); color: var(--pc, var(--w-primary)); border: 1px solid color-mix(in srgb, var(--pc, var(--w-primary)) 20%, transparent); }
.stb-body { max-width: 1200px; margin: 0 auto; padding: 40px 28px 80px; }
.stb-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.stb-card { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); margin-bottom: 20px; box-shadow: var(--w-shadow); overflow: hidden; }
.stb-card__head { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--w-border); }
.stb-card__head h2 { font-size: 15px; font-weight: 700; margin: 0; color: var(--w-text); }
.stb-step { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--w-white); }
.stb-convert-card { }
.stb-convert-inner { padding: 20px 24px; }
.stb-convert-btn { width: 100%; padding: 16px; background: linear-gradient(135deg,var(--stb-c1,var(--w-primary)),var(--stb-c2,var(--w-primary-lt))); color: var(--w-white) !important; border: none; border-radius: var(--w-radius); cursor: pointer; font-family: var(--w-font-body); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; transition: opacity var(--w-trans), transform var(--w-trans); }
.stb-convert-btn:hover { opacity: .9; transform: translateY(-1px); }
.stb-convert-btn:disabled { opacity: .65; cursor: default; transform: none; }
.stb-convert-icon { font-size: 20px; }
.stb-processing { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); padding: 32px 28px; margin-bottom: 20px; box-shadow: var(--w-shadow); }
.stb-processing-inner { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.stb-ring-wrap { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
.stb-ring-wrap svg { transform: rotate(-90deg); }
.stb-ring-track { fill: none; stroke: var(--w-border); stroke-width: 6; }
.stb-ring-fill { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 169.6; stroke-dashoffset: 169.6; transition: stroke-dashoffset .3s ease; }
.stb-ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.sat-processing-title { font-size: 16px; font-weight: 700; color: var(--w-text); margin-bottom: 4px; }
.sat-processing-sub { font-size: 13px; color: var(--w-muted); }
.stb-pbar { height: 6px; background: var(--w-border); border-radius: 3px; overflow: hidden; }
.sat-progress-fill { height: 100%; background: linear-gradient(90deg,var(--stb-c1,var(--w-primary)),var(--stb-c2,var(--w-primary-lt))); border-radius: 3px; width: 0%; transition: width .3s ease; }
.stb-result { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); box-shadow: var(--w-shadow); overflow: hidden; margin-bottom: 20px; }
.stb-result-head { display: flex; align-items: center; gap: 16px; padding: 24px 24px 12px; }
.stb-result-check { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.sat-result__title { font-family: var(--w-font-disp); font-size: 19px; font-weight: 800; color: var(--w-text); }
.stb-result-sub { font-size: 13px; color: var(--w-muted); margin-top: 3px; }
.sat-result__downloads { padding: 0 24px 12px; }
.sat-result__actions { padding: 0 24px 20px; }
.stb-another-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; background: var(--w-bg); border: 1.5px solid var(--w-border); border-radius: var(--w-radius); font-size: 14px; font-weight: 600; color: var(--w-muted); cursor: pointer; font-family: var(--w-font-body); transition: all var(--w-trans); }
.stb-another-btn:hover { border-color: var(--stb-c1,var(--w-primary)); color: var(--stb-c1,var(--w-primary)); background: var(--w-surface); }
.sat-error { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--w-radius); font-size: 13.5px; color: #991B1B; font-weight: 500; margin-bottom: 16px; }
.sat-error__msg { flex: 1; }
.stb-sidebar { display: flex; flex-direction: column; gap: 20px; }
.stb-info-card { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); padding: 24px; box-shadow: var(--w-shadow); }
.stb-info-card h3 { font-size: 14px; font-weight: 700; color: var(--w-text); margin: 0 0 16px; }
.stb-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.stb-info-list li { display: flex; gap: 12px; align-items: flex-start; }
.stb-info-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.stb-info-list strong { display: block; font-size: 13px; font-weight: 700; color: var(--w-text); margin-bottom: 2px; }
.stb-info-list p { margin: 0; font-size: 12px; color: var(--w-muted); line-height: 1.5; }
.stb-sidebar-tools { background: var(--w-surface); border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); padding: 20px; box-shadow: var(--w-shadow); }
.stb-sidebar-tools h3 { font-size: 14px; font-weight: 700; color: var(--w-text); margin: 0 0 12px; }
.sat-sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sat-sidebar-list li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--w-text); text-decoration: none !important; transition: background var(--w-trans); }
.sat-sidebar-list li a:hover { background: var(--w-bg); }
.stb-trust { background: linear-gradient(135deg,#070c1a,#111827); border-radius: var(--w-radius-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.stb-trust__item { font-size: 13px; color: rgba(255,255,255,.55); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stb-how { margin-top: 60px; text-align: center; }
.stb-how__title { font-size: 24px; font-weight: 800; margin: 0 0 32px; color: var(--w-text); }
.stb-how__steps { display: flex; align-items: flex-start; justify-content: center; }
.stb-how__arrow { color: var(--w-border); font-size: 24px; padding: 0 20px; margin-top: 40px; }
.stb-how__step { text-align: center; max-width: 200px; }
.stb-how__num { font-size: 11px; font-weight: 800; color: var(--w-muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.stb-how__icon { font-size: 36px; margin-bottom: 10px; }
.stb-how__step h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; color: var(--w-text); }
.stb-how__step p { font-size: 12.5px; color: var(--w-muted); margin: 0; line-height: 1.5; }
@media(max-width:900px){ .stb-layout { grid-template-columns: 1fr; } }
@media(max-width:600px){ .stb-how__steps { flex-direction: column; align-items: center; } .stb-how__arrow { transform: rotate(90deg); } }
