/*
Theme Name: SuperSeoAI
Theme URI: https://superseoai.com/
Author: SuperSeoAI
Description: Custom hybrid classic theme for SuperSeoAI. Static-first homepage built in PHP templates, with full block-editor support for posts and interior pages. Design ported from the SuperSeoAI static demo (Concept 4).
Version: 0.3.0
Requires at least: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: superseoai
Tags: seo, business, custom
*/

/* ===========================================================================
   1. DEMO STYLESHEET  - ported unchanged from SuperSeoAI-Static-Demo-Final
   Do not reformat. Design edits belong here; WordPress-specific additions
   live in section 2 at the bottom of this file.
   =========================================================================== */


:root {
  --navy: #123650;
  --navy-deep: #0d2c43;
  --navy-soft: #254b64;
  --blue: #2f74ac;
  --blue-mid: #4f8fbd;
  --blue-light: #eaf3f9;
  --mint: #35cfa2;
  --coral: #d95943;
  --ink: #18374d;
  --text: #526572;
  --line: #dce4e9;
  --soft: #f5f9fb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, "Avenir Next", "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: default;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

.site-container {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  height: 82px;
  background: #fff;
  border-bottom: 1px solid #e8edf0;
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-bars {
  width: 39px;
  height: 39px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  transform: skewY(-30deg) rotate(-2deg);
}

.brand-bars i {
  width: 9px;
  display: block;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(180deg, #2cc9d3 0%, #1878e3 100%);
  box-shadow: 0 2px 8px rgba(25, 120, 227, 0.16);
}

.brand-bars i:nth-child(1) {
  height: 22px;
}

.brand-bars i:nth-child(2) {
  height: 34px;
}

.brand-bars i:nth-child(3) {
  height: 27px;
}

.brand-name {
  color: #153a57;
  font-size: 23px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand-name span {
  color: #29a7cf;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 38px);
}

.nav-item,
.sign-in {
  color: #1a3d56;
  font-size: 14px;
  font-weight: 650;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-arrow {
  display: inline-block;
  color: #5d7688;
  font-size: 14px;
  transition: transform 180ms ease;
}

.nav-dropdown[open] .nav-arrow {
  transform: rotate(180deg);
}

.nav-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 17px);
  left: 50%;
  width: 285px;
  padding: 10px;
  border: 1px solid #dfe8ed;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 50px rgba(9, 40, 60, 0.16);
  transform: translateX(-50%);
}

.nav-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 1px solid #dfe8ed;
  border-left: 1px solid #dfe8ed;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.nav-menu a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: #183b55;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  outline: none;
  background: #edf7fb;
}

.nav-menu small {
  display: block;
  margin-top: 3px;
  color: #6e818e;
  font-size: 10px;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.button {
  min-height: 44px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.button-dark {
  color: #fff;
  background: var(--navy-deep);
}

.button-white {
  color: #17405d;
  background: #fff;
  box-shadow: 0 6px 22px rgba(5, 31, 49, 0.08);
}

.button-coral {
  color: #fff;
  background: #f06449;
}

.hero-section {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #071f38;
}

.hero-one {
  background:
    radial-gradient(circle at 80% 30%, rgba(24, 116, 181, 0.2), transparent 28%),
    radial-gradient(circle at 28% 90%, rgba(20, 137, 190, 0.13), transparent 28%),
    linear-gradient(110deg, #06172a 0%, #07233d 48%, #06345b 100%);
}

.hero-three {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-opacity: 0;
  --grid-x: 0px;
  --grid-y: 0px;
  --line-x: 0px;
  --line-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: -1deg;
  isolation: isolate;
  background: #06172a;
}

.hero-three-grid {
  position: absolute;
  z-index: 1;
  inset: -34px;
  opacity: 0.68;
  background-image:
    linear-gradient(rgba(57, 166, 216, 0.105) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 166, 216, 0.105) 1px, transparent 1px),
    radial-gradient(circle, rgba(85, 214, 235, 0.38) 1px, transparent 1.5px);
  background-size: 66px 66px, 66px 66px, 33px 33px;
  transform: translate3d(var(--grid-x), var(--grid-y), 0);
  transition: transform 180ms cubic-bezier(0.22, 0.8, 0.3, 1);
  /* Smaller duration = faster continuous background drift. */
  animation: gridDrift 14.5s linear infinite;
  will-change: transform;
}

.hero-three-gradient {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 28%, rgba(17, 112, 177, 0.28), transparent 29%),
    radial-gradient(circle at 24% 92%, rgba(29, 159, 190, 0.13), transparent 30%),
    linear-gradient(108deg, rgba(3, 19, 35, 0.92) 0%, rgba(6, 34, 58, 0.72) 49%, rgba(4, 52, 87, 0.58) 100%);
}

.hero-three-light {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: var(--pointer-opacity);
  pointer-events: none;
  background:
    radial-gradient(circle 40px at var(--pointer-x) var(--pointer-y), rgba(225, 253, 255, 0.14), transparent 72%),
    radial-gradient(circle 125px at var(--pointer-x) var(--pointer-y), rgba(63, 207, 232, 0.11), rgba(35, 135, 207, 0.04) 48%, transparent 74%),
    radial-gradient(circle 225px at var(--pointer-x) var(--pointer-y), rgba(38, 129, 202, 0.05), transparent 72%);
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
}

.hero-three-lines {
  position: absolute;
  z-index: 1;
  inset: -45px;
  pointer-events: none;
  transform: translate3d(var(--line-x), var(--line-y), 0);
  transition: transform 260ms cubic-bezier(0.22, 0.8, 0.3, 1);
  will-change: transform;
}

.signal-line {
  position: absolute;
  display: block;
  width: 720px;
  height: 250px;
  border: 1px solid rgba(74, 199, 232, 0.24);
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(45, 184, 225, 0.08));
}

.signal-a {
  right: -60px;
  top: 8px;
  transform: rotate(-10deg);
  animation: signalDriftA 12s ease-in-out infinite alternate;
}

.signal-b {
  left: -210px;
  bottom: -70px;
  transform: rotate(12deg);
  opacity: 0.7;
  animation: signalDriftB 15s ease-in-out infinite alternate;
}

.signal-node {
  position: absolute;
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: rgba(89, 220, 237, 0.72);
  box-shadow: 0 0 0 5px rgba(72, 213, 233, 0.045), 0 0 17px rgba(72, 213, 233, 0.48);
  animation: nodePulse 2.8s ease-in-out infinite;
}

.node-a { right: 12%; top: 29%; }
.node-b { left: 34%; bottom: 13%; animation-delay: -0.9s; }
.node-c { right: 3%; bottom: 18%; animation-delay: -1.8s; }
.node-d { left: 13%; top: 23%; width: 5px; height: 5px; animation: nodeDriftA 7.5s ease-in-out -2s infinite alternate; }
.node-e { left: 54%; top: 15%; width: 4px; height: 4px; animation: nodeDriftB 9s ease-in-out -5s infinite alternate; }
.node-f { right: 27%; bottom: 9%; width: 5px; height: 5px; animation: nodeDriftC 8.2s ease-in-out -3.5s infinite alternate; }

.hero-four {
  --tilt-x: 0deg;
  --tilt-y: -1deg;
}

.hero-four .hero-three-grid {
  opacity: 0.72;
  animation-duration: 13.5s;
}

.hero-four-scan {
  position: absolute;
  z-index: 1;
  top: -35%;
  bottom: -35%;
  left: -42%;
  width: 28%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(74, 193, 233, 0.02) 18%, rgba(105, 235, 224, 0.13) 50%, rgba(65, 145, 229, 0.04) 78%, transparent 100%);
  filter: blur(16px);
  transform: rotate(14deg) translateX(-80%);
  animation: scanSweep 10.5s ease-in-out infinite;
}

.data-pulse {
  position: absolute;
  z-index: 2;
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  opacity: 0;
  background: #a8f6f2;
  box-shadow: 0 0 7px #70e7e5, 0 0 20px rgba(71, 205, 235, 0.85);
}

.pulse-a { left: 13%; top: 76%; animation: pulseTravelA 7.8s linear infinite; }
.pulse-b { right: 9%; top: 22%; animation: pulseTravelB 9.2s linear -3.1s infinite; }
.pulse-c { left: 45%; top: 84%; animation: pulseTravelC 10.6s linear -6.7s infinite; }

.showcase-dashboard {
  transform: perspective(1050px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  animation: dashboardEnter 820ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  transition: transform 180ms cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 300ms ease;
  will-change: transform;
}

.hero-four .mini-bars i {
  transform-origin: 50% 100%;
  animation: barGrow 760ms cubic-bezier(0.2, 0.78, 0.3, 1) both;
}

.hero-four .mini-bars i:nth-child(1) { animation-delay: 260ms; }
.hero-four .mini-bars i:nth-child(2) { animation-delay: 320ms; }
.hero-four .mini-bars i:nth-child(3) { animation-delay: 380ms; }
.hero-four .mini-bars i:nth-child(4) { animation-delay: 440ms; }
.hero-four .mini-bars i:nth-child(5) { animation-delay: 500ms; }
.hero-four .mini-bars i:nth-child(6) { animation-delay: 560ms; }

.interactive-dashboard {
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.hero-three:not(.hero-four) .interactive-dashboard {
  transform: perspective(1050px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-three:hover .interactive-dashboard {
  box-shadow: 0 32px 90px rgba(0, 9, 24, 0.46), inset 0 0 0 1px rgba(17, 87, 126, 0.08);
}

.hero-ripple {
  position: absolute;
  z-index: 1;
  width: 30px;
  height: 30px;
  pointer-events: none;
  border: 1px solid rgba(140, 232, 244, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(58, 189, 226, 0.1), inset 0 0 12px rgba(99, 219, 239, 0.035);
  transform: translate(-50%, -50%) scale(0.2);
  animation: heroRipple 1180ms cubic-bezier(0.12, 0.62, 0.25, 1) forwards;
}

.hero-ripple-2 { animation-delay: 110ms; border-color: rgba(118, 215, 240, 0.28); }
.hero-ripple-3 { animation-delay: 220ms; border-color: rgba(104, 202, 235, 0.2); }

@keyframes heroRipple {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  12% { opacity: 0.6; }
  72% { opacity: 0.24; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(11); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 66px 66px, 66px 66px, 33px 33px; }
}

@keyframes scanSweep {
  0%, 14% { opacity: 0; transform: rotate(14deg) translateX(-80%); }
  20% { opacity: 0.72; }
  48% { opacity: 0.48; transform: rotate(14deg) translateX(630%); }
  56%, 100% { opacity: 0; transform: rotate(14deg) translateX(630%); }
}

@keyframes pulseTravelA {
  0%, 7% { opacity: 0; transform: translate3d(0, 0, 0); }
  12%, 82% { opacity: 0.95; }
  100% { opacity: 0; transform: translate3d(570px, -178px, 0); }
}

@keyframes pulseTravelB {
  0%, 8% { opacity: 0; transform: translate3d(0, 0, 0); }
  14%, 80% { opacity: 0.88; }
  100% { opacity: 0; transform: translate3d(-490px, 162px, 0); }
}

@keyframes pulseTravelC {
  0%, 8% { opacity: 0; transform: translate3d(0, 0, 0); }
  15%, 80% { opacity: 0.82; }
  100% { opacity: 0; transform: translate3d(420px, -250px, 0); }
}

@keyframes dashboardEnter {
  from { opacity: 0; transform: perspective(1050px) rotateX(3deg) rotateY(-3deg) translate3d(24px, 18px, 0) scale(0.97); }
  to { opacity: 1; transform: perspective(1050px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0); }
}

@keyframes barGrow {
  from { opacity: 0.15; transform: scaleY(0.06); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes signalDriftA {
  from { margin-right: -12px; margin-top: -4px; }
  to { margin-right: 18px; margin-top: 8px; }
}

@keyframes signalDriftB {
  from { margin-left: -10px; margin-bottom: -4px; }
  to { margin-left: 16px; margin-bottom: 10px; }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.28; transform: scale(0.78); }
  50% { opacity: 0.7; transform: scale(1.14); }
}

@keyframes nodeDriftA {
  from { opacity: 0.18; transform: translate3d(-8px, 5px, 0) scale(0.8); }
  to { opacity: 0.62; transform: translate3d(18px, -12px, 0) scale(1.12); }
}

@keyframes nodeDriftB {
  from { opacity: 0.12; transform: translate3d(8px, -8px, 0) scale(0.72); }
  to { opacity: 0.55; transform: translate3d(-17px, 13px, 0) scale(1.08); }
}

@keyframes nodeDriftC {
  from { opacity: 0.16; transform: translate3d(-10px, -5px, 0) scale(0.75); }
  to { opacity: 0.58; transform: translate3d(14px, 11px, 0) scale(1.1); }
}

.tech-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(48, 159, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 159, 216, 0.08) 1px, transparent 1px),
    radial-gradient(circle, rgba(80, 205, 240, 0.42) 1px, transparent 1.5px);
  background-size: 76px 76px, 76px 76px, 38px 38px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 92%, transparent 100%);
}

.tech-stream {
  position: absolute;
  width: 720px;
  height: 260px;
  border: 1px solid rgba(50, 178, 233, 0.32);
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  box-shadow: inset -18px -12px 30px rgba(38, 177, 229, 0.04);
}

.tech-stream::before,
.tech-stream::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30c5e7;
  box-shadow: 0 0 0 5px rgba(48, 197, 231, 0.09), 0 0 18px rgba(48, 197, 231, 0.7);
}

.stream-one {
  right: -80px;
  top: 30px;
  transform: rotate(-8deg);
}

.stream-one::before { left: 180px; bottom: 12px; }
.stream-one::after { right: 110px; bottom: 56px; }

.stream-two {
  left: -180px;
  bottom: -58px;
  transform: rotate(11deg);
}

.stream-two::before { left: 310px; bottom: 16px; }
.stream-two::after { right: 160px; bottom: 58px; }

.tech-label {
  position: absolute;
  z-index: 1;
  color: rgba(124, 205, 238, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.crawl-label { left: 34%; top: 72px; }
.index-label { left: 56%; top: 132px; }
.rank-label { left: 45%; bottom: 58px; }

.hero-two {
  background:
    radial-gradient(circle at 78% 50%, rgba(22, 195, 188, 0.15), transparent 24%),
    linear-gradient(112deg, #06172b 0%, #082747 52%, #075a8a 132%);
}

.hero-two-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  right: 5%;
  top: 45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 224, 190, 0.2) 0%, rgba(19, 133, 207, 0.12) 30%, transparent 67%);
  transform: translateY(-50%);
  filter: blur(4px);
}

.hero-two-orbits {
  position: absolute;
  width: 780px;
  height: 470px;
  right: -80px;
  top: 100px;
  border: 1px solid rgba(61, 186, 234, 0.28);
  border-radius: 50%;
  transform: rotate(-12deg);
  box-shadow:
    0 0 0 42px rgba(49, 151, 205, 0.035),
    0 0 0 84px rgba(49, 151, 205, 0.028),
    0 0 0 126px rgba(49, 151, 205, 0.02);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: clamp(60px, 8vw, 112px);
  padding: 70px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.92);
}

.eyebrow-teal {
  color: #38d2c9;
  letter-spacing: 0.16em;
}

.hero-copy h1 {
  margin: 0;
  max-width: 520px;
  color: #fff;
  font-size: clamp(48px, 4.55vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 720;
}

.hero-lead {
  max-width: 510px;
  margin: 28px 0 0;
  color: rgba(226, 238, 247, 0.88);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-primary {
  min-height: 54px;
  padding: 0 28px;
  box-shadow: 0 12px 30px rgba(240, 100, 73, 0.2);
}

.setup-note {
  margin: 18px 0 0;
  color: rgba(120, 184, 223, 0.82);
  font-size: 14px;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}

.text-button span,
.path-cta span {
  display: inline-block;
  margin-left: 8px;
}

.text-button-light {
  color: #fff;
}

.workflow-card {
  width: 100%;
  max-width: 650px;
  justify-self: end;
  padding: 35px 38px 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(249, 252, 254, 0.98);
  box-shadow: 0 28px 80px rgba(0, 11, 25, 0.4), inset 0 0 0 1px rgba(17, 87, 126, 0.08);
}

.hero-dashboard {
  transform: perspective(1200px) rotateY(-1deg);
}

.dashboard-insights {
  display: grid;
  grid-template-columns: 0.9fr 1.45fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.score-gauge {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #dbe5eb;
  color: #426075;
}

.score-gauge span,
.content-created > span {
  font-size: 10px;
  font-weight: 750;
}

.score-gauge strong {
  width: 77px;
  height: 77px;
  margin: 7px 0 4px;
  display: grid;
  place-items: center;
  border: 9px solid #37c9b4;
  border-right-color: #2f79d7;
  border-radius: 50%;
  color: #112d43;
  font-size: 28px;
}

.score-gauge small {
  color: #2ab899;
  font-size: 9px;
}

.traffic-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.traffic-stats > div {
  min-height: 38px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e4ebef;
  font-size: 9px;
}

.traffic-stats > div:last-child { border-bottom: 0; }
.traffic-stats span { color: #60717d; }
.traffic-stats b { color: #183b55; font-size: 13px; }
.traffic-stats em { color: #22b995; font-style: normal; font-weight: 700; }

.content-created {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 4px;
}

.content-created strong {
  margin-top: 8px;
  color: #173a55;
  font-size: 31px;
}

.content-created small { color: #667884; font-size: 9px; }

.mini-bars {
  height: 35px;
  margin-top: 9px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.mini-bars i {
  width: 7px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(#8dc4ef, #2f7fe4);
}

.mini-bars i:nth-child(1) { height: 14px; }
.mini-bars i:nth-child(2) { height: 25px; }
.mini-bars i:nth-child(3) { height: 20px; }
.mini-bars i:nth-child(4) { height: 31px; }
.mini-bars i:nth-child(5) { height: 23px; }
.mini-bars i:nth-child(6) { height: 29px; }

.optimization-row {
  min-height: 48px;
  margin-top: 18px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 8px;
  color: #536a79;
  background: #f0f5f8;
  font-size: 9px;
}

.optimization-row span b { display: block; color: #29495f; margin-bottom: 3px; }
.optimization-row em { padding: 7px 10px; border-radius: 20px; color: #148b73; background: #d9f5ec; font-style: normal; font-weight: 750; white-space: nowrap; }

.hero-two-grid {
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
}

.seo-constellation {
  position: relative;
  height: 520px;
}

.float-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(181, 227, 244, 0.72);
  border-radius: 14px;
  color: #17364e;
  background: rgba(248, 252, 255, 0.96);
  box-shadow: 0 22px 50px rgba(0, 20, 42, 0.32);
  backdrop-filter: blur(10px);
}

.float-card h3 { margin: 0; font-size: 13px; }

.dark-card {
  color: #f3fbff;
  border-color: rgba(91, 211, 230, 0.58);
  background: linear-gradient(150deg, rgba(14, 64, 101, 0.94), rgba(7, 49, 79, 0.92));
  box-shadow: 0 22px 52px rgba(0, 16, 34, 0.34), inset 0 0 28px rgba(54, 197, 215, 0.06);
}

.keyword-chip {
  position: absolute;
  z-index: 1;
  padding: 7px 13px;
  border: 1px solid rgba(77, 168, 224, 0.2);
  border-radius: 20px;
  color: rgba(151, 198, 229, 0.78);
  background: rgba(18, 71, 116, 0.5);
  font-size: 10px;
}

.chip-one { left: 1%; top: 20px; }
.chip-two { right: 3%; top: 12px; }
.chip-three { right: 2%; top: 84px; color: #65dcd2; font-size: 17px; font-weight: 800; }

.keyword-research-card {
  width: 52%;
  left: 7%;
  top: 96px;
  padding: 22px;
  transform: rotate(2.5deg);
}

.keyword-research-card h3 { margin-bottom: 16px; }

.keyword-row {
  min-height: 31px;
  display: grid;
  grid-template-columns: 1fr auto 28px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e5edf1;
  font-size: 8px;
}

.keyword-row b { font-weight: 600; }
.keyword-row em { padding: 3px; border-radius: 10px; color: #168b75; background: #daf3eb; font-style: normal; text-align: center; }

.seo-score-card {
  width: 39%;
  right: 3%;
  top: 76px;
  padding: 21px;
  text-align: center;
  transform: rotate(1.5deg);
}

.score-ring {
  width: 116px;
  height: 116px;
  margin: 14px auto 10px;
  display: grid;
  place-items: center;
  border: 13px solid #40cfac;
  border-right-color: #2c82dc;
  border-radius: 50%;
}

.score-ring strong { grid-area: 1 / 1; font-size: 34px; }
.score-ring small { grid-area: 1 / 1; margin-top: 42px; color: #a9c9db; font-size: 9px; }
.seo-score-card p { margin: 0; color: #3ed09f; font-size: 11px; font-weight: 700; }

.organic-card {
  width: 46%;
  left: 4%;
  bottom: 28px;
  padding: 22px;
  transform: rotate(-2deg);
}

.organic-card > b { display: block; margin-top: 10px; color: #43d4a7; font-size: 11px; }
.organic-card > b small { color: #9ab8c9; font-weight: 500; }

.sparkline {
  height: 70px;
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.sparkline i {
  flex: 1;
  border-top: 3px solid #40d2b2;
  transform: skewY(-18deg);
  filter: drop-shadow(0 0 4px rgba(64, 210, 178, 0.3));
}
.sparkline i:nth-child(1) { height: 18px; }
.sparkline i:nth-child(2) { height: 27px; }
.sparkline i:nth-child(3) { height: 23px; }
.sparkline i:nth-child(4) { height: 40px; }
.sparkline i:nth-child(5) { height: 35px; }
.sparkline i:nth-child(6) { height: 52px; }
.sparkline i:nth-child(7) { height: 64px; }

.generate-card {
  width: 48%;
  right: 1%;
  bottom: 10px;
  padding: 20px;
  transform: rotate(2deg);
}

.generate-input {
  margin: 12px 0;
  padding: 9px 10px;
  border: 1px solid rgba(111, 202, 231, 0.34);
  border-radius: 6px;
  color: #d8edf6;
  background: rgba(7, 39, 65, 0.6);
  font-size: 8px;
}

.generate-card p { margin: 6px 0; color: #d4e6ef; font-size: 8px; }
.generate-button { margin-top: 13px; padding: 9px; border-radius: 5px; color: #fff; background: linear-gradient(90deg, #22bb94, #28c9b3); font-size: 9px; font-weight: 750; }

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.workflow-step {
  position: relative;
  text-align: center;
}

.workflow-step b {
  position: absolute;
  top: 51px;
  left: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #225f8e;
  font-size: 9px;
  transform: translateX(-50%);
}

.workflow-step h3 {
  margin: 19px 0 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.workflow-step p {
  margin: 0;
  color: #61717d;
  font-size: 11px;
  line-height: 1.55;
}

.step-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #153f5e;
  background: #eef5fa;
}

.magnify::before {
  content: "";
  width: 21px;
  height: 21px;
  border: 2px solid #153f5e;
  border-radius: 50%;
  transform: translate(-3px, -3px);
}

.magnify::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  margin: 22px 0 0 21px;
  border-radius: 2px;
  background: #153f5e;
  transform: rotate(45deg);
}

.document::before {
  content: "";
  width: 22px;
  height: 28px;
  border: 2px solid #153f5e;
  border-radius: 2px;
  background:
    linear-gradient(#153f5e, #153f5e) 5px 8px / 10px 2px no-repeat,
    linear-gradient(#153f5e, #153f5e) 5px 14px / 10px 2px no-repeat,
    linear-gradient(#153f5e, #153f5e) 5px 20px / 7px 2px no-repeat;
}

.publish {
  font-size: 30px;
  font-weight: 400;
}

.workflow-rule {
  height: 1px;
  margin: 30px 0 24px;
  background: #dce5eb;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.metric-block {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
}

.metric-block + .metric-block {
  border-left: 1px solid #d7e1e7;
}

.metric-block strong {
  color: #3c82b6;
  font-size: 42px;
  line-height: 1;
  font-weight: 680;
}

.metric-block strong.metric-green {
  color: #32b98c;
}

.metric-block span {
  color: #63747f;
  font-size: 10px;
  line-height: 1.4;
}

.metric-block span b {
  display: block;
  margin-bottom: 4px;
  color: #344f61;
  font-size: 11px;
}

.content-section {
  background: #fff;
}

.intro-section {
  padding: 92px 0 88px;
}

.narrow-section {
  max-width: 960px;
}

.section-heading h2,
.choice-inner h2,
.final-cta h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(31px, 3.1vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 730;
}

.section-heading > p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px auto 0;
  color: #60717d;
  font-size: 16px;
  line-height: 1.75;
}

.centered-heading {
  text-align: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 96px;
  margin-top: 68px;
}

.benefit {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: start;
  gap: 20px;
}

.benefit-icon {
  width: 61px;
  height: 61px;
  display: grid;
  place-items: center;
  color: #1b4f86;
  font-size: 22px;
  font-weight: 800;
}

.benefit-wordpress {
  border: 3px solid #1d4671;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 28px;
}

.benefit-scale {
  position: relative;
  font-size: 40px;
}

.benefit-ai {
  border: 2px solid #1c5d94;
  border-radius: 8px;
  outline: 1px dashed #67a7cf;
  outline-offset: 5px;
  font-size: 17px;
}

.benefit-workflow {
  border: 3px solid #1a669e;
  border-left-color: transparent;
  border-radius: 50%;
  font-size: 27px;
}

.benefit h3 {
  margin: 3px 0 9px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 760;
}

.benefit p {
  margin: 0;
  color: #667580;
  font-size: 14px;
  line-height: 1.65;
}

.center-action {
  margin-top: 58px;
  text-align: center;
}

.platform-section {
  padding: 84px 0 98px;
  border-top: 1px solid #e4e9ec;
}

.platform-title {
  max-width: 760px;
  margin: 0 auto 46px;
}

.platform-panel {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid #d8e1e6;
  border-radius: 3px;
  background: #fff;
}

.platform-tabs {
  display: flex;
  flex-direction: column;
  background: #f0f1f2;
}

.platform-tabs span {
  position: relative;
  min-height: 66px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #fff;
  color: #284b63;
  font-size: 15px;
  font-weight: 650;
}

.platform-tabs .selected {
  color: #195b92;
  background: #fff;
  font-weight: 780;
}

.platform-tabs .selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #3789c5;
}

.platform-content {
  padding: 38px 46px 40px;
}

.platform-content > h3 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  letter-spacing: -0.03em;
}

.platform-intro {
  margin: 10px 0 0;
  color: #647581;
  font-size: 14px;
  line-height: 1.6;
}

.analyzer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 36px;
  margin-top: 30px;
}

.analyzer-item {
  min-height: 148px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 25px 0;
  border-top: 1px solid #e2e8eb;
}

.analyzer-item:nth-child(-n + 2) {
  border-top: 0;
}

.analyzer-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 2px solid #3782b7;
  border-radius: 50%;
  color: #22669a;
  font-size: 16px;
  font-weight: 800;
}

.analyzer-item:nth-child(2) .analyzer-icon,
.analyzer-item:nth-child(3) .analyzer-icon,
.analyzer-item:nth-child(4) .analyzer-icon {
  border-radius: 8px;
  border-color: #72a7cc;
  font-size: 25px;
}

.analyzer-item h4 {
  margin: 1px 0 8px;
  color: var(--navy);
  font-size: 16px;
}

.analyzer-item p {
  margin: 0;
  color: #6a7882;
  font-size: 12px;
  line-height: 1.6;
}

.choice-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 40%, rgba(45, 140, 197, 0.16), transparent 27%),
    linear-gradient(110deg, #071b30 0%, #0a2945 52%, #0a3b62 100%);
}

.choice-decor {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.choice-decor::after {
  content: "+";
  position: absolute;
  color: rgba(255, 255, 255, 0.11);
  font-size: 54px;
  font-weight: 200;
}

.choice-decor-one {
  width: 260px;
  height: 260px;
  left: -150px;
  bottom: -155px;
}

.choice-decor-one::after {
  left: 190px;
  top: -25px;
}

.choice-decor-two {
  width: 180px;
  height: 180px;
  right: -70px;
  top: -120px;
}

.choice-decor-two::after {
  left: -52px;
  top: 132px;
}

.choice-inner {
  position: relative;
  z-index: 2;
  padding: 74px 0 72px;
  text-align: center;
}

.choice-inner h2 {
  color: #fff;
}

.choice-inner p {
  max-width: 650px;
  margin: 16px auto 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.65;
}

.paths-section {
  padding: 96px 0 86px;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 70px;
}

.path {
  min-height: 360px;
  padding: 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.path + .path {
  border-left: 1px solid #d9e2e7;
}

.path-label {
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.path-label b {
  margin-right: 8px;
}

.path-blue .path-label,
.path-blue .path-symbol {
  color: #2673b5;
}

.path-mint .path-label,
.path-mint .path-symbol {
  color: #29b889;
}

.path-coral .path-label,
.path-coral .path-symbol {
  color: #df5e45;
}

.path-symbol {
  margin: 29px 0 17px;
  font-size: 45px;
  line-height: 1;
  font-weight: 400;
}

.path h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 760;
}

.path p {
  max-width: 220px;
  margin: 13px 0 0;
  color: #667783;
  font-size: 13px;
  line-height: 1.6;
}

.path small {
  margin: 12px 0 0;
  color: #496171;
  font-size: 11px;
}

.path-cta {
  margin-top: auto;
  padding: 16px 0 0;
  border: 0;
  color: #216ca3;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.final-cta-section {
  padding: 0;
  background: linear-gradient(90deg, #eef3f6 0%, #f7f9fa 48%, #edf3f6 100%);
}

.final-cta {
  padding: 64px 30px 66px;
  text-align: center;
  background: transparent;
}

.final-cta h2 {
  font-size: 31px;
}

.final-cta p {
  margin: 12px 0 24px;
  color: #687984;
  font-size: 14px;
}

.site-footer {
  padding: 42px 0 52px;
  border-top: 1px solid #e0e7eb;
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.footer-inner p {
  margin: 0;
  color: #687985;
  font-size: 12px;
}

.footer-inner > span {
  color: #84919a;
  font-size: 11px;
}

@media (max-width: 980px) {
  .site-container {
    width: min(100% - 44px, 900px);
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 70px 0;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-copy {
    max-width: 690px;
  }

  .workflow-card {
    max-width: none;
    justify-self: stretch;
  }

  .hero-dashboard {
    transform: none;
  }

  .hero-two-grid {
    grid-template-columns: 1fr;
  }

  .seo-constellation {
    width: min(100%, 690px);
    justify-self: center;
  }

  .benefit-grid {
    gap: 44px;
  }

  .platform-panel {
    grid-template-columns: 185px 1fr;
  }

  .paths-grid {
    gap: 0;
  }

  .path {
    padding: 0 26px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 72px;
  }

  .site-container {
    width: calc(100% - 34px);
  }

  .sign-in {
    display: none;
  }

  .brand-bars {
    width: 34px;
    height: 34px;
    transform: scale(0.9) skewY(-30deg) rotate(-2deg);
  }

  .brand-name {
    font-size: 20px;
  }

  .button {
    min-height: 42px;
    padding: 0 18px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-grid {
    padding: 58px 0 64px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .workflow-card {
    padding: 28px 20px 24px;
  }

  .dashboard-insights {
    grid-template-columns: 1fr 1fr;
  }

  .content-created {
    grid-column: 1 / -1;
    min-height: 90px;
    padding: 14px 0 0;
    border-top: 1px solid #dbe5eb;
  }

  .mini-bars {
    position: absolute;
    right: 34px;
  }

  .optimization-row {
    display: none;
  }

  .seo-constellation {
    height: 610px;
  }

  .keyword-research-card {
    width: 58%;
    left: 0;
  }

  .seo-score-card {
    width: 43%;
    right: 0;
  }

  .organic-card {
    width: 52%;
    left: 0;
    bottom: 48px;
  }

  .generate-card {
    width: 50%;
    right: 0;
    bottom: 16px;
  }

  .workflow-steps {
    gap: 8px;
  }

  .workflow-step p {
    display: none;
  }

  .metric-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .metric-block + .metric-block {
    padding-top: 20px;
    border-top: 1px solid #d7e1e7;
    border-left: 0;
  }

  .intro-section,
  .platform-section,
  .paths-section {
    padding: 70px 0;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 48px;
  }

  .platform-panel {
    grid-template-columns: 1fr;
  }

  .platform-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-tabs span {
    min-height: 55px;
    padding: 0 18px;
    border-right: 1px solid #fff;
  }

  .platform-content {
    padding: 32px 24px;
  }

  .analyzer-grid {
    grid-template-columns: 1fr;
  }

  .analyzer-item:nth-child(2) {
    border-top: 1px solid #e2e8eb;
  }

  .choice-inner {
    padding: 64px 10px;
  }

  .paths-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-top: 54px;
  }

  .path {
    min-height: auto;
    padding: 0 10px 42px;
  }

  .path + .path {
    padding-top: 42px;
    border-top: 1px solid #d9e2e7;
    border-left: 0;
  }

  .path-cta {
    margin-top: 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }
}

@media (max-width: 460px) {
  .header-actions .button-dark {
    display: none;
  }

  .workflow-step h3 {
    font-size: 11px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 13px;
    font-size: 11px;
  }

  .step-icon {
    width: 52px;
    height: 52px;
  }

  .workflow-step b {
    top: 43px;
  }

  .seo-constellation {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .keyword-chip,
  .hero-two-orbits {
    display: none;
  }

  .float-card,
  .keyword-research-card,
  .seo-score-card,
  .organic-card,
  .generate-card {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .benefit {
    grid-template-columns: 55px 1fr;
    gap: 16px;
  }

  .benefit-icon {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-three-grid,
  .hero-three-lines,
  .interactive-dashboard {
    transform: none !important;
    transition: none !important;
  }

  .signal-line,
  .signal-node,
  .drift-node,
  .hero-three-grid,
  .hero-ripple,
  .hero-four-scan,
  .data-pulse,
  .showcase-dashboard,
  .hero-four .mini-bars i {
    animation: none !important;
  }
}


/* ===========================================================================
   2. WORDPRESS ADDITIONS
   Everything below exists only because this is now a WordPress theme rather
   than a static demo. Section 1 above is the untouched design stylesheet;
   keep design edits there and WordPress plumbing here.
   =========================================================================== */

/* --- Links that were <span>/<div> in the demo ---------------------------- */
a.brand,
a.nav-item,
a.button,
a.path-cta {
  text-decoration: none;
}

a.brand {
  color: inherit;
}

a.nav-item:hover,
a.nav-item:focus-visible {
  color: var(--blue);
}

a.nav-item.is-current,
.nav-trigger.is-current {
  color: var(--blue);
}

a.button {
  cursor: pointer;
}

a.path-cta {
  display: inline-flex;
  align-items: center;
}

button.path-cta {
  cursor: pointer;
}

/* Buttons in the demo had `cursor: default`; real controls should not. */
.button,
.path-cta,
.nav-dropdown summary {
  cursor: pointer;
}

/* --- Accessibility ------------------------------------------------------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  clip: auto !important;
  clip-path: none;
  width: auto;
  height: auto;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* --- Admin bar ----------------------------------------------------------- */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* --- Interior pages: entry header + content ------------------------------ */
.ssa-interior .site-main {
  padding-bottom: 40px;
}

.entry-header {
  padding: 68px 0 0;
  background: #fff;
}

.entry-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.entry-meta {
  margin: 16px 0 0;
  color: #6e818e;
  font-size: 13px;
  font-weight: 600;
}

.archive-description {
  margin-top: 16px;
  color: #60717d;
  font-size: 16px;
  line-height: 1.75;
}

.entry-featured {
  margin-top: 34px;
}

.entry-featured img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.entry-content {
  padding: 34px 0 72px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 24px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 23px; }
.entry-content h4 { font-size: 19px; }

.entry-content a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content img,
.entry-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.entry-content blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--mint);
  color: var(--ink);
  font-size: 19px;
}

.entry-content pre {
  padding: 20px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--soft);
  font-size: 14px;
}

.entry-content code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--soft);
  font-size: 0.92em;
}

.entry-content pre code {
  padding: 0;
  background: none;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.entry-content th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 750;
}

.entry-tags a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* Landing page template - content controls its own width. */
.ssa-landing-content {
  padding: 0 0 72px;
}

/* --- Block editor alignments --------------------------------------------- */
.entry-content .alignwide {
  width: min(1160px, calc(100vw - 64px));
  max-width: none;
  margin-left: calc(50% - min(580px, calc(50vw - 32px)));
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
}

.entry-content .alignfull img {
  border-radius: 0;
}

.alignleft {
  float: left;
  margin: 6px 28px 20px 0;
}

.alignright {
  float: right;
  margin: 6px 0 20px 28px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption-text,
.wp-element-caption {
  margin-top: 8px;
  color: #6e818e;
  font-size: 13px;
  text-align: center;
}

/* --- Post grid ----------------------------------------------------------- */
.ssa-post-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  padding: 44px 0 20px;
}

.ssa-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.ssa-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(9, 40, 60, 0.11);
}

.ssa-post-thumb {
  display: block;
  aspect-ratio: 12 / 7;
  overflow: hidden;
  background: var(--soft);
}

.ssa-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ssa-post-body {
  padding: 22px 24px 26px;
}

.ssa-post-body h2,
.ssa-post-body h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ssa-post-body h2 a,
.ssa-post-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.ssa-post-body h2 a:hover,
.ssa-post-body h3 a:hover {
  color: var(--blue);
}

.ssa-post-body p {
  margin: 0;
  color: #60717d;
  font-size: 15px;
  line-height: 1.7;
}

.ssa-latest-section {
  padding-top: 20px;
}

/* --- Pagination and post nav --------------------------------------------- */
.ssa-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 34px 0 72px;
  padding: 0;
  list-style: none;
}

.ssa-pagination a,
.ssa-pagination span {
  display: inline-flex;
  align-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ssa-pagination .current {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.ssa-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 60px;
}

.ssa-post-nav a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* --- Search form --------------------------------------------------------- */
.ssa-search-form {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.ssa-search-field {
  flex: 1;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

/* --- 404 and empty states ------------------------------------------------ */
.ssa-404 {
  padding: 90px 0 110px;
  text-align: center;
}

.ssa-404 h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ssa-404 p {
  color: #60717d;
  font-size: 16px;
}

.ssa-404 .ssa-search-form {
  max-width: 460px;
  margin: 26px auto 0;
}

.ssa-empty {
  padding: 60px 0 90px;
  color: #60717d;
  font-size: 16px;
  text-align: center;
}

/* --- Footer menu --------------------------------------------------------- */
.footer-nav {
  width: 100%;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.footer-menu a:hover {
  color: #fff;
}

/* --- Comments ------------------------------------------------------------ */
.comments-area {
  padding-bottom: 72px;
}

.comments-title,
.comment-reply-title {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.comment-list {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.comment-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 15px;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .ssa-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .ssa-post-grid {
    grid-template-columns: 1fr;
  }

  .entry-header {
    padding-top: 44px;
  }

  .entry-content .alignwide,
  .entry-content .alignfull {
    width: 100%;
    margin-left: 0;
  }

  .alignleft,
  .alignright {
    float: none;
    margin: 0 0 20px;
  }
}

/* --- Small odds and ends ------------------------------------------------- */
.widget-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.brand-has-logo img {
  display: block;
  height: auto;
  max-height: 40px;
  width: auto;
}

.page-links {
  margin: 28px 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.page-links a {
  margin: 0 4px;
  color: var(--blue);
  text-decoration: none;
}

.ssa-search-submit {
  flex: 0 0 auto;
}

.ssa-post-nav .prev,
.ssa-post-nav .next {
  max-width: 46%;
}

.ssa-post-nav .next {
  margin-left: auto;
  text-align: right;
}
