
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --accent:    #2563eb;
    --accent-h:  #1d4ed8;
    --accent-lt: #eff6ff;
    --accent-md: #bfdbfe;
    --bg:        #f1f5f9;
    --surface:   #ffffff;
    --surface2:  #f8fafc;
    --border:    #e2e8f0;
    --border2:   #cbd5e1;
    --text:      #0f172a;
    --text2:     #475569;
    --text3:     #94a3b8;
    --danger:    #dc2626;
    --success:   #16a34a;
    --radius:    12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
    --shadow:    0 4px 14px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.10);
    --font: 'Inter', 'Nunito', system-ui, sans-serif;
    --font-head: 'Fredoka One', cursive;
  }

  html { scroll-behavior: smooth; }
  body { font-family: var(--font); background: #ffffff; color: var(--text); line-height: 1.6; overflow-x: hidden; -webkit-text-size-adjust: 100%; }

  /* ── NAV ── */
  nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 200;
  }
  .nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center;
    height: 60px; padding: 0 1.25rem; gap: 1rem;
  }
  .logo {
    font-family: var(--font-head); font-size: 1.45rem;
    color: var(--accent); text-decoration: none;
    display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  }
  .logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
  .logo-icon svg { width: 36px; height: 36px; image-rendering: pixelated; }
  .nav-links { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
  .nav-links a {
    font-size: 0.875rem; font-weight: 600; color: var(--text2);
    text-decoration: none; padding: 0.45rem 0.85rem;
    border-radius: 8px; transition: all .15s; white-space: nowrap;
  }
  .nav-links a:hover { color: var(--accent); background: var(--accent-lt); }
  .nav-actions { display: flex; gap: 0.5rem; align-items: center; margin-left: auto; flex-shrink: 0; }
  .btn-nav-outline {
    font-size: 0.82rem; font-weight: 700; color: var(--accent);
    border: 1.5px solid var(--accent-md); background: transparent;
    border-radius: 8px; padding: 0.45rem 1rem; cursor: pointer;
    transition: all .15s; text-decoration: none; white-space: nowrap;
  }
  .btn-nav-outline:hover { background: var(--accent-lt); border-color: var(--accent); }
  .btn-nav-solid {
    font-size: 0.82rem; font-weight: 700; color: #fff;
    background: var(--accent); border: none;
    border-radius: 8px; padding: 0.48rem 1.1rem;
    cursor: pointer; transition: all .15s; text-decoration: none;
    white-space: nowrap; box-shadow: 0 1px 3px rgba(37,99,235,.3);
  }
  .btn-nav-solid:hover { background: var(--accent-h); }

  /* ── HERO ── */
  .hero {
    background: linear-gradient(160deg, #eff6ff 0%, #ffffff 60%);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 1.25rem 2.75rem;
    text-align: center;
  }
  .hero-inner { max-width: 780px; margin: 0 auto; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1.5px solid var(--accent-md);
    color: var(--accent); font-size: .72rem; font-weight: 800;
    padding: 5px 13px; border-radius: 20px; margin-bottom: .9rem;
    letter-spacing: .04em; text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(37,99,235,.1);
  }
  .hero h1 {
    font-family: var(--font-head); font-size: clamp(1.95rem, 4.4vw, 2.85rem);
    color: var(--text); line-height: 1.1; margin-bottom: .75rem; font-weight: 700;
  }
  .hero h1 span { color: var(--accent); }
  .hero-sub {
    font-size: .96rem; color: var(--text2); line-height: 1.6;
    margin-bottom: 1.4rem; max-width: 540px; margin-left: auto; margin-right: auto;
    font-weight: 500;
  }
  .hero-search {
    display: flex; max-width: 520px; margin: 0 auto 1.2rem;
    background: #fff; border: 2px solid var(--border2); border-radius: 14px;
    overflow: hidden; box-shadow: 0 4px 20px rgba(37,99,235,.1);
    transition: border-color .2s, box-shadow .2s;
  }
  .hero-search:focus-within { border-color: var(--accent); box-shadow: 0 4px 24px rgba(37,99,235,.18); }
  .hero-search input {
    flex: 1; border: none; outline: none; padding: .78rem 1.05rem;
    font-size: .9rem; font-family: var(--font); color: var(--text); background: transparent;
  }
  .hero-search button {
    background: var(--accent); border: none; color: #fff;
    padding: 0 1.35rem; font-size: 1.1rem; cursor: pointer;
    transition: background .15s; flex-shrink: 0;
  }
  .hero-search button:hover { background: var(--accent-h); }
  .hero-chips {
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
    max-width: 600px; margin: 0 auto;
  }
  .hero-chip {
    background: #fff; border: 1.5px solid var(--border2); border-radius: 20px;
    padding: .4rem .9rem; font-size: .78rem; font-weight: 700; color: var(--text2);
    cursor: pointer; transition: all .15s; font-family: var(--font);
  }
  .hero-chip:hover { background: var(--accent-lt); border-color: var(--accent); color: var(--accent); }

  /* ── STATS BAR ── */
  .stats-bar { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .9rem 1.25rem; }
  .stats-inner { max-width:1100px; margin:0 auto; display:flex; justify-content:center; gap:3rem; flex-wrap:wrap; align-items:center; }
  .stat-item { text-align:center; }
  .stat-num { font-family:var(--font-head); font-size:1.5rem; color:var(--accent); display:block; line-height:1.2; }
  .stat-label { font-size:0.68rem; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:.06em; }

  /* ── TABS SECTION ── */
  .tabs-section { max-width:1200px; margin:0 auto; padding:2rem 1.25rem 3.5rem; }
  .tabs-header-label { text-align:center; margin-bottom:1.5rem; }
  .tabs-header-label h2 { font-family:var(--font-head); font-size:1.85rem; color:var(--text); margin-bottom:.3rem; }
  .tabs-header-label p { color:var(--text2); font-size:.875rem; }

  /* Tab bar — scrollable on mobile */
  .tab-bar {
    display: flex; gap: .3rem;
    justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .35rem; margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    font-family: var(--font); font-size: .82rem; font-weight: 600;
    color: var(--text2); background: transparent;
    border: none; border-radius: 8px;
    padding: .55rem 1.1rem; cursor: pointer;
    transition: all .15s; white-space: nowrap;
    flex: 1; min-height: 40px;
  }
  .tab-btn:hover { color: var(--accent); background: var(--accent-lt); }
  .tab-btn.active { background: var(--accent); color: #fff; box-shadow: 0 1px 4px rgba(37,99,235,.3); }

  /* Tab panels — NO css animation, just display toggle to avoid browser glitches */
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  .panel-title { display:flex; align-items:center; gap:8px; margin-bottom:1.1rem; flex-wrap:wrap; }
  .panel-title-badge { display:inline-flex; align-items:center; gap:4px; font-size:.75rem; font-weight:700; color:var(--accent); background:var(--accent-lt); border:1px solid var(--accent-md); padding:3px 11px; border-radius:30px; }
  .panel-title h3 { font-family:var(--font-head); font-size:1.25rem; color:var(--text); }
  .panel-title p { font-size:.78rem; font-weight:500; color:var(--text3); margin-left:auto; }

  /* ── TOOL CARDS ── */
  .tools-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:.75rem; }
  .tool-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem .9rem 1.1rem;
    text-align: center; display: flex; flex-direction: column;
    align-items: center; gap: .5rem;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    cursor: pointer; box-shadow: var(--shadow-sm);
  }
  .tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 3px rgba(37,99,235,.07); transform: translateY(-2px); }
  .tool-icon { width:54px; height:54px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:1.7rem; flex-shrink:0; }
  .tool-card h3 { font-size:.8rem; font-weight:700; color:var(--text); line-height:1.3; }
  .tool-card p { font-size:.72rem; color:var(--text3); font-weight:500; line-height:1.4; }

  /* ── CONVERT CARDS ── */
  .convert-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:.75rem; }
  .convert-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .9rem 1rem;
    display: flex; align-items: center; gap: .75rem;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    cursor: pointer; box-shadow: var(--shadow-sm);
  }
  .convert-card:hover { border-color:var(--accent); box-shadow:var(--shadow), 0 0 0 3px rgba(37,99,235,.07); transform:translateY(-2px); }
  .convert-icon { width:44px; height:44px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex-shrink:0; }
  .convert-card h3 { font-size:.8rem; font-weight:700; color:var(--text); margin-bottom:2px; }
  .convert-card p { font-size:.7rem; color:var(--text3); font-weight:500; }
  .arrow { margin-left:auto; color:var(--text3); font-size:.95rem; flex-shrink:0; transition:all .15s; font-weight:700; }
  .convert-card:hover .arrow { color:var(--accent); transform:translateX(3px); }

  .ic-red    { background: #fef2f2; }
  .ic-orange { background: #fff7ed; }
  .ic-blue   { background: #eff6ff; }
  .ic-green  { background: #f0fdf4; }
  .ic-purple { background: #faf5ff; }
  .ic-teal   { background: #f0fdfa; }
  .ic-pink   { background: #fdf4ff; }
  .ic-amber  { background: #fffbeb; }

  .new-badge { background:var(--accent); color:#fff; font-size:.58rem; font-weight:800; padding:2px 6px; border-radius:30px; vertical-align:middle; margin-left:3px; }
  .tool-card.hidden, .convert-card.hidden { display:none; }

  /* ── FEATURES ── */
  .features-section { background: #f8fafc; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4rem 1.25rem; }
  .features-inner { max-width:1100px; margin:0 auto; }
  .features-title { font-family:var(--font-head); font-size:clamp(1.4rem,3vw,1.8rem); color:var(--text); text-align:center; margin-bottom:.4rem; }
  .features-sub { color:var(--text2); text-align:center; font-size:.93rem; margin-bottom:2.5rem; }
  .features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
  .feature-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.5rem 1.25rem; text-align:center; transition:border-color .15s,box-shadow .15s,transform .15s; }
  .feature-card:hover { border-color:var(--accent); box-shadow:0 4px 16px rgba(37,99,235,.1); transform:translateY(-2px); }
  .feature-emoji { font-size:1.75rem; margin-bottom:.6rem; display:block; }
  .feature-card h3 { font-size:.95rem; font-weight:800; color:var(--text); margin-bottom:.35rem; }
  .feature-card p { font-size:.8rem; color:var(--text2); line-height:1.6; }

  /* ── BANNER ── */
  .banner-wrap { max-width:1200px; margin:0 auto; padding:.5rem 1.25rem 3.5rem; }
  .banner {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    border-radius: var(--radius-xl); padding: 3rem 2rem; text-align: center;
    box-shadow: var(--shadow-lg);
  }
  .banner h2 { font-family:var(--font-head); font-size:clamp(1.5rem,3vw,2.1rem); color:#fff; margin-bottom:.55rem; }
  .banner p { font-size:.9rem; color:rgba(255,255,255,.78); font-weight:500; margin-bottom:1.5rem; }
  .banner-buttons { display:flex; gap:.65rem; justify-content:center; flex-wrap:wrap; }
  .btn-banner-primary { font-weight:700; font-size:.875rem; color:var(--accent); background:#fff; border:none; border-radius:8px; padding:.75rem 1.6rem; cursor:pointer; transition:all .15s; }
  .btn-banner-primary:hover { background:#f1f5f9; }
  .btn-banner-outline { font-weight:700; font-size:.875rem; color:#fff; background:rgba(255,255,255,.12); border:1.5px solid rgba(255,255,255,.35); border-radius:8px; padding:.75rem 1.6rem; cursor:pointer; transition:all .15s; }
  .btn-banner-outline:hover { background:rgba(255,255,255,.2); }

  /* ── FOOTER ── */
  footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 1.25rem 1.5rem; }
  .footer-inner { max-width:1200px; margin:0 auto; }
  .footer-top { display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:1.75rem; margin-bottom:2rem; }
  .footer-brand p { font-size:.78rem; color:var(--text3); margin-top:.55rem; }
  .footer-col h5 { font-size:.75rem; font-weight:700; color:var(--text); margin-bottom:.75rem; text-transform:uppercase; letter-spacing:.07em; }
  .footer-col a { display:block; font-size:.78rem; font-weight:500; color:var(--text2); text-decoration:none; margin-bottom:.45rem; transition:color .15s; }
  .footer-col a:hover { color:var(--accent); }
  .footer-bottom { border-top:1px solid var(--border); padding-top:1rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.65rem; }
  .footer-bottom p { font-size:.75rem; color:var(--text3); }
  .social-links { display:flex; gap:.4rem; }
  .social-links a { width:34px; height:34px; border-radius:8px; background:var(--bg); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text2); text-decoration:none; font-size:.78rem; font-weight:700; transition:all .15s; }
  .social-links a:hover { background:var(--accent-lt); color:var(--accent); border-color:var(--accent-md); }

  /* ── MODAL ── */
  /* ══ TOOL MODAL — redesigned ══ */
  .modal-overlay { display:none; position:fixed; inset:0; background:rgba(15,23,42,.55); backdrop-filter:blur(6px); z-index:1000; align-items:flex-start; justify-content:center; padding:1rem; overflow-y:auto; }
  .modal-overlay.open { display:flex; }
  .modal {
    background:var(--surface); border-radius:22px; max-width:580px; width:100%;
    position:relative; border:1px solid var(--border);
    box-shadow:0 24px 60px rgba(15,23,42,.22), 0 4px 12px rgba(15,23,42,.08);
    margin:auto; overflow:hidden; animation:modalRise .28s cubic-bezier(.16,1,.3,1);
  }
  @keyframes modalRise { from{opacity:0;transform:translateY(18px) scale(.98);} to{opacity:1;transform:none;} }
  .modal-close {
    position:absolute; top:1rem; right:1rem; z-index:5;
    background:rgba(255,255,255,.85); border:1px solid var(--border);
    font-size:.9rem; cursor:pointer; color:var(--text2);
    width:32px; height:32px; border-radius:10px;
    display:flex; align-items:center; justify-content:center; font-weight:700;
    transition:all .15s; backdrop-filter:blur(4px);
  }
  .modal-close:hover { background:#fff; color:var(--text); transform:rotate(90deg); }

  /* Header band */
  .modal-head {
    display:flex; align-items:center; gap:.9rem;
    padding:1.5rem 1.75rem 1.25rem;
    background:linear-gradient(135deg, var(--tool-tint,#eff6ff) 0%, #ffffff 90%);
    border-bottom:1px solid var(--border); position:relative;
  }
  .modal-head::after {
    content:''; position:absolute; left:0; right:0; bottom:-1px; height:3px;
    background:linear-gradient(90deg, var(--tool-accent,var(--accent)), transparent);
  }
  .modal-tool-icon {
    width:54px; height:54px; border-radius:16px;
    display:flex; align-items:center; justify-content:center;
    font-size:1.7rem; flex-shrink:0; background:#fff;
    box-shadow:0 2px 10px rgba(15,23,42,.10); border:1px solid var(--border);
  }
  .modal-head h2 { font-family:var(--font-head); font-size:1.3rem; color:var(--text); line-height:1.2; }
  .modal-head p { font-size:.79rem; color:var(--text2); margin-top:3px; line-height:1.5; }

  /* Body scroll area */
  .modal-body { padding:1.35rem 1.75rem 1.5rem; }

  /* Stepper */
  .modal-steps { display:flex; align-items:center; gap:.4rem; margin-bottom:1.15rem; }
  .mstep { display:flex; align-items:center; gap:.4rem; font-size:.72rem; font-weight:700; color:var(--text3); }
  .mstep-dot {
    width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    background:var(--surface2); border:1.5px solid var(--border2); color:var(--text3);
    font-size:.62rem; font-weight:800; transition:all .25s;
  }
  .mstep.active .mstep-dot { background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 0 0 4px rgba(37,99,235,.14); }
  .mstep.active { color:var(--accent); }
  .mstep.done .mstep-dot { background:var(--success); border-color:var(--success); color:#fff; }
  .mstep.done { color:var(--success); }
  .mstep-line { flex:1; height:2px; background:var(--border); border-radius:2px; }
  .mstep-line.done { background:var(--success); }

  /* Drop zone */
  .drop-zone {
    border:2px dashed var(--border2); border-radius:16px;
    padding:2rem 1.25rem; cursor:pointer; transition:all .2s;
    margin-bottom:.85rem; text-align:center; position:relative; overflow:hidden;
    background:
      radial-gradient(circle at 50% 0%, rgba(37,99,235,.05), transparent 65%),
      var(--surface2);
  }
  .drop-zone:hover, .drop-zone.drag-over {
    border-color:var(--accent); background:var(--accent-lt);
    transform:translateY(-1px); box-shadow:0 6px 20px rgba(37,99,235,.12);
  }
  .drop-zone.drag-over { border-style:solid; }
  .drop-zone .drop-icon { margin-bottom:.5rem; font-size:2.5rem; line-height:1; transition:transform .25s; }
  .drop-zone:hover .drop-icon { transform:translateY(-3px) scale(1.06); }
  .drop-zone h3 { font-weight:800; margin-bottom:.25rem; font-size:.95rem; color:var(--text); }
  .drop-zone p { font-size:.78rem; color:var(--text3); margin:0; }
  .drop-formats { display:flex; gap:5px; justify-content:center; flex-wrap:wrap; margin-top:.7rem; }
  .drop-format {
    font-size:.62rem; font-weight:800; letter-spacing:.05em;
    background:#fff; border:1px solid var(--border2); color:var(--text2);
    padding:3px 9px; border-radius:20px;
  }

  /* File list */
  .file-list { margin:.6rem 0; display:flex; flex-direction:column; gap:.4rem; }
  .file-item {
    display:flex; align-items:center; gap:.6rem; background:#fff;
    border:1px solid var(--border); border-radius:12px; padding:.6rem .8rem;
    font-size:.8rem; font-weight:600; color:var(--text);
    box-shadow:0 1px 3px rgba(15,23,42,.05); animation:fileIn .22s ease;
  }
  @keyframes fileIn { from{opacity:0;transform:translateX(-6px);} to{opacity:1;transform:none;} }
  .file-item .fi-icon {
    width:30px; height:30px; border-radius:9px; background:var(--accent-lt);
    display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:.95rem;
  }
  .file-item .fi-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .file-item .fi-size { color:var(--text3); font-size:.7rem; font-weight:700; flex-shrink:0; }
  .file-item .fi-remove {
    background:none; border:none; cursor:pointer; color:var(--text3);
    font-size:.85rem; padding:3px 6px; border-radius:6px; transition:all .15s; flex-shrink:0;
  }
  .file-item .fi-remove:hover { color:var(--danger); background:#fef2f2; }

  /* Options panel */
  .tool-options {
    background:var(--surface2); border:1px solid var(--border); border-radius:14px;
    padding:1rem 1.1rem; margin-bottom:.85rem;
    display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:.85rem .9rem;
    align-items:end; position:relative;
  }
  .tool-options::before {
    content:'⚙ Settings'; position:absolute; top:-9px; left:14px;
    background:var(--surface); padding:0 8px; font-size:.65rem; font-weight:800;
    color:var(--text3); letter-spacing:.06em; text-transform:uppercase;
    border-radius:4px;
  }
  .tool-options .opt { display:flex; flex-direction:column; gap:.3rem; min-width:0; }
  .tool-options label { font-size:.72rem; font-weight:800; color:var(--text2); letter-spacing:.02em; }
  .tool-options input[type=number], .tool-options select, .tool-options input[type=text], .tool-options input[type=password] {
    font-family:var(--font); font-size:.83rem; font-weight:600;
    border:1.5px solid var(--border2); border-radius:9px; padding:.5rem .65rem;
    background:#fff; color:var(--text); outline:none; width:100%; transition:all .15s;
  }
  .tool-options input:focus, .tool-options select:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(37,99,235,.12); }
  .tool-options input[type=color] { width:100%; height:38px; border:1.5px solid var(--border2); border-radius:9px; cursor:pointer; padding:3px; background:#fff; }
  .tool-options input[type=range] { accent-color:var(--accent); width:100%; }
  .opt-row-value { font-size:.72rem; font-weight:800; color:var(--accent); }
  .opt-full { grid-column:1/-1; }

  /* Action button */
  .modal-action-btn {
    display:flex; align-items:center; justify-content:center; gap:.45rem;
    width:100%; background:linear-gradient(135deg,var(--accent),#1d4ed8); color:#fff;
    border:none; border-radius:13px; padding:.95rem;
    font-family:var(--font); font-weight:800; font-size:.94rem; cursor:pointer;
    transition:all .18s; box-shadow:0 4px 14px rgba(37,99,235,.3);
  }
  .modal-action-btn:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 8px 22px rgba(37,99,235,.38); }
  .modal-action-btn:active:not(:disabled) { transform:translateY(0); }
  .modal-action-btn:disabled { background:var(--border2); color:var(--text3); cursor:not-allowed; box-shadow:none; }
  .modal-select-btn { display:block; width:100%; background:var(--bg); color:var(--accent); border:1.5px solid var(--accent-md); border-radius:10px; padding:.65rem; font-family:var(--font); font-weight:700; font-size:.84rem; cursor:pointer; transition:all .15s; margin-bottom:.6rem; }
  .modal-select-btn:hover { background:var(--accent-lt); }

  /* Progress */
  .progress-bar-wrap { background:var(--border); border-radius:30px; height:8px; margin:.85rem 0; overflow:hidden; display:none; }
  .progress-bar-wrap.show { display:block; }
  .progress-bar {
    height:100%; border-radius:30px; transition:width .35s cubic-bezier(.4,0,.2,1); width:0%;
    background:linear-gradient(90deg,#10b981,var(--accent),#8b5cf6);
    background-size:200% 100%; animation:progShine 1.6s linear infinite;
  }
  @keyframes progShine { to { background-position:-200% 0; } }

  /* Result */
  /* The finished file sits beside the drop zone, not below it, so the result
     is in view the moment it appears instead of pushing the panel downwards. */
  .drop-row { display:flex; align-items:stretch; gap:.75rem; }
  /* Both start from a zero basis so they divide the row exactly in half,
     whatever each one happens to contain. */
  .drop-row > .drop-zone,
  .drop-row > .result-box {
    flex:1 1 0; min-width:0; width:0; margin:0; border-width:2px;
    padding:1rem .9rem;
  }
  /* Square only while the two share the row. On its own the drop zone spans
     the full width, and a square would make it tall enough to push everything
     below it off the screen. */
  .drop-row:has(> .result-box.show) > .drop-zone,
  .drop-row > .result-box.show { aspect-ratio:1 / 1; }
  .drop-row > .drop-zone { display:flex; flex-direction:column; align-items:center; justify-content:center; }
  .drop-row .download-btn { white-space:nowrap; padding:.6rem .85rem; font-size:.8rem; max-width:100%; }
  .drop-row > .result-box::before { width:38px; height:38px; font-size:1.2rem; margin-bottom:.5rem; }
  .drop-row > .result-box p { font-size:.86rem; margin-bottom:.7rem; }
  .drop-row > .result-box.show {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
  }
  .drop-row > .result-box p { margin-bottom:.85rem; }
  @media (max-width:700px) {
    /* Stacked, the two are full width again — the zero basis and the square
       ratio only make sense while they sit side by side. */
    .drop-row { flex-direction:column; }
    .drop-row > .drop-zone,
    .drop-row > .result-box { flex:0 0 auto; width:auto; aspect-ratio:auto; padding:1.25rem 1rem; }
  }

  .result-box {
    display:none; border-radius:16px; padding:1.25rem 1.25rem; margin-top:.85rem; text-align:center;
    background:linear-gradient(160deg,#ecfdf5,#f0fdf4); border:1.5px solid #a7f3d0;
    animation:resultPop .35s cubic-bezier(.16,1,.3,1);
  }
  @keyframes resultPop { from{opacity:0;transform:scale(.96);} to{opacity:1;transform:none;} }
  .result-box.show { display:block; }
  .result-box::before {
    content:'✓'; display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; margin:0 auto .6rem; border-radius:50%;
    background:var(--success); color:#fff; font-size:1.4rem; font-weight:800;
    box-shadow:0 4px 14px rgba(22,163,74,.35);
  }
  .result-box p { font-weight:800; color:#065f46; margin-bottom:.85rem; font-size:.92rem; }
  .download-btn {
    display:inline-flex; align-items:center; gap:7px;
    background:var(--success); color:#fff; border:none; border-radius:11px;
    padding:.7rem 1.7rem; font-family:var(--font); font-weight:800; font-size:.88rem;
    cursor:pointer; text-decoration:none; transition:all .18s;
    box-shadow:0 4px 14px rgba(22,163,74,.32);
  }
  .download-btn:hover { background:#15803d; transform:translateY(-2px); box-shadow:0 7px 20px rgba(22,163,74,.4); }

  /* Error */
  .error-box {
    display:none; background:#fef2f2; border:1.5px solid #fecaca; border-left:4px solid var(--danger);
    border-radius:12px; padding:.85rem 1rem; margin-top:.75rem;
    font-weight:700; color:#991b1b; font-size:.83rem; text-align:left; line-height:1.55;
  }
  .error-box.show { display:block; animation:shakeX .35s; }
  @keyframes shakeX { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-5px);} 75%{transform:translateX(5px);} }

  /* Page selector */
  .page-selector { display:flex; flex-wrap:wrap; gap:5px; margin:.5rem 0; max-height:150px; overflow-y:auto; }
  .page-chip {
    background:#fff; border:1.5px solid var(--border2); border-radius:8px;
    padding:5px 11px; font-size:.75rem; font-weight:700; color:var(--text2);
    cursor:pointer; transition:all .14s; user-select:none;
  }
  .page-chip:hover { border-color:var(--accent); color:var(--accent); }
  .page-chip.selected { background:var(--accent); color:#fff; border-color:var(--accent); box-shadow:0 2px 8px rgba(37,99,235,.28); }

  /* Trust footer */
  .modal-trust { display:flex; gap:.5rem; justify-content:center; flex-wrap:wrap; margin-top:1rem; padding-top:.9rem; border-top:1px solid var(--border); }
  .trust-chip { display:flex; align-items:center; gap:4px; font-size:.68rem; font-weight:700; color:var(--text3); background:var(--surface2); border:1px solid var(--border); padding:4px 10px; border-radius:20px; }
  .modal-meta { margin-top:.6rem; font-size:.72rem; color:var(--text3); text-align:center; }


  /* ── MERGE SEQUENCE ── */
  .merge-list { display:flex; flex-direction:column; gap:6px; margin:.5rem 0; }
  .merge-item {
    display:flex; align-items:center; gap:10px;
    background:#fff; border:1.5px solid var(--border2); border-radius:10px;
    padding:9px 12px; cursor:grab; user-select:none;
    transition:box-shadow .15s, border-color .15s;
  }
  .merge-item:active { cursor:grabbing; }
  .merge-item.dragging { opacity:.45; box-shadow:0 4px 16px rgba(0,0,0,0.12); border-color:var(--accent); }
  .merge-item.drag-over { border-color:var(--accent); background:var(--accent-lt); }
  .merge-drag-handle { color:var(--text3); font-size:1rem; cursor:grab; flex-shrink:0; }
  .merge-num { width:22px; height:22px; border-radius:50%; background:var(--accent); color:#fff; font-size:.7rem; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .merge-name { flex:1; font-size:.83rem; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .merge-size { font-size:.72rem; color:var(--text3); flex-shrink:0; }
  .merge-del { background:none; border:none; color:var(--text3); cursor:pointer; font-size:.85rem; padding:2px 5px; border-radius:5px; }
  .merge-del:hover { color:#ef4444; background:#fee2e2; }
  .merge-hint { font-size:.72rem; color:var(--text3); text-align:center; padding:4px 0; }

  /* ── NEW CONTENT SECTIONS ── */
  .section-wrap { max-width:1100px; margin:0 auto; padding:0 1.25rem; }
  .section-eyebrow { font-size:.72rem; font-weight:800; color:var(--accent); text-transform:uppercase; letter-spacing:.1em; margin-bottom:.5rem; display:block; }
  .section-heading { font-family:var(--font-head); font-size:clamp(1.5rem,3vw,2rem); color:var(--text); margin-bottom:.5rem; line-height:1.2; }
  .section-sub { font-size:.93rem; color:var(--text2); line-height:1.7; max-width:580px; }
  /* HOW IT WORKS */
  .how-section { padding:4.5rem 1.25rem; background:#fff; border-top:1px solid var(--border); }
  .how-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:2rem; margin-top:2.5rem; }
  .how-card-num { font-family:var(--font-head); font-size:3rem; color:var(--accent-md); line-height:1; margin-bottom:.5rem; }
  .how-card h3 { font-size:.95rem; font-weight:800; color:var(--text); margin-bottom:.35rem; }
  .how-card p { font-size:.83rem; color:var(--text2); line-height:1.65; }
  /* STATS */
  .stats-hero { padding:3.5rem 1.25rem; background:linear-gradient(135deg,#1e3a8a,#2563eb 60%,#3b82f6); }
  .stats-hero-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; max-width:920px; margin:0 auto; }
  .stat-big { text-align:center; }
  .stat-big-num { font-family:var(--font-head); font-size:2.6rem; font-weight:700; color:#fff; display:block; }
  .stat-big-label { font-size:.72rem; color:rgba(255,255,255,.75); font-weight:700; text-transform:uppercase; letter-spacing:.07em; margin-top:.25rem; display:block; }
  /* TOOLS GRID SHOWCASE */
  .showcase-section { padding:4rem 1.25rem; background:var(--surface2); border-top:1px solid var(--border); }
  .showcase-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border); border-radius:var(--radius-lg); overflow:hidden; margin-top:2rem; box-shadow:0 2px 16px rgba(0,0,0,0.05); }
  .showcase-item { background:#fff; padding:1.1rem 1.25rem; transition:background .15s,color .15s; cursor:pointer; text-decoration:none; display:block; }
  .showcase-item:hover { background:var(--accent-lt); }
  .showcase-item-icon { font-size:1.4rem; margin-bottom:.35rem; }
  .showcase-item-name { font-size:.83rem; font-weight:800; color:var(--text); margin-bottom:.15rem; }
  .showcase-item-desc { font-size:.72rem; color:var(--text3); line-height:1.4; }
  .showcase-item:hover .showcase-item-name { color:var(--accent); }
  /* USE CASES */
  .usecases-section { padding:4rem 1.25rem; background:#fff; border-top:1px solid var(--border); }
  .usecases-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(235px,1fr)); gap:1.1rem; margin-top:2rem; }
  .usecase-card { background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.4rem; border-left:4px solid var(--accent); }
  .usecase-icon { font-size:1.75rem; margin-bottom:.6rem; display:block; }
  .usecase-title { font-size:.93rem; font-weight:800; color:var(--text); margin-bottom:.35rem; }
  .usecase-desc { font-size:.8rem; color:var(--text2); line-height:1.6; margin-bottom:.65rem; }
  .usecase-tags { display:flex; flex-wrap:wrap; gap:.3rem; }
  .usecase-tag { font-size:.65rem; font-weight:700; background:#fff; color:var(--text3); padding:2px 8px; border-radius:10px; border:1px solid var(--border2); }
  /* TESTIMONIALS */
  .testimonials-section { padding:4rem 1.25rem; background:var(--surface2); border-top:1px solid var(--border); }
  .testimonials-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:1.25rem; margin-top:2rem; }
  .testimonial-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.5rem; position:relative; overflow:hidden; }
  .testimonial-card::after { content:'"'; font-size:6rem; color:var(--accent-md); position:absolute; bottom:-1.5rem; right:1rem; line-height:1; font-family:Georgia,serif; opacity:.4; }
  .testimonial-stars { color:#f59e0b; font-size:.85rem; letter-spacing:2px; margin-bottom:.75rem; }
  .testimonial-text { font-size:.875rem; color:var(--text); line-height:1.75; margin-bottom:1rem; }
  .testimonial-author { display:flex; align-items:center; gap:.65rem; }
  .testimonial-avatar { width:38px; height:38px; border-radius:50%; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
  .testimonial-info-name { font-size:.82rem; font-weight:800; color:var(--text); }
  .testimonial-info-role { font-size:.7rem; color:var(--text3); }
  /* SEO ARTICLE */
  .seo-section { padding:4rem 1.25rem; background:#fff; border-top:1px solid var(--border); }
  .seo-inner { max-width:860px; margin:0 auto; }
  .seo-section h2 { font-family:var(--font-head); font-size:1.55rem; color:var(--text); margin-bottom:.85rem; }
  .seo-section h3 { font-size:.95rem; font-weight:800; color:var(--text); margin:1.5rem 0 .45rem; }
  .seo-section p { font-size:.88rem; color:var(--text2); line-height:1.85; margin-bottom:.75rem; }
  .seo-tags { display:flex; flex-wrap:wrap; gap:.4rem; margin:1.25rem 0; }
  .seo-tag { background:var(--accent-lt); color:var(--accent); font-size:.7rem; font-weight:700; padding:4px 10px; border-radius:20px; border:1px solid var(--accent-md); }
  .seo-checklist { display:grid; grid-template-columns:repeat(auto-fit,minmax(195px,1fr)); gap:.45rem; margin:.75rem 0; }
  .seo-check { font-size:.81rem; color:var(--text2); display:flex; align-items:flex-start; gap:6px; line-height:1.5; }
  /* FAQ */
  .faq-section { padding:4rem 1.25rem; background:var(--surface2); border-top:1px solid var(--border); }
  .faq-inner { max-width:760px; margin:0 auto; }
  .faq-item { border:1px solid var(--border); border-radius:var(--radius); margin-bottom:.6rem; overflow:hidden; background:#fff; }
  .faq-question { width:100%; display:flex; align-items:center; justify-content:space-between; padding:.95rem 1.2rem; background:none; border:none; cursor:pointer; font-size:.9rem; font-weight:700; color:var(--text); text-align:left; font-family:var(--font); gap:1rem; transition:background .15s,color .15s; }
  .faq-question:hover,.faq-question.open { background:var(--accent-lt); color:var(--accent); }
  .faq-chevron { font-size:.7rem; transition:transform .25s; flex-shrink:0; color:var(--text3); }
  .faq-question.open .faq-chevron { transform:rotate(180deg); color:var(--accent); }
  .faq-answer { display:none; padding:.25rem 1.2rem 1rem; font-size:.85rem; color:var(--text2); line-height:1.8; border-top:1px solid var(--border); }
  .faq-answer.open { display:block; animation:fadeIn .2s; }

  .hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 38px; height: 38px; background: none; border: 1.5px solid var(--border2);
    border-radius: 8px; cursor: pointer; padding: 7px; flex-shrink: 0;
    transition: border-color .15s;
  }
  .hamburger:hover { border-color: var(--accent); }
  .hamburger span {
    display: block; height: 2px; background: var(--text); border-radius: 2px;
    transition: all .25s;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-drawer {
    display: none; position: fixed; inset: 0; z-index: 9999;
  }
  .mobile-drawer.open { display: block; }
  .drawer-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.35);
  }
  .drawer-panel {
    position: absolute; top: 0; left: 0; bottom: 0; width: 280px;
    background: #fff; box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    display: flex; flex-direction: column; overflow-y: auto;
    animation: slideInDrawer .22s ease-out;
  }
  @keyframes slideInDrawer { from{transform:translateX(-100%);} to{transform:translateX(0);} }
  .drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--border);
  }
  .drawer-close {
    background: none; border: none; font-size: 22px; cursor: pointer;
    color: var(--text2); line-height: 1; padding: 4px;
  }
  .drawer-section { padding: 8px 0; border-bottom: 1px solid var(--border); }
  .drawer-section-title {
    font-size: 10px; font-weight: 800; color: var(--text3);
    letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 18px 8px;
  }
  .drawer-link {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 18px; font-size: .9rem; font-weight: 600;
    color: var(--text); text-decoration: none;
    transition: background .15s, color .15s; cursor: pointer;
    border: none; background: none; width: 100%; text-align: left;
  }
  .drawer-link:hover { background: var(--accent-lt); color: var(--accent); }
  .drawer-footer { padding: 18px; display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
  @media (max-width: 700px) {
    .hamburger { display: flex; }
    .nav-links { display: none !important; }
    .btn-nav-outline { display: none !important; }
    .btn-nav-solid { font-size: .78rem; padding: .42rem .8rem; }
  }

  @media (max-width: 640px) {
    /* ── NAV ── */
    .nav-inner { height: 52px; padding: 0 .85rem; gap: .5rem; }
    .logo { font-size: 1.15rem; gap: 5px; }
    .logo-icon { width: 28px; height: 28px; }
    .logo-icon img { width: 28px !important; height: 28px !important; }
    .nav-links { display: none; }
    .btn-nav-outline { display: none; }
    .btn-nav-solid { font-size: .75rem; padding: .38rem .7rem; }
    .lang-select { font-size: .72rem; padding: 4px 22px 4px 7px; }

    /* ── HERO ── */
    .hero { padding: 1.75rem .9rem 2rem; }
    /* Hero */
    .hero { padding: 2.5rem 1rem 3rem; }
    .hero h1 { font-size: 1.9rem; }
    .hero-search { max-width: 100%; }
    .hero-search input { font-size: .85rem; padding: .75rem .9rem; }
    .hero-search button { padding: 0 1rem; font-size: .82rem; }
    .hero-inner { padding: 1rem 0; }
    .hero-badge { font-size: .68rem; padding: 3px 10px; margin-bottom: .75rem; }
    .hero h1 { font-size: 1.7rem; line-height: 1.15; margin-bottom: .6rem; }
    .hero p {
      font-size: .88rem; margin-bottom: 1.25rem;
      padding: 5px 10px;
    }
    .hero-search { max-width: 100%; border-radius: 8px; }
    .hero-search input { font-size: .82rem; padding: .65rem .85rem; }
    .hero-search button { padding: 0 .9rem; font-size: .8rem; }

    /* ── STATS ── */
    .stats-bar { padding: .75rem 1rem; }
    .stats-inner { gap: 1rem; flex-wrap: nowrap; justify-content: space-around; }
    .stat-num { font-size: 1.2rem; }
    .stat-label { font-size: .6rem; }

    /* ── TABS ── */
    .tabs-section { padding: 1.1rem .85rem 2rem; }
    .tab-bar { gap: 4px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
    .tab-btn { font-size: .72rem; padding: .4rem .55rem; min-height: 34px; white-space: nowrap; flex: 0 0 auto; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
    .tool-card { padding: .7rem .6rem; }
    .tool-icon { font-size: 1.4rem; }
    .tool-name { font-size: .75rem; }
    .convert-grid { grid-template-columns: 1fr; }

    /* ── FEATURES ── */
    .features-section { padding: 2rem .9rem; }
    .features-title { font-size: 1.35rem; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .feature-card { padding: .9rem .75rem; }

    /* ── FOOTER ── */
    .footer-top { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .footer-bottom p { font-size: .68rem; }

    /* ── AD ── */
    .ad-unit { padding: 4px 0; }
  }

  @media (max-width: 380px) {
    .hero h1 { font-size: 1.45rem; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
  }

  /* ── LANGUAGE DROPDOWN ── */
  .lang-selector { position: relative; }
  .lang-current {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 8px; border: 1.5px solid var(--border2);
    background: #fff; cursor: pointer; font-size: .82rem; font-weight: 700;
    color: var(--text); transition: border-color .15s; white-space: nowrap;
  }
  .lang-current:hover { border-color: var(--accent); }
  .lang-current .lang-flag { font-size: 1.15rem; line-height: 1; }
  .lang-arrow { font-size: .65rem; color: var(--text3); margin-left: 1px; }
  .lang-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border: 1.5px solid var(--border2); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 9999;
    min-width: 155px; overflow: hidden; padding: 4px 0;
  }
  .lang-menu.open { display: block; }
  .lang-option {
    display: flex; align-items: center; gap: 9px;
    width: 100%; padding: 9px 14px; border: none; background: none;
    font-size: .85rem; font-weight: 600; color: var(--text);
    cursor: pointer; text-align: left; transition: background .12s;
  }
  .lang-option .lang-flag { font-size: 1.2rem; line-height: 1; }
  .lang-option:hover { background: var(--accent-lt); color: var(--accent); }
  .lang-select { display: none; } /* hide any leftover native selects */

  /* ── AUTH MODAL ── */
  .auth-modal { max-width: 400px; padding: 2rem; }
  .auth-header { text-align: center; margin-bottom: 1.5rem; }
  .auth-title { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); margin-bottom: .25rem; }
  .auth-subtitle { font-size: .82rem; color: var(--text2); line-height: 1.5; }
  .auth-field { margin-bottom: .85rem; }
  .auth-field label { display: block; font-size: .78rem; font-weight: 700; color: var(--text2); margin-bottom: .3rem; }
  .auth-field input { width: 100%; border: 1.5px solid var(--border2); border-radius: 8px; padding: .7rem .9rem; font-family: var(--font); font-size: .9rem; color: var(--text); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
  .auth-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
  .auth-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: .55rem .85rem; font-size: .8rem; font-weight: 600; color: var(--danger); margin-bottom: .65rem; }
  .auth-terms { font-size: .72rem; color: var(--text3); text-align: center; margin-top: .85rem; line-height: 1.5; }
  .auth-switch { text-align: center; font-size: .8rem; color: var(--text2); margin-top: .85rem; }
  .auth-link { color: var(--accent); font-weight: 700; text-decoration: none; cursor: pointer; }
  .auth-link:hover { text-decoration: underline; }
  .auth-sent-msg { display: flex; align-items: center; gap: .85rem; background: var(--accent-lt); border: 1px solid var(--accent-md); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.25rem; }
  .auth-sent-icon { font-size: 1.75rem; flex-shrink: 0; }
  .auth-sent-msg p { font-size: .85rem; color: var(--text2); line-height: 1.5; margin: 0; }
  .auth-sent-msg strong { color: var(--text); font-weight: 700; }
  /* 6-box code input */
  .code-inputs { display: flex; gap: .5rem; justify-content: center; margin-top: .35rem; }
  .code-digit { width: 44px; height: 52px; border: 2px solid var(--border2); border-radius: 10px; text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--text); background: var(--surface); font-family: var(--font); outline: none; transition: border-color .15s, box-shadow .15s; caret-color: var(--accent); }
  .code-digit:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
  .code-digit.filled { border-color: var(--accent); background: var(--accent-lt); }

  /* ── PWA INSTALL BUTTON ── */
  .install-btn {
    display: none; align-items: center; gap: 6px;
    padding: .38rem .85rem; border-radius: 8px; font-size: .78rem; font-weight: 700;
    background: #10b981; color: #fff; border: none; cursor: pointer;
    transition: background .15s; white-space: nowrap; flex-shrink: 0;
  }
  .install-btn:hover { background: #059669; }
  .install-btn.visible { display: flex; }
  .install-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #1e293b; color: #fff; padding: 14px 22px; border-radius: 14px;
    font-size: .88rem; font-weight: 600; z-index: 9999; display: none;
    align-items: center; gap: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    white-space: nowrap;
  }
  .install-toast.show { display: flex; }
  .install-toast button {
    background: #2563eb; color: #fff; border: none; border-radius: 8px;
    padding: 6px 14px; font-size: .82rem; font-weight: 700; cursor: pointer;
  }
  .install-toast .dismiss { background: transparent; color: #94a3b8; font-size: 1rem; padding: 4px 6px; }

  /* ── PROFILE UI ── */
  .profile-tabs {
    display: flex; gap: 4px; background: var(--surface);
    border-radius: 10px; padding: 4px; margin-bottom: 1rem;
  }
  .profile-tab {
    flex: 1; padding: 7px 4px; border: none; background: none;
    border-radius: 7px; font-size: .78rem; font-weight: 700;
    color: var(--text2); cursor: pointer; transition: all .15s;
  }
  .profile-tab.active { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
  .profile-panel { animation: fadeIn .2s ease; }
  @keyframes fadeIn { from{opacity:0;transform:translateY(4px);} to{opacity:1;transform:translateY(0);} }
  .profile-avatar {
    width: 72px; height: 72px; border-radius: 50%; background: var(--accent-lt);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin: 0 auto .6rem; border: 3px solid var(--accent);
  }
  .profile-name { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: .2rem; }
  .profile-email { font-size: .82rem; color: var(--text2); margin-bottom: .5rem; }
  .profile-badge {
    display: inline-block; background: var(--accent-lt); color: var(--accent);
    font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 20px;
    letter-spacing: .03em; margin-bottom: .75rem;
  }
  .profile-stats {
    display: flex; gap: 8px; background: var(--surface);
    border-radius: 12px; padding: 12px; margin-bottom: .5rem;
  }
  .profile-stat { flex: 1; text-align: center; }
  .profile-stat-num { display: block; font-size: 1.3rem; font-weight: 900; color: var(--accent); }
  .profile-stat-label { font-size: .65rem; color: var(--text3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  /* History */
  .history-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: var(--surface); border-radius: 10px;
    margin-bottom: 6px; border-left: 3px solid var(--accent);
  }
  .history-icon { font-size: 1.3rem; flex-shrink: 0; }
  .history-info { flex: 1; min-width: 0; }
  .history-tool { font-size: .85rem; font-weight: 700; color: var(--text); }
  .history-date { font-size: .72rem; color: var(--text3); margin-top: 1px; }
  .history-file { font-size: .72rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .history-empty { text-align: center; padding: 2rem 0; color: var(--text3); font-size: .88rem; }

  .ad-unit {
    width: 100%; overflow: hidden; text-align: center;
    background: #f9fafb; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 8px 0; position: relative;
  }
  .ad-unit::before {
    content: 'Advertisement';
    display: block; font-size: 9px; color: #9ca3af; letter-spacing: .06em;
    text-transform: uppercase; margin-bottom: 4px;
  }
  .ad-unit ins { display: block; }
  /* Hide Google Translate top bar */
  .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
  body { top: 0 !important; }
  .skiptranslate { display: none !important; }
/* ═══════════════════════════════════════════════════════════
   VISUAL LAYER — depth, colour and motion
   ═══════════════════════════════════════════════════════════ */

/* ── Hero: soft colour mesh + dot grid ── */
.hero {
  position: relative;
  overflow: hidden;
  background: #fbfcff;
  padding: 3.5rem 1.25rem 2.75rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46rem 26rem at 12% -8%,  rgba(37,99,235,.16),  transparent 60%),
    radial-gradient(38rem 24rem at 92% 4%,   rgba(168,85,247,.14), transparent 62%),
    radial-gradient(34rem 22rem at 72% 104%, rgba(13,148,136,.13), transparent 60%),
    radial-gradient(30rem 20rem at 4% 96%,   rgba(249,115,22,.10), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(15,23,42,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 76% 66% at 50% 42%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 76% 66% at 50% 42%, #000 35%, transparent 78%);
  opacity: .55;
}
.hero-inner { position: relative; z-index: 2; }

/* Floating tool badges — decorative, edge-anchored, never behind text */
.hero-float { position: absolute; z-index: 1; pointer-events: none; user-select: none; }
.hero-float span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.05);
  border-radius: 14px; padding: .55rem .95rem;
  font-size: .78rem; font-weight: 800; color: #334155; white-space: nowrap;
}
.hf-1 { top: 16%;  left: 4%;   animation: drift 7s ease-in-out infinite; }
.hf-2 { top: 60%;  left: 7%;   animation: drift 9s ease-in-out infinite .8s; }
.hf-3 { top: 20%;  right: 5%;  animation: drift 8s ease-in-out infinite .4s; }
.hf-4 { top: 64%;  right: 8%;  animation: drift 10s ease-in-out infinite 1.4s; }
@keyframes drift { 0%,100%{transform:translateY(0) rotate(-2deg);} 50%{transform:translateY(-14px) rotate(2deg);} }
/* Badges start colliding with the headline just above the old 1080px cutoff —
   hide them until there is genuinely clear space either side of the text column. */
@media (max-width: 1240px) { .hero-float { display: none; } }

.hero-badge {
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(37,99,235,.12);
}
.hero h1 { letter-spacing: -.02em; }
.hero h1 span {
  background: linear-gradient(105deg, #2563eb, #7c3aed 55%, #0d9488);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-search { box-shadow: 0 12px 34px rgba(37,99,235,.14), 0 2px 6px rgba(15,23,42,.05); }
.hero-chip { backdrop-filter: blur(6px); background: rgba(255,255,255,.75); }
.hero-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,99,235,.16); }

/* The nav is sticky, so scrollIntoView tucks the section heading underneath it.
   scroll-margin-top reserves the nav height plus a little breathing room. */
#toolsSection { scroll-margin-top: 78px; }
html { scroll-behavior: smooth; }

/* ── TWO-PANE MODAL: previews left, controls right ── */
.modal-panes { display: flex; gap: 0; align-items: stretch; }
.control-pane { flex: 0 0 auto; width: 100%; min-width: 0; }

.preview-pane {
  flex: 1 1 auto; min-width: 0;
  border-right: 1px solid var(--border);
  padding-right: 1.25rem; margin-right: 1.25rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.preview-pane[hidden] { display: none; }
.preview-pane-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; font-weight: 800; color: var(--text3);
  text-transform: uppercase; letter-spacing: .05em;
}
.preview-clear {
  background: none; border: none; cursor: pointer;
  font-size: .68rem; font-weight: 800; color: var(--text3);
  text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 6px; font-family: var(--font);
  transition: color .15s, background .15s;
}
.preview-clear:hover { color: var(--danger); background: #fef2f2; }

/* Two panes only once files exist; otherwise the control pane is full width */
.modal.has-files .control-pane { width: 430px; }

@media (max-width: 860px) {
  /* Stack: previews above the controls, no side-by-side */
  .modal-panes { flex-direction: column; }
  .preview-pane {
    border-right: none; padding-right: 0; margin-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: .85rem; margin-bottom: .95rem;
  }
  .modal.has-files .control-pane { width: 100%; }
}

/* ── FILE PREVIEW CARDS ──
   Horizontal row of large page thumbnails with the filename beneath,
   scrolling sideways when there are more files than fit. */
.file-list {
  display: flex; flex-direction: row; flex-wrap: wrap;
  justify-content: flex-start; align-content: flex-start;
  gap: .65rem; margin: 0;
  padding: .1rem .1rem .25rem;
}
.file-list:empty { display: none; }

.file-item {
  flex: 0 0 auto; width: 132px;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: .7rem .55rem .6rem; position: relative;
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
  transition: box-shadow .18s, border-color .18s, transform .18s;
  animation: fileIn .22s ease;
}
.file-item:hover { border-color: var(--accent-md); box-shadow: 0 6px 18px rgba(15,23,42,.10); transform: translateY(-2px); }

/* Page-shaped thumbnail (A4-ish 1:1.3) */
.fi-thumb {
  width: 100%; aspect-ratio: 1 / 1.3; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(15,23,42,.10); position: relative;
}
.fi-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.fi-thumb-fallback { font-size: 2rem; line-height: 1; opacity: .55; }
.fi-thumb.is-loading {
  background: linear-gradient(100deg,#f1f5f9 30%,#e2e8f0 50%,#f1f5f9 70%);
  background-size: 200% 100%; animation: thumbShimmer 1.1s linear infinite;
}
@keyframes thumbShimmer { to { background-position: -200% 0; } }

.fi-meta { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.fi-name {
  font-size: .72rem; font-weight: 700; color: var(--text); line-height: 1.3;
  width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.fi-sub { font-size: .65rem; color: var(--text3); font-weight: 700; }

/* Remove sits on the card corner rather than taking a row slot */
.fi-remove {
  position: absolute; top: 5px; right: 5px; z-index: 2;
  width: 22px; height: 22px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.94); border: 1px solid var(--border);
  color: var(--text2); font-size: .7rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, background .15s, color .15s;
  box-shadow: 0 1px 4px rgba(15,23,42,.14);
}
.file-item:hover .fi-remove, .fi-remove:focus-visible { opacity: 1; }
.fi-remove:hover { background: #fee2e2; color: var(--danger); border-color: #fca5a5; }
@media (hover: none) { .fi-remove { opacity: 1; } }

/* ── MERGE: same cards, plus order badge and drag ── */
.merge-list {
  display: flex; flex-direction: row; flex-wrap: wrap;
  justify-content: flex-start; align-content: flex-start;
  gap: .65rem; padding: .1rem .1rem .25rem;
}
.merge-item {
  flex: 0 0 auto; width: 132px;
  flex-direction: column; align-items: center; gap: .5rem;
  padding: .7rem .55rem .6rem; border-radius: 14px;
  position: relative;
}
.merge-thumb { width: 100%; aspect-ratio: 1 / 1.3; border-radius: 8px; }
.merge-meta { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.merge-meta .merge-name {
  font-size: .72rem; line-height: 1.3; width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; white-space: normal;
}
.merge-meta .merge-size { font-size: .65rem; }
/* Order badge, top-left */
.merge-item .merge-num {
  position: absolute; top: 5px; left: 5px; z-index: 2;
  width: 22px; height: 22px; box-shadow: 0 1px 4px rgba(37,99,235,.35);
}
.merge-item .merge-drag-handle {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  font-size: .8rem; opacity: .35; z-index: 2;
}
.merge-item .merge-del {
  position: absolute; top: 5px; right: 5px; z-index: 2;
  width: 22px; height: 22px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.94); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.merge-item:hover .merge-del { opacity: 1; }
@media (hover: none) { .merge-item .merge-del { opacity: 1; } }

@media (max-width: 640px) {
  .file-item, .merge-item { width: 108px; }
  .fi-name, .merge-meta .merge-name { font-size: .68rem; }
}

/* Ad band between the tool grid and "Simple & Fast" */
.ad-unit-mid {
  padding: 14px 1.25rem 16px;
  min-height: 108px;
  background: #f8fafc;
}
.ad-unit-mid ins { max-width: 1200px; margin: 0 auto; min-height: 90px; }
/* The next section carries its own top border — don't stack two rules */
.ad-unit-mid + .how-section { border-top: none; }
@media (max-width: 640px) {
  .ad-unit-mid { padding: 10px 1rem 12px; min-height: 86px; }
  .ad-unit-mid ins { min-height: 70px; }
}

/* Modal ad strip — a separate leaderboard beneath the tool window, never inside it.
   The card stays 580px; the ad breaks out to roughly 3x that (capped by viewport). */
.modal-stack {
  width: 100%; margin: auto;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.modal-stack .modal {
  margin: 0;
  width: var(--modal-w, 580px);
  max-width: 100%;
  transition: width .28s cubic-bezier(.16,1,.3,1);
}
.modal-ad-bar {
  width: 100%; max-width: min(1740px, 100%);
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 14px;
  padding: .5rem .75rem .6rem; text-align: center;
  box-shadow: 0 8px 24px rgba(15,23,42,.14);
  min-height: 76px;
}
.modal-ad-tag {
  display: block; font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text3); font-weight: 700; margin-bottom: 4px;
}
.modal-ad-slot { width: 100%; height: 60px; overflow: hidden; }
@media (max-width: 640px) {
  .modal-stack { gap: .5rem; }
  .modal-ad-bar { min-height: 66px; padding: .4rem .5rem .5rem; }
  .modal-ad-slot { height: 50px; }
}

/* "More…" is a navigation action, not a seventh tool — give it filled
   treatment so it reads as the way out of the shortcut row. */
.hero-chip-more {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(37,99,235,.28);
}
.hero-chip-more span { display: inline-block; transition: transform .2s; }
.hero-chip-more:hover {
  background: var(--accent-h) !important;
  border-color: var(--accent-h) !important;
  box-shadow: 0 6px 18px rgba(37,99,235,.36);
}
.hero-chip-more:hover span { transform: translateY(2px); }

/* ── Stats bar: dark band with sheen ── */
.stats-bar {
  background: linear-gradient(100deg, #0f172a, #1e293b 45%, #1e3a8a);
  border: none; padding: 1.5rem 1.25rem; position: relative; overflow: hidden;
}
.stats-bar::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(30rem 12rem at 50% -40%, rgba(96,165,250,.30), transparent 70%);
  pointer-events: none;
}
.stats-inner { position: relative; z-index: 1; gap: 3.5rem; }
.stats-bar .stat-num { color: #fff; font-size: 1.75rem; }
.stats-bar .stat-label { color: rgba(255,255,255,.62); }

/* ── Tool cards: colour reveal on hover ── */
.tool-card { position: relative; overflow: hidden; background: #fff; }
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,23,42,.11); }
.tool-icon { transition: transform .28s cubic-bezier(.16,1,.3,1); }
.tool-card:hover .tool-icon { transform: scale(1.1) rotate(-5deg); }

/* ── Section rhythm: alternate tinted backgrounds ── */
.how-section     { background: #fff; }
.showcase-section{ background: linear-gradient(180deg,#f8fafc,#eef4ff); }
.usecases-section{ background: #fff; }
.testimonials-section { background: linear-gradient(180deg,#fdfbff,#f5f3ff); }
.seo-section     { background: #fff; }
.faq-section     { background: linear-gradient(180deg,#f8fafc,#ffffff); }
.features-section{ background: linear-gradient(180deg,#f0f7ff,#f8fafc); }

/* Eyebrow gets a small rule so headings feel typeset, not floated */
.section-eyebrow { display: inline-flex; align-items: center; gap: .5rem; }
.section-eyebrow::before {
  content: ''; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ── How-it-works: numerals as design element ── */
.how-card { position: relative; padding-top: .25rem; }
.how-card-num {
  background: linear-gradient(160deg, var(--accent), #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9; font-size: 3.25rem; letter-spacing: -.03em;
}

/* ── Cards get lift everywhere ── */
.usecase-card, .testimonial-card, .feature-card {
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s, border-color .22s;
}
.usecase-card:hover, .testimonial-card:hover {
  transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,23,42,.09);
}
.showcase-item { position: relative; }
.showcase-item::after {
  content: '→'; position: absolute; right: 1.1rem; top: 50%;
  transform: translate(-6px,-50%); opacity: 0; color: var(--accent);
  font-weight: 800; transition: all .22s;
}
.showcase-item:hover::after { opacity: 1; transform: translate(0,-50%); }

/* ── Premium banner: richer gradient ── */
.banner {
  background: linear-gradient(120deg,#1e3a8a,#2563eb 42%,#7c3aed);
  position: relative; overflow: hidden;
}
.banner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(24rem 14rem at 12% 0%, rgba(255,255,255,.20), transparent 65%),
    radial-gradient(20rem 12rem at 88% 100%, rgba(255,255,255,.13), transparent 65%);
}
.banner > * { position: relative; z-index: 1; }

/* ── FAQ polish ── */
.faq-item { transition: box-shadow .2s, border-color .2s; }
.faq-item:has(.faq-question.open) { border-color: var(--accent-md); box-shadow: 0 6px 20px rgba(37,99,235,.10); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

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

/* ── Focus visibility ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(37,99,235,.45); outline-offset: 2px; border-radius: 8px;
}

/* Scrollable tab bar: `justify-content:center` clips the first tab when the
   row overflows, because scrollLeft cannot go negative. Start from the left
   and only centre once everything fits. */
.tab-bar {
  justify-content: flex-start;
  scroll-snap-type: x proximity;
  scroll-padding-left: .35rem;
}
.tab-btn { scroll-snap-align: start; }
@media (min-width: 900px) {
  .tab-bar { justify-content: center; }
}

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding: 3.25rem 1rem 2.75rem; }
  .stats-inner { gap: 1.25rem; }
  .stats-bar .stat-num { font-size: 1.3rem; }

  /* Section rhythm tightens up */
  .how-section, .showcase-section, .usecases-section,
  .testimonials-section, .seo-section, .faq-section { padding: 2.75rem 1rem; }

  /* 4-up stat band would overflow at 390px — go 2-up */
  .stats-hero { padding: 2.25rem 1rem; }
  .stats-hero-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .stat-big-num { font-size: 1.9rem; }
  .stat-big-label { font-size: .64rem; letter-spacing: .05em; }

  .showcase-grid { grid-template-columns: 1fr; }
  .how-grid { gap: 1.5rem; }
  .how-card-num { font-size: 2.5rem; }
  .usecases-grid, .testimonials-grid { gap: .8rem; }
  .section-heading { font-size: 1.35rem; }
  .seo-checklist { grid-template-columns: 1fr 1fr; }

  /* Modal goes near full-bleed on small screens */
  .modal-overlay { padding: .5rem; }
  .modal { border-radius: 18px; }
  .modal-head { padding: 1.15rem 1.15rem 1rem; gap: .7rem; }
  .modal-tool-icon { width: 44px; height: 44px; font-size: 1.35rem; border-radius: 13px; }
  .modal-head h2 { font-size: 1.08rem; }
  .modal-head p { font-size: .74rem; }
  .modal-body { padding: 1.1rem 1.15rem 1.25rem; }
  .modal-steps { gap: .25rem; }
  .mstep { font-size: .66rem; gap: .3rem; }
  .drop-zone { padding: 1.5rem 1rem; }
  .tool-options { grid-template-columns: 1fr; padding: .9rem; }
  .modal-trust { gap: .35rem; }
  .trust-chip { font-size: .63rem; padding: 3px 8px; }
}

@media (max-width: 380px) {
  .seo-checklist { grid-template-columns: 1fr; }
  .stat-big-num { font-size: 1.65rem; }
}

/* ── multi-page chrome ──────────────────────────────────────────── */
.site-head { position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px); border-bottom:1px solid #e8eaf0; }
.site-head-inner, .site-foot-inner { max-width:1120px; margin:0 auto; padding:.75rem 1.25rem;
  display:flex; align-items:center; gap:1.25rem; flex-wrap:wrap; }
.site-logo { font-family:var(--font-display,inherit); font-weight:800; font-size:1.15rem;
  color:var(--text); text-decoration:none; display:flex; align-items:center; gap:.4rem; }
.site-nav { display:flex; gap:.25rem; flex-wrap:wrap; margin-left:auto; }
.site-nav a { padding:.45rem .7rem; border-radius:9px; font-size:.84rem; font-weight:700;
  color:var(--text2,#555); text-decoration:none; white-space:nowrap; }
.site-nav a:hover { background:#eef2ff; color:var(--primary,#2563eb); }
.site-nav a.active { background:#2563eb; color:#fff; }

.tool-page { max-width:1120px; margin:0 auto; padding:2rem 1.25rem 3rem; }
.tool-hero { text-align:center; margin-bottom:1.5rem; }
.tool-hero .tool-emoji { font-size:3rem; line-height:1; }
.tool-hero h1 { font-family:var(--font-display,inherit); font-size:clamp(1.7rem,4vw,2.5rem);
  font-weight:800; margin:.4rem 0 .5rem; color:var(--text); }
.tool-hero p { max-width:620px; margin:0 auto; color:var(--text2,#555); font-size:1rem; line-height:1.65; }
#inlineTool { margin:0 auto 2.5rem; }

.tool-section { margin:2.5rem auto 0; max-width:820px; }
.tool-section h2 { font-family:var(--font-display,inherit); font-size:1.4rem; font-weight:800;
  margin-bottom:1rem; color:var(--text); }
.how-steps { list-style:none; counter-reset:s; display:grid; gap:.9rem; padding:0; }
.how-steps li { counter-increment:s; display:flex; gap:.85rem; align-items:flex-start;
  background:#f8fafc; border:1px solid #e8eaf0; border-radius:13px; padding:.9rem 1rem; }
.how-steps li::before { content:counter(s); flex:0 0 28px; height:28px; border-radius:50%;
  background:#2563eb; color:#fff; font-weight:800; font-size:.85rem;
  display:flex; align-items:center; justify-content:center; }
.how-steps h3 { font-size:.95rem; font-weight:800; margin:0 0 .15rem; color:var(--text); }
.how-steps p { margin:0; font-size:.88rem; color:var(--text2,#555); line-height:1.55; }

.faq-list details { border:1px solid #e8eaf0; border-radius:13px; padding:.85rem 1rem;
  margin-bottom:.6rem; background:#fff; }
.faq-list summary { font-weight:800; font-size:.93rem; cursor:pointer; color:var(--text); }
.faq-list p { margin:.6rem 0 0; font-size:.89rem; color:var(--text2,#555); line-height:1.6; }

.more-tools { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:.7rem; }
.more-tools a { display:flex; align-items:center; gap:.5rem; padding:.8rem .9rem;
  border:1px solid #e8eaf0; border-radius:13px; background:#fff; text-decoration:none;
  font-weight:700; font-size:.88rem; color:var(--text); transition:all .16s; }
.more-tools a:hover { border-color:#2563eb; transform:translateY(-2px); box-shadow:0 6px 18px rgba(37,99,235,.1); }

.site-foot { margin-top:3rem; border-top:1px solid #e8eaf0; background:#f8fafc; }
.site-foot-inner { flex-direction:column; align-items:flex-start; gap:.6rem; padding:2rem 1.25rem; }
.foot-links { display:flex; flex-wrap:wrap; gap:.25rem .9rem; }
.foot-links a { font-size:.85rem; color:var(--text2,#555); text-decoration:none; font-weight:600; }
.foot-links a:hover { color:var(--primary,#2563eb); }
.foot-legal { font-size:.8rem; color:var(--text3,#888); }
@media (max-width:700px) {
  .site-nav { width:100%; margin-left:0; overflow-x:auto; }
  .tool-page { padding:1.25rem 1rem 2rem; }
}
