/* =========================================================
   SpeedoOne — All Modules page
   ========================================================= */
:root{
  --brand:#1E72B8; --brand-dark:#145A96;
  --ink:#111827; --ink-2:#4B5563; --ink-3:#6B7280;
  --bg:#F9FAFB; --border:#E5E7EB;
  --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--font);background:#fff;color:var(--ink);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
.wrap{max-width:1240px;margin-inline:auto;padding-inline:clamp(16px,3.2vw,32px)}
.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3{margin:0;line-height:1.16;letter-spacing:-.022em}

/* ---------- header ---------- */
.mod-nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.mod-nav-in{display:flex;align-items:center;gap:26px;height:64px}
.brand{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink)}
.brand svg{width:30px;height:30px}
.brand b{font-size:1.06rem;font-weight:800;letter-spacing:-.02em}
.mod-links{display:flex;gap:22px;margin-left:8px}
.mod-links a{text-decoration:none;color:var(--ink-2);font-size:.9rem;font-weight:600}
.mod-links a:hover{color:var(--brand)}
.btn-cta{margin-left:auto;display:inline-flex;align-items:center;gap:8px;background:var(--brand);color:#fff;text-decoration:none;font-size:.86rem;font-weight:750;padding:10px 18px;border-radius:9px;transition:background .2s var(--ease)}
.btn-cta:hover{background:var(--brand-dark)}
.btn-cta.big{margin-left:0;padding:14px 24px;font-size:.95rem}
.btn-cta .ico{width:16px;height:16px}
@media (max-width:760px){.mod-links{display:none}}

/* ---------- hero ---------- */
.mod-hero{padding:clamp(48px,7vw,88px) 0 clamp(30px,4vw,48px);text-align:center;
  background:linear-gradient(180deg,#F4F8FC 0%,#fff 100%)}
.mod-hero h1{font-size:clamp(1.9rem,4.2vw,3rem);font-weight:800;letter-spacing:-.03em}
.mod-hero p{margin:14px auto 0;max-width:56ch;color:var(--ink-2);font-size:1.04rem}

/* ---------- categories ---------- */
.mod-cats{padding:clamp(26px,3.5vw,52px) 0 clamp(40px,5vw,72px)}
.mod-cat{
  display:grid;grid-template-columns:minmax(0,250px) minmax(0,1fr);
  gap:clamp(20px,3vw,48px);align-items:start;
  padding:clamp(30px,3.8vw,52px) 0;border-bottom:1px solid var(--border);
}
.mod-cat:last-child{border-bottom:0}
.mod-cat-hd{position:sticky;top:132px}
.mod-cat-hd h2{font-size:clamp(1.25rem,2vw,1.55rem);font-weight:800;letter-spacing:-.02em}
.mod-cat-hd h2::after{content:"";display:block;width:36px;height:3px;border-radius:99px;background:linear-gradient(90deg,#3971B3,#27568E);margin-top:10px}
.mod-cat-hd p{margin:12px 0 0;color:var(--ink-3);font-size:.92rem;line-height:1.6}
.mod-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:0}
@media (max-width:900px){
  .mod-cat{grid-template-columns:1fr;gap:18px}
  .mod-cat-hd{position:static}
  .mod-cat-hd h2::after{margin-inline:0}
}
@media (max-width:620px){.mod-grid{grid-template-columns:1fr}}

.mod-card{
  display:flex;align-items:flex-start;gap:13px;text-decoration:none;
  padding:16px;border:1px solid var(--border);border-radius:13px;background:#fff;
  transition:border-color .2s var(--ease),box-shadow .2s var(--ease),transform .2s var(--ease);
}
.mod-card:hover{border-color:rgba(30,114,184,.35);transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(16,42,70,.09),0 3px 8px rgba(16,42,70,.05)}
.mc-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;flex:0 0 auto;color:var(--brand);background:#E8F2FB}
.mc-ic.c-blue{background:#E8F2FB;color:#1E72B8}
.mc-ic.c-teal{background:#E2F6F2;color:#0E9F8E}
.mc-ic.c-green{background:#E8F7EB;color:#16A34A}
.mc-ic.c-amber{background:#FDF1E0;color:#D97706}
.mc-ic.c-violet{background:#EDEBFC;color:#6D5AE6}
.mc-ic.c-rose{background:#FCE9F0;color:#E0517A}
.mc-tx{min-width:0}
.mc-tx b{display:block;font-size:1rem;font-weight:750;letter-spacing:-.01em;color:var(--ink);margin-bottom:3px}
.mc-tx span{display:block;font-size:.82rem;line-height:1.5;color:var(--ink-3)}
.mc-go{margin-left:auto;align-self:center;color:var(--brand);opacity:0;transform:translateX(-6px);transition:opacity .2s var(--ease),transform .2s var(--ease)}
.mc-go .ico{width:17px;height:17px}
.mod-card:hover .mc-go{opacity:1;transform:none}

/* ---------- suite band ---------- */
.mod-suite{background:linear-gradient(135deg,#27568E 0%,#3971B3 100%);color:#fff;padding:clamp(36px,4.5vw,60px) 0}
.mod-suite-in{display:flex;align-items:center;justify-content:space-between;gap:26px;flex-wrap:wrap}
.ms-kicker{display:block;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#BCD7F2;margin-bottom:6px}
.mod-suite h2{font-size:clamp(1.5rem,2.6vw,2rem);font-weight:800;letter-spacing:-.02em}
.mod-suite p{margin:8px 0 0;color:#D8E6F5;max-width:52ch}
.mod-suite .btn-cta{background:#fff;color:#27568E}
.mod-suite .btn-cta:hover{background:#E9F2FB}

/* ---------- footer ---------- */
.mod-ftr{border-top:1px solid var(--border);padding:26px 0;background:#fff}
.mod-ftr-in{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.mod-ftr p{margin:0;color:var(--ink-3);font-size:.84rem}

/* ---------- toolbar: search + category chips ---------- */
.mod-toolbar{position:sticky;top:64px;z-index:40;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}
.mod-toolbar-in{display:flex;align-items:center;gap:16px;padding-block:10px;flex-wrap:wrap}
#mod-search{
  flex:0 0 240px;padding:9px 14px;border:1px solid var(--border);border-radius:9px;
  font:inherit;font-size:.88rem;color:var(--ink);background:var(--bg);outline:none;
  transition:border-color .2s var(--ease),box-shadow .2s var(--ease);
}
#mod-search:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(30,114,184,.14);background:#fff}
.mod-chips{display:flex;gap:8px;flex-wrap:wrap}
.mod-chips a{
  text-decoration:none;font-size:.78rem;font-weight:700;color:var(--ink-2);
  padding:6px 13px;border:1px solid var(--border);border-radius:9999px;background:#fff;
  transition:color .18s var(--ease),border-color .18s var(--ease),background .18s var(--ease);
}
.mod-chips a:hover{color:var(--brand);border-color:rgba(30,114,184,.4);background:#F0F7FD}
@media (max-width:760px){#mod-search{flex:1 1 100%}}

/* =========================================================
   APP BROWSER — full-page reference products panel
   ========================================================= */
.ap-tabs{border-bottom:1px solid var(--border);background:#fff;position:sticky;top:64px;z-index:40}
.ap-tabs-in{display:flex;align-items:center;gap:26px}
.ap-tab{
  padding:15px 2px;text-decoration:none;font-size:.94rem;font-weight:650;color:var(--ink-2);
  border-bottom:2.5px solid transparent;margin-bottom:-1px;
}
.ap-tab:hover{color:var(--brand)}
.ap-tab.on{color:var(--brand);border-bottom-color:var(--brand)}
.ap-sep{width:1px;height:22px;background:var(--border)}
.ap-explore{display:inline-flex;align-items:center;gap:7px;text-decoration:none;font-size:.8rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--brand)}
.ap-explore .ico{width:14px;height:14px}
.ap-body{display:grid;grid-template-columns:260px minmax(0,1fr);gap:clamp(20px,2.6vw,40px);padding-block:clamp(20px,2.6vw,34px)}
.ap-side{display:flex;flex-direction:column;gap:10px;position:sticky;top:132px;align-self:start;max-height:calc(100vh - 150px)}
.ap-search-wrap{padding-bottom:2px}
#ap-search{
  width:100%;padding:10px 14px;border:1px solid var(--border);border-radius:9px;
  font:inherit;font-size:.9rem;background:#fff;outline:none;
  transition:border-color .2s var(--ease),box-shadow .2s var(--ease);
}
#ap-search:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(30,114,184,.13)}
.ap-cats{display:flex;flex-direction:column;gap:2px;overflow-y:auto;border:1px solid var(--border);border-radius:11px;padding:6px;background:#fff}
.ap-cat{
  text-align:left;font:inherit;font-size:.9rem;font-weight:600;color:var(--ink-2);
  background:none;border:0;border-radius:8px;padding:9px 12px;cursor:pointer;
  transition:background .15s var(--ease),color .15s var(--ease);
}
.ap-cat:hover{background:#EDF3FA;color:var(--brand)}
.ap-cat.on{background:#E3EEF9;color:var(--brand);font-weight:750}
.ap-all-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--brand);color:#fff;text-decoration:none;font-size:.8rem;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;padding:13px 16px;border-radius:9px;
}
.ap-all-btn:hover{background:var(--brand-dark)}
.ap-all-btn .ico{width:15px;height:15px}
.ap-pane{display:none}
.ap-pane.on{display:block;animation:apIn .25s var(--ease)}
@keyframes apIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.ap-pane h2{font-size:clamp(1.4rem,2.2vw,1.8rem);font-weight:750;letter-spacing:-.02em;margin-bottom:20px}
.ap-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.ap-card{
  display:flex;flex-direction:column;gap:10px;text-decoration:none;
  border:1px solid var(--border);border-radius:12px;padding:18px;background:#fff;
  transition:border-color .18s var(--ease),box-shadow .18s var(--ease),transform .18s var(--ease);
}
.ap-card:hover{border-color:rgba(30,114,184,.35);transform:translateY(-3px);box-shadow:0 16px 34px rgba(16,42,70,.10)}
.ap-top{display:flex;align-items:center;gap:11px}
.ap-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#E8F2FB;color:var(--brand);flex:0 0 auto}
.ap-ic .ico{width:22px;height:22px}
.ap-name i{display:block;font-style:normal;font-size:.68rem;font-weight:700;color:var(--ink-3);line-height:1}
.ap-name b{display:block;font-size:1.08rem;font-weight:800;color:var(--ink);letter-spacing:-.015em;line-height:1.25}
.ap-card p{margin:0;font-size:.84rem;line-height:1.55;color:var(--ink-2)}
.ap-try{display:inline-flex;align-items:center;gap:6px;margin-top:auto;font-size:.74rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--brand)}
.ap-try .ico{width:14px;height:14px}
@media (max-width:860px){
  .ap-body{grid-template-columns:1fr}
  .ap-side{position:static;max-height:none}
  .ap-cats{flex-direction:row;flex-wrap:wrap}
}

/* =========================================================
   PREMIUM POLISH
   ========================================================= */
.mod-hero{
  background:
    radial-gradient(680px 340px at 18% 0%,rgba(57,113,179,.10),transparent 65%),
    radial-gradient(680px 340px at 82% 10%,rgba(109,90,230,.08),transparent 65%),
    linear-gradient(180deg,#F4F8FC 0%,#fff 100%);
}
.mod-kicker{
  display:inline-block;margin-bottom:14px;padding:6px 14px;border-radius:9999px;
  background:#E8F2FB;border:1px solid rgba(30,114,184,.18);
  font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--brand);
}
.mod-hero h1{
  background:linear-gradient(180deg,#16233B,#27568E);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.mod-stats{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:22px}
.mod-stats span{font-size:.9rem;color:var(--ink-3);font-weight:600}
.mod-stats b{color:var(--ink);font-weight:800;font-size:1.05rem;margin-right:4px}
.mod-stats i{width:1px;height:18px;background:var(--border)}

.mod-cats{background:linear-gradient(180deg,#fff 0%,#FAFBFD 100%)}
.mod-card{border-radius:14px}
.mod-card:hover .mc-tx b{color:var(--brand)}
.mod-card:hover .mc-ic{transform:scale(1.07)}
.mc-ic{transition:transform .2s var(--ease)}
.mc-tx b{transition:color .18s var(--ease)}

.mod-chips a{background:var(--bg)}
.mod-chips a:hover{box-shadow:0 4px 12px rgba(30,114,184,.12)}

.mod-suite{
  position:relative;overflow:hidden;
  background:
    radial-gradient(560px 300px at 85% 20%,rgba(143,203,242,.25),transparent 60%),
    linear-gradient(135deg,#1B3A61 0%,#27568E 55%,#3971B3 100%);
}
.mod-suite::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:
    linear-gradient(to right,rgba(255,255,255,.05) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:44px 44px;
}
.mod-suite > .wrap{position:relative}
.mod-suite .btn-cta{box-shadow:0 10px 26px rgba(0,0,0,.22)}

/* close button in tabs bar */
.ap-close{
  margin-left:auto;background:none;border:0;cursor:pointer;
  font-size:1.1rem;color:var(--ink-2);padding:6px 10px;border-radius:8px;
}
.ap-close:hover{background:var(--bg);color:var(--ink)}
.ap-explore{margin-left:auto}
.ap-explore + .ap-close{margin-left:14px}

/* embed mode — chrome hidden inside panel */
html.embed .mod-nav,html.embed .mod-hero,html.embed .mod-suite,html.embed .mod-ftr{display:none}
html.embed .ap-tabs{top:0}
html.embed .ap-side{top:70px}
.ap-close{display:none}
html.embed .ap-close{display:inline-block}

/* embed: kill extra spacing */
html.embed body{background:#fff}
html.embed main{padding:0;margin:0}
html.embed .ap-tabs-in{padding-block:0}
html.embed .ap-body{padding-block:14px 20px;gap:18px}
html.embed .ap-pane h2{margin-bottom:12px;font-size:1.3rem}
html.embed .ap-side{top:56px;max-height:calc(100vh - 70px)}

/* embed: full-width, no big side margins */
html.embed .wrap{max-width:none;padding-inline:clamp(14px,1.6vw,24px)}

/* ============ clean LIKE POLISH ============ */
.ap-side{position:sticky;top:84px;align-self:flex-start}
.ap-cat{position:relative;border-radius:8px;transition:background .16s ease,color .16s ease}
.ap-cat:hover{background:#F0F6FC;color:#1E72B8}
.ap-cat.on{background:#E8F1FA;color:#1E72B8;font-weight:750}
.ap-cat.on::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:99px;background:#1E72B8}
#ap-search{border-radius:10px;transition:border-color .18s ease,box-shadow .18s ease}
#ap-search:focus{outline:none;border-color:#1E72B8;box-shadow:0 0 0 3px rgba(30,114,184,.15)}
.ap-card{border-radius:14px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.ap-card:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(16,42,70,.12);border-color:rgba(30,114,184,.35)}
.ap-ic{border-radius:11px;transition:transform .18s ease}
.ap-card:hover .ap-ic{transform:scale(1.07)}
.ap-grid .ap-card:nth-child(6n+1) .ap-ic{background:#E8F1FA;color:#1E72B8}
.ap-grid .ap-card:nth-child(6n+2) .ap-ic{background:#FCE8EC;color:#D6336C}
.ap-grid .ap-card:nth-child(6n+3) .ap-ic{background:#E6F6EC;color:#16A34A}
.ap-grid .ap-card:nth-child(6n+4) .ap-ic{background:#FDF0E0;color:#D97706}
.ap-grid .ap-card:nth-child(6n+5) .ap-ic{background:#EFEAFB;color:#7C3AED}
.ap-grid .ap-card:nth-child(6n+6) .ap-ic{background:#E0F3F5;color:#0E7490}
.ap-try{color:#1E72B8;font-weight:750}
.ap-card:hover .ap-try{text-decoration:underline}
.ap-tab{position:relative;transition:color .16s ease}
.ap-tab::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2.5px;border-radius:99px;background:#1E72B8;transform:scaleX(0);transition:transform .2s ease}
.ap-tab.on::after,.ap-tab:hover::after{transform:scaleX(1)}
.ap-tab.on{color:#1E72B8}
.ap-pane h2{position:relative;padding-bottom:10px}
.ap-pane h2::after{content:"";position:absolute;left:0;bottom:0;width:44px;height:3px;border-radius:99px;background:linear-gradient(90deg,#1E72B8,#5EA3DC)}

/* ============ reference FLAT GRID (like screenshot) ============ */
.ap-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px 10px}
@media (max-width:1400px){.ap-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:1100px){.ap-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){.ap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:540px){.ap-grid{grid-template-columns:minmax(0,1fr)}}
.ap-card{
  background:transparent;border:0;box-shadow:none;border-radius:10px;padding:18px 16px;
}
.ap-card:hover{background:#F5F6F8;transform:none;box-shadow:none;border:0}
/* icon: outline, no tile bg, sits beside name */
.ap-grid .ap-card .ap-ic{background:transparent !important;width:40px;height:40px;border-radius:0}
.ap-grid .ap-card .ap-ic .ico{width:34px;height:34px;stroke-width:1.4}
.ap-card:hover .ap-ic{transform:none}
.ap-grid .ap-card:nth-child(6n+1) .ap-ic{color:#1E72B8}
.ap-grid .ap-card:nth-child(6n+2) .ap-ic{color:#16A34A}
.ap-grid .ap-card:nth-child(6n+3) .ap-ic{color:#D97706}
.ap-grid .ap-card:nth-child(6n+4) .ap-ic{color:#D6336C}
.ap-grid .ap-card:nth-child(6n+5) .ap-ic{color:#DC4B26}
.ap-grid .ap-card:nth-child(6n+6) .ap-ic{color:#0E7490}
.ap-name i{font-size:0;display:none}
.ap-name b{font-size:1.16rem;font-weight:700;letter-spacing:-.01em}
.ap-card p{color:#4B5563;font-size:.88rem;line-height:1.5}
/* try-now hidden until hover, clean style */
.ap-try{opacity:0;transform:translateY(2px);transition:opacity .16s ease,transform .16s ease;font-size:.78rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#1E72B8}
.ap-card:hover .ap-try{opacity:1;transform:none;text-decoration:none}
/* pane heading — big, plain like reference */
.ap-pane h2{font-size:1.7rem;font-weight:750;padding-bottom:14px}
.ap-pane h2::after{display:none}
/* search box magnifier */
.ap-search-wrap{position:relative}
.ap-search-wrap::before{
  content:"";position:absolute;left:12px;top:50%;transform:translateY(-50%);width:15px;height:15px;pointer-events:none;
  background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236B7280" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>') center/contain no-repeat;
}
#ap-search{padding-left:34px}

/* ============ SIDEBAR ============ */
.ap-cats{display:flex;flex-direction:column;gap:2px;max-height:420px;overflow-y:auto;padding-right:6px}
.ap-cat{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  background:none;border:0;border-radius:6px;padding:8px 10px;text-align:left;
  font-size:.95rem;font-weight:600;color:#111827;cursor:pointer;
}
.ap-cat::before{display:none}
.ap-cat::after{content:"\203A";font-size:1.1rem;line-height:1;color:#1E72B8;opacity:0;transition:opacity .15s ease}
.ap-cat:hover{background:#F5F8FB;color:#1E72B8}
.ap-cat.on{background:#F5F8FB;color:#1E72B8;font-weight:700}
.ap-cat.on::after,.ap-cat:hover::after{opacity:1}
/* thin scrollbar */
.ap-cats::-webkit-scrollbar{width:5px}
.ap-cats::-webkit-scrollbar-thumb{background:#C9D3DE;border-radius:99px}
/* explore button — solid blue */
.ap-all-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:14px;
  background:#1E72B8;color:#fff;border-radius:6px;padding:12px 18px;
  font-size:.82rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;text-decoration:none;
}
.ap-all-btn:hover{background:#1B67A6}
.ap-all-btn .ico{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ============ reference SAME: pinned recent, badges, suites cards ============ */
.ap-cat-pin{width:100%;margin-bottom:8px;background:#fff;border:1px solid #E3E7EC !important;border-radius:8px;box-shadow:0 2px 6px rgba(16,42,70,.05)}
.ap-cat-pin.on{background:#fff;color:#1E72B8}
.ap-card{position:relative}
.ap-new{
  position:absolute;top:12px;left:56px;background:#16A34A;color:#fff;
  font-size:.56rem;font-weight:800;letter-spacing:.08em;padding:2.5px 7px;border-radius:3px;
}
.ap-suites{position:absolute;top:10px;right:12px;font-size:.62rem;font-weight:800;letter-spacing:.08em;color:#6B7280}
.ap-suite-card{background:#EAF2FB;border-radius:10px}
.ap-suite-card:hover{background:#DFECf9}
