/* Apptivators Apps — static scaffold (Phase 1). Theme aligned with prior IONOS builder tokens. */

@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap");

:root {
  --bg: #282828;
  --text: #fffdf9;
  --heading: #aba261;
  --link: #aba261;
  --accent: #b30c3c;
  --accent-dark: #770024;
  --muted: #a1a1a1;
  --max: 960px;
  --space: 1rem;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  left: var(--space);
  top: var(--space);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(40, 40, 40, 0.95);
  border-bottom: 1px solid rgba(255, 253, 249, 0.08);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: "Baloo 2", "Baloo Chettan", cursive;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover,
.logo:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--heading);
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.nav-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--heading);
  border-bottom-color: var(--accent);
}

.nav-list a[aria-current="page"] {
  color: var(--heading);
  border-bottom-color: var(--heading);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--space) 4rem;
}

.banner {
  background: linear-gradient(135deg, rgba(119, 0, 36, 0.35), rgba(40, 40, 40, 0.9));
  border: 1px solid rgba(171, 162, 97, 0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Baloo 2", "Baloo Chettan", cursive;
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-top: 0;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
}

h4 {
  font-size: 1.15rem;
  color: var(--text);
  margin-top: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
}

a:hover,
a:focus-visible {
  color: var(--text);
}

.lede {
  font-size: 1.2rem;
  max-width: 38rem;
}

.tagline {
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--heading);
  margin: 1.5rem 0;
  line-height: 1.35;
}

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: var(--text) !important;
  text-decoration: none;
  border-radius: var(--radius);
  font-family: "Baloo 2", cursive;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-dark);
}

.tier-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .tier-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tier-card {
  background: rgba(255, 253, 249, 0.04);
  border: 1px solid rgba(171, 162, 97, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.tier-card .label {
  font-family: "Baloo 2", cursive;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 253, 249, 0.1);
  padding: 2rem var(--space);
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--heading);
}

address {
  font-style: normal;
  margin: 0.5rem 0 0;
}

/* Legal / privacy long-form */
.policy-doc {
  max-width: 42rem;
  margin: 0 auto;
  text-align: left;
}

.policy-doc h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

.policy-doc h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--heading);
}

.policy-doc > p:first-of-type {
  margin-top: 0;
}

.policy-doc ul,
.policy-doc ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.policy-doc li {
  margin-bottom: 0.35rem;
}

.policy-doc .effective-date {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.5rem;
  }

  .nav-list.is-open {
    display: flex;
  }
}

/* —— Matrix theme + screenshot-aligned layout —— */

body.theme-matrix {
  position: relative;
  min-height: 100vh;
  background: #050805;
}

body.theme-matrix::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(5, 8, 5, 0.82) 0%, rgba(8, 12, 8, 0.88) 50%, rgba(5, 10, 8, 0.92) 100%),
    url("/images/bg-matrix.png") center top / cover no-repeat fixed;
  pointer-events: none;
}

body.theme-matrix > * {
  position: relative;
  z-index: 1;
}

.site-header--stacked {
  background: rgba(12, 14, 12, 0.92);
  border-bottom: 1px solid rgba(0, 255, 80, 0.12);
  overflow: visible;
}

.header-inner--centered {
  max-width: 1100px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  overflow: visible;
}

.brand-lockup {
  display: block;
  line-height: 0;
  text-decoration: none;
}

/* Layered header: matrix (image_8cc02733) + logo-brand + logo3 on top */
.brand-composite {
  position: relative;
  display: block;
  width: min(420px, 92vw);
  margin: 0 auto;
  overflow: visible;
  /* Tuned to match live header composite (screenshot → brand-tab.png favicon) */
  --brand-front-width-pct: 96%;
  --brand-front-max-px: 400px;
  --brand-front-offset-x: 0px;
  --brand-front-offset-y: -14px;
  --brand-front-scale: 1;
}

.brand-layer--matrix {
  position: absolute;
  inset: -10px -8px -12px -8px;
  width: calc(100% + 16px);
  height: calc(100% + 22px);
  object-fit: cover;
  opacity: 0.42;
  z-index: 0;
  mix-blend-mode: screen;
  border-radius: 12px;
  pointer-events: none;
}

.brand-layer--core {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5));
}

.brand-layer--front {
  position: absolute;
  top: calc(50% + var(--brand-front-offset-y));
  left: calc(50% + var(--brand-front-offset-x));
  transform: translate(-50%, -50%) scale(var(--brand-front-scale, 1));
  transform-origin: center center;
  width: min(var(--brand-front-width-pct), var(--brand-front-max-px));
  height: auto;
  max-height: 92%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.7));
}

/* Localhost: logo3-dev.js adds this class so you can drag the emblem */
.brand-composite--edit .brand-layer--front {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.brand-composite--edit .brand-layer--front:active {
  cursor: grabbing;
}

/* Floating controls (localhost only; created by js/logo3-dev.js) */
.logo3-dev-panel {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 999999;
  width: min(280px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(18, 22, 18, 0.96);
  border: 1px solid rgba(0, 255, 80, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: rgba(255, 253, 249, 0.92);
}

.logo3-dev-panel h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading, #e8f5e9);
}

.logo3-dev-panel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.logo3-dev-panel input[type="range"] {
  width: 100%;
}

.logo3-dev-panel .logo3-dev-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.logo3-dev-panel button {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 80, 0.3);
  background: rgba(0, 80, 40, 0.35);
  color: inherit;
  font-size: 11px;
  cursor: pointer;
}

.logo3-dev-panel button:hover {
  background: rgba(0, 100, 50, 0.45);
}

.logo3-dev-panel .logo3-dev-hint {
  margin: 0 0 8px;
  opacity: 0.75;
  line-height: 1.35;
}

.nav-list--pill {
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.nav-list--pill a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border-bottom: none !important;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.9rem;
}

.nav-list--pill a:hover,
.nav-list--pill a:focus-visible {
  background: rgba(255, 253, 249, 0.08);
  color: var(--heading);
}

.nav-list--pill a[aria-current="page"] {
  background: rgba(255, 152, 166, 0.35);
  color: var(--text);
  border: 1px solid rgba(255, 152, 166, 0.45);
}

main.main--full {
  max-width: none;
  margin: 0;
  padding: 0;
}

.layer {
  padding: 2.5rem var(--space);
}

.layer--dark {
  background: rgba(0, 0, 0, 0.25);
}

.hero-split-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-split-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-kicker {
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--heading);
  line-height: 1.15;
  margin: 0;
  text-align: left;
}

.hero-kicker-sub {
  font-size: 0.85em;
  opacity: 0.95;
}

.circle-frame {
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(171, 162, 97, 0.45);
  box-shadow: 0 0 40px rgba(0, 200, 80, 0.15);
}

.circle-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mission-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem var(--space);
  text-align: center;
}

.mission-block h1 {
  text-align: center;
}

.mission-block .lede {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  color: var(--text);
}

.mission-block .lede strong {
  color: #fff;
  font-weight: 600;
}

.thank-you-box {
  display: inline-block;
  margin: 1.5rem auto 0;
  padding: 0.65rem 1.5rem;
  border: 2px solid #e02020;
  border-radius: var(--radius);
  color: #ff6b6b;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.platforms-banner {
  position: relative;
  min-height: min(70vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000 url("/images/hero-platforms.png") center / cover no-repeat;
  border-top: 1px solid rgba(0, 255, 100, 0.15);
  border-bottom: 1px solid rgba(0, 255, 100, 0.15);
}

.platforms-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
}

.platforms-banner .tagline {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  padding: var(--space);
  color: #d4af37;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.9);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
}

.tier-showcase {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem var(--space) 3rem;
}

.tier-showcase h2 {
  text-align: center;
  margin-top: 0;
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .tier-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tier-spot {
  text-align: center;
  background: rgba(255, 253, 249, 0.06);
  border: 1px solid rgba(171, 162, 97, 0.25);
  border-radius: var(--radius);
  padding: 1rem 0.75rem 1.25rem;
}

.tier-spot img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
}

.tier-spot .tier-num {
  font-family: "Baloo 2", cursive;
  font-size: 2rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.btn-tier {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  border: none;
}

.btn-tier--1 {
  background: #1a1a1a;
}
.btn-tier--2 {
  background: #6b2d8b;
}
.btn-tier--3 {
  background: #1e8f4a;
}
.btn-tier--4 {
  background: #b8860b;
}

.btn-tier:hover,
.btn-tier:focus-visible {
  filter: brightness(1.12);
}

.services-hero-tiers {
  margin-bottom: 2.5rem;
}

.tier-card img.tier-badge {
  max-width: 160px;
  display: block;
  margin: 0 auto 1rem;
}

.main-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem var(--space) 3rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px solid rgba(171, 162, 97, 0.15);
}

.drip-bar {
  display: block;
  width: 100%;
  height: 36px;
  margin: 0;
  line-height: 0;
}

.drip-bar path {
  fill: #0a1520;
}

.site-footer--full {
  margin-top: 0;
  padding: 0;
  border-top: none;
  background: linear-gradient(165deg, #0a1520 0%, #0d2830 40%, #0a1a14 100%);
}

.footer-body {
  text-align: center;
  padding: 2.5rem var(--space) 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.footer-copy {
  color: rgba(255, 253, 249, 0.85);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.footer-legal {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

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

.footer-legal span {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.social-row {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 253, 249, 0.15);
}

.social-row a:hover,
.social-row a:focus-visible {
  background: rgba(0, 200, 100, 0.15);
  color: #7dffb3;
}

.social-row svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.footer-contact-text {
  margin: -0.25rem 0 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.footer-contact-text a {
  color: var(--heading);
  text-decoration: underline;
}

.footer-contact-text a:hover,
.footer-contact-text a:focus-visible {
  color: #7dffb3;
}

.footer-contact-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.footer-extra-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  opacity: 0.92;
}

.footer-extra-logo {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.4));
}

.tier-showcase-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Services — single tier strip (reference layout) */
.services-tier-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
  overflow: visible;
}

@media (min-width: 800px) {
  .services-tier-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tier-tile-wrap {
  text-align: center;
}

.tier-tile-panel {
  background: linear-gradient(145deg, #d9d9d9, #b8b8b8);
  border-radius: 6px;
  padding: 0.85rem 0.65rem;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tier-tile-panel img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}

/* Custom Built emblem: extra scale so the tier brand reads clearly */
.services-tier-strip .tier-tile-wrap--custom {
  position: relative;
  z-index: 2;
}

.services-tier-strip .tier-tile-wrap--custom .tier-tile-panel {
  overflow: visible;
}

.services-tier-strip .tier-tile-wrap--custom .tier-tile-panel img {
  max-width: 320px;
  transform: scale(1.12);
  transform-origin: center center;
}

/* Services page: wider panel + single banner image for tier emblems */
.main-panel--services {
  max-width: min(100%, 1400px);
}

.services-tier-banner {
  margin: 2rem 0 2.5rem;
}

/* Home (Mission Statement): spacing inside tier-showcase */
.services-tier-banner--home {
  margin: 1rem 0 0;
}

.services-tier-banner__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.services-tier-banner__links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1rem;
  text-align: center;
}

@media (min-width: 800px) {
  .services-tier-banner__links {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tier-strip-label {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b30c3c;
  line-height: 1.35;
}

.tier-strip-label a {
  color: inherit;
  text-decoration: none;
}

.tier-strip-label a:hover,
.tier-strip-label a:focus-visible {
  text-decoration: underline;
  color: #ff6b8a;
}

.tier-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tier-detail-card {
  background: rgba(255, 253, 249, 0.05);
  border: 1px solid rgba(171, 162, 97, 0.22);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.tier-detail-card h2 {
  margin-top: 0;
}

.footer-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.95;
}

@media (max-width: 720px) {
  .header-inner--centered .nav-toggle {
    align-self: flex-end;
    position: absolute;
    top: 0.75rem;
    right: var(--space);
  }

  .header-inner--centered {
    position: relative;
    padding-top: 2.5rem;
  }

  .nav-list--pill {
    flex-direction: column;
    width: 100%;
  }
}
