/* =====================================================================
   Storxie Nexus inner pages.
   Sits on top of site-v11.css and uses only the existing brand tokens.
   Provides the varied hero layouts plus the shared inner page components.
   ===================================================================== */

/* --- hero, base ------------------------------------------------------- */
.sx-hero{padding:26px 0 46px}
.sx-hero h1{max-width:820px}
.sx-hero .sub{max-width:620px;font-size:17.5px;color:var(--body);line-height:1.62}
.sx-eyebrow{
  font-size:12.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--brand);margin:0 0 10px;
}

/* --- hero variant 1: text led (About, Insights, Contact) --------------- */
.sx-hero--text .sx-hero-inner{max-width:780px}
.sx-hero--text .sub{margin-bottom:22px}

/* --- hero variant 2: text beside a visual (Redesign, AI, Free Check) --- */
.sx-hero--split .sx-hero-grid{
  display:grid;grid-template-columns:1.02fr .98fr;gap:40px;align-items:center;
}
.sx-hero--split .sub{margin-bottom:22px}

/* --- hero variant 3: panel with text on top (Search Visibility) -------- */
.sx-hero--panel{position:relative;overflow:hidden;isolation:isolate;padding:34px 0 52px}
.sx-hero--panel .sx-panel-bg{
  position:absolute;inset:0;z-index:1;
  background:
    radial-gradient(900px 420px at 82% 18%, rgba(69,112,183,.30), transparent 70%),
    radial-gradient(760px 400px at 12% 88%, rgba(69,112,183,.22), transparent 72%),
    linear-gradient(135deg, var(--brand-soft), #fff 62%);
}
.sx-hero--panel .sx-panel-grid{
  position:absolute;inset:0;z-index:1;opacity:.40;
  background-image:linear-gradient(var(--brand-line) 1px, transparent 1px),
                   linear-gradient(90deg, var(--brand-line) 1px, transparent 1px);
  background-size:46px 46px;
  mask-image:radial-gradient(700px 380px at 60% 40%, #000, transparent 78%);
}
.sx-hero--panel .wrap{position:relative;z-index:2}
.sx-hero--panel h1{max-width:880px}
.sx-hero--panel .sub{max-width:660px}

/* --- shared inner page building blocks -------------------------------- */
.sx-sec{padding:52px 0}
.sx-sec h2{font-size:28px;margin:0 0 12px}
.sx-sec .sx-lede{font-size:17px;color:var(--body);max-width:740px;line-height:1.66;margin:0 0 20px}
.sx-sec p{color:var(--body);line-height:1.68}
.sx-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}
.sx-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:20px 18px;box-shadow:var(--shadow);
}
.sx-card h3{margin:0 0 7px;font-size:16.5px}
.sx-card p{margin:0;font-size:14.5px;line-height:1.62;color:var(--body)}
.sx-list{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.sx-list li{display:flex;gap:11px;align-items:flex-start;color:var(--body);line-height:1.62}
.sx-list .sx-bul{
  flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:var(--brand-soft);
  color:var(--brand);display:grid;place-items:center;margin-top:2px;
}
.sx-list .sx-bul svg{width:11px;height:11px}
.sx-list strong{color:var(--ink)}

/* cross links between services */
.sx-xlinks{padding:40px 0}
.sx-xlinks h2{font-size:15px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 14px}
.sx-xlinks-row{display:flex;flex-wrap:wrap;gap:10px}
.sx-xlinks-row a{
  display:inline-flex;align-items:center;min-height:44px;padding:9px 15px;
  border:1.5px solid var(--brand-line);border-radius:999px;background:#fff;
  color:var(--brand-dark);font-weight:700;font-size:14.5px;text-decoration:none;
}
.sx-xlinks-row a:hover{border-color:var(--brand);background:var(--brand-soft)}
.sx-xlinks-row a:focus-visible{outline:3px solid var(--brand);outline-offset:2px}

/* the visual panels used inside split heroes and sections */
.sx-visual{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--shadow);padding:18px;overflow:hidden;
}
.sx-visual-cap{
  font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);margin:0 0 12px;
}

/* before and after comparison */
.sx-ba{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sx-ba-pane{border:1px solid var(--brand-line);border-radius:10px;overflow:hidden;background:#fff}
.sx-ba-head{
  font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;
  padding:7px 9px;background:var(--brand-soft);color:var(--brand);border-bottom:1px solid var(--brand-line);
}
.sx-ba-body{padding:12px 10px;display:flex;flex-direction:column;gap:7px}
.sx-bare{height:8px;border-radius:5px;background:#E3EAF4;display:block}
.sx-bare.w90{width:90%}.sx-bare.w70{width:70%}.sx-bare.w55{width:55%}.sx-bare.w40{width:40%}
.sx-ba-cta{width:66px;height:15px;border-radius:20px;background:var(--brand);display:block;margin-top:2px}
.sx-ba-pane.is-before .sx-bare{background:#E9E2DC}
.sx-ba-pane.is-before .sx-ba-cta{background:#C9BFB4;width:44px}
.sx-ba-note{font-size:12px;color:var(--muted);margin:10px 0 0}

/* automation flow */
.sx-flow{display:flex;flex-direction:column;gap:0}
.sx-flow-node{display:flex;align-items:center;gap:11px}
.sx-flow-ico{
  flex:0 0 auto;width:36px;height:36px;border-radius:10px;background:var(--brand-soft);
  color:var(--brand);display:grid;place-items:center;
}
.sx-flow-ico svg{width:19px;height:19px}
.sx-flow-text{font-size:14.5px;font-weight:650;color:var(--ink)}
.sx-flow-sub{font-size:12.5px;color:var(--muted);display:block;font-weight:500}
.sx-flow-line{
  width:2px;height:22px;margin-left:17px;background:var(--brand-line);border-radius:2px;position:relative;overflow:hidden;
}
.sx-flow-line::after{
  content:"";position:absolute;left:-1px;width:4px;height:8px;border-radius:3px;
  background:var(--brand);animation:sx-travel 2.8s ease-in-out infinite;
}
.sx-flow-node:nth-of-type(3) + .sx-flow-line::after{animation-delay:.6s}
.sx-flow-node:nth-of-type(5) + .sx-flow-line::after{animation-delay:1.2s}
@keyframes sx-travel{
  0%{top:-9px;opacity:0} 25%{opacity:1} 75%{opacity:1} 100%{top:22px;opacity:0}
}
@media(prefers-reduced-motion:reduce){
  .sx-flow-line::after{animation:none;top:7px;opacity:.85}
}

/* findings visual for the free check */
.sx-findings{display:flex;flex-direction:column;gap:11px}
.sx-finding{
  display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;
  padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;
}
.sx-finding-n{
  width:24px;height:24px;border-radius:50%;background:var(--brand-soft);color:var(--brand);
  font-size:11.5px;font-weight:800;display:grid;place-items:center;
}
.sx-finding-t{font-size:13.5px;font-weight:650;color:var(--ink)}
.sx-finding-meter{width:74px;height:6px;border-radius:5px;background:var(--brand-soft);overflow:hidden}
.sx-finding-meter i{display:block;height:100%;background:linear-gradient(90deg,var(--brand),var(--brand-dark))}

/* the six areas / process rows used on service pages */
.sx-steps{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.sx-step{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:19px 17px;box-shadow:var(--shadow);
}
.sx-step::before{
  content:"";position:absolute;left:0;top:17px;bottom:17px;width:3px;border-radius:3px;
  background:linear-gradient(180deg,var(--brand),var(--brand-soft));
}
.sx-step-n{font-size:12.5px;font-weight:800;letter-spacing:.1em;color:var(--brand)}
.sx-step h3{margin:6px 0 6px;font-size:16.5px}
.sx-step p{margin:0;font-size:14.5px;line-height:1.6;color:var(--body)}

/* SEO / AEO / GEO explainer */
.sx-three{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}
.sx-three-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:22px 19px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:9px;
}
.sx-three-tag{
  align-self:flex-start;font-size:11.5px;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;color:#fff;background:var(--brand);
  border-radius:6px;padding:4px 9px;
}
.sx-three-card h3{margin:0;font-size:18px}
.sx-three-card .sx-full{font-size:12.5px;color:var(--muted);font-weight:650;margin:0}
.sx-three-card p{margin:0;font-size:14.5px;line-height:1.62;color:var(--body)}

.sx-callout{
  border-left:4px solid var(--brand);background:var(--brand-soft);
  border-radius:0 var(--r) var(--r) 0;padding:16px 18px;margin:24px 0 0;
}
.sx-callout p{margin:0;font-size:15px;color:var(--brand-deep);line-height:1.62}
.sx-callout strong{color:var(--brand-deep)}

/* ---------------------------------------------------------------- forms */
.sx-form-wrap{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--shadow);padding:24px 22px;
}
.sx-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.sx-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.sx-field label{font-size:14px;font-weight:700;color:var(--ink)}
.sx-field label .sx-req{color:#B4232A}
.sx-field .sx-hint{font-size:12.5px;color:var(--muted);font-weight:500}
.sx-field input,.sx-field textarea,.sx-field select{
  font:inherit;font-size:15.5px;color:var(--ink);background:#fff;
  border:1.5px solid var(--brand-line);border-radius:10px;padding:12px 13px;width:100%;
  min-height:48px;
}
.sx-field textarea{min-height:120px;resize:vertical}
.sx-field input:focus,.sx-field textarea:focus,.sx-field select:focus{
  outline:3px solid var(--brand);outline-offset:1px;border-color:var(--brand);
}
.sx-form-note{font-size:13px;color:var(--muted);margin:12px 0 0;line-height:1.55}
.sx-form-actions{margin-top:18px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.sx-form-actions .btn{min-height:50px}
/* the honeypot: hidden from people, visible to naive bots. Not display:none. */
.sx-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.sx-msg{
  display:none;margin-top:16px;padding:14px 16px;border-radius:11px;font-size:14.5px;line-height:1.55;
}
.sx-msg.is-shown{display:block}
.sx-msg.is-ok{background:#E9F7F1;border:1px solid #A9DCC7;color:#0B6B4A}
.sx-msg.is-bad{background:#FDECEC;border:1px solid #F0BDBD;color:#8E1F26}
.sx-msg a{color:inherit;font-weight:700}
/* the state that replaces the form after a successful send */
.sx-done{display:none;text-align:left}
.sx-done.is-shown{display:block}
.sx-done h3{margin:0 0 8px;font-size:19px;color:var(--ink)}
.sx-done ol{margin:12px 0 0;padding-left:20px;color:var(--body);line-height:1.7}
.sx-done li{margin-bottom:6px}
/* a real failure must stay visible and give a fallback */
.sx-fallback{
  margin-top:16px;padding:15px 16px;border:1px solid var(--line);border-radius:11px;
  background:var(--soft);font-size:14.5px;color:var(--body);line-height:1.6;
}
.sx-fallback a{color:var(--brand-dark);font-weight:700}

/* contact routes */
.sx-routes{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:24px}
.sx-route{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:17px 15px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:7px;
  text-decoration:none;
}
.sx-route-ico{
  width:38px;height:38px;border-radius:11px;background:var(--brand-soft);color:var(--brand);
  display:grid;place-items:center;
}
.sx-route-ico svg{width:20px;height:20px}
.sx-route-t{font-size:15px;font-weight:750;color:var(--ink)}
.sx-route-v{font-size:14px;color:var(--brand-dark);font-weight:650;word-break:break-word}
.sx-route:hover{border-color:var(--brand)}
.sx-route:focus-visible{outline:3px solid var(--brand);outline-offset:2px}

/* insights article grid */
.sx-posts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:26px}
.sx-post{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:20px 18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:9px;
}
.sx-post-meta{font-size:12.5px;color:var(--muted);font-weight:650}
.sx-post h3{margin:0;font-size:17px;line-height:1.35}
.sx-post h3 a{color:var(--brand-dark);text-decoration:none}
.sx-post h3 a:hover{text-decoration:underline}
.sx-post p{margin:0;font-size:14.5px;color:var(--body);line-height:1.6}
.sx-post .sx-post-more{margin-top:auto;font-weight:750;color:var(--brand-dark);font-size:14.5px}
.sx-empty{
  margin-top:24px;padding:22px 20px;border:1px dashed var(--brand-line);border-radius:var(--r-lg);
  background:var(--soft);text-align:center;color:var(--body);line-height:1.65;
}
.sx-empty strong{color:var(--ink)}

/* article page */
.sx-article{max-width:760px;margin:0 auto;padding:8px 0 60px}
.sx-article h1{font-size:32px;line-height:1.28;margin:0 0 12px}
.sx-article .sx-article-meta{font-size:13.5px;color:var(--muted);margin:0 0 28px}
.sx-article h2{font-size:23px;margin:34px 0 12px}
.sx-article h3{font-size:18px;margin:26px 0 10px}
.sx-article p{margin:0 0 16px;font-size:17px;line-height:1.75;color:var(--body)}
.sx-article ul{margin:0 0 18px;padding-left:22px}
.sx-article li{margin-bottom:8px;font-size:17px;line-height:1.7;color:var(--body)}
.sx-article a{color:var(--brand-dark);font-weight:650}
.sx-article .sx-cta-inline{
  margin:30px 0;padding:18px 20px;border-radius:var(--r-lg);background:var(--brand-soft);
  border-left:4px solid var(--brand);
}
.sx-article .sx-cta-inline p{margin:0 0 10px;font-size:15.5px;color:var(--brand-deep)}

/* ================================================================
   Responsive
   ================================================================ */
@media(max-width:1023px){
  .sx-hero--split .sx-hero-grid{grid-template-columns:1fr;gap:26px}
  .sx-cards,.sx-steps,.sx-three,.sx-posts{grid-template-columns:repeat(2,1fr)}
  .sx-routes{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:639px){
  .sx-hero{padding:18px 0 32px}
  .sx-hero h1{font-size:29px}
  .sx-hero .sub{font-size:16.5px}
  .sx-hero--panel{padding:22px 0 36px}
  .sx-sec{padding:38px 0}
  .sx-sec h2{font-size:23px}
  .sx-cards,.sx-steps,.sx-three,.sx-posts{grid-template-columns:1fr}
  .sx-routes{grid-template-columns:1fr}
  .sx-ba{grid-template-columns:1fr}
  .sx-form-row{grid-template-columns:1fr}
  .sx-form-wrap{padding:19px 16px}
  .sx-article h1{font-size:26px}
  .sx-article h2{font-size:21px}
  .sx-article p,.sx-article li{font-size:16.5px}
  .sx-xlinks-row a{width:100%;justify-content:flex-start}
}
@media(pointer:coarse){
  .sx-list li{min-height:34px}
  .sx-flow-node{min-height:44px}
  .sx-route{min-height:96px}
  .sx-xlinks-row a{min-height:48px}
}

/* =====================================================================
   Insights blog: index cards and the single article layout.
   Added so posts written in the WordPress dashboard render in the site
   design rather than the theme.
   ===================================================================== */
.sx-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:26px}
.sx-post{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px 24px;display:flex;flex-direction:column;gap:12px}
.sx-post-meta{margin:0;font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.sx-post-title{margin:0;font-size:1.24rem;line-height:1.32}
.sx-post-title a{color:var(--ink);text-decoration:none}
.sx-post-title a:hover,.sx-post-title a:focus-visible{color:var(--brand-dark);text-decoration:underline}
.sx-post-ex{margin:0;color:var(--muted);font-size:.98rem;line-height:1.62;flex:1}
.sx-more{margin-top:34px;text-align:center}
.sx-article{max-width:760px;margin:0 auto}
.sx-article-head{margin-bottom:26px}
.sx-article-head h1{margin:0 0 10px;font-size:clamp(1.7rem,4vw,2.5rem);line-height:1.18}
.sx-article-cta{max-width:760px;margin:46px auto 0;background:var(--soft);border:1px solid var(--line);border-radius:18px;padding:28px 26px}
.sx-article-cta h2{margin:0 0 10px;font-size:1.3rem}
.sx-article-cta p{margin:0 0 16px;color:var(--muted)}
.sx-prose{font-size:1.06rem;line-height:1.78;color:#2b2f36}
.sx-prose h2{margin:34px 0 12px;font-size:1.42rem;line-height:1.3;color:var(--ink)}
.sx-prose h3{margin:26px 0 10px;font-size:1.16rem;color:var(--ink)}
.sx-prose p{margin:0 0 16px}
.sx-prose ul,.sx-prose ol{margin:0 0 18px;padding-left:22px}
.sx-prose li{margin-bottom:9px}
.sx-prose a{color:var(--brand-dark);text-decoration:underline}
.sx-prose strong{color:var(--ink)}
.sx-prose blockquote{margin:22px 0;padding:14px 18px;border-left:3px solid var(--brand);background:var(--soft);border-radius:0 12px 12px 0;color:#333}
@media (max-width:640px){
  .sx-post{padding:22px 18px}
  .sx-article-cta{padding:22px 18px}
  .sx-prose{font-size:1.02rem}
}
