:root {
  --totpx-green: #28A745;
  --totpx-blue: #0d6efd;
  --totpx-purple: #6b2cff;
  --totpx-border: #e7eaf0;
  --totpx-muted: #6b7280;
  --totpx-dark: #101418;
  --totpx-text: #151922;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--totpx-text);
  background: #fff;
}

.totpx-navbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 234, 240, .9);
}

.totpx-brand {
  text-decoration: none;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.totpx-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-slogan-main {
  display: inline-block;
  font-size: .86rem;
  font-weight: 400;
  line-height: 1.1;
  color: #000;
  white-space: nowrap;
  letter-spacing: .01em;
}

.footer-slogan {
  font-size: .84rem;
  color: #6b7280;
  font-weight: 600;
}

.nav-link {
  color: #4b5563;
  font-weight: 500;
}

.hero {
  padding: 8rem 0 6rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(40, 167, 69, .14), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(40, 167, 69, .10);
  color: #187a32;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 850;
  margin-top: 1.3rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--totpx-muted);
  margin-top: 1.4rem;
}

.btn-totpx {
  background: var(--totpx-green);
  border-color: var(--totpx-green);
  color: #fff;
  font-weight: 700;
  padding: .85rem 1.15rem;
  border-radius: 12px;
}

.btn-totpx:hover {
  background: #218b3a;
  border-color: #218b3a;
  color: #fff;
}

.btn-soft {
  background: #fff;
  border: 1px solid var(--totpx-border);
  font-weight: 700;
  padding: .85rem 1.15rem;
  border-radius: 12px;
}

.hero-panel,
.feature-card,
.purpose-card {
  border: 1px solid var(--totpx-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(21, 25, 34, .08);
}

.hero-panel {
  padding: 1.4rem;
}

.code-box {
  background: var(--totpx-dark);
  color: #d7fbe0;
  border-radius: 18px;
  padding: 1.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.8;
  overflow: auto;
  white-space: pre-wrap;
}

.code-comment {
  color: #8b949e;
}

.section-pad {
  padding: 6rem 0;
}

.bg-soft {
  background: #f8fafc;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -.04em;
}

.section-text {
  color: var(--totpx-muted);
  line-height: 1.75;
}

.max-text {
  max-width: 760px;
}

.purpose-card {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.6rem;
  height: 100%;
  transition: all .18s ease;
}

.purpose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 90px rgba(21, 25, 34, .10);
}

.purpose-image-wrap {
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  min-height: 240px;
}

.purpose-image-wrap img {
  width: 100%;
  max-width: 220px;
  border-radius: 20px;
  display: block;
}

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

.purpose-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 850;
  margin-bottom: 1rem;
}

.purpose-content h3 {
  font-weight: 850;
  margin-bottom: .8rem;
  font-size: 2rem;
}

.purpose-content p {
  color: #4b5563;
  line-height: 1.75;
  font-size: 1.05rem;
}

.purpose-green {
  border-color: rgba(40, 167, 69, .25);
  background: linear-gradient(135deg, rgba(40, 167, 69, .08), #fff 52%);
}

.purpose-green .purpose-number {
  background: var(--totpx-green);
}

.purpose-blue {
  border-color: rgba(13, 110, 253, .22);
  background: linear-gradient(135deg, rgba(13, 110, 253, .08), #fff 52%);
}

.purpose-blue .purpose-number {
  background: var(--totpx-blue);
}

.purpose-purple {
  border-color: rgba(107, 44, 255, .24);
  background: linear-gradient(135deg, rgba(107, 44, 255, .08), #fff 52%);
}

.purpose-purple .purpose-number {
  background: var(--totpx-purple);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.tag-row span {
  padding: .38rem .7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  font-weight: 700;
  font-size: .85rem;
}

.feature-card {
  padding: 1.6rem;
  height: 100%;
}

.feature-card h5 {
  font-weight: 800;
  margin-top: 1rem;
}

.feature-card p {
  color: var(--totpx-muted);
  margin-bottom: 0;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(40, 167, 69, .10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--totpx-green);
  font-size: 1.4rem;
}

.dark-section {
  background:
    radial-gradient(circle at 85% 15%, rgba(40, 167, 69, .18), transparent 28%),
    var(--totpx-dark);
}

.dark-badge {
  background: rgba(40, 167, 69, .15);
  color: #9ef4b3;
}

.api-code-grid {
  display: grid;
  gap: 1rem;
}

.api-code-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  background: rgba(255, 255, 255, .04);
  padding: 1rem;
}

.api-code-title {
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
  margin-bottom: .75rem;
}

.small-code {
  font-size: .9rem;
}

.cta-box {
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 15%, rgba(40, 167, 69, .22), transparent 32%),
    var(--totpx-dark);
  color: #fff;
  padding: 4rem;
}

.cta-box p {
  color: rgba(255, 255, 255, .72);
}

footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--totpx-border);
  color: var(--totpx-muted);
}

.footer-logo {
  height: 24px;
}

@media (max-width: 991px) {
  .hero {
    padding-top: 7rem;
  }

  .brand-row {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .12rem;
  }

  .totpx-logo {
    height: 30px;
  }

  .brand-slogan-main {
    width: 160px;
    font-size: .73rem;
    text-align: center;
    margin-top: -.05rem;
  }

  .purpose-card {
    grid-template-columns: 1fr;
  }

  .purpose-image-wrap {
    min-height: 200px;
  }

  .cta-box {
    padding: 2.5rem;
  }
}


/* Footer */

.footer-grid{
display:grid;
grid-template-columns:2fr 1fr 1fr;
gap:3rem;
}

.footer-title{
font-weight:800;
margin-bottom:1rem;
color:#151922;
}

.footer-link{
display:block;
margin-bottom:.7rem;
text-decoration:none;
color:#6b7280;
transition:all .15s ease;
}

.footer-link:hover{
color:#151922;
}

.footer-copy{
color:#6b7280;
}

@media(max-width:991px){

.footer-grid{
grid-template-columns:1fr;
gap:2rem;
}

}


/* Clickable purpose cards */
.purpose-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.purpose-card-link:hover {
  color: inherit;
}

/* IoT visual in API section */
.iot-visual-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .24);
  background: rgba(255, 255, 255, .04);
}

.iot-visual-card img {
  width: 100%;
  display: block;
}

/* Purpose detail pages */
.purpose-detail-hero {
  padding: 6rem 0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.purpose-detail-green {
  background:
    radial-gradient(circle at 85% 15%, rgba(40,167,69,.16), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.purpose-detail-blue {
  background:
    radial-gradient(circle at 85% 15%, rgba(13,110,253,.14), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.purpose-detail-purple {
  background:
    radial-gradient(circle at 85% 15%, rgba(107,44,255,.14), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.back-link {
  color: #4b5563;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: #151922;
}

.purpose-detail-image-card {
  border: 1px solid var(--totpx-border);
  border-radius: 32px;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 24px 70px rgba(21, 25, 34, .08);
  text-align: center;
}

.purpose-detail-image-card img {
  max-height: 420px;
  object-fit: contain;
}

.usecase-detail-card {
  height: 100%;
  border: 1px solid var(--totpx-border);
  border-radius: 24px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 18px 48px rgba(21,25,34,.06);
}

.usecase-detail-card h4 {
  font-weight: 800;
  margin-top: 1rem;
}

.usecase-detail-card p {
  color: var(--totpx-muted);
  margin-bottom: 0;
  line-height: 1.65;
}


/* API showcase cards */

.api-showcase-card{
height:100%;
border:1px solid rgba(255,255,255,.08);
border-radius:32px;
overflow:hidden;
background:rgba(255,255,255,.04);
box-shadow:0 24px 70px rgba(0,0,0,.24);
}

.api-illustration{
width:100%;
display:block;
background:#0f141a;
}

.api-showcase-body{
padding:1.4rem;
}

.api-showcase-title{
font-size:1.5rem;
font-weight:800;
color:#fff;
margin-bottom:.8rem;
}

.api-showcase-text{
color:rgba(255,255,255,.72);
line-height:1.7;
margin-bottom:1rem;
}

.dark-section .code-box{
border:1px solid rgba(255,255,255,.06);
}




/* API documentation note */
.api-doc-note {
  max-width: 860px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .85rem 1.1rem;
  border: 1px solid rgba(82, 255, 153, .18);
  border-radius: 999px;
  background: rgba(40, 167, 69, .10);
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
  line-height: 1.45;
}

.api-doc-note i {
  color: #73ff9b;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .api-doc-note {
    border-radius: 20px;
    align-items: flex-start;
    text-align: left;
  }
}

/* Unified navbar on all pages */
.totpx-navbar .container {
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}

.navbar .btn-sm {
  padding: .45rem .75rem;
  border-radius: 10px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid var(--totpx-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(21, 25, 34, .16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner strong {
  display: block;
  margin-bottom: .25rem;
  color: #151922;
}

.cookie-banner p {
  margin: 0;
  color: var(--totpx-muted);
  line-height: 1.5;
  font-size: .92rem;
}

@media (max-width: 767px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner .btn {
    width: 100%;
  }
}


/* Fixed navbar spacing for subpages */
body.subpage {
  padding-top: 72px;
}

@media (max-width: 991px) {
  body.subpage {
    padding-top: 76px;
  }
}


/* API showcase with PNG visuals */
.api-showcase-card {
  height: 100%;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.api-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f141a;
}

.api-showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.api-showcase-body {
  padding: 1.45rem;
}

.api-showcase-title {
  font-size: 1.45rem;
  font-weight: 850;
  color: #fff;
  margin-bottom: .8rem;
}

.api-showcase-text {
  color: rgba(255, 255, 255, .74);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.dark-section .code-box {
  border: 1px solid rgba(255, 255, 255, .06);
}

.small-code {
  font-size: .88rem;
}


/* API image refinement */
.api-image-wrap{
padding:14px;
background:rgba(255,255,255,.025);
}

.api-showcase-image{
border-radius:22px;
transform:scale(.90);
transform-origin:center;
transition:transform .25s ease;
box-shadow:0 16px 40px rgba(0,0,0,.28);
background:#0b1016;
}

.api-showcase-card:hover .api-showcase-image{
transform:scale(.93);
}

@media(max-width:991px){

.api-image-wrap{
padding:12px;
}

.api-showcase-image{
transform:scale(.94);
}

}


/* Final API image alignment */
.api-image-wrap{
padding:0 !important;
background:transparent !important;
}

.api-showcase-image{
width:100%;
height:100%;
object-fit:cover;
display:block;
border-radius:0 !important;
transform:none !important;
box-shadow:none !important;
}

.api-showcase-card{
overflow:hidden;
}



/* Final API showcase tuning */
.api-showcase-card{
overflow:hidden;
border-radius:28px;
}

.api-image-wrap{
padding:0!important;
margin:0!important;
background:transparent!important;
}

.api-showcase-image{
display:block;
width:100%;
height:100%;
object-fit:cover;
border-radius:0!important;
margin:0!important;
padding:0!important;
box-shadow:none!important;
}


/* Green API showcase update */
.api-image-wrap{
padding:0!important;
margin:0!important;
overflow:hidden;
background:transparent!important;
}

.api-showcase-image{
display:block;
width:100%;
height:100%;
object-fit:cover;
border-radius:0!important;
box-shadow:none!important;
}

.api-showcase-card{
overflow:hidden;
border-radius:28px;
}

.api-doc-note .btn{
white-space:nowrap;
margin-left:.5rem;
border-radius:10px;
}
@media (max-width:767px){
.api-doc-note{
flex-direction:column;
text-align:center;
}
.api-doc-note .btn{
margin-left:0;
margin-top:.4rem;
}
}


/* Legal / company pages */
.legal-hero {
  padding: 5.5rem 0 3rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(40, 167, 69, .12), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.legal-hero-inner {
  max-width: 860px;
}

.legal-card {
  border: 1px solid var(--totpx-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(21, 25, 34, .07);
  padding: 2rem;
}

.legal-card h2 {
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: -.02em;
  margin: 1.8rem 0 .65rem;
  color: #151922;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #4b5563;
  line-height: 1.75;
}

.legal-card a {
  color: #198754;
  font-weight: 700;
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 167, 69, .1);
  color: #198754;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content {
  max-width: 940px;
}

.legal-note {
  border: 1px solid rgba(40, 167, 69, .22);
  background: rgba(40, 167, 69, .075);
  color: #305642;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  line-height: 1.7;
}

.legal-updated {
  font-size: .92rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .legal-hero {
    padding: 4rem 0 2rem;
  }

  .legal-card {
    padding: 1.35rem;
    border-radius: 22px;
  }
}


/* Terms overview cards */
.terms-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.terms-overview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 112px;
  padding: 1rem;
  border: 1px solid rgba(31, 41, 55, .08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(21, 25, 34, .06);
  color: #151922;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.terms-overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 167, 69, .35);
  box-shadow: 0 24px 60px rgba(21, 25, 34, .09);
  color: #151922;
  text-decoration: none;
}

.terms-overview-card i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 167, 69, .1);
  color: #198754;
  font-size: 1.25rem;
}

.terms-overview-card span {
  font-weight: 800;
  font-size: .92rem;
  text-align: center;
}

.terms-intro {
  font-size: 1.05rem;
  color: #374151 !important;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: rgba(40, 167, 69, .07);
  border: 1px solid rgba(40, 167, 69, .18);
}

.terms-content h2[id] {
  scroll-margin-top: 120px;
}

@media (max-width: 991px) {
  .terms-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .terms-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-overview-card {
    min-height: 100px;
    border-radius: 20px;
  }
}

/* TOTPX Terms page v2 */
.tx-terms-hero {
  padding: 7rem 0 4rem;
  background:
    radial-gradient(circle at 90% 0%, rgba(40, 167, 69, .12), transparent 34%),
    radial-gradient(circle at 10% 20%, rgba(40, 167, 69, .08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.tx-terms-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.tx-terms-card-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.1rem !important;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.tx-terms-card {
  min-height: 132px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: .35rem;
  padding: 1.25rem 1rem;
  color: #111827;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tx-terms-card i {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(40, 167, 69, .11);
  color: #198754;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: .4rem;
}

.tx-terms-card strong {
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.tx-terms-card span {
  color: #667085;
  font-size: .92rem;
  line-height: 1.3;
}

.tx-terms-card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 167, 69, .34);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .11);
  color: #111827;
}

.tx-terms-main {
  padding: 3.5rem 0 5rem;
  background: #fff;
}

.tx-terms-sidebar {
  position: sticky;
  top: 110px;
  border-right: 1px solid rgba(15, 23, 42, .10);
  padding-right: 1.5rem;
}

.tx-terms-sidebar-title {
  font-weight: 850;
  color: #111827;
  margin-bottom: 1rem;
}

.tx-terms-sidebar a {
  display: block;
  color: #475467;
  text-decoration: none;
  font-size: .94rem;
  line-height: 1.35;
  padding: .38rem 0;
  transition: color .18s ease;
}

.tx-terms-sidebar a:hover {
  color: #198754;
}

.tx-terms-content {
  max-width: 860px;
}

.tx-terms-content h2 {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #111827;
  margin: 2.2rem 0 .75rem;
  scroll-margin-top: 115px;
}

.tx-terms-content p {
  color: #475467;
  line-height: 1.78;
  margin-bottom: 1rem;
}

.tx-terms-content a {
  color: #198754;
  font-weight: 750;
  text-decoration: none;
}

.tx-terms-content a:hover {
  text-decoration: underline;
}

.tx-info-box {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border-radius: 16px;
  background: rgba(40, 167, 69, .09);
  color: #24533c;
  padding: 1rem 1.1rem;
  margin: 1.4rem 0 2rem;
}

.tx-info-box i {
  color: #198754;
  margin-top: .15rem;
}

@media (max-width: 1199px) {
  .tx-terms-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991px) {
  .tx-terms-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tx-terms-sidebar {
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .10);
    padding: 0 0 1.5rem;
  }
}

@media (max-width: 575px) {
  .tx-terms-hero {
    padding: 5.5rem 0 3rem;
  }

  .tx-terms-card-grid {
    grid-template-columns: 1fr !important;
  }

  .tx-terms-card {
    min-height: 112px;
  }
}

/* TOTPX Privacy Center */
.tx-privacy-hero {
  padding: 7rem 0 4.5rem;
  background:
    radial-gradient(circle at 88% 0%, rgba(40, 167, 69, .12), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(40, 167, 69, .08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.tx-privacy-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.tx-privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.tx-privacy-card {
  min-height: 210px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 26px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
  padding: 1.8rem;
  color: #111827;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tx-privacy-card i {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  background: rgba(40, 167, 69, .11);
  color: #198754;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: .35rem;
}

.tx-privacy-card strong {
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: -.025em;
}

.tx-privacy-card span {
  color: #667085;
  line-height: 1.55;
}

.tx-privacy-card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 167, 69, .34);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .11);
  color: #111827;
}

.tx-privacy-note {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  border: 1px solid rgba(40, 167, 69, .22);
  background: rgba(40, 167, 69, .08);
  color: #24533c;
  border-radius: 20px;
  padding: 1rem 1.15rem;
}

.tx-privacy-note i {
  color: #198754;
  margin-top: .15rem;
}

.tx-privacy-main {
  padding: 3.5rem 0 5rem;
  background: #fff;
}

.tx-privacy-sidebar {
  position: sticky;
  top: 110px;
  border-right: 1px solid rgba(15, 23, 42, .10);
  padding-right: 1.5rem;
}

.tx-privacy-sidebar-title {
  font-weight: 850;
  color: #111827;
  margin-bottom: 1rem;
}

.tx-privacy-sidebar a {
  display: block;
  color: #475467;
  text-decoration: none;
  font-size: .96rem;
  line-height: 1.35;
  padding: .45rem 0;
  transition: color .18s ease;
}

.tx-privacy-sidebar a:hover,
.tx-privacy-sidebar a.active {
  color: #198754;
  font-weight: 750;
}

.tx-privacy-content {
  max-width: 880px;
}

.tx-privacy-content h2 {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #111827;
  margin: 2.1rem 0 .75rem;
  scroll-margin-top: 115px;
}

.tx-privacy-content p {
  color: #475467;
  line-height: 1.78;
  margin-bottom: 1rem;
}

.tx-privacy-content a {
  color: #198754;
  font-weight: 750;
  text-decoration: none;
}

.tx-privacy-content a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .tx-privacy-grid {
    grid-template-columns: 1fr;
  }

  .tx-privacy-sidebar {
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .10);
    padding: 0 0 1.5rem;
  }
}

@media (max-width: 575px) {
  .tx-privacy-hero {
    padding: 5.5rem 0 3rem;
  }

  .tx-privacy-card {
    min-height: auto;
    padding: 1.35rem;
  }
}

/* Privacy general final content polish */
.tx-privacy-content h3 {
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -.02em;
  color: #111827;
  margin: 1.35rem 0 .45rem;
}

.tx-privacy-content ul {
  color: #475467;
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.tx-privacy-content li {
  margin-bottom: .35rem;
}

.tx-privacy-content strong {
  color: #111827;
}

/* Privacy website final content polish */
.tx-privacy-content ul {
  color: #475467;
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.tx-privacy-content li {
  margin-bottom: .35rem;
}

.tx-privacy-content strong {
  color: #111827;
}

/* Website Privacy final-plus polish */
.tx-privacy-content h2[id] {
  scroll-margin-top: 115px;
}

/* Web App Privacy final polish */
.tx-privacy-content ul {
  color: #475467;
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.tx-privacy-content li {
  margin-bottom: .35rem;
}

.tx-privacy-content strong {
  color: #111827;
}

/* Social Media Privacy final polish */
.tx-privacy-content ul {
  color: #475467;
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.tx-privacy-content li {
  margin-bottom: .35rem;
}

/* Recruitment Privacy final polish */
.tx-privacy-content ul {
  color: #475467;
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.tx-privacy-content li {
  margin-bottom: .35rem;
}

/* TOTPX Playground */
.playground-preview-section {
  background:
    radial-gradient(circle at 85% 20%, rgba(40, 167, 69, .12), transparent 30%),
    #fff;
}

.playground-mini-card,
.playground-settings-card,
.playground-output-card,
.virtual-device-card,
.presence-preview-card,
.standard-preview-card {
  border: 1px solid var(--totpx-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(21, 25, 34, .08);
}

.playground-mini-card {
  padding: 2rem;
}

.mini-label {
  color: var(--totpx-muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mini-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 850;
  font-size: clamp(3rem, 7vw, 5.6rem);
  letter-spacing: .03em;
  color: #101418;
  line-height: 1;
}

.mini-countdown,
.virtual-countdown {
  color: var(--totpx-muted);
  font-weight: 700;
}

.mini-progress {
  height: 10px;
  border-radius: 999px;
  background: #e9eef5;
  overflow: hidden;
}

.mini-progress > div {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--totpx-green);
  transition: width .2s linear;
}

.playground-hero {
  padding: 5.5rem 0 4rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(40, 167, 69, .16), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.playground-hero-panel {
  background: #101418;
}

.playground-device-screen {
  border: 1px solid rgba(115, 255, 155, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 18%, rgba(40, 167, 69, .22), transparent 34%),
    #0b1016;
  padding: 2rem;
  color: #d7fbe0;
}

.screen-topline,
.screen-countdown {
  color: rgba(215, 251, 224, .68);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}

.screen-device-id {
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
  margin-top: .5rem;
}

.screen-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 850;
  letter-spacing: .03em;
  line-height: 1.1;
  margin: 1.2rem 0;
}

.playground-settings-card,
.playground-output-card {
  padding: 1.6rem;
}

.playground-sticky {
  top: 96px;
}

.playground-type-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.playground-type-group .btn {
  width: 100%;
}

.btn-check:checked + .btn-soft {
  background: rgba(40, 167, 69, .12);
  border-color: rgba(40, 167, 69, .45);
  color: #187a32;
}

.virtual-device-card {
  height: 100%;
  padding: 1.6rem;
  background:
    radial-gradient(circle at 86% 14%, rgba(40, 167, 69, .14), transparent 34%),
    #fff;
}

.device-status-row {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #187a32;
  font-weight: 800;
  margin-bottom: 1rem;
}

.device-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--totpx-green);
  box-shadow: 0 0 0 6px rgba(40, 167, 69, .12);
}

.virtual-device-id {
  color: var(--totpx-muted);
  font-weight: 800;
  margin-bottom: .6rem;
}

.virtual-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 850;
  letter-spacing: .03em;
  line-height: 1.05;
}

.presence-preview-card,
.standard-preview-card {
  height: 100%;
  padding: 1.4rem;
}

.qr-box {
  min-height: 220px;
  border: 1px dashed rgba(15, 23, 42, .14);
  border-radius: 22px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.qr-box img,
.qr-box canvas {
  max-width: 100%;
  height: auto !important;
}

.playground-payload {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
  background: #f8fafc;
}

.playground-advanced-note {
  border: 1px solid rgba(40, 167, 69, .28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 20%, rgba(40, 167, 69, .13), transparent 28%),
    linear-gradient(135deg, rgba(40, 167, 69, .08), #fff 58%);
  padding: 1.25rem;
}

.advanced-note-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 167, 69, .14);
  color: #187a32;
  font-size: 1.25rem;
}

.playground-advanced-note p {
  color: var(--totpx-muted);
  line-height: 1.65;
}

.presence-only,
.presence-preview-card {
  display: none;
}

body.playground-presence .presence-only,
body.playground-presence .presence-preview-card {
  display: block;
}

body.playground-presence .standard-preview-card {
  display: none;
}

@media (max-width: 991px) {
  .playground-hero {
    padding-top: 4.5rem;
  }

  .playground-sticky {
    position: static !important;
  }
}

/* Contact form: TOTPX Human Token */
.totpx-hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.totpx-human-token-card {
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(135deg, #fff, rgba(40, 167, 69, .045));
}

.totpx-human-token-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.totpx-human-token-progress {
  height: 6px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, .08);
}

.totpx-human-token-input {
  max-width: 190px;
  cursor: text;
  letter-spacing: .16em;
  text-align: center;
  caret-color: #198754;
}

.

/* Contact success button should stay button-like, without link underline on hover. */
.totpx-contact-success a.btn,
.totpx-contact-success a.btn:hover,
.totpx-contact-success a.btn:focus {
  color: #fff;
  text-decoration: none;
}
