/* ============================================================
   Stealthlink - components
   Buttons, announcement bar, header + nav + dropdown, mobile drawer,
   cards, code window, accordion, badges, forms, tables, footer,
   buy section, page hero, placeholders.
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--ls-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: var(--accent-strong);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--accent-fill);
}

.btn-secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--text-strong);
}

.btn-secondary:hover {
  border-color: var(--text-faint);
  background: var(--surface-raised);
  color: var(--text-strong);
}

.btn-quiet {
  background: var(--surface-raised);
  color: var(--text-strong);
}

.btn-quiet:hover {
  background: var(--surface-hover);
  color: var(--text-strong);
}

.btn-danger {
  background: var(--danger-fill);
  border-color: rgba(255, 107, 107, 0.35);
  color: #FFB4B4;
}

.btn-danger:hover {
  background: rgba(255, 107, 107, 0.2);
  color: var(--white);
}

.btn-sm {
  --btn-h: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-lg {
  --btn-h: 52px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Text link with a trailing arrow, like "Learn more ->" */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-strong);
  font-weight: var(--fw-medium);
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover {
  color: var(--accent-light);
}

.link-arrow:hover svg {
  transform: translate(2px, -2px);
}

/* Round accent disc with an arrow, used as the CTA affordance */
.arrow-disc {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-strong);
  color: var(--white);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.arrow-disc svg {
  width: 14px;
  height: 14px;
}

a:hover > .arrow-disc,
.card-link:hover .arrow-disc {
  transform: rotate(45deg);
  background: var(--accent-hover);
}

/* ---------- Announcement bar ---------- */
.announce {
  position: relative;
  z-index: 60;
  background: var(--accent-strong);
  color: var(--white);
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1.35;
  text-align: center;
}

.announce-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  padding: 9px var(--gutter);
}

.announce a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.announce a svg {
  width: 14px;
  height: 14px;
}

.announce a:hover {
  color: var(--accent-pale);
}

/* ---------- Header: floating pill ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 24px;
  pointer-events: none;
}

.site-header-bar {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 52px;
  padding: 0 8px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-pill);
  background: rgba(27, 30, 40, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text-strong);
}

.brand-mark {
  width: 30px;
  height: 26px;
  color: var(--accent);
}

.nav-main {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--text-body);
  font-size: 15px;
  font-weight: var(--fw-medium);
  line-height: 20px;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-strong);
}

.nav-link.is-current {
  color: var(--text-strong);
}

.nav-link .chev {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}

.nav-link[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-login {
  padding: 8px 12px;
  color: var(--text-body);
  font-size: 15px;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 14px;
  border-radius: var(--r-pill);
  color: var(--accent-light);
  font-size: 15px;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.nav-cta:hover {
  color: var(--text-strong);
}

/* Dropdown (Resources) */
.nav-dd {
  position: relative;
}

.nav-dd-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 380px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--n-2);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}

.nav-dd-panel::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dd.is-open .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (hover: hover) and (min-width: 1025px) {
  .nav-dd:hover .nav-dd-panel,
  .nav-dd:focus-within .nav-dd-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.nav-dd-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 12px;
  align-items: start;
  padding: 12px;
  border-radius: var(--r-md);
  color: var(--text-strong);
}

.nav-dd-item:hover {
  background: var(--surface-raised);
  color: var(--text-strong);
}

.nav-dd-icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--n-1);
  color: var(--accent-light);
}

.nav-dd-icon svg {
  width: 18px;
  height: 18px;
}

.nav-dd-title {
  font-size: 15px;
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

.nav-dd-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-strong);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 16px var(--gutter) 24px;
  background: var(--bg);
  overflow-y: auto;
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  margin-bottom: var(--s-6);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
}

.nav-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 22px;
}

.nav-drawer-links svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.nav-drawer-links .sub {
  padding-left: 20px;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 17px;
}

.nav-drawer-actions {
  display: grid;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-8);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .nav-main,
  .nav-login {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-header {
    padding-top: 12px;
  }
}

@media (max-width: 480px) {
  .nav-cta .nav-cta-label {
    display: none;
  }

  .nav-cta {
    padding: 4px;
  }

  .site-header-bar {
    padding-left: 16px;
  }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: var(--card-pad, 28px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.card-plain {
  padding: 0;
  border: 0;
  background: none;
}

.card-title {
  margin: 0 0 var(--s-2);
  font-size: var(--t-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-medium);
}

.card-text {
  color: var(--text-muted);
}

.card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.card-link:hover {
  border-color: var(--accent-line);
  color: inherit;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: auto;
  padding-top: var(--s-6);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-5);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  background: var(--accent-fill);
  color: var(--accent-light);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

/* Media card: a visual panel on top, text underneath (the reference's feature tiles) */
.tile-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at var(--gx, 0%) var(--gy, 100%), rgba(89, 105, 255, 0.28), transparent 55%),
    var(--n-2);
}

.tile-media.glow-right {
  --gx: 100%;
  --gy: 0%;
}

.tile-body {
  padding-top: var(--s-8);
}

.tile-body h3 {
  margin-bottom: var(--s-3);
}

.tile-body p {
  color: var(--text-muted);
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
}

/* Window chrome inside a tile */
.window {
  width: min(88%, 440px);
  padding: 12px;
  border-radius: 22px;
  background: #2A2F3E;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.window-inner {
  overflow: hidden;
  border-radius: 12px;
  background: #0E1016;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 12px;
}

.window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3A4050;
}

.window-bar i:first-child {
  background: var(--accent-pale);
}

.window-bar span {
  margin-left: auto;
}

/* ---------- Code block ---------- */
.code {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0;
  white-space: pre;
  tab-size: 2;
}

.code .ln {
  display: inline-block;
  width: 2.2em;
  color: var(--text-faint);
  user-select: none;
}

.code .k { color: #FF8FA3; }
.code .s { color: #7EE0A8; }
.code .f { color: var(--accent-light); }
.code .c { color: var(--text-faint); }
.code .n { color: #FFC56B; }

.code-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-sunken);
  overflow: hidden;
}

.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--border);
}

.code-tabs {
  display: flex;
  gap: 2px;
}

.code-tab {
  padding: 6px 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.code-tab[aria-selected="true"] {
  background: var(--surface-raised);
  color: var(--text-strong);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--n-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--fw-medium);
}

.copy-btn:hover {
  color: var(--text-strong);
  border-color: var(--text-faint);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.copy-btn.is-copied {
  border-color: rgba(61, 214, 140, 0.4);
  color: var(--ok);
}

/* ---------- Accordion (FAQ + "+" rows) ---------- */
.acc {
  border-top: 1px solid var(--border);
}

.acc-item {
  border-bottom: 1px solid var(--border);
}

.acc-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: var(--fw-regular);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.acc-q::-webkit-details-marker {
  display: none;
}

.acc-q:hover {
  color: var(--accent-light);
}

.acc-plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.acc-plus::before,
.acc-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}

.acc-plus::after {
  transform: rotate(90deg);
}

details[open] > .acc-q .acc-plus::after {
  transform: rotate(0deg);
}

.acc-a {
  max-width: 760px;
  padding: 0 40px 28px 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.acc-a p + p {
  margin-top: 0.8em;
}

/* ---------- Badges / pills / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--n-1);
  color: var(--text-body);
  font-size: 12px;
  font-weight: var(--fw-medium);
  line-height: 18px;
  white-space: nowrap;
}

.badge svg {
  width: 12px;
  height: 12px;
}

.badge-accent {
  border-color: var(--accent-line);
  background: var(--accent-fill);
  color: var(--accent-pale);
}

.badge-ok {
  border-color: rgba(61, 214, 140, 0.35);
  background: var(--ok-fill);
  color: #9BF0C5;
}

.badge-warn {
  border-color: rgba(245, 181, 68, 0.35);
  background: var(--warn-fill);
  color: #FFD796;
}

.badge-danger {
  border-color: rgba(255, 107, 107, 0.35);
  background: var(--danger-fill);
  color: #FFB4B4;
}

.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.dot-live {
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-fill);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: none;
  color: var(--text-body);
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 20px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.chip:hover {
  border-color: var(--text-faint);
  color: var(--text-strong);
}

.chip[aria-pressed="true"],
.chip[aria-selected="true"],
.chip.is-active {
  border-color: var(--accent);
  background: var(--accent-fill);
  color: var(--text-strong);
}

/* ---------- Check list ---------- */
.checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text-body);
}

.checks svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent-light);
}

/* ---------- Forms ---------- */
.field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.field + .field {
  margin-top: var(--s-4);
}

.field-label,
.field label {
  color: var(--text-body);
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.field-hint {
  color: var(--text-faint);
  font-size: 13px;
}

.input,
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea,
.woocommerce form .input-text,
.woocommerce form select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--n-1);
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.field textarea,
textarea.input {
  min-height: 140px;
  resize: vertical;
}

.input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.woocommerce form .input-text:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-fill-2);
}

.input[readonly],
.field input[readonly] {
  color: var(--text-body);
  background: var(--n-0);
}

.field select,
select.input {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F95B5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-body);
  font-size: 15px;
  cursor: pointer;
}

.choice + .choice {
  margin-top: 10px;
}

.choice input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--s-4);
}

.form-row-2 .field + .field {
  margin-top: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* ---------- Notices ---------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--n-1);
  color: var(--text-body);
  font-size: 15px;
}

.notice svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}

.notice-ok {
  border-color: rgba(61, 214, 140, 0.35);
  background: var(--ok-fill);
  color: #BDF5D8;
}

.notice-ok svg {
  color: var(--ok);
}

.notice-warn {
  border-color: rgba(245, 181, 68, 0.35);
  background: var(--warn-fill);
  color: #FFE3B3;
}

.notice-warn svg {
  color: var(--warn);
}

.notice-info {
  border-color: var(--accent-line);
  background: var(--accent-fill);
  color: var(--accent-pale);
}

.notice-info svg {
  color: var(--accent-light);
}

.notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Tables ---------- */
.table-wrap {
  position: relative; /* keeps absolutely positioned sr-only labels inside the scroller */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  font-size: 14px;
}

.table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  padding: 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-body);
  vertical-align: middle;
  white-space: nowrap;
}

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.table .num {
  font-variant-numeric: tabular-nums;
}

/* ---------- Placeholder (content still to come from the owner) ---------- */
.placeholder {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: var(--s-6);
  border: 1px dashed var(--text-faint);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2 {
  max-width: 18ch;
}

.section-head .lead {
  max-width: 560px;
  margin-top: var(--s-4);
}

.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head-center h2 {
  max-width: 20ch;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px);
  text-align: center;
  isolation: isolate;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: -120px 0 auto;
  z-index: -1;
  height: 520px;
  background: radial-gradient(40% 55% at 50% 30%, rgba(89, 105, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: var(--t-display);
  line-height: var(--lh-display);
}

.page-hero .lead {
  max-width: 640px;
  margin: var(--s-6) auto 0;
}

.page-hero .hero-actions {
  justify-content: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}

.crumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--s-5);
  color: var(--text-faint);
  font-size: 13px;
}

.crumbs a {
  color: var(--text-muted);
}

.crumbs a:hover {
  color: var(--text-strong);
}

/* ---------- Buy section (ends every page) ---------- */
.buy {
  position: relative;
  padding-block: var(--section-y);
  overflow: hidden;
  isolation: isolate;
}

.buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.buy-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.8;
}

.buy-visual svg {
  width: min(100%, 460px);
  height: auto;
}

.buy h2 {
  font-size: var(--t-display);
  line-height: var(--lh-display);
  font-weight: var(--fw-regular);
}

.buy .lead {
  max-width: 520px;
  margin-top: var(--s-6);
}

.buy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: var(--s-6);
  color: var(--text-muted);
  font-size: 14px;
}

.buy-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.buy-meta svg {
  width: 16px;
  height: 16px;
  color: var(--accent-light);
}

@media (max-width: 860px) {
  .buy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .buy-visual {
    order: 2;
    max-width: 360px;
    margin-inline: auto;
    aspect-ratio: 1 / 0.75;
  }
}

/* ---------- CTA band (mid-page) ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(89, 105, 255, 0.25), transparent 60%),
    var(--n-2);
}

.cta-band h3 {
  max-width: 26ch;
}

.cta-band p {
  margin-top: var(--s-2);
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0 48px;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent 55%, rgba(89, 105, 255, 0.07));
  font-size: 15px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: var(--s-10) var(--s-8);
}

.footer-brand .brand {
  font-size: 26px;
}

.footer-brand .brand-mark {
  width: 38px;
  height: 32px;
}

.footer-tagline {
  max-width: 320px;
  margin-top: var(--s-5);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: var(--s-8);
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-body);
}

.footer-social a:hover {
  border-color: var(--accent-line);
  color: var(--text-strong);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-col h2 {
  margin-bottom: var(--s-4);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-body);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a,
.footer-col li {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text-strong);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
  color: var(--text-faint);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--text-strong);
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- FAQ block ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.faq-intro h2 {
  max-width: 12ch;
}

.faq-intro .lead {
  margin-top: var(--s-5);
}

.faq-more {
  margin-top: var(--s-6);
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-intro {
    position: static;
  }
}

/* ---------- Blog cards (shared by blog, archives, home teasers) ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--s-6);
}

.post-card-link {
  height: 100%;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.post-card-title {
  margin-bottom: var(--s-3);
  font-size: 22px;
  line-height: 1.3;
}

.pager .nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: var(--s-12);
}

.pager .page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-body);
}

.pager .page-numbers.current {
  border-color: var(--accent);
  color: var(--text-strong);
}

.pager svg {
  width: 16px;
  height: 16px;
}

/* ---------- Gradient tones for image-less feature cards (use cases, resources) ---------- */
.uc-tone-0 { --uc-bg: radial-gradient(120% 80% at 20% 10%, #6C78FF 0%, #2A33A0 40%, #0C0E14 80%); }
.uc-tone-1 { --uc-bg: radial-gradient(120% 80% at 80% 0%, #8E99FF 0%, #3A2F9E 42%, #0C0E14 80%); }
.uc-tone-2 { --uc-bg: radial-gradient(120% 80% at 50% 0%, #4FA3FF 0%, #1E3A8A 45%, #0C0E14 82%); }
.uc-tone-3 { --uc-bg: radial-gradient(120% 80% at 10% 0%, #A5ADFF 0%, #4150E6 38%, #0C0E14 80%); }
