/*
Theme Name: Tokenized Agentics Access
Theme URI: https://tokenizedagentics.com/
Author: Immutifi
Description: A classic, editable WordPress theme for Tokenized Agentics front-page agent access, membership tiers, and hosted workflow positioning. Built to work with normal pages, PMPro membership pages, and the agent console shortcode without blocking page content.
Version: 1.0.11
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tokenized-agentics-access
*/

:root {
  --ta-bg: #05060a;
  --ta-bg-2: #0b0f1a;
  --ta-panel: rgba(255,255,255,.065);
  --ta-panel-strong: rgba(255,255,255,.10);
  --ta-line: rgba(255,255,255,.17);
  --ta-text: #f6f8ff;
  --ta-muted: #b8c5ea;
  --ta-soft: #d7e2ff;
  --ta-gold: #f3c96a;
  --ta-gold-2: #ffe59b;
  --ta-blue: #29cae7;
  --ta-radius: 28px;
  --ta-shadow: 0 24px 80px rgba(0,0,0,.38);
  --ta-max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(41,202,231,.13), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(243,201,106,.13), transparent 26%),
    linear-gradient(135deg, #101827 0%, #05060a 42%, #17110b 100%);
  color: var(--ta-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
mark { background: none; color: var(--ta-gold); }

.ta-site-header {
  padding: 36px 18px 18px;
  background-size: cover;
  background-position: center;
}
.ta-header-inner {
  max-width: var(--ta-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.ta-logo-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 18px 46px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.10);
}
.ta-logo-wrap img {
  display: block;
  width: min(360px, 50vw);
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.38));
}
.ta-nav ul, .ta-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.ta-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: .98rem;
}
.ta-nav a:hover { color: var(--ta-gold-2); }

.ta-container { max-width: var(--ta-max); margin: 0 auto; padding: 0 18px; }
.ta-hero { padding: clamp(34px, 5vw, 72px) 0 54px; }
.ta-grid { display: grid; grid-template-columns: minmax(320px, .68fr) minmax(680px, 1.32fr); gap: clamp(24px, 3.5vw, 44px); align-items: start; }
.ta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ta-line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255,255,255,.08);
  color: #fff4ce;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.ta-dot { width: 9px; height: 9px; border-radius: 99px; background: #73f0b0; box-shadow: 0 0 20px rgba(115,240,176,.75); }
.ta-title { font-size: clamp(var(--ta-hero-title-min, 2.8rem), var(--ta-hero-title-fluid, 5.8vw), var(--ta-hero-title-max, 5.2rem)); line-height: .92; letter-spacing: -.06em; margin: 26px 0 18px; max-width: var(--ta-hero-title-width, 520px); }
.ta-lede { color: #d5e1ff; font-size: clamp(1.08rem, 1.8vw, 1.32rem); line-height: 1.55; max-width: 620px; margin: 0 0 20px; }
.ta-microcopy { color: var(--ta-muted); font-size: .98rem; line-height: 1.55; max-width: 620px; }
.ta-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 28px 0 16px; }
.ta-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
  margin-top: 24px;
}
.ta-mini-card {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  padding: 16px 18px;
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
}
.ta-mini-card strong {
  display: block;
  font-size: .98rem;
  margin-bottom: 6px;
  color: #fff;
}
.ta-mini-card span {
  color: var(--ta-muted);
  font-size: .92rem;
  line-height: 1.45;
}
.ta-button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ta-button:hover, .wp-block-button__link:hover { transform: translateY(-1px); }
.ta-button.primary, .is-style-tokenized-primary .wp-block-button__link { background: linear-gradient(135deg, var(--ta-gold), #fff1bd); color: #07080d; box-shadow: 0 18px 40px rgba(243,201,106,.18); }
.ta-button.secondary, .is-style-tokenized-secondary .wp-block-button__link { background: rgba(255,255,255,.085); color: #fff; border-color: rgba(255,255,255,.24); }

.ta-app-card {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
  overflow: hidden;
  box-shadow: var(--ta-shadow);
  min-height: 460px;
  margin-top: 4px;
}
.ta-app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.16); color: #cbd8ff; }
.ta-lights { display: flex; gap: 8px; }
.ta-light { width: 10px; height: 10px; border-radius: 99px; background: #ff7178; }
.ta-light:nth-child(2) { background: #ffcf65; }
.ta-light:nth-child(3) { background: #7beaac; }
.ta-app-body { padding: clamp(20px, 4vw, 38px); }

.tokenized-app-shell {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.10), transparent 44%),
    rgba(0,0,0,.16);
  padding: 22px;
}
.tokenized-app-shell h3 { font-size: clamp(1.75rem, 3vw, 2.6rem); margin: 0 0 12px; letter-spacing: -.04em; }
.tokenized-app-shell p { color: var(--ta-muted); max-width: 560px; margin: 0 auto 20px; line-height: 1.58; }
.tokenized-app-shell iframe { width: 100%; min-height: 420px; border: 0; border-radius: 22px; background: #0b0d14; }
.ta-pill-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.ta-pill { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 10px; color: var(--ta-muted); background: rgba(255,255,255,.055); font-size: .82rem; font-weight: 800; }

.ta-section { padding: clamp(54px, 7vw, 96px) 0; }
.ta-section.compact { padding-top: 28px; }
.ta-section-heading { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.ta-section-heading h2 { font-size: clamp(2.1rem, 4vw, 4rem); line-height: .96; letter-spacing: -.055em; margin: 0 0 16px; }
.ta-section-heading p { color: var(--ta-muted); font-size: 1.08rem; line-height: 1.62; margin: 0; }
.ta-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ta-card, .ta-plan {
  border: 1px solid var(--ta-line);
  border-radius: var(--ta-radius);
  background: var(--ta-panel);
  padding: clamp(20px, 2vw, 28px);
  box-shadow: 0 18px 52px rgba(0,0,0,.25);
}
.ta-card h3, .ta-plan h3 { margin-top: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.ta-card p, .ta-plan p, .ta-plan li { color: var(--ta-muted); line-height: 1.6; }
.ta-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(243,201,106,.14); color: var(--ta-gold-2); font-weight: 900; margin-bottom: 18px; }
.ta-plan.featured { border-color: rgba(243,201,106,.48); background: linear-gradient(180deg, rgba(243,201,106,.10), rgba(255,255,255,.035)); }
.ta-price { font-size: 2.35rem; font-weight: 900; letter-spacing: -.06em; margin: 12px 0; }
.ta-price small { font-size: .95rem; color: var(--ta-muted); font-weight: 700; letter-spacing: 0; }
.ta-plan ul { padding-left: 1.1rem; margin-bottom: 24px; }
.ta-note-panel { border: 1px solid rgba(135,183,255,.22); border-radius: 28px; background: linear-gradient(135deg, rgba(41,202,231,.08), rgba(243,201,106,.08)); padding: clamp(26px, 5vw, 56px); text-align: center; }
.ta-note-panel h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.055em; margin: 0 0 16px; }
.ta-note-panel p { color: var(--ta-muted); line-height: 1.62; max-width: 760px; margin: 0 auto 24px; }

.ta-page-main { padding: clamp(42px, 7vw, 80px) 18px; }
.ta-page-shell, .entry-content { max-width: 980px; margin: 0 auto; }
.ta-page-card, .entry-content {
  border: 1px solid var(--ta-line);
  border-radius: 28px;
  background: rgba(255,255,255,.055);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}
.ta-page-title { font-size: clamp(2.1rem, 5vw, 4.25rem); line-height: .96; letter-spacing: -.055em; margin: 0 0 24px; }
.entry-content :where(p, li) { color: var(--ta-soft); line-height: 1.65; }
.entry-content :where(h1,h2,h3,h4) { color: #fff; letter-spacing: -.035em; }
.entry-content a { color: var(--ta-gold-2); }
.entry-content .tokenized-app-shell { margin: 0; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }

.ta-site-footer {
  padding: 40px 18px 46px;
  background-size: cover;
  background-position: center;
}
.ta-footer-inner {
  max-width: var(--ta-max);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--ta-muted);
}
.ta-footer-logo { max-width: 220px; display: block; margin-bottom: 10px; }
.ta-footer-links a, .ta-footer-menu a { color: #d7e2ff; }
.ta-footer-menu .ta-nav-list { gap: 14px; }

/* Paid Memberships Pro and common membership pages */
#pmpro_levels, .pmpro, .pmpro_checkout, .pmpro_confirmation_wrap, .pmpro_account, .pmpro_billing_wrap {
  color: var(--ta-text);
}
.pmpro_card, .pmpro_section, .pmpro_checkout-fields, .pmpro_level, .pmpro_account-section {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 22px !important;
  color: var(--ta-text) !important;
}
.pmpro_btn, .pmpro_btn-submit, input[type="submit"], button {
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--ta-gold), #fff1bd);
  color: #07080d;
  font-weight: 900;
  padding: 12px 18px;
}
input, select, textarea {
  background: rgba(255,255,255,.95);
  color: #10131d;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  padding: 10px 12px;
}

@media (max-width: 920px) {
  .ta-header-inner { flex-direction: column; align-items: center; text-align: center; }
  .ta-logo-wrap img { width: min(360px, 86vw); }
  .ta-grid { grid-template-columns: 1fr; }
  .ta-cards { grid-template-columns: 1fr; }
  .ta-title { text-align: center; font-size: clamp(2.4rem, 10vw, 4rem); max-width: none; }
  .ta-lede, .ta-microcopy { text-align: center; margin-left: auto; margin-right: auto; }
  .ta-actions { justify-content: center; }
}

@media (max-width: 620px) {
  .ta-nav ul, .ta-nav-list { gap: 12px; flex-wrap: wrap; }
  .ta-app-card { min-height: auto; }
  .ta-app-body { padding: 16px; }
  .tokenized-app-shell { padding: 24px 16px; }
  .ta-footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 920px) { .ta-grid { grid-template-columns: 1fr; } .ta-balance-grid { grid-template-columns: 1fr; } }

@media (min-width: 1100px) {
  .ta-app-card { width: 100%; }
  .ta-app-body .tokenized-app-shell { min-height: 300px; }
  .ta-app-body .tokenized-app-shell iframe { min-height: 400px; }
}
