/* ==========================================================================
   House of Convert — Seoz-style light theme
   Purple / orange accents, navy headings, Outfit + Inter + DM Sans.
   ========================================================================== */
:root {
  --theme: #6c57d2;
  --theme-dark: #5843c0;
  --theme-2: #ff792e;
  --theme-2-text: #c2410c; /* orange for small text: passes WCAG AA contrast */
  --header: #003566;
  --body: #656565;
  --border: #e6efff;
  --line: rgba(0, 53, 102, 0.12);
  --cream: #fff9ed;
  --lavender: #f0eefb;
  --navy: #003263;
  --dark: #1c1c1c;
  --footer: #2f304c;
  --footer-bottom: #44455e;
  --shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 53, 102, 0.12);
  --radius: 10px;

  /* Legacy names still referenced by admin.css, inline view styles and JS */
  --bg-0: #f7f8fc;
  --bg-1: #ffffff;
  --glass: #ffffff;
  --glass-strong: #f5f3fd;
  --glass-border: var(--line);
  --text: #0e2a47;
  --muted: #656565;
  --red: #f05454;
  --red-soft: #e04848;
  --blue: var(--theme);
  --gold: var(--theme-2);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.75; color: var(--body); background: #fff;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; color: var(--header); margin: 0; font-weight: 600; line-height: 1.3; }
a { color: inherit; text-decoration: none; transition: color .3s ease; }
img { max-width: 100%; height: auto; }
p { margin: 0; }
.icon-svg { vertical-align: -3px; flex-shrink: 0; display: inline-block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 110px 0; }
.section { padding: 80px 0; }
.bg-cream { background: var(--cream); }
.bg-lavender { background: var(--lavender); }
.text-center { text-align: center; }

/* Card surface (was the dark "glass" utility) */
.glass { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Section title ---------- */
.section-title { margin-bottom: 40px; position: relative; z-index: 2; }
.section-title .sub { display: inline-block; font-size: 18px; color: #9a3412; margin-bottom: 6px; }
.section-title h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.3; }
.section-title p { margin-top: 14px; max-width: 640px; }
.section-title.text-center p { margin-left: auto; margin-right: auto; }
.section-title.light h2 { color: #fff; }
.section-title.light .sub { color: #ffb48a; } /* light orange: AA contrast on the dark navy sections */
.section-title.light p { color: rgba(255,255,255,.8); }
.section-title-area { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.section-title-area .section-title { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.theme-btn {
  position: relative; z-index: 1; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 26px;
  background: var(--theme); color: #fff; border: 1px solid var(--theme); border-radius: 6px;
  padding: 5px 5px 5px 28px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; line-height: 1;
  cursor: pointer; transition: color .3s ease, border-color .3s ease;
}
.theme-btn .arrow {
  width: 46px; height: 46px; border-radius: 6px; background: #fff; color: var(--theme);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .4s ease, color .4s ease;
}
.theme-btn::before, .theme-btn::after {
  content: ''; position: absolute; width: 0; height: 50%; z-index: -1; background: var(--header);
  transition: width .3s cubic-bezier(.785,.135,.15,.86);
}
.theme-btn::before { top: 0; left: 0; }
.theme-btn::after { bottom: 0; right: 0; }
.theme-btn:hover::before, .theme-btn:hover::after { width: 100%; }
.theme-btn:hover { border-color: var(--header); color: #fff; }
.theme-btn:hover .arrow { background: var(--theme); color: #fff; }
.theme-btn.style-2 { background: transparent; border-color: var(--theme-2); color: var(--theme-2-text); }
.theme-btn.style-2 .arrow { background: var(--theme-2); color: #fff; }
.theme-btn.style-2::before, .theme-btn.style-2::after { background: var(--theme-2); }
.theme-btn.style-2:hover { color: #fff; }
.theme-btn.style-2:hover .arrow { background: #fff; color: var(--theme-2); }
.theme-btn.outline { background: #fff; color: var(--theme); }
.theme-btn.outline .arrow { background: var(--theme); color: #fff; }
.theme-btn.outline:hover { color: #fff; }
.theme-btn.white { background: #fff; border-color: #fff; color: var(--header); }
.theme-btn.white .arrow { background: var(--theme); color: #fff; }
.theme-btn.white:hover { color: #fff; }
.theme-btn.orange { background: var(--theme-2-text); border-color: var(--theme-2-text); }
.theme-btn.orange .arrow { color: var(--theme-2-text); }
.theme-btn.block { width: 100%; justify-content: space-between; }

.link-btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 15px; color: var(--theme); }
.link-btn:hover { color: var(--theme-2); }
.link-btn .icon-svg { transition: transform .3s ease; }
.link-btn:hover .icon-svg { transform: translateX(4px); }

/* Generic buttons used by tool/devtool UIs and admin (JS-generated markup) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.btn-primary, .btn-primary.btn-red, .btn-primary.btn-blue, .btn-primary.btn-teal { background: var(--theme); color: #fff; border-color: var(--theme); box-shadow: 0 10px 24px rgba(108, 87, 210, .25); }
.btn-primary:hover { background: var(--header); border-color: var(--header); color: #fff; transform: translateY(-2px); }
.btn-primary.btn-blue { background: var(--theme-2); border-color: var(--theme-2); box-shadow: 0 10px 24px rgba(255, 121, 46, .25); }
.btn-primary.btn-blue:hover { background: var(--header); border-color: var(--header); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--header); }
.btn-ghost:hover { border-color: var(--theme); color: var(--theme); }
.btn:disabled, .btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- Top bar ---------- */
.header-top { background: var(--header); color: rgba(255,255,255,.85); font-size: 14px; }
.header-top .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; }
.header-top-list { display: flex; gap: 26px; flex-wrap: wrap; }
.header-top-list span { display: inline-flex; align-items: center; gap: 8px; }
.header-top-list .icon-svg { color: var(--theme-2); }
.header-top-list .hl { color: var(--theme-2); font-weight: 600; }
.social-icon { display: flex; align-items: center; gap: 16px; }
.social-icon a { display: inline-flex; color: inherit; font-weight: 700; font-size: 13px; font-family: 'DM Sans', sans-serif; }
.social-icon a:hover { color: var(--theme-2); }

/* ---------- Header ---------- */
/* Like the template, the header bar gets a wider container than page content. */
header.site-header .container, .header-top .container { max-width: 1480px; }
header.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .3s ease; }
header.site-header.sticky { box-shadow: 0 10px 30px rgba(0, 53, 102, .08); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 40px; width: 40px; }
.brand .brand-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 26px; color: var(--header); letter-spacing: -.02em; line-height: 1; }
.brand .brand-name b { color: var(--theme); font-weight: 700; }

nav.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
nav.main-nav > .nav-item { position: relative; }
nav.main-nav > .nav-item > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 30px 12px;
  font-size: 16px; font-weight: 500; color: var(--header); white-space: nowrap;
}
nav.main-nav > .nav-item > a .chev { display: inline-flex; transition: transform .3s ease; }
nav.main-nav > .nav-item:hover > a, nav.main-nav > .nav-item > a.active { color: var(--theme-2); }
nav.main-nav > .nav-item:hover > a .chev { transform: rotate(180deg); }
.nav-item a.no-link { cursor: default; }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: #fff; border-radius: 0 0 8px 8px; border-top: 3px solid var(--theme);
  box-shadow: 0 0 40px rgba(11, 13, 17, .1); padding: 18px 14px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
  display: grid; gap: 2px; z-index: 10;
  /* Closed menus hold hundreds of links: skip laying them out until opened. */
  content-visibility: hidden;
}
nav.main-nav > .nav-item:hover .dropdown, nav.main-nav > .nav-item.force-open .dropdown,
nav.main-nav > .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); content-visibility: visible; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; font-size: 15px; font-weight: 500; color: var(--header); transition: color .25s ease, background .25s ease, padding-left .25s ease; }
.dropdown a .ic { display: inline-flex; color: var(--theme); }
.dropdown a:hover { color: var(--theme-2); background: var(--cream); padding-left: 16px; }
/* Two-panel mega menu: anchored to the sticky header so it can be wider than its nav item. */
nav.main-nav > .nav-item.has-mega { position: static; }
.mega-menu {
  left: 50%; transform: translate(-50%, 12px); width: min(980px, 94vw); padding: 0;
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0; overflow: hidden;
}
nav.main-nav > .nav-item:hover .mega-menu, nav.main-nav > .nav-item.force-open .mega-menu,
nav.main-nav > .nav-item:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-groups { background: #f7f6fd; border-right: 1px solid var(--border); padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; min-width: 0; }
.dropdown .mega-group { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; }
.dropdown .mega-group:hover { padding-left: 12px; background: #fff; }
.mega-group .ic { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--theme); box-shadow: 0 2px 8px rgba(0, 53, 102, .06); transition: background .25s ease, color .25s ease; }
.mega-group .txt { flex: 1; min-width: 0; }
.mega-group strong { display: block; font-size: 15px; font-weight: 600; color: var(--header); line-height: 1.3; }
.mega-group small { display: block; font-size: 12.5px; font-weight: 400; color: var(--body); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-group .go { display: inline-flex; color: var(--body); opacity: .5; transition: transform .25s ease, opacity .25s ease; }
.dropdown .mega-group.is-active { background: #fff; box-shadow: 0 4px 16px rgba(0, 53, 102, .07); }
.mega-group.is-active .ic { background: var(--theme); color: #fff; }
.mega-group.is-active strong { color: var(--theme); }
.mega-group.is-active .go { opacity: 1; color: var(--theme); transform: translateX(3px); }
.mega-panels { padding: 22px 24px; display: flex; flex-direction: column; min-width: 0; }
.mega-panel { display: none; flex: 1; }
.mega-panel.is-active { display: block; animation: fadeIn .25s ease; }
.mega-panel-title { margin: 0 0 12px 12px; font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600; color: var(--header); display: flex; align-items: center; gap: 8px; }
.mega-panel-title span { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: var(--theme); background: var(--lavender); border-radius: 20px; padding: 1px 9px; }
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
.mega-links a { font-size: 14.5px; padding: 7px 12px; }
.mega-panels .mega-show-all { margin-top: 16px; }
.mega-show-all {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px;
  border-radius: 6px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 14px;
  background: var(--lavender); color: var(--theme); transition: background .3s ease, color .3s ease;
}
.mega-show-all:hover { background: var(--theme); color: #fff; }

.header-right { display: flex; align-items: center; gap: 18px; }
.nav-search { position: relative; width: 230px; }
.nav-search .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--theme); pointer-events: none; display: inline-flex; }
.nav-search input, .drawer-search input, .cta-search input {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px 12px 40px; color: var(--header); font-size: 15px; font-family: inherit;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav-search input::placeholder, .drawer-search input::placeholder, .cta-search input::placeholder { color: #8a94a6; }
.nav-search input:focus, .drawer-search input:focus, .cta-search input:focus { outline: none; border-color: var(--theme); box-shadow: 0 0 0 3px rgba(108,87,210,.12); }

.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 300px; max-height: 380px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg);
  padding: 8px; display: none; z-index: 200;
}
.search-results.show { display: block; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; font-size: 15px; color: var(--header); line-height: 1.4; }
.search-results a .search-result-icon { display: inline-flex; color: var(--theme); }
.search-results a:hover, .search-results a.active { background: var(--lavender); color: var(--theme); }
.search-results a .cat-pill { margin-left: auto; font-size: 11px; color: var(--theme-2-text); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.search-results .no-results { padding: 14px 12px; color: var(--body); font-size: 14px; text-align: center; }

.header-right .theme-btn { padding-left: 22px; gap: 18px; white-space: nowrap; }
.header-right .theme-btn .arrow { width: 40px; height: 40px; }

.mobile-toggle, .mobile-search-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--header); cursor: pointer; flex-shrink: 0; padding: 0;
}
.mobile-toggle { flex-direction: column; gap: 5px; padding: 0 11px; }
.mobile-toggle span { display: block; height: 2px; width: 100%; background: var(--header); border-radius: 2px; }

/* ---------- Drawer (mobile menu / all tools) ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0, 21, 41, .55); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s ease, visibility .4s; z-index: 199; }
.drawer-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
.tools-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 360px; max-width: 88vw; background: #fff;
  z-index: 200; display: flex; flex-direction: column; transform: translateX(-100%);
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease; will-change: transform;
}
.tools-drawer.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0, 21, 41, .25); }
.tools-drawer.peek { transform: translateX(calc(-100% + 8vw)); box-shadow: 10px 0 30px rgba(0,0,0,.12); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.drawer-head .brand img { height: 34px; width: 34px; }
.drawer-head .brand .brand-name { font-size: 22px; }
.drawer-close { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--theme); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .3s ease, transform .3s ease; }
.drawer-close:hover { background: var(--theme-2); transform: rotate(90deg); }
.drawer-search { position: relative; margin: 18px 22px 0; flex-shrink: 0; }
.drawer-search .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--theme); display: inline-flex; }
#drawer-search-results { position: static; margin: 8px 22px 0; min-width: 0; max-height: calc(100vh - 220px); box-shadow: none; }
#drawer-search-results.show ~ #drawer-body { display: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 14px 20px; }
.drawer-section { padding: 0 8px 14px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.drawer-section:last-child { border-bottom: none; }
.drawer-section p.drawer-top-label { margin: 8px 0 6px; padding: 0 8px; font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600; color: var(--header); }
.drawer-subgroup-label { margin: 10px 0 2px; padding: 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--theme-2-text); font-weight: 600; }
.drawer-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 15px; color: var(--header); line-height: 1.4; transition: background .2s ease, color .2s ease, padding-left .2s ease; }
.drawer-link .ic { display: inline-flex; color: var(--theme); }
.drawer-link:hover { background: var(--lavender); color: var(--theme); padding-left: 14px; }
.drawer-foot { padding: 16px 22px; border-top: 1px solid var(--border); flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.tools-drawer .drawer-head, .tools-drawer .drawer-search, .tools-drawer .drawer-body, .tools-drawer .drawer-foot { opacity: 0; transform: translateX(-12px); transition: opacity .35s ease, transform .35s ease; }
.tools-drawer.open .drawer-head { opacity: 1; transform: none; transition-delay: .08s; }
.tools-drawer.open .drawer-search { opacity: 1; transform: none; transition-delay: .13s; }
.tools-drawer.open .drawer-body { opacity: 1; transform: none; transition-delay: .18s; }
.tools-drawer.open .drawer-foot { opacity: 1; transform: none; transition-delay: .22s; }

.drawer-peek-btn {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 64px; border-radius: 0 8px 8px 0;
  background: var(--theme); border: none; box-shadow: 4px 0 16px rgba(108,87,210,.35);
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 198; padding: 0; color: #fff;
  transition: transform .5s cubic-bezier(.2,.9,.25,1), background .3s ease;
}
.drawer-peek-btn:hover { background: var(--theme-2); transform: translateY(-50%) translateX(3px); }
.drawer-peek-btn.nudge { transform: translateY(-50%) translateX(8vw); }
.drawer-peek-arrow { font-size: 1.3rem; line-height: 1; animation: peekNudge 2.4s ease-in-out infinite; }
@keyframes peekNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

/* ---------- Decorative helpers ---------- */
.float-bob-y { animation: bobY 3.5s ease-in-out infinite alternate; }
.float-bob-x { animation: bobX 4s ease-in-out infinite alternate; }
@keyframes bobY { from { transform: translateY(-12px); } to { transform: translateY(12px); } }
@keyframes bobX { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
.dot-pattern {
  position: absolute; pointer-events: none; z-index: 0;
  background-image: radial-gradient(currentColor 1.6px, transparent 1.8px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 70%); mask-image: radial-gradient(circle, #000 0%, transparent 70%);
}

/* ---------- Home hero ---------- */
.hero-1 { position: relative; overflow: hidden; padding: 90px 0 110px; background: linear-gradient(110deg, #faf5df 0%, #fff9ed 45%, #ffeef0 100%); }
.hero-1 .container { position: relative; z-index: 2; }
.hero-1 .dot-pattern.p1 { width: 420px; height: 420px; right: -60px; top: -40px; color: rgba(255, 121, 46, .35); }
.hero-1 .dot-pattern.p2 { width: 260px; height: 260px; left: -60px; bottom: -60px; color: rgba(108, 87, 210, .25); }
.hero-1 .hero-shape-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--theme-2); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.hero-content .sub { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 30px; background: #fff; box-shadow: var(--shadow); color: var(--theme-2-text); font-size: 15px; font-weight: 500; margin-bottom: 22px; }
.hero-content .sub .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--theme); box-shadow: 0 0 0 4px rgba(108,87,210,.18); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero-content h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.1; margin-bottom: 20px; }
.hero-content h1 .accent { color: var(--theme); }
.hero-content > p { font-size: 18px; max-width: 540px; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-left: -12px; box-shadow: var(--shadow); }
.hero-trust .avatars span:first-child { margin-left: 0; }
.hero-trust strong { display: block; font-family: 'Outfit', sans-serif; color: var(--header); font-size: 26px; line-height: 1.1; }
.hero-trust small { font-size: 14px; }
.hero-btn { display: flex; align-items: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }

/* Hero visual: a mock "conversion" card with floating stat cards */
.hero-visual { position: relative; padding: 30px 30px 30px 40px; }
.hero-card { position: relative; z-index: 2; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 26px; }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hero-card-head .hero-card-title { margin: 0; font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600; color: var(--header); }
.hero-card-head .dots { display: flex; gap: 6px; }
.hero-card-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: #ffbd2e; }
.hero-card-head .dots i:first-child { background: #ff5f57; }
.hero-card-head .dots i:last-child { background: #28c840; }
.hero-drop { border: 2px dashed rgba(108,87,210,.35); background: var(--lavender); border-radius: 12px; padding: 26px 16px; text-align: center; color: var(--theme); }
.hero-drop p { color: var(--header); font-weight: 500; font-size: 15px; margin-top: 6px; }
.hero-files { display: grid; gap: 10px; margin-top: 16px; }
.hero-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.hero-file .ext { width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; font-family: 'DM Sans', sans-serif; flex-shrink: 0; }
.hero-file .meta { flex: 1; min-width: 0; line-height: 1.4; }
.hero-file .meta b { display: block; color: var(--header); font-size: 14px; font-weight: 600; }
.hero-file .bar { height: 6px; border-radius: 6px; background: #eef0f6; margin-top: 6px; overflow: hidden; }
/* Animates transform, not width: a looping width animation forced a full
   page layout on every frame. */
.hero-file .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--theme), var(--theme-2)); transform-origin: left center; animation: fillBar 2.8s ease-in-out infinite alternate; }
@keyframes fillBar { from { transform: scaleX(.35); } to { transform: scaleX(1); } }
.hero-file .ok { color: #28c840; display: inline-flex; }
.hero-float { position: absolute; z-index: 3; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 18px; line-height: 1.35; }
.hero-float.f1 { top: -6px; right: -10px; min-width: 200px; }
.hero-float.f1 small { font-size: 13px; color: var(--header); font-weight: 600; }
.hero-float.f1 .pbar { height: 8px; border-radius: 8px; background: #eef0f6; margin: 8px 0 6px; overflow: hidden; }
.hero-float.f1 .pbar i { display: block; width: 72%; height: 100%; background: var(--theme); border-radius: 8px; }
.hero-float.f1 b { font-family: 'Outfit', sans-serif; color: var(--header); font-size: 18px; }
.hero-float.f1 b span { color: var(--theme-2-text); font-size: 13px; font-weight: 600; margin-left: 4px; }
.hero-float.f2 { bottom: 0; left: -10px; display: flex; align-items: center; gap: 12px; }
.hero-float.f2 .ring { width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--theme) 0 100%, #eef0f6 0); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.hero-float.f2 .ring::after { content: ''; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.hero-float.f2 .ring span { position: relative; z-index: 1; font-size: 13px; font-weight: 700; color: var(--theme); }
.hero-float.f2 b { display: block; font-size: 14px; color: var(--header); }
.hero-float.f2 small { font-size: 12px; }
.hero-visual .blob { position: absolute; z-index: 1; border-radius: 50%; }
.hero-visual .blob.b1 { width: 280px; height: 280px; right: -40px; bottom: -30px; background: rgba(108,87,210,.12); }
.hero-visual .blob.b2 { width: 120px; height: 120px; left: 0; top: 0; background: rgba(255,121,46,.14); }

/* ---------- Service / tool cards (pastel icon blob) ---------- */
.service-card-items-1 { margin-top: 10px; }
.service-icon { position: relative; display: inline-flex; width: 72px; height: 72px; z-index: 1; color: var(--card-color, var(--theme)); }
.service-icon::before { content: ''; position: absolute; top: 0; left: 0; width: 58px; height: 58px; border-radius: 50%; background: color-mix(in srgb, var(--card-color, var(--theme)) 14%, #fff); z-index: -1; }
.service-icon .icon-svg { margin: 20px 0 0 20px; }
.service-card-items-1 h3 { font-size: 20px; margin: 18px 0 6px; }
.service-card-items-1 h3 a:hover { color: var(--theme); }

.grid { display: grid; gap: 30px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.tool-card {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.tool-card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--card-color, var(--theme)); transition: width .45s ease; }
.tool-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tool-card:hover::after { width: 100%; }
.tool-card .icon { position: relative; display: inline-flex; width: 64px; height: 64px; z-index: 1; color: var(--card-color, var(--theme)); margin-bottom: 14px; }
.tool-card .icon::before { content: ''; position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--card-color, var(--theme)) 15%, #fff); z-index: -1; transition: transform .4s ease; }
.tool-card .icon .icon-svg { margin: 16px 0 0 16px; }
.tool-card:hover .icon::before { transform: scale(1.12); }
.tool-card .cat-tag { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 600; color: var(--theme-2-text); background: var(--cream); border-radius: 20px; padding: 2px 10px; line-height: 1.6; }
.tool-card h3 { font-size: 20px; margin: 0 0 8px; transition: color .3s ease; }
.tool-card:hover h3 { color: var(--theme); }
.tool-card p { font-size: 15px; line-height: 1.7; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tool-card .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 15px; color: var(--theme); }
.tool-card:hover .more { color: var(--theme-2); }

.cat-block + .cat-block { margin-top: 60px; }
.cat-block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cat-block-head h3 { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.cat-block-head h3 .cat-ic { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--lavender); color: var(--theme); flex-shrink: 0; }
.cat-block-head h3 .count { font-size: 14px; font-weight: 600; color: var(--theme); background: var(--lavender); border-radius: 20px; padding: 2px 12px; font-family: 'Inter', sans-serif; }

/* ---------- Dark band: popular tools + formats ---------- */
.service-section-2 { position: relative; background-color: var(--dark); overflow: hidden; }
.service-section-2::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px);
}
.service-section-2 .container { position: relative; z-index: 1; }
.service-wrapper-2 { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 10px; overflow: hidden; }
.service-box-items { padding: 44px 30px; text-align: center; transition: transform .4s ease; display: flex; flex-direction: column; align-items: center; }
.service-box-items:nth-child(1) { background: #fffae8; }
.service-box-items:nth-child(2) { background: #ffebeb; }
.service-box-items:nth-child(3) { background: #e3daf8; }
.service-box-items:nth-child(4) { background: #f0eefb; }
.service-box-items .big-icon { width: 96px; height: 96px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--card-color, var(--theme)); box-shadow: 0 14px 30px rgba(0,0,0,.08); transition: transform .4s ease; }
.service-box-items:hover .big-icon { transform: translateY(-8px) rotate(-4deg); }
.service-box-items h3 { font-size: 20px; margin: 24px 0 10px; }
.service-box-items p { font-size: 15px; line-height: 1.85; margin-bottom: 18px; flex: 1; }
.format-strip { margin-top: 70px; text-align: center; }
.format-strip > p { color: #fff; margin-bottom: 26px; }
.format-strip > p b { color: var(--theme-2-text); }
.format-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.format-list span { min-width: 168px; flex: 0 1 168px; padding: 16px 10px; background: #fff; border-radius: 4px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; color: var(--header); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .3s ease; }
.format-list span:hover { transform: translateY(-4px); }
.format-list span .icon-svg { color: var(--theme); }

/* ---------- About / how it works ---------- */
.about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; border-radius: 16px; background: linear-gradient(140deg, #f0eefb, #fff9ed); padding: 44px; min-height: 480px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about-visual .dot-pattern { width: 300px; height: 300px; right: -60px; top: -60px; color: rgba(108,87,210,.3); }
.format-orbit { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; z-index: 1; width: 100%; max-width: 420px; }
.format-orbit .tile { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 22px 12px; text-align: center; color: var(--card-color, var(--theme)); }
.format-orbit .tile b { display: block; margin-top: 8px; font-family: 'Outfit', sans-serif; color: var(--header); font-size: 15px; }
.format-orbit .tile:nth-child(even) { transform: translateY(22px); }
.about-content .about-text { margin: 18px 0 26px; }
.icon-items { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.icon-items:last-of-type { border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.icon-items .icon { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--lavender); color: var(--theme); position: relative; }
.icon-items .icon .num { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--theme-2); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.icon-items h3 { font-size: 20px; margin-bottom: 4px; }
.list-items { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.list-items li { display: flex; align-items: center; gap: 10px; color: var(--header); font-weight: 500; }
.list-items li .icon-svg { color: #49dca2; }

/* ---------- Why choose (reasons) + counters ---------- */
.choose-us-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.choose-us-text { margin: -16px 0 30px; }
.icon-box-items { display: grid; gap: 18px; }
.icon-box { display: flex; align-items: center; gap: 20px; }
.icon-box .icon { width: 84px; height: 84px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: #ffebeb; color: #f05454; }
.icon-box:nth-child(2) .icon { background: #f0eefb; color: var(--theme); }
.icon-box:nth-child(3) .icon { background: #daf8ec; color: #1fb57a; }
.icon-box:nth-child(4) .icon { background: #fffae8; color: #e2a600; }
.icon-box .ib-label { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; color: #c62828; margin-bottom: 4px; }
.icon-box:nth-child(2) .ib-label { color: var(--theme); }
.icon-box:nth-child(3) .ib-label { color: #0f7a50; }
.icon-box:nth-child(4) .ib-label { color: #8a6400; }
.icon-box .ib-title { font-size: 18px; font-weight: 500; line-height: 1.5; }
.icon-box .ib-title .accent { color: inherit; }
.choose-visual { position: relative; border-radius: 16px; overflow: hidden; background: var(--navy); min-height: 520px; padding: 40px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.choose-visual .dot-pattern { width: 360px; height: 360px; left: -80px; bottom: -80px; color: rgba(255,255,255,.18); }
.choose-visual .shield { position: relative; z-index: 1; width: 110px; height: 110px; border-radius: 28px; background: var(--theme); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 20px 50px rgba(108,87,210,.5); margin-bottom: 26px; }
.choose-visual h3 { position: relative; z-index: 1; color: #fff; font-size: 32px; margin-bottom: 12px; }
.choose-visual p { position: relative; z-index: 1; color: rgba(255,255,255,.8); max-width: 420px; }
.choose-visual .lifecycle { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.choose-visual .lifecycle span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 30px; background: rgba(255,255,255,.1); font-size: 14px; font-weight: 500; }
.choose-visual .lifecycle .sep { background: none; padding: 0; color: var(--theme-2); }
.choose-us-card { display: flex; align-items: center; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.phone-box { display: flex; align-items: center; gap: 14px; }
.phone-box .icon { width: 50px; height: 50px; border-radius: 50%; background: var(--theme-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.phone-box p { font-size: 15px; line-height: 1.3; }
.phone-box h5 { font-size: 18px; }

.counter-wrapper { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.counter-items { display: flex; align-items: center; gap: 16px; }
.counter-items .icon { color: var(--theme-2); display: inline-flex; }
.counter-items .num { font-family: 'Outfit', sans-serif; font-size: 48px; font-weight: 600; line-height: 1; color: var(--theme-2-text); }
.counter-items:nth-child(2) .num, .counter-items:nth-child(2) .icon { color: var(--theme); }
.counter-items:nth-child(3) .num, .counter-items:nth-child(3) .icon { color: #a87400; }
.counter-items:nth-child(4) .num, .counter-items:nth-child(4) .icon { color: #49dca2; }
.counter-items p { color: var(--header); font-size: 18px; font-weight: 500; margin-top: 4px; }

/* ---------- Navy CTA band with search ---------- */
.cta-section { position: relative; overflow: hidden; background: var(--navy); padding: 100px 0; text-align: center; }
.cta-section .dot-pattern.p1 { width: 340px; height: 340px; right: -40px; top: 10px; color: rgba(255,255,255,.18); }
.cta-section .dot-pattern.p2 { width: 260px; height: 260px; left: -40px; bottom: -60px; color: rgba(255,121,46,.3); }
.cta-section .shape-icon { position: absolute; color: var(--theme-2); opacity: .9; }
.cta-section .shape-icon.s1 { left: 6%; top: 52%; }
.cta-section .shape-icon.s2 { right: 9%; top: 22%; color: #fff; opacity: .7; }
.cta-section .container { position: relative; z-index: 1; }
.cta-search { position: relative; display: flex; gap: 12px; max-width: 620px; margin: 0 auto; }
.cta-search .field-wrap { position: relative; flex: 1; }
.cta-search .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--theme); display: inline-flex; z-index: 1; }
.cta-search input { height: 58px; border-radius: 4px; border-color: #fff; }
.cta-search .search-results { text-align: left; }

/* ---------- Purple support CTA (ctabanner partial) ---------- */
.support-box { position: relative; overflow: hidden; background: var(--theme); border-radius: 20px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 48px; }
.support-box .dot-pattern { width: 360px; height: 360px; right: -80px; top: -80px; color: rgba(255,255,255,.25); }
.support-box .support-visual { position: relative; z-index: 1; background: rgba(255,255,255,.12); border-radius: 14px; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.support-box .support-visual .ring { width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.support-box .support-visual .core { width: 100px; height: 100px; border-radius: 50%; background: #fff; color: var(--theme); display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.support-box .support-content { position: relative; z-index: 1; }
.support-box .support-content .sub { color: #fff; font-size: 16px; }
.support-box .support-content h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin: 8px 0 16px; }
.support-box .support-content p { color: rgba(255,255,255,.88); margin-bottom: 30px; }
.cta-on-cream { position: relative; }
.cta-on-cream::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: var(--cream); z-index: -1; }

/* ---------- FAQ (bordered accordion) ---------- */
.faq-items { max-width: 1060px; margin: 0 auto; display: grid; gap: 20px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: box-shadow .3s ease; }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative; padding: 20px 60px 20px 26px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 19px; color: var(--header); line-height: 1.45; transition: color .3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--header); border-bottom: 2px solid var(--header); transform: rotate(45deg); transition: transform .3s ease, border-color .3s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--theme); }
.faq-item summary:hover { color: var(--theme); }
.faq-item p { padding: 16px 26px 22px; border-top: 1px solid var(--line); color: #455151; font-weight: 500; font-size: 15px; line-height: 1.8; margin: 0; }
.faq-items.numbered { counter-reset: faq; }
.faq-items.numbered .faq-item summary::before { counter-increment: faq; content: counter(faq) '. '; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { position: relative; overflow: hidden; background: linear-gradient(120deg, #1d1f3a 0%, #003566 55%, #3b2f8f 100%); padding: 90px 0 80px; text-align: center; color: #fff; }
.page-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1.4px, transparent 1.6px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 35%, transparent 65%, #000); mask-image: linear-gradient(90deg, #000, transparent 35%, transparent 65%, #000); }
.page-banner .glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(80px); opacity: .45; pointer-events: none; }
.page-banner .glow.g1 { background: var(--theme); left: -120px; top: -160px; }
.page-banner .glow.g2 { background: var(--theme-2); right: -160px; bottom: -220px; opacity: .3; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 14px; }
.page-banner .lead { color: rgba(255,255,255,.82); max-width: 700px; margin: 0 auto; font-size: 17px; }
.page-banner .banner-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--card-color, var(--theme)); box-shadow: 0 0 0 10px rgba(255,255,255,.08); animation: bobY 3.5s ease-in-out infinite alternate; }
.page-banner .banner-meta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.page-banner .banner-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 30px; background: rgba(255,255,255,.1); font-size: 14px; color: #fff; }
.page-banner .banner-meta .icon-svg { color: var(--theme-2); }

.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--theme-2); }
.breadcrumb .bc-sep { color: var(--theme-2); display: inline-flex; }
.breadcrumb .bc-current { color: rgba(255,255,255,.75); }

/* ---------- Tool page ---------- */
.tool-app { padding: 0 0 80px; margin-top: -40px; position: relative; z-index: 2; }
.tool-panel { padding: 40px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.dropzone {
  border: 2px dashed rgba(108,87,210,.35); border-radius: 12px; padding: 50px 20px; text-align: center; cursor: pointer;
  background: var(--lavender); transition: border-color .3s ease, background .3s ease;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--theme); background: #e9e5fa; }
.dropzone .dz-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: #fff; color: var(--theme); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); animation: bobY 2.6s ease-in-out infinite alternate; }
.dropzone p { margin: 4px 0; color: var(--body); }
.dropzone p strong { color: var(--header); }
.dropzone input[type=file] { display: none; }

.field-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 170px; }
.field label { font-size: 14px; color: var(--header); font-weight: 600; }
.field input, .field select, .field textarea {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 11px 14px; color: var(--header);
  font-size: 15px; font-family: inherit; transition: border-color .3s ease, box-shadow .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--theme); box-shadow: 0 0 0 3px rgba(108,87,210,.12); }
.field input[type=range] { padding: 0; accent-color: var(--theme); border: none; box-shadow: none; }
.field input[type=checkbox], .devtool-checkbox-row input[type=checkbox] { accent-color: var(--theme); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23003566' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input[type=color] { padding: 4px; height: 46px; cursor: pointer; }
.field input[type=color]::-webkit-color-swatch { border-radius: 4px; border: 1px solid var(--line); }
.field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }

.file-list { margin-top: 18px; display: grid; gap: 10px; }
.pdf-form-fields { margin-top: 18px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: #fbfbfe; }
.pdf-form-fields:empty { display: none; }
.pdf-form-fields .field textarea { min-height: 90px; resize: vertical; }
.form-fields-note { width: 100%; color: var(--body); font-size: 15px; }
.file-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--border); font-size: 15px; color: var(--header); }
.file-chip .remove { cursor: pointer; color: var(--red); font-weight: 700; }
.actions-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.result-box { margin-top: 28px; padding: 24px; border-radius: 10px; background: var(--cream); border: 1px solid #f6e7c8; display: none; animation: fadeIn .4s ease; color: var(--header); }
.result-box.show { display: block; }
.result-box img { max-width: 100%; border-radius: 8px; margin-top: 12px; }
.result-box .swatch { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 6px; background: #fff; border: 1px solid var(--border); margin: 4px; font-family: monospace; font-size: 14px; }
.result-box .swatch .dot { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.size-stats { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 12px 0; padding: 16px 18px; border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.size-stats .stat { display: flex; flex-direction: column; line-height: 1.3; }
.size-stats .stat .v { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 20px; color: var(--header); }
.size-stats .stat .l { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.size-stats .arrow { color: var(--theme-2); font-size: 1.2rem; }
.size-stats .pct { margin-left: auto; padding: 6px 14px; border-radius: 30px; background: #daf8ec; color: #128a5b; font-weight: 700; font-size: 14px; }
.size-stats .pct.worse { background: #ffebeb; color: var(--red); }

.flux-loader { display: none; margin-top: 20px; }
.flux-loader.show { display: block; }
.flux-label-wrap { position: relative; height: 30px; margin-bottom: 10px; overflow: hidden; }
.flux-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--header); opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.flux-label.active { opacity: 1; transform: none; }
.flux-label.leaving { opacity: 0; transform: translateY(-10px); }
.progress-bar { height: 10px; border-radius: 10px; background: #eef0f6; overflow: hidden; position: relative; display: none; }
.progress-bar.show { display: block; }
.progress-bar .fill { position: relative; height: 100%; width: 0%; border-radius: 10px; background: linear-gradient(90deg, var(--theme), var(--theme-2), var(--theme)); background-size: 200% 100%; transition: width .35s ease; animation: fluxShift 2.4s linear infinite; overflow: hidden; }
@keyframes fluxShift { from { background-position: 0 0; } to { background-position: -200% 0; } }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.spinner.show { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tool workspace: files left, options right ---------- */
.tool-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.tool-main { min-width: 0; }
.tool-options { display: grid; gap: 14px; position: sticky; top: 110px; }
.options-card { padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: #fbfbfe; }
.options-card.is-empty { display: none; }
.options-card h4, .options-card .options-title { font-size: 17px; margin-bottom: 4px; }
.options-card .field-row { margin-top: 10px; gap: 16px; }
.options-card .field { min-width: 100%; flex: 1 1 100%; }
.options-card .field.half { min-width: 0; flex: 1 1 calc(50% - 8px); }
.options-note { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--lavender); color: var(--header); font-size: 13px; line-height: 1.55; }
.options-note:empty { display: none; }
.tool-options .actions-row { margin-top: 0; flex-direction: column; gap: 10px; }
.tool-options .actions-row .btn { width: 100%; padding: 15px 20px; }
.tool-options .flux-loader { margin-top: 0; }
.detect-btn { width: 100%; }
.field .range-val { float: right; color: var(--theme); font-weight: 700; }
.field-hint { font-size: 12px; color: var(--body); line-height: 1.45; }
.field.field-check { gap: 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--header); font-weight: 500; line-height: 1.45; }
label.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--theme); flex-shrink: 0; }
label.check small { display: block; color: var(--body); font-weight: 400; font-size: 12px; margin-top: 2px; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label, .chip-checks label { cursor: pointer; }
.segmented input, .chip-checks input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span, .chip-checks span { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px; font-weight: 600; color: var(--header); line-height: 1.3; transition: all .2s ease; }
.segmented input:checked + span, .chip-checks input:checked + span { background: var(--theme); border-color: var(--theme); color: #fff; }
.segmented input:focus-visible + span, .chip-checks input:focus-visible + span { outline: 2px solid var(--theme-2); outline-offset: 2px; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 6px; }

/* File chips */
.file-list { margin-top: 0; }
.tool-form.has-files .dropzone { padding: 22px 16px; margin-bottom: 14px; }
.tool-form.has-files .dropzone .dz-icon { width: 52px; height: 52px; margin-bottom: 6px; }
.file-chip { padding: 10px 12px; gap: 14px; justify-content: flex-start; }
.fc-thumb, .rf-thumb { width: 46px; height: 46px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--lavender); display: flex; align-items: center; justify-content: center; }
.fc-thumb img, .rf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fc-thumb b, .rf-thumb b { font-size: 11px; color: var(--theme); font-family: 'DM Sans', sans-serif; letter-spacing: .03em; }
.fc-meta, .rf-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.fc-meta b, .rf-meta b { color: var(--header); font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-meta small, .rf-meta small { color: var(--body); font-size: 13px; }
.file-chip .remove { border: none; background: none; cursor: pointer; color: var(--red); padding: 6px; border-radius: 6px; display: inline-flex; }
.file-chip .remove:hover { background: #ffebeb; }
.add-more { width: 100%; padding: 14px; border: 1px dashed rgba(108,87,210,.45); border-radius: 8px; background: #fff; color: var(--theme); font-weight: 700; font-family: 'DM Sans', sans-serif; font-size: 15px; cursor: pointer; transition: background .2s ease; }
.add-more:hover { background: var(--lavender); }
.add-more span { font-size: 18px; margin-right: 6px; }

/* Workspace panels (form fields, page picker, crop editor) */
.tool-workspace { display: grid; gap: 14px; margin-top: 14px; }
.tool-workspace > div:empty { display: none; }
.ws-note { padding: 11px 14px; border-radius: 8px; background: var(--lavender); color: var(--header); font-size: 14px; line-height: 1.5; }
.ws-note a { color: var(--theme); text-decoration: underline; }
.ws-title { font-size: 17px; }
.ws-sub { font-size: 13px; color: var(--body); margin-top: 8px; }
.pdf-form-fields { padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: grid; gap: 14px; }
.pdf-form-fields .field { min-width: 100%; }
.pdf-form-fields textarea { min-height: 90px; resize: vertical; }
.page-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 12px; }
.pp-page { position: relative; padding: 10px 10px 6px; border: 2px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: border-color .2s ease, transform .2s ease; }
.pp-page:hover { border-color: rgba(108,87,210,.5); transform: translateY(-2px); }
.pp-page img { width: 100%; height: auto; box-shadow: 0 2px 8px rgba(0,0,0,.12); background: #fff; }
.pp-num { font-size: 13px; font-weight: 600; color: var(--header); }
.pp-check { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 5px; border: 2px solid var(--line); background: #fff; z-index: 1; }
.pp-page.selected { border-color: var(--theme); }
.pp-page.selected .pp-check { background: var(--theme); border-color: var(--theme); }
.pp-page.selected .pp-check::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mode-delete .pp-page.selected { border-color: var(--red); }
.mode-delete .pp-page.selected .pp-check { background: var(--red); border-color: var(--red); }
.mode-delete .pp-page.selected img { opacity: .35; }
.pp-loading { padding: 30px; text-align: center; color: var(--body); }
.crop-editor { display: grid; gap: 12px; }
.ce-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; color: var(--header); font-size: 14px; }
.ce-nav .btn { padding: 9px 14px; font-size: 14px; }
.ce-stage { position: relative; background: #8b8fa3; border-radius: 10px; padding: 16px; display: flex; justify-content: center; user-select: none; }
.ce-stage img { display: block; max-width: 100%; max-height: 720px; width: auto; background: #fff; }
.ce-stage.loading { opacity: .6; }
.ce-page { position: relative; display: inline-block; overflow: hidden; line-height: 0; }
.ce-box { position: absolute; border: 2px solid var(--theme); box-shadow: 0 0 0 9999px rgba(20, 16, 50, .35); cursor: move; touch-action: none; }
.ce-box i { z-index: 1; }
.ce-box i { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid var(--theme); border-radius: 3px; }
.ce-box i[data-h="nw"] { left: -2px; top: -2px; cursor: nwse-resize; }
.ce-box i[data-h="ne"] { right: -2px; top: -2px; cursor: nesw-resize; }
.ce-box i[data-h="sw"] { left: -2px; bottom: -2px; cursor: nesw-resize; }
.ce-box i[data-h="se"] { right: -2px; bottom: -2px; cursor: nwse-resize; }
.crop-editor.auto .ce-box { opacity: .25; pointer-events: none; }

/* Result screen */
.result-box { padding: 26px; }
.result-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.result-head h3 { font-size: 22px; flex: 1; }
.rh-ic { width: 38px; height: 38px; border-radius: 50%; background: #daf8ec; color: #128a5b; display: inline-flex; align-items: center; justify-content: center; }
.result-files { display: grid; gap: 10px; }
.result-file { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; flex-wrap: wrap; }
.result-file.main { padding: 16px; }
.rf-pct { padding: 5px 12px; border-radius: 30px; background: #daf8ec; color: #128a5b; font-weight: 700; font-size: 14px; }
.rf-pct.worse { background: #ffebeb; color: var(--red); }
.rf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-file .btn { padding: 10px 16px; font-size: 14px; }
.result-sum { margin: -6px 0 14px; color: var(--header); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.result-preview { display: block; max-height: 360px; width: auto; margin: 16px auto 0; border-radius: 8px; border: 1px solid var(--border); background: repeating-conic-gradient(#f1f2f6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.result-next { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed #f0dfbd; }
.result-next > span { font-weight: 700; color: var(--header); margin-right: 4px; }
.result-next a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 30px; background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--header); }
.result-next a .ic { display: inline-flex; color: var(--theme); }
.result-next a:hover { border-color: var(--theme); color: var(--theme); }
.text-out { white-space: pre-wrap; font-size: 14px; background: #fff; border: 1px solid var(--border); padding: 12px; border-radius: 8px; }

@media (max-width: 991px) {
  .tool-form { grid-template-columns: 1fr; }
  .tool-options { position: static; }
}

/* ---------- Developer tools ---------- */
.devtool-panel { padding: 40px; }
.devtool-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.devtool-col { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 8px; }
.devtool-col-label { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--header); font-weight: 600; }
.devtool-textarea, .devtool-output {
  width: 100%; min-height: 260px; resize: vertical; font-family: 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6;
  background: #fbfbfe; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; color: var(--header); white-space: pre; overflow: auto;
}
.devtool-textarea:focus { outline: none; border-color: var(--theme); box-shadow: 0 0 0 3px rgba(108,87,210,.12); background: #fff; }
.devtool-output { margin: 0; }
.devtool-output.error { color: var(--red); border-color: var(--red); background: #fff6f6; }
.devtool-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; align-items: flex-end; }
.devtool-btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.devtool-copy-btn { font-size: 13px; padding: 6px 12px; border-radius: 6px; background: var(--lavender); border: none; color: var(--theme); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .3s ease, color .3s ease; }
.devtool-copy-btn:hover { background: var(--theme); color: #fff; }
.devtool-status { font-size: 14px; margin-top: 4px; }
.devtool-status.ok { color: #128a5b; }
.devtool-status.bad { color: var(--red); }
.devtool-meta { font-size: 14px; color: var(--body); margin-top: 4px; }
.devtool-checkbox-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.devtool-checkbox-row label { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--header); cursor: pointer; }
.devtool-result-value { font-family: 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 16px; word-break: break-all; background: #fbfbfe; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; color: var(--header); }
.devtool-output.prose { white-space: normal; font-family: inherit; line-height: 1.7; }
.devtool-output.prose h1, .devtool-output.prose h2, .devtool-output.prose h3 { margin: .6em 0 .3em; }
.devtool-output.prose p { margin: .5em 0; }
.devtool-output.prose ul, .devtool-output.prose ol { margin: .5em 0; padding-left: 1.4em; }
.devtool-output.prose code { background: var(--lavender); padding: 2px 5px; border-radius: 4px; font-family: 'JetBrains Mono', Menlo, Consolas, monospace; font-size: .85em; }
.devtool-output.prose pre { background: #f3f4f9; padding: 10px 12px; border-radius: 6px; overflow: auto; }
.devtool-output.prose pre code { background: none; padding: 0; }
.devtool-output.prose blockquote { border-left: 3px solid var(--theme); margin: .5em 0; padding: 2px 0 2px 12px; color: var(--body); }
.devtool-output.prose a { color: var(--theme); }
.devtool-output.prose table { border-collapse: collapse; width: 100%; margin: .5em 0; }
.devtool-output.prose th, .devtool-output.prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.devtool-output mark { background: var(--theme-2); color: #fff; border-radius: 3px; padding: 0 2px; }

/* ---------- Content + sidebar layout (tool, category, blog pages) ---------- */
.details-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 40px; align-items: start; }
.details-content h2 { font-size: clamp(26px, 3vw, 34px); margin: 40px 0 14px; }
.details-content h2:first-child { margin-top: 0; }
.details-content p { margin-bottom: 16px; }
.details-content ol, .details-content ul.plain { padding-left: 20px; margin: 0 0 16px; }
.details-content ol li, .details-content ul.plain li { margin-bottom: 8px; }
.details-content .check-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.details-content .check-list li { display: flex; gap: 12px; align-items: flex-start; }
.details-content .check-list li .icon-svg { color: var(--theme); margin-top: 5px; }
.details-content .check-list li strong { color: var(--header); }
.step-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; counter-reset: step; }
.step-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--border); border-radius: 8px; background: #fff; counter-increment: step; }
.step-list li::before { content: counter(step); flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--theme); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; }
.step-list li strong { color: var(--header); }
.details-content .faq-items { margin: 0; gap: 14px; }

.sidebar { display: grid; gap: 30px; position: sticky; top: 110px; }
.single-sidebar-widget { padding: 30px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.wid-title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.wid-title::before { content: ''; width: 16px; height: 2px; background: var(--theme); box-shadow: 6px 0 0 var(--theme); }
.wid-title h3 { font-size: 20px; font-weight: 500; }
.widget-categories { display: grid; gap: 12px; }
.widget-categories a { display: flex; align-items: stretch; justify-content: space-between; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 15px; color: var(--header); transition: border-color .3s ease, color .3s ease; }
.widget-categories a span:first-child { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.widget-categories a span:first-child .icon-svg { color: var(--theme); }
.widget-categories a .count { min-width: 46px; display: flex; align-items: center; justify-content: center; background: var(--theme); color: #fff; font-size: 13px; transition: background .3s ease; }
.widget-categories a:hover, .widget-categories a.active { border-color: var(--theme); color: var(--theme); }
.widget-categories a:hover .count, .widget-categories a.active .count { background: var(--theme-2-text); }
.recent-items { display: grid; gap: 20px; }
.recent-item { display: flex; gap: 14px; align-items: center; }
.recent-item .thumb { width: 74px; height: 74px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--lavender); color: var(--theme); display: flex; align-items: center; justify-content: center; }
.recent-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-item h4 { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--header); transition: color .3s ease; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-item:hover h6 { color: var(--theme); }
.recent-item small { display: inline-flex; align-items: center; gap: 6px; color: var(--theme); font-size: 13px; margin-top: 4px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tagcloud a, .tagcloud span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700; color: var(--header); transition: all .3s ease; }
.tagcloud a:hover { background: var(--theme); border-color: var(--theme); color: #fff; }
.sidebar-cta { position: relative; overflow: hidden; border-radius: 6px; background: var(--theme); padding: 34px 30px; color: #fff; }
.sidebar-cta .dot-pattern { width: 220px; height: 220px; right: -60px; top: -60px; color: rgba(255,255,255,.3); }
.sidebar-cta .icon { position: relative; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--theme); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.sidebar-cta h3 { position: relative; color: #fff; font-size: 24px; margin-bottom: 10px; }
.sidebar-cta p { position: relative; color: rgba(255,255,255,.88); font-size: 15px; margin-bottom: 22px; }
.related-tools { display: grid; gap: 10px; }
.related-tools a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-weight: 500; font-size: 15px; color: var(--header); line-height: 1.4; transition: all .3s ease; }
.related-tools a .ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--card-color, var(--theme)); background: color-mix(in srgb, var(--card-color, var(--theme)) 14%, #fff); }
.related-tools a:hover { border-color: var(--theme); color: var(--theme); transform: translateX(4px); }

/* ---------- Feature grid / steps / quote (category + home content partials) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 20px 0 30px; }
.feature-box { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: transform .4s ease, box-shadow .4s ease; }
.feature-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-box .f-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: #ffebeb; color: #f05454; }
.feature-box:nth-child(4n+2) .f-icon { background: #f0eefb; color: var(--theme); }
.feature-box:nth-child(4n+3) .f-icon { background: #daf8ec; color: #1fb57a; }
.feature-box:nth-child(4n+4) .f-icon { background: #fffae8; color: #e2a600; }
.feature-box h3 { font-size: 20px; margin-bottom: 8px; }
.feature-box p { font-size: 15px; }
.details-content .feature-grid { grid-template-columns: repeat(2, 1fr); }

.steps-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; margin: 20px 0 30px; }
.steps-flow::before { content: ''; position: absolute; top: 44px; left: 16%; right: 16%; border-top: 2px dashed rgba(108,87,210,.3); }
.step-item { position: relative; text-align: center; }
.step-circle { position: relative; width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--theme); box-shadow: var(--shadow-lg); border: 6px solid var(--lavender); transition: background .4s ease, color .4s ease; }
.step-item:hover .step-circle { background: var(--theme); color: #fff; }
.step-num { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--theme-2); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-item h3 { font-size: 20px; margin-bottom: 8px; }
.step-item p { font-size: 15px; }

.pull-quote { position: relative; padding: 40px 44px; margin: 10px 0 36px; border-radius: 10px; background: var(--cream); border-left: 4px solid var(--theme-2); }
.pull-quote .quote-mark { font-family: 'Outfit', sans-serif; font-size: 64px; line-height: .6; color: var(--theme-2); margin-bottom: 10px; }
.pull-quote p.quote-text { font-size: 20px; font-style: italic; color: var(--header); margin-bottom: 12px; line-height: 1.6; }
.pull-quote .quote-by { font-weight: 600; color: var(--theme); }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-tile { display: flex; flex-direction: column; }
.blog-tile-img { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: 8px; background: var(--lavender); }
.blog-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.blog-tile:hover .blog-tile-img img { transform: scale(1.06); }
.blog-tile-img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--theme); }
.blog-tile-img .tag { position: absolute; left: 16px; bottom: 16px; background: var(--theme); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.blog-tile-body { padding-top: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-tile-meta { display: flex; align-items: center; gap: 16px; font-size: 14px; margin-bottom: 8px; }
.blog-tile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-tile-meta .icon-svg { color: var(--theme-2); }
.blog-tile-body h2, .blog-tile-body h3 { font-size: 21px; line-height: 1.4; margin-bottom: 10px; transition: color .3s ease; }
.blog-tile:hover h2, .blog-tile:hover h3 { color: var(--theme); }
.blog-tile-body p { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.blog-tile-body .link-btn { margin-top: auto; }
.blog-slider-viewport { overflow: hidden; }
.blog-slider-track.blog-slider-grid { display: flex; flex-wrap: nowrap; transition: transform .6s cubic-bezier(.2,.9,.25,1); }
.blog-slider-card { flex-shrink: 0; }
.blog-slider-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.blog-slider-head .section-title { margin-bottom: 0; }

/* ---------- Blog article ---------- */
.blog-article-head { margin-bottom: 26px; }
.blog-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 15px; margin-bottom: 14px; }
.blog-article-meta span, .blog-article-meta time { display: inline-flex; align-items: center; gap: 6px; }
.blog-article-meta .icon-svg { color: var(--theme); }
.blog-article-head h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; }
.blog-feature-img { margin: 0 0 30px; border-radius: 8px; overflow: hidden; }
.blog-feature-img img { width: 100%; display: block; }
.blog-content { font-size: 17px; line-height: 1.85; }
.blog-content h2 { font-size: 30px; margin: 36px 0 14px; }
.blog-content h3 { font-size: 23px; margin: 28px 0 12px; }
.blog-content p { margin: 0 0 18px; }
.blog-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.blog-content ul, .blog-content ol { margin: 0 0 18px; padding-left: 22px; }
.blog-content li { margin-bottom: 8px; }
.blog-content blockquote { margin: 26px 0; padding: 26px 30px; background: var(--cream); border-left: 4px solid var(--theme-2); border-radius: 6px; color: var(--header); font-style: italic; font-size: 19px; }
.blog-content a { color: var(--theme); text-decoration: underline; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.blog-content th, .blog-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.blog-content th { background: var(--lavender); color: var(--header); }
.blog-faqs { margin-top: 40px; }
.blog-faqs h2 { font-size: 30px; margin-bottom: 20px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.blog-tags-footer { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); }
.blog-tags-label { font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--header); font-size: 18px; margin-right: 6px; }
.blog-tag { padding: 6px 14px; border: 1px solid var(--line); border-radius: 4px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 14px; color: var(--header); }
.admin-preview-banner { margin: 24px 0 0; padding: 14px 18px; border-radius: 6px; font-size: 15px; background: #fff7e0; border: 1px solid #f6d77e; color: var(--header); }

.legal-body h2 { font-size: 26px; margin: 34px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { margin-bottom: 12px; }
.legal-body a { color: var(--theme); text-decoration: underline; }
.content-card { padding: 50px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--footer); color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.footer-widget-wrapper { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.1fr; gap: 40px; padding: 90px 0 80px; }
.footer-brand .brand .brand-name { color: #fff; }
.footer-brand .brand .brand-name b { color: #ffb27f; }
.footer-brand .brand { margin-bottom: 22px; }
.footer-brand p { font-size: 16px; line-height: 1.85; max-width: 320px; }
.footer-brand p a { color: var(--theme-2); }
.footer-brand .social-icon { margin-top: 28px; gap: 12px; }
.footer-brand .social-icon a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .3s ease; }
.footer-brand .social-icon a:hover { background: var(--theme-2); color: #fff; }
.footer-col h4, .footer-col .footer-title { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 26px; }
.footer-col .list-area { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col .list-area a { position: relative; padding-left: 18px; color: rgba(255,255,255,.85); font-size: 16px; transition: color .3s ease, padding-left .3s ease; }
.footer-col .list-area a::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: rgba(255,255,255,.85); transition: background .3s ease; }
.footer-col .list-area a:hover { color: var(--theme-2); padding-left: 22px; }
.footer-col .list-area a:hover::before { background: var(--theme-2); }
.contact-list { display: grid; gap: 18px; }
.contact-list .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .item .icon-svg { color: var(--theme-2); margin-top: 4px; }
.contact-list .item h5 { color: #fff; font-size: 18px; }
.contact-list .item p, .contact-list .item a { font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.6; }
.contact-list .item a:hover { color: var(--theme-2); }
.footer-bottom { background: var(--footer-bottom); }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 15px; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--theme-2); }
.footer-legal-links { display: flex; gap: 22px; flex-wrap: wrap; }

.back-to-top { position: fixed; right: 26px; bottom: 26px; width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--theme); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 150; box-shadow: 0 10px 25px rgba(108,87,210,.35); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .4s ease; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--theme-2); }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 999; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--red); box-shadow: var(--shadow-lg); transform: translateX(120%); opacity: 0; transition: transform .35s cubic-bezier(.2,.9,.25,1), opacity .35s ease; }
.toast.show { transform: none; opacity: 1; }
.toast.toast-success { border-left-color: #1fb57a; }
.toast.toast-success .toast-icon { color: #1fb57a; }
.toast.toast-error .toast-icon { color: var(--red); }
.toast .toast-msg { font-size: 15px; color: var(--header); line-height: 1.45; flex: 1; }
.toast .toast-close { cursor: pointer; color: var(--body); flex-shrink: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1599px) {
  .nav-search { display: none; }
  .header-right .mobile-search-toggle { display: inline-flex; }
  nav.main-nav { gap: 0; }
  nav.main-nav > .nav-item > a { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 1299px) {
  nav.main-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav-bar { justify-content: space-between; }
  .details-wrapper { grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
  .footer-widget-wrapper { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .section-padding { padding: 80px 0; }
  .section { padding: 60px 0; }
  nav.main-nav, .header-right .theme-btn { display: none; }
  .mobile-toggle, .mobile-search-toggle { display: inline-flex; }
  .nav-bar { min-height: 76px; }
  .header-top-list span:nth-child(n+3) { display: none; }
  .hero-grid, .about-wrapper, .choose-us-wrapper { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-wrapper-2 { grid-template-columns: repeat(2, 1fr); }
  .details-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .support-box { grid-template-columns: 1fr; padding: 36px; }
  .support-box .support-visual { min-height: 200px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); }
  .tool-panel, .devtool-panel { padding: 28px; }
}
@media (max-width: 767px) {
  .drawer-peek-btn { display: none; }
  .header-top { display: none; }
  .hero-1 { padding: 60px 0 80px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .service-wrapper-2 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .feature-grid, .details-content .feature-grid { grid-template-columns: 1fr; }
  .steps-flow { grid-template-columns: 1fr; gap: 36px; }
  .steps-flow::before { display: none; }
  .footer-widget-wrapper { grid-template-columns: 1fr; padding: 70px 0 50px; gap: 34px; }
  .cta-search { flex-direction: column; }
  .cta-section .shape-icon { display: none; }
  .page-banner { padding: 60px 0 70px; }
  .tool-app { margin-top: -30px; }
  .tool-panel, .devtool-panel { padding: 20px; }
  .dropzone { padding: 34px 14px; }
  .field { min-width: 100%; flex: 1 1 100%; }
  .actions-row { flex-direction: column; }
  .actions-row .btn { width: 100%; }
  .faq-item summary { font-size: 17px; padding: 18px 50px 18px 18px; }
  .faq-item summary::after { right: 20px; }
  .faq-item p { padding: 14px 18px 18px; }
  .content-card { padding: 26px 20px; }
  .single-sidebar-widget { padding: 24px 20px; }
  .counter-items .num { font-size: 38px; }
  .hero-float.f1 { right: 0; min-width: 170px; }
  .hero-visual { padding: 24px 6px; }
  .choose-visual { min-height: 0; padding: 32px 24px; }
  .format-orbit { gap: 12px; }
  .about-visual { min-height: 0; padding: 40px 20px 60px; }
  .theme-btn { padding-left: 22px; gap: 18px; }
  .theme-btn .arrow { width: 42px; height: 42px; }
  .toast-stack { top: 12px; right: 12px; left: 12px; max-width: none; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .counter-wrapper { grid-template-columns: 1fr; }
  .hero-btn { gap: 14px; }
  .hero-btn .theme-btn { width: 100%; justify-content: space-between; }
  .brand .brand-name { font-size: 22px; }
  .brand img { height: 34px; width: 34px; }
  .support-box { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Unit converters ---------- */
.related-tools a.active { border-color: var(--theme); color: var(--theme); background: var(--lavender); }
.unit-jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 50px; }
.unit-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 30px; background: #fff; color: var(--header); font-weight: 500; font-size: 15px; transition: all .3s ease; }
.unit-jump a .icon-svg { color: var(--theme); }
.unit-jump a .count { font-size: 12px; font-weight: 600; color: var(--theme); background: var(--lavender); border-radius: 20px; padding: 1px 8px; }
.unit-jump a:hover { border-color: var(--theme); color: var(--theme); }
.unit-group { margin-bottom: 60px; scroll-margin-top: 120px; }
.unit-group:last-child { margin-bottom: 0; }
.unit-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.unit-group-head .ic { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--lavender); color: var(--theme); }
.unit-group-head h2 { font-size: 28px; margin: 0 0 2px; }
.unit-group-head p { margin: 0; }

.unit-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: end; }
.unit-side { min-width: 0; }
.unit-side input { font-size: 22px; font-weight: 600; padding: 14px 16px; }
.unit-side select { margin-top: 8px; }
.unit-swap { width: 52px; height: 52px; margin-bottom: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--theme); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .3s ease; }
.unit-swap:hover { background: var(--theme); color: #fff; transform: rotate(180deg); }
.unit-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding: 18px 22px; border-radius: 10px; background: var(--cream); border: 1px solid #f6e7c8; }
.unit-equation { margin: 0; font-size: 18px; color: var(--header); word-break: break-word; }
.unit-equation strong { color: var(--theme); }
.unit-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.unit-tools .btn { padding: 9px 16px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.unit-precision { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--header); }
.unit-precision select { border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-family: inherit; color: var(--header); background: #fff; }
.unit-error { display: none; margin: 12px 0 0; color: #c62828; font-weight: 500; }
.unit-error.show { display: block; }
.unit-all { margin-top: 30px; }
.unit-all-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.unit-all-head h2 { font-size: 22px; margin: 0; }
.unit-all-head input { border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; font-family: inherit; font-size: 15px; min-width: 240px; color: var(--header); }
.unit-all-head input:focus { outline: none; border-color: var(--theme); box-shadow: 0 0 0 3px rgba(108,87,210,.12); }
.unit-table-wrap { max-height: 460px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.details-content .unit-table-wrap { max-height: none; margin-bottom: 26px; }
.unit-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.unit-table th { position: sticky; top: 0; background: var(--lavender); color: var(--header); text-align: left; font-weight: 600; padding: 11px 16px; }
.unit-table td { padding: 9px 16px; border-top: 1px solid var(--border); color: var(--header); }
.unit-table td:nth-child(2) { color: var(--body); }
.unit-table td:last-child { font-variant-numeric: tabular-nums; word-break: break-all; }
#unit-table tbody tr { cursor: pointer; transition: background .2s ease; }
#unit-table tbody tr:hover { background: #faf9ff; }
#unit-table tbody tr.is-target { background: var(--lavender); font-weight: 600; }
.unit-table td.empty { text-align: center; color: var(--body); padding: 20px; }
.unit-table.static td:last-child { font-weight: 600; }

.unit-home-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.unit-home-group { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: #fff; transition: all .3s ease; }
.unit-home-group .ic { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--lavender); color: var(--theme); }
.unit-home-group strong { display: block; color: var(--header); font-family: 'Outfit', sans-serif; font-size: 17px; margin-bottom: 4px; }
.unit-home-group small { display: block; color: var(--body); font-size: 14px; line-height: 1.5; }
.unit-home-group:hover { border-color: var(--theme); transform: translateY(-4px); box-shadow: var(--shadow); }
@media (max-width: 1199px) { .unit-home-groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .unit-row { grid-template-columns: 1fr; }
  .unit-swap { margin: 0 auto; transform: rotate(90deg); }
  .unit-swap:hover { transform: rotate(270deg); }
  .unit-home-groups { grid-template-columns: 1fr; }
  .unit-all-head input { min-width: 0; width: 100%; }
  .unit-group-head h2 { font-size: 22px; }
}
.pair-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 30px; }
.pair-links a { display: inline-flex; padding: 8px 14px; border: 1px solid var(--border); border-radius: 30px; background: #fff; color: var(--header); font-size: 15px; font-weight: 500; transition: all .25s ease; }
.pair-links a:hover { border-color: var(--theme); color: var(--theme); }

/* The home page's 15 category blocks are only laid out and painted when
   scrolled near. Estimated sizes follow the measured block heights per
   breakpoint; `auto` keeps the real size once a block has been shown. */
.cat-block { content-visibility: auto; contain-intrinsic-size: auto 410px; }
@media (max-width: 1099px) { .cat-block { contain-intrinsic-size: auto 660px; } }
@media (max-width: 767px) { .cat-block { contain-intrinsic-size: auto 1120px; } }
