/* ============================================================
   Stealthlink - inner pages (locations, resources, use cases,
   tools, blog, contact, legal, single post)
   ============================================================ */

.woo-content {
  max-width: 1040px;
  margin-inline: auto;
}

/* ---------- Locations ---------- */
.loc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(220px, 260px);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(89, 105, 255, 0.18), transparent 60%),
    var(--surface);
}

.loc-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.loc-flag {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--n-1);
  font-size: 30px;
  line-height: 1;
  color: var(--accent-light);
}

.loc-flag svg {
  width: 26px;
  height: 26px;
}

.loc-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.loc-title h3 {
  font-size: 28px;
}

.loc-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.loc-carriers ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loc-carriers li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--n-1);
  color: var(--text-strong);
  font-size: 14px;
}

.loc-carriers svg {
  width: 14px;
  height: 14px;
  color: var(--accent-light);
}

.loc-price {
  margin-bottom: 12px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.loc-soon-title {
  margin: clamp(48px, 6vw, 72px) 0 24px;
  font-size: var(--t-h3);
}

.loc-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 16px;
}

.loc-soon {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--n-1);
}

.loc-soon h3 {
  font-size: 24px;
}

.loc-soon p {
  margin-bottom: 14px;
  font-size: 15px;
}

.loc-row + .loc-soon-grid {
  margin-top: 16px;
}

.loc-request {
  border-style: solid;
}

.loc-request h3 {
  margin-bottom: 6px;
}

@media (max-width: 960px) {
  .loc-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .loc-soon {
    flex-direction: column;
    padding: 22px;
  }
}

/* ---------- Resources hub ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 420px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-strong);
  isolation: isolate;
  transition: border-color var(--dur) var(--ease);
}

.hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--uc-bg);
  opacity: 0.75;
  transition: opacity var(--dur) var(--ease), transform var(--dur-slow) var(--ease);
}

.hub-card::after {
  content: '';
  position: absolute;
  inset: 30% 0 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(4, 5, 9, 0.92));
}

.hub-card:hover {
  border-color: var(--accent-line);
  color: var(--text-strong);
}

.hub-card:hover::before {
  opacity: 1;
  transform: scale(1.03);
}

.hub-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.3;
}

.hub-body {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: auto;
}

.hub-title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hub-text {
  color: var(--text-body);
  font-size: 15px;
}

.hub-card .arrow-disc {
  position: absolute;
  top: 28px;
  right: 28px;
}

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

  .hub-card {
    min-height: 300px;
  }
}

.hub-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.hub-split .lead {
  margin-top: var(--s-5);
}

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

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.link-list a {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  gap: 16px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 20px;
}

.link-list a > .icon:last-child {
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

.link-list a:hover > .icon:last-child {
  color: var(--accent-light);
  transform: translateX(3px);
}

.link-list-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--n-1);
  color: var(--accent-light);
}

/* ---------- Use cases ---------- */
.uc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

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

.uc-toc ol {
  display: grid;
  gap: 2px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.uc-toc ol a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 15px;
}

.uc-toc ol a svg {
  width: 16px;
  height: 16px;
  color: var(--text-faint);
}

.uc-toc ol a:hover,
.uc-toc ol a.is-active {
  background: var(--surface);
  color: var(--text-strong);
}

.uc-toc ol a.is-active svg {
  color: var(--accent-light);
}

.uc-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(56px, 7vw, 96px);
}

.uc-section {
  scroll-margin-top: calc(var(--header-h) + 40px);
}

.uc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.uc-head .card-icon {
  margin: 0;
}

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

.uc-section > .lead {
  max-width: 720px;
  margin-top: var(--s-4);
}

.uc-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.uc-cols h3 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.uc-why p {
  color: var(--text-body);
}

.uc-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.uc-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  color: var(--text-body);
  counter-increment: s;
}

.uc-steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--accent-pale);
  font-family: var(--font-mono);
  font-size: 12px;
}

.uc-tip {
  margin-top: 28px;
}

.uc-code {
  margin-top: 20px;
}

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

  .uc-toc {
    position: static;
  }

  .uc-toc ol {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .uc-toc .btn {
    display: none;
  }
}

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

/* ---------- Tools ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
}

.tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-card h2.card-title {
  font-family: var(--font-display);
  font-size: 22px;
}

.tool-card .card-text {
  margin-bottom: 24px;
  font-size: 15px;
}

.tool-preview {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--n-1);
  color: var(--text-faint);
  font-size: 12px;
}

.tool-caret {
  width: 7px;
  height: 14px;
  background: var(--accent);
  animation: caret 1.1s steps(2, start) infinite;
}

@keyframes caret {
  to { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-caret {
    animation: none;
  }
}

.tool-card.is-soon .card-icon {
  border-color: var(--border);
  background: var(--n-1);
  color: var(--text-muted);
}

/* ---------- Blog ---------- */
.blog-cats {
  justify-content: center;
  margin-bottom: 40px;
}

.post-featured {
  margin-bottom: 24px;
}

.post-featured-link {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.post-featured-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  color: rgba(255, 255, 255, 0.9);
  background: var(--uc-bg);
}

.post-featured-art svg {
  width: 72px;
  height: 72px;
  stroke-width: 1.2;
}

.post-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(28px, 4vw, 48px);
}

.post-featured-body .post-card-meta {
  margin-bottom: 0;
}

.post-featured-body h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

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

  .post-featured-art {
    min-height: 180px;
  }
}

.post-hero {
  text-align: left;
}

.post-hero .crumbs {
  justify-content: flex-start;
}

.post-hero h1 {
  max-width: none;
  margin-inline: 0;
  font-size: var(--t-h1);
  line-height: var(--lh-h1);
}

.post-hero .lead {
  margin-left: 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.post-body {
  padding-bottom: 16px;
}

.prose figure {
  margin: 1.6em 0;
}

.prose .wp-block-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.prose .wp-block-table table {
  min-width: 560px;
}

.prose .wp-block-table thead {
  border-bottom: 0;
}

.prose .wp-block-table th,
.prose .wp-block-table td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.prose .wp-block-table th {
  background: var(--n-1);
}

.prose .wp-block-table tr:last-child td {
  border-bottom: 0;
}

.prose code {
  font-size: 0.88em;
}

.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.post-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(89, 105, 255, 0.22), transparent 60%),
    var(--surface);
}

.post-cta h2 {
  font-size: 24px;
}

.post-cta p {
  margin-top: 6px;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.contact-card h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.contact-card p {
  margin-bottom: 14px;
  font-size: 15px;
}

.contact-link {
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 15px;
  word-break: break-all;
}

.contact-facts {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--border);
}

.contact-facts > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-facts dt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--text-strong);
  font-weight: var(--fw-medium);
}

.contact-facts dt svg {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
}

.contact-facts dd {
  margin: 0 0 0 28px;
  color: var(--text-muted);
  font-size: 15px;
}

.contact-form-card {
  --card-pad: clamp(24px, 3.5vw, 40px);
}

.contact-form-card > h2 {
  margin-bottom: 6px;
  font-size: 28px;
}

.contact-form-card > p {
  margin-bottom: 28px;
  font-size: 15px;
}

.contact-form .form-row-2 {
  margin-bottom: 16px;
}

.contact-consent {
  margin-top: 20px;
  font-size: 14px;
}

/* Telegram: the main support channel, the most prominent card */
.contact-card-primary {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.2vw, 36px);
  border-color: var(--accent-line);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(89, 105, 255, 0.22), transparent 60%),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(89, 105, 255, 0.12), 0 24px 60px -30px rgba(89, 105, 255, 0.55);
}

.contact-tg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--s-5);
}

.contact-tg-head .card-icon {
  margin: 0;
}

.card-icon-accent {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.contact-card-primary h2 {
  font-size: clamp(24px, 2.4vw, 28px);
}

.contact-tg-handle {
  margin-bottom: 10px !important;
  color: var(--accent-light);
  font-size: 17px !important;
}

.contact-card-primary .btn {
  margin-top: 6px;
}

.contact-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0 !important;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14.5px !important;
}

.contact-hours svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent-light);
}

.contact-hours strong {
  color: var(--text-strong);
  font-weight: var(--fw-medium);
}

.contact-mails {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-mails li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  font-size: 14px;
}

.contact-form-wrap > h2,
.contact-done h2 {
  margin-bottom: 6px;
  font-size: 28px;
}

.contact-form-wrap > p {
  margin-bottom: 28px;
  font-size: 15px;
}

/* honeypot: invisible for people, still in the form for bots */
.cf-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cf-alert {
  margin-bottom: 20px;
}

.contact-form .field-error {
  margin-bottom: 0;
}

.contact-form [data-cf-submit][aria-busy="true"] {
  opacity: 0.75;
  pointer-events: none;
}

.contact-done {
  padding: clamp(8px, 2vw, 24px) 0;
  outline: none;
}

.contact-done-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s-6);
  border: 1px solid rgba(61, 214, 140, 0.4);
  border-radius: 50%;
  background: var(--ok-fill);
  color: var(--ok);
  animation: sl-pop 420ms var(--ease);
}

.contact-done-icon svg {
  width: 26px;
  height: 26px;
}

@keyframes sl-pop {
  from { transform: scale(0.6); opacity: 0; }
}

.contact-done .muted {
  max-width: 52ch;
  font-size: 15.5px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-done-icon { animation: none; }
}

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

.uc-guide {
  margin-top: var(--s-5);
}
