/* Global Styles for Tangled */

:root {
  --bg: #f5f6f7;
  --page: #ffffff;
  --panel: #ffffff;
  --text: #1f1f1f;
  --textPrimary: #1f1f1f;
  --textSecondary: #6e6e72;
  --muted: #6e6e72;
  --border: #e4e4e4;
  --blue: #1955D7;
  --island: #1f1f1f;
  --hero-radius: 18px;
  --container: 1180px;
  --float-duration: 10s;
  --float-ease: ease-in-out;
  --float-delay: 0s;
  --card: #1f1f1f;
  --ring-gap-desktop: 18px;
  --ring-gap-tablet: 14px;
  --ring-gap-mobile: 12px;
  --ring3: #FFD6E8;
  --ring2: #FFB3CF;
  --ring1: #FF8FBA;

  /* Additional from subpages */
  --header: #f5f6f7;
  --settings: #f3f3f3;
  --bottomNav: #ffffff;
  --drawer: #ffffff;
  --tile: #f3f3f3;
  --tileSelected: #e4e4e4;
  --partition: #d1d1d6;
  --progressBarTrack: #f0f0f0;
  --svgPrimary: #1f1f1f;
  --svgSecondary: #6e6e72;
  --accentRed: #ff4d4d;
  --accentBlue: #1955d7;
  --accentYellow: #ffd966;
  --accentGreen: #28a745;
  --accentPurple: #c77dff;
  --support-primary: #FF4F8B;
  --contentMax: 1100px;
  --contentWidth: var(--contentMax);
  --mainTopPad: 100px;
  --heroRatio: 16/9;
}

@font-face {
  font-family: 'Inter';
  src: url('Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype'),
    url('assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--textPrimary);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.3;
}

/* ----- Layout Helpers ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
}

/* ----- Scroll Reveal (sections) ----- */
[data-reveal],
[data-reveal-stagger] {
  opacity: 0;
  transform: translateY(24px) scale(.98);
  filter: blur(6px);
  transition: opacity .7s cubic-bezier(.22, .7, .22, 1), transform .7s cubic-bezier(.22, .7, .22, 1), filter .7s cubic-bezier(.22, .7, .22, 1);
  will-change: opacity, transform, filter;
}

.in[data-reveal],
.in[data-reveal-stagger] {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

[data-reveal-stagger]>* {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.22, .7, .22, 1), transform .6s cubic-bezier(.22, .7, .22, 1);
}

.in[data-reveal-stagger]>* {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * .12s);
}

/* ----- Site Header ----- */
.site-header {
  --header-h: 60px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: none;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .9);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 50;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

/* Transparent header at top */
.site-header.is-top {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--textPrimary);
}

.site-header.is-top .nav a {
  color: inherit;
}

.site-header.is-top .nav a:hover {
  background: #fff;
  border-color: var(--border);
}

.site-header.is-top .hamburger {
  background: transparent;
  border-color: var(--border);
}

.site-header.is-top .hamburger span::before,
.site-header.is-top .hamburger span::after {
  background: var(--textPrimary);
}

.brand {
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.brand svg {
  display: block;
  height: 24px;
  width: auto;
}

.site-header .brand a {
  color: inherit;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav a {
  font-size: 16px;
  font-weight: 400;
  color: var(--textPrimary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  line-height: 1;
}

.nav a:hover {
  border-color: var(--border);
  background: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hamburger::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -10px;
  right: -10px;
  bottom: -16px;
  background: transparent;
  pointer-events: auto;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  position: relative;
  border-radius: 9999px;
  background: transparent;
}

.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--textPrimary);
  border-radius: 9999px;
}

.hamburger span::before {
  top: -6px;
}

.hamburger span::after {
  top: 6px;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  transition: transform .18s ease, opacity .18s ease, background-color .18s ease, top .18s ease;
  transform-origin: 50% 50%;
}

.hamburger.is-open span {
  background: transparent;
}

.hamburger.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Expandable header island */
.site-header.expanded {
  height: auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: var(--header-h) auto;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .95);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
}

@media (max-width: 980px) {
  .site-header.expanded .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px 0 20px 0;
  }

  .site-header.expanded .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    border-radius: 16px;
    background: var(--bg);
    font-weight: 400;
    text-align: center;
    width: 100%;
  }
}

.site-header.expanded .brand {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
}

.site-header.expanded .hamburger {
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
}

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

  .site-header {
    padding: 0 20px;
  }

  .hamburger {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .site-header {
    --header-h: 56px;
    height: var(--header-h);
    padding: 0 20px;
    width: calc(100% - 30px);
  }
}

/* ----- Site Footer ----- */
.footer-cta {
  padding: 0 60px 24px 60px;
  background: #fff;
  border-top: none;
  width: 100%;
}

.footer-cta .cta-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #FF4F8B 0%, #FF4F8B 30%, #FF5C95 80%, #FF76A6 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  max-width: 320px;
}

.footer-cta .cta-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #ffffff;
}

.footer-cta .cta-text p {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
  max-width: 24ch;
  line-height: 1.35;
}

.footer-cta .cta-qr {
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: none;
}

.footer-cta .cta-qr img.qr {
  width: 128px;
  height: 128px;
  border-radius: 6px;
  display: block;
}

.site-footer {
  background: #fff;
  color: var(--textPrimary);
  border-top: 1px solid var(--border);
}

.site-footer .footer-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  padding: 32px 60px;
}

.site-footer .foot-brand {
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.site-footer .foot-brand svg {
  display: block;
  height: 48px;
  width: auto;
}

.site-footer .foot-cols {
  display: flex;
  flex-wrap: nowrap;
  gap: 96px;
  align-items: flex-start;
  width: auto;
  margin-left: auto;
}

.site-footer .foot-col h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
}

.site-footer .foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .foot-col a {
  font-size: 16px;
  font-weight: 400;
  color: var(--textPrimary);
  text-decoration: none;
  line-height: 1.1;
  opacity: .95;
}

.site-footer .foot-col a:hover {
  text-decoration: underline;
}

.site-footer .footer-bottom {
  padding: 14px 60px 28px 60px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .foot-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer .foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--textPrimary);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}

.site-footer .foot-social a:active {
  transform: translateY(1px);
}

.site-footer .foot-social a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(25, 85, 215, .35);
  border-color: #1f1f1f;
}

@media (hover: hover) {
  .site-footer .foot-social a:hover {
    background: #1f1f1f;
    color: #fff;
    border-color: #1f1f1f;
  }
}

.site-footer .foot-social a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.site-footer .foot-social a svg path,
.site-footer .foot-social a svg rect,
.site-footer .foot-social a svg circle,
.site-footer .foot-social a svg polygon {
  fill: currentColor;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .footer-cta {
    padding: 0 20px 20px 20px;
  }

  .site-footer .footer-inner {
    padding: 28px 20px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 60px;
  }

  .site-footer .foot-cols {
    gap: 60px !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
  }

  .site-footer .footer-bottom {
    padding: 12px 20px 24px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .footer-cta .cta-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .footer-cta .cta-qr img.qr {
    width: 84px;
    height: 84px;
  }

  .footer-cta .cta-text h3 {
    font-size: 16px;
  }

  .footer-cta .cta-text p {
    font-size: 13px;
  }

  .footer-cta {
    display: none;
  }

  .site-footer .foot-brand {
    width: 100%;
  }

  .site-footer .foot-brand svg {
    width: 100%;
    height: auto;
  }

  .site-footer .footer-inner {
    padding: 24px min(6vw, 15px);
    gap: 60px;
  }

  .site-footer .foot-cols {
    gap: 40px !important;
  }

  .site-footer .foot-col h4 {
    font-size: 15px;
  }

  .site-footer .foot-col a {
    font-size: 14px;
  }

  .site-footer .footer-bottom {
    padding: 10px min(6vw, 15px) 20px min(6vw, 15px);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ----- Store Buttons ----- */
.store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--textPrimary);
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}

.btn-store:hover {
  background: #f7f7f9;
  border-color: var(--textPrimary);
  transform: translateY(-2px);
}

.btn-store .label {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 24px;
  /* Increased height to prevent clipping of descenders (g, p, y) */
  position: relative;
  line-height: 24px;
}

.btn-store .label .row {
  display: flex;
  height: 24px;
  align-items: center;
}

.btn-store .label .row span {
  display: inline-block;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i) * .025s);
  white-space: pre;
}

/* Staggered wave effect: move each span on hover */
.btn-store:hover .label .row span {
  transform: translateY(-100%);
}

.btn-store .label .clone {
  position: absolute;
  top: 100%;
  left: 0;
}

/* ----- Legal & Documentation ----- */
.legal {
  max-width: var(--contentMax);
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  margin: 0 0 10px;
}

.legal .eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--textSecondary);
}

.legal .title {
  margin: 8px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.3;
  font-weight: 800;
}

.legal .deck {
  color: var(--textSecondary);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.3;
  margin: 0 0 18px;
}

.legal .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  color: var(--textSecondary);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal .meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
  margin: 0 4px;
}

.legal .divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: var(--contentMax);
  margin: 0 auto;
}

@media (min-width: 1080px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    column-gap: clamp(40px, 8vw, 150px);
    row-gap: 32px;
  }
}

.article-grid .toc {
  position: static;
}

@media (min-width: 1080px) {
  .article-grid .toc {
    position: sticky;
    top: 100px;
  }
}

.prose {
  font-size: 16px;
  line-height: 1.3;
}

.prose h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 28px 0 10px;
}

.prose h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 22px 0 10px;
  color: var(--textSecondary);
}

.prose p {
  margin: 12px 0;
}

.prose ul,
.prose ol {
  margin: 10px 0 12px 20px;
}

.prose li {
  margin: 6px 0;
}

/* TOC */
.toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
}

.toc h2,
.toc h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--textSecondary);
}

.toc ol {
  list-style-type: decimal-leading-zero;
  margin: 0 0 0 10px;
  padding: 0;
}

.toc a {
  color: var(--textSecondary);
  text-decoration: none;
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.3;
}

.toc a.active {
  color: var(--textPrimary);
  font-weight: 600;
}

@media (min-width: 1025px) {
  .toc ol {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 16px;
  }

  .toc a {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 1024px) {
  .toc {
    display: none !important;
  }
}

/* Blocks & Tables */
.block-note,
.block-warning,
.block-highlight {
  position: relative;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: #fafafa;
  color: var(--textPrimary);
  margin-bottom: 16px;
}

.block-note {
  border-style: dashed !important;
  border-color: #1f1f1f !important;
}

.table-wrap {
  width: 100%;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.table-terms {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  min-width: 560px;
}

.table-terms caption {
  text-align: left;
  font-weight: 600;
  color: var(--textSecondary);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.table-terms th,
.table-terms td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.table-terms thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  box-shadow: inset 0 -1px 0 var(--border);
}

.table-terms tr+tr td,
.table-terms tr+tr th {
  border-top: 1px solid var(--border);
}

.kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  margin: 12px 0;
}

.kv dt {
  color: var(--textSecondary);
  font-weight: 600;
}

.kv dd {
  margin: 0;
}

@media (max-width: 560px) {
  .kv {
    grid-template-columns: 1fr;
  }
}

.list-do,
.list-dont {
  padding-left: 22px;
  margin: 10px 0;
}

.list-do li::marker {
  content: "✓ ";
  color: var(--textPrimary);
  font-weight: 700;
}

.list-dont li::marker {
  content: "✗ ";
  color: var(--textPrimary);
  font-weight: 700;
}

/* ----- UI Kit (Forms & Buttons) ----- */
.ui-input,
.ui-select,
.select-trigger {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 50px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--page);
  color: var(--textPrimary);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: box-shadow .18s, border-color .18s, background .18s;
}

.ui-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.ui-input:focus,
.ui-select:focus,
.ui-textarea:focus,
.select-trigger:focus {
  background: white;
  border-color: var(--support-primary);
}

.ui-textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  display: block;
  min-height: 120px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--page);
  color: var(--textPrimary);
  font: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: box-shadow .18s, border-color .18s, background .18s;
}

.btn-primary {
  background: #1F1F1F;
  color: #FFFFFF;
  padding: 10px 16px;
  border: none;
  outline: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .18s;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: var(--page);
  color: var(--textPrimary);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, opacity 0.18s;
}

.btn-ghost:hover {
  background: #f7f7f9;
}

/* Custom Select */
.ui-select-wrap {
  position: relative;
  width: 100%;
}

.select-trigger {
  text-align: left;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding-right: 40px;
}

.select-caret {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--svgSecondary);
  width: 18px;
  height: 18px;
}

.select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: none;
  max-height: 260px;
  overflow: auto;
  z-index: 5;
}

.ui-select-wrap.open .select-menu {
  display: block;
}

.select-option {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.select-option[aria-selected="true"] {
  background: var(--tileSelected);
  font-weight: 700;
}

.select-option:hover {
  background: #f7f7f9;
}

/* Custom Attachment UI */
.attach-ui {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.attach-trigger {
  border: 1px dashed var(--border);
  background: var(--page);
  color: var(--textPrimary);
  height: 56px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.attach-trigger:hover {
  border-color: var(--support-primary);
  background: #FFF5F9;
  color: var(--support-primary);
}

.attach-trigger svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.attach-drop {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: #fdfdfd;
  color: var(--textSecondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  outline: none;
}

.attach-preview {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.attach-file {
  background: var(--page);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--textPrimary);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.attach-remove {
  background: #f5f5f7;
  border: none;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--textSecondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-left: 4px;
}

.attach-remove:hover {
  background: #f2f2f2;
  color: #000;
}

.attach-remove svg {
  width: 14px;
  height: 14px;
}

/* ----- Common Components ----- */

/* Pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--page);
  color: var(--textPrimary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}

.pill-item:hover {
  border-color: var(--accentYellow);
  background: #fffdf5;
}

/* Category Cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.cat-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--page);
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: var(--accentYellow);
}

.cat-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.cat-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--textPrimary);
  font-weight: 700;
}

.cat-card p {
  font-size: 15px;
  color: var(--textSecondary);
  margin: 0;
  line-height: 1.4;
}

/* FAQ Accordion */
.faq-grid {
  margin: 48px auto 0;
}

details.faq {
  border-bottom: 1px solid var(--border);
}


details.faq summary {
  list-style: none;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--textPrimary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq .content {
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--textSecondary);
}

details.faq .caret {
  width: 20px;
  height: 20px;
  transition: transform 0.2s cubic-bezier(0.12, 0, 0.39, 0);
}

details[open] .caret {
  transform: rotate(180deg);
}

/* Section Header */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 48px auto 0;
  max-width: var(--contentMax);
}

.section-head h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  margin: 0;
}

.section-head span {
  font-size: 14px;
  color: var(--textSecondary);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Help Banner */
.need-help {
  max-width: var(--contentMax);
  margin: 64px auto 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}

.need-help h2 {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 800;
}

.need-help p {
  font-size: 17px;
  color: var(--textSecondary);
  margin: 0 0 24px;
}

.help-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Index Page Styles --- */
/* Flattened to ensure compatibility */

/* Respect reduced motion (page specific) */
@media (prefers-reduced-motion: reduce) {

  .page-index .hero-frame,
  .page-index .card-img,
  .page-index .white .pill-stage .framed-svg {
    animation: none !important;
  }

  .page-index .yellow .card-img.stack .stack-photo {
    transition: none !important;
  }
}


.page-index .container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-index .hero {
  margin-top: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  /* Solid hero background (from screenshot) */
  background: #EEE7EF;
  position: relative;
  color: var(--text);
}

.page-index .hero-photo {
  position: absolute;
  width: min(304px, 20vw);
  height: auto;
  overflow: visible;
  /* allow SVG stroke to show */
  --rot: 0deg;
  --scale: 1;
  transform: translateY(0) rotate(var(--rot)) scale(var(--scale));
  animation: floaty var(--float-duration) var(--float-ease) var(--float-delay) infinite both;
  will-change: transform;
  pointer-events: none;
}

.page-index .hero-photo svg {
  width: 100%;
  height: auto;
  display: block;
}

.page-index .hero-photo.right {
  right: 100px;
  bottom: 120px;
  --rot: 8deg;
  --scale: 0.95;
}

.page-index .hero-photo.left {
  left: 60px;
  top: 200px;
  --rot: -8deg;
  --scale: 0.75;
}

.page-index .hero-photos-inline {
  display: none;
}

@media (max-width: 980px) {
  .page-index .hero-photo {
    display: none;
  }

  .page-index .hero-photos-inline {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    /* collide */
    margin: 0 0 60px 0;
    pointer-events: none;
  }

  .page-index .hero-photos-inline svg {
    position: relative;
    width: min(200px, 36vw);
    height: auto;
    margin-inline: -8px;
    /* gentle collision like before */
    display: block;
  }

  .page-index .hero-photos-inline svg.left {
    transform: rotate(-8deg) scale(.92);
    z-index: 2;
  }

  .page-index .hero-photos-inline svg.right {
    transform: rotate(8deg) scale(1);
    z-index: 1;
  }
}

@media (max-width: 560px) {
  .page-index .hero-photos-inline svg {
    width: min(140px, 40vw);
    margin-inline: -10px;
  }
}

/* ----- Gentle Floating Animation ----- */
@keyframes floaty {
  0% {
    transform: translateY(0) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  }

  25% {
    transform: translateY(-20px) rotate(calc(var(--rot, 0deg) + 0.4deg)) scale(calc(var(--scale, 1) * 1.015));
  }

  50% {
    transform: translateY(-12px) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  }

  75% {
    transform: translateY(-20px) rotate(calc(var(--rot, 0deg) - 0.4deg)) scale(calc(var(--scale, 1) * 1.015));
  }

  100% {
    transform: translateY(0) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  }
}

/* Responsive stroke width for the thread rope */
.page-index .hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 160px 60px 160px 60px;
  min-height: inherit;
  color: inherit;
  place-items: center;
  text-align: center;
}

.page-index .eyebrow {
  opacity: .85;
  font-size: 14px;
  margin-bottom: 10px
}

.page-index .display {
  font-weight: 800;
  line-height: 1.0;
  margin: 0 0 26px 0;
  letter-spacing: 0;
  /* Make main heading larger than 4th section: clamp(70px, 9vw, 90px) */
  font-size: clamp(70px, 9vw, 90px);
  text-transform: none;
  /* NGL uses lowercase */
  color: inherit;
}

.page-index .subheading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  margin-top: 16px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page-index .subheading .star-icon {
  flex-shrink: 0;
}

.page-index .display .line {
  display: block;
}

.page-index .hero-frame {
  position: absolute;
  width: min(280px, 20vw);
  aspect-ratio: 1 / 1.25;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18);
  --rot: 0deg;
  --scale: 1;
  transform: translateY(0) rotate(var(--rot)) scale(var(--scale));
  animation: floaty var(--float-duration) var(--float-ease) var(--float-delay) infinite both;
  will-change: transform;
}

.page-index .hero-frame.right {
  right: 60px;
  bottom: 120px;
  /* moved slightly upward */
  --rot: 8deg;
  --scale: 1;
}

.page-index .hero-frame.left {
  left: 60px;
  top: 120px;
  --rot: -8deg;
  --scale: 0.92;
}

.page-index .hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index .sub {
  display: none;
}

/* hide old subtitle in new design */
/* .qr-card{ display:none; }  hide QR card on desktop for this design */
/* Keep store buttons hidden on desktop; mobile behavior below */
.page-index .qr-card {
  width: 240px;
  height: 240px;
  background: #ffffff;
  border-radius: 30px;
  background-clip: padding-box;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid rgba(255, 255, 255, .5);
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
  align-self: start;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-index .store-buttons {
  display: none;
  gap: 12px;
  margin-top: 16px
}

.page-index .store-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .12s ease;
}

@media (hover:hover) {
  .page-index .store-buttons a:hover {
    background: var(--bg);
    color: #000;
  }
}

.page-index .store-buttons a:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
  box-shadow: 0 0 0 2px rgba(25, 85, 215, .35);
  /* subtle focus ring */
}

.page-index .store-buttons a:active {
  transform: translateY(1px);
}

/* simple inline QR look */
.page-index .qr {
  width: 100%;
  height: 100%;
}

/* Store button icons */
.page-index .store-buttons a svg {
  width: auto;
  height: 28px;
  margin-right: 10px;
  display: block
}

/* Inherit icon color from text for easy inversion */
.page-index .store-buttons a svg path {
  fill: currentColor;
  transition: fill .25s ease;
}

/* Store button animated label (wave style) */
.page-index .store-buttons .btn-store .label {
  display: inline-block;
  position: relative;
  overflow: hidden;
  line-height: 1.1;
  height: 1.1em;
  vertical-align: middle;
  white-space: nowrap;
}

.page-index .store-buttons .btn-store .label .row {
  display: inline-block;
  will-change: transform;
}

/* Per-row initial positions: original stays, clone starts below */
.page-index .store-buttons .btn-store .label .row span {
  display: inline-block;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--i, 0) * 16ms);
  backface-visibility: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.page-index .store-buttons .btn-store .label .row.original span {
  transform: translateY(0) translateZ(0);
}

.page-index .store-buttons .btn-store .label .row.clone span {
  transform: translateY(110%) translateZ(0);
  /* start below */
}

.page-index .store-buttons .btn-store .label .row.clone {
  position: absolute;
  left: 0;
  top: 110%;
  height: 1.1em;
  line-height: 1.1;
}

@media (hover:hover) {

  /* wave out old text upward */
  .page-index .store-buttons .btn-store:hover .label .row.original span,
  .page-index .store-buttons .btn-store:focus-visible .label .row.original span {
    transform: translateY(-110%) translateZ(0);
  }

  /* slide the clone row into place */
  .page-index .store-buttons .btn-store:hover .label .row.clone,
  .page-index .store-buttons .btn-store:focus-visible .label .row.clone {
    top: 0;
  }

  /* wave in new text from bottom */
  .page-index .store-buttons .btn-store:hover .label .row.clone span,
  .page-index .store-buttons .btn-store:focus-visible .label .row.clone span {
    transform: translateY(0) translateZ(0);
  }
}

/* ----- PINK SECTION ----- */
.page-index .pink {
  background: linear-gradient(180deg, #FFE8F0 0%, #FFDEE8 100%);
  color: #1f1f1f;
  margin-top: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.page-index .pink-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 50/50 */
  gap: 20px;
  /* 20px space between tiles */
  width: 100%;
  margin: 0;
  padding: 20px;
  /* 20px padding on all sides */
  /* Let tile height be driven by width for perfect squares */
  align-items: center;
  /* center tiles vertically within the section */
}

.page-index .pink h2 {
  margin: 0 0 16px 0;
  font-size: clamp(56px, 8vw, 90px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-index .pink p {
  margin: 0;
  color: #1f1f1f;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 400;
  max-width: 520px;
}

/* Two parallel square tiles for pink panel */
.page-index .pink .tile {
  background: #ffffff;
  border-radius: 30px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Align content to the bottom vertically */
  align-items: flex-start;
  /* Align content to the left horizontally */
  width: 100%;
  /* Make each tile a responsive square based on available width */
  aspect-ratio: 1 / 1;
  height: auto;
  box-shadow: none;
}

.page-index .pink .tile h3 {
  margin: 0 0 8px 0;
  font-size: clamp(28px, 8vw, 60px);
  font-weight: 800;
  letter-spacing: .2px;
  color: #1f1f1f;
}

.page-index .pink .tile p {
  margin: 0;
  font-size: 16px;
  color: #1f1f1f;
  opacity: .9;
}

/* Chat-style tile (glass + gradient) */
.page-index .pink .tile.chat-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .60) 60%),
    radial-gradient(120% 140% at 10% 10%, rgba(255, 160, 180, .55) 0%, rgba(255, 110, 160, .45) 40%, rgba(255, 140, 210, .30) 100%);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04), inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 6px rgba(255, 120, 200, .15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 28px;
  /* slightly softer corners */
  padding: 34px 28px 28px 28px;
  /* compact top for eyebrow row */
  gap: 12px;
}

.page-index .pink .tile.chat-card:first-of-type {
  background: url('Images/couple-leaning.png') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 2px 8px rgba(255, 255, 255, .3) inset, 0 0 20px rgba(255, 255, 255, .2), 0 4px 12px rgba(0, 0, 0, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 34px 28px 28px 28px;
  gap: 12px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* create a new stacking context to stabilize backdrop compositing */
  background-clip: padding-box;
  /* prevent edge bleed at the rounded border */
}

/* Anti-dropout floor: a thin stabilized layer hugging the bottom edge */
.page-index .pink .tile.chat-card:first-of-type::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  /* thin floor */
  /* keep the compositing layer 'alive' at the very edge */
  background: rgba(255, 255, 255, 0.002);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  z-index: 0;
  /* under content, same plane as ::after */
  pointer-events: none;
}

/* Progressive blur overlay for pink chat-card 1 (full width, robust for small screens) */
.page-index .pink .tile.chat-card:first-of-type::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  /* ensure full-width coverage */
  bottom: -1px;
  /* tuck a bit further to hide seam on high-DPR screens */
  height: 72%;
  /* slightly taller for small devices */

  /* SAFARI FIX: a tiny background makes -webkit-backdrop-filter render */
  background: rgba(255, 255, 255, 0.01);

  /* Backdrop blur */
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);

  /* Progressive fade upward (use both mask syntaxes for WebKit) */
  -webkit-mask-image: linear-gradient(to top,
      rgba(0, 0, 0, 1) 16%,
      rgba(0, 0, 0, .90) 44%,
      rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top,
      rgba(0, 0, 0, 1) 16%,
      rgba(0, 0, 0, .90) 44%,
      rgba(0, 0, 0, 0) 100%);

  /* Keep below text */
  z-index: 0;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;

  /* More WebKit stability hints */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, -webkit-backdrop-filter, backdrop-filter;
  contain: paint;
  /* isolate the compositing */
  pointer-events: none;
}

@supports (-webkit-backdrop-filter: blur(1px)) {
  .page-index .pink .tile.chat-card:first-of-type::after {
    /* Ensure Safari keeps the blur layer alive */
    background: rgba(255, 255, 255, 0.012);
  }
}

@media (max-width:560px) {

  /* keep full-width blur and inherit both bottom radii on mobile */
  .page-index .pink .tile.chat-card:first-of-type::after {
    right: 0;
    width: auto;
    border-bottom-right-radius: inherit;
    bottom: -2px;
    height: 72%;
  }
}

/* Ensure text stays above the fade overlay */
.page-index .pink .tile.chat-card:first-of-type>* {
  position: relative;
  z-index: 1;
}

.page-index .pink .tile.chat-card:first-of-type h3 {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(162, 87, 255, 0.18);
}

.page-index .pink .tile.chat-card:first-of-type .chat-title {
  text-shadow: 0 0 10px rgba(162, 87, 255, 0.18);
}

/* Chat card 2: background image top half, under glass & text */
.page-index .pink .tile.chat-card:nth-of-type(2) {
  position: relative;
  overflow: hidden;
  /* Brighter glassy pink overlay */
  background: linear-gradient(160deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .66) 60%),
    radial-gradient(120% 140% at 10% 10%, rgba(255, 180, 200, .58) 0%, rgba(255, 130, 170, .48) 40%, rgba(255, 150, 220, .32) 100%);
}

.page-index .pink .tile.chat-card:nth-of-type(2)::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: calc(100% - 40px);
  height: calc(50% - 20px);
  background: url('Images/amusement-couple.png') center/cover no-repeat;
  border-radius: 18px;
  z-index: 0;
}

.page-index .pink .tile.chat-card:nth-of-type(2) * {
  position: relative;
  z-index: 1;
}

/* Limit text line-length inside first & second chat tiles */
.page-index .pink .tile.chat-card:first-of-type h3,
.page-index .pink .tile.chat-card:first-of-type p,
.page-index .pink .tile.chat-card:nth-of-type(2) h3,
.page-index .pink .tile.chat-card:nth-of-type(2) p {
  max-width: 80%;
}

/* Deep pink for 2nd tile text only */
.page-index .pink .tile.chat-card:nth-of-type(2) h3,
.page-index .pink .tile.chat-card:nth-of-type(2) p,
.page-index .pink .tile.chat-card:nth-of-type(2) .chat-title,
.page-index .pink .tile.chat-card:nth-of-type(2) .eyebrow {
  color: #260023;
  /* deeper, richer tone */
  text-shadow: none;
}

/* eyebrow row (label + icon) */
.page-index .chat-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-index .chat-head .eyebrow {
  margin: 0;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: clamp(14px, 1.9vw, 18px);
  color: #B54ACD;
  opacity: .95;
}

.page-index .chat-head .icon-brain {
  width: clamp(18px, 2.6vw, 22px);
  height: auto;
  color: #B54ACD;
  opacity: .9;
}

/* big prompt */
.page-index .chat-title {
  margin: 8px 0 14px 0;
  line-height: 1.02;
  letter-spacing: .2px;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(181, 74, 205, .35);
  font-weight: 800;
  font-size: clamp(32px, 6.5vw, 60px);
}

/* CTA button */
.page-index .chat-cta {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  width: min(360px, 80%);
  border-radius: 22px;
  font-weight: 700;
  font-size: clamp(16px, 2.6vw, 22px);
  line-height: 1;
  color: #fff;
  background: linear-gradient(90deg, #FFA36B 0%, #FF8AB2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 22px rgba(255, 120, 170, .35);
  border: 1px solid rgba(255, 255, 255, .55);
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
}

@media (hover:hover) {
  .page-index .chat-cta:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 32px rgba(255, 120, 170, .46);
  }
}

.page-index .chat-cta:active {
  transform: translateY(1px);
}

.page-index .chat-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(25, 85, 215, .35), 0 12px 32px rgba(255, 120, 170, .46);
}

/* Tablet range: improved pink section gutters and no external margin */
@media (min-width:561px) and (max-width:980px) {
  .page-index .pink-inner {
    grid-template-columns: 1fr;
    /* tablet behaves like mobile (stack) */
    gap: 20px;
    height: auto;
    margin: 0;
    /* no external section margin */
    width: 100%;
    padding: 20px;
    /* 20px on all sides (fix vertical) */
  }

  .page-index .pink h2 {
    font-size: 50px;
  }

  .page-index .pink p {
    font-size: 21px;
  }
}

/* Narrow tablets (portrait & small landscape): stack if space is tight */
@media (max-width:820px) {
  .page-index .pink-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width:560px) {
  .page-index .pink-inner {
    /* Keep 15px mobile gutter like the rest of the site */
    margin: 0;
    width: 100%;
    padding: 15px;
    grid-template-columns: 1fr;
    /* stack tiles on mobile */
  }

  .page-index .pink h2 {
    font-size: 50px;
  }

  .page-index .pink p {
    font-size: 21px;
  }

  /* Add bottom padding for chat tiles to ensure 20px inset for text */
  .page-index .pink .tile.chat-card {
    padding-bottom: 20px;
  }

  .page-index .pink .tile.chat-card:first-of-type {
    padding-bottom: 20px;
  }

  /* Ensure left/right/bottom insets of 20px for both pink chat tiles */
  .page-index .pink .tile.chat-card,
  .page-index .pink .tile.chat-card:first-of-type {
    padding: 34px 20px 20px 20px;
    /* top, right, bottom, left */
  }

  /* Relax max-width for headings and paragraphs in the first and second chat tiles */
  .page-index .pink .tile.chat-card:first-of-type h3,
  .page-index .pink .tile.chat-card:first-of-type p,
  .page-index .pink .tile.chat-card:nth-of-type(2) h3,
  .page-index .pink .tile.chat-card:nth-of-type(2) p {
    max-width: 95%;
  }
}

/* ----- BLUE SECTION ----- */
.page-index .blue {
  background: #ffffff;
  color: #1f1f1f;
  margin-top: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
}

.page-index .blue-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 120px 60px 120px 60px;
  align-items: center;
  min-height: inherit;
}

.page-index .card-img {
  position: relative;
  width: 620px;
  max-width: none;
  aspect-ratio: 1 / 1;
  margin: 0;
  /* align to inner padding edge */
  justify-self: start;
  /* grid alignment */
  border-radius: 30px;
  overflow: visible;
  will-change: transform;
}

.page-index .blue .big-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 30px;
  overflow: hidden;
}

.page-index .blue .big-img .framed-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 30px;
}

.page-index .blue h2 {
  margin: 0 0 16px 0;
  font-size: clamp(56px, 8vw, 90px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: #1f1f1f;
}

.page-index .blue p {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 400;
  opacity: .95;
  max-width: 520px;
  color: #1f1f1f;
}

/* ----- WHITE SECTION ----- */
.page-index .white {
  background: #ffffff;
  color: #1f1f1f;
  margin-top: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
}

.page-index .white-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 120px 60px;
  align-items: center;
  min-height: inherit;
}

.page-index .white h2 {
  margin: 0 0 16px 0;
  font-size: clamp(56px, 8vw, 90px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-index .white p {
  margin: 0;
  color: #282828;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 400;
  max-width: 520px;
}

/* White section: 3-column layout with centered floating card */
.page-index .white-inner.three {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 60px;
  padding: 120px 60px 120px 60px;
  min-height: inherit;
}

.page-index .white .pill-stage .framed-svg {
  width: min(304px, 36vw);
  height: auto;
  display: block;
  margin: 0 auto;
  --rot: 0deg;
  --scale: 1;
  transform: translateY(0) rotate(var(--rot)) scale(var(--scale));
  animation: floaty var(--float-duration) var(--float-ease) var(--float-delay) infinite both;
  will-change: transform;
  pointer-events: none;
  position: relative;
  z-index: 1;
  overflow: visible;
  /* allow stroke to render outside the viewBox */
}

/* Default (Desktop) */
.page-index .white .side-heading {
  margin: 0;
  font-size: clamp(56px, 8vw, 90px);
  font-weight: 800;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-index .white .side-heading.left {
  text-align: right;
  justify-self: end;
}

.page-index .white .side-heading.right {
  text-align: left;
  justify-self: start;
}

/* ---- Floating Pills (4th / white section) ---- */
.page-index .white .pill-stage {
  position: relative;
}

.page-index .white .floating-pills {
  position: absolute;
  inset: -80px;
  pointer-events: none;
  z-index: 2;
}

.page-index .white .floating-pills .pill {
  position: absolute;
  display: block;
  padding: 18px 22px;
  border-radius: 28px;
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(18px, 1.6vw, 28px);
  background: #ffffff;
  color: #000;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
  max-width: min(520px, 40vw);
  text-wrap: balance;
}

.page-index .white .floating-pills .pill::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: #ffffff;
  bottom: -10px;
  left: 48px;
  transform: rotate(45deg);
  border-radius: 6px;
  /* softer tail */
}

/* Desktop positions + tilts like reference */
.page-index .white .floating-pills .p-tl {
  top: -60px;
  left: -80px;
  transform: rotate(-6deg);
}

.page-index .white .floating-pills .p-tr {
  top: -60px;
  right: -80px;
  transform: rotate(5deg);
}

.page-index .white .floating-pills .p-bl {
  bottom: -60px;
  left: -90px;
  transform: rotate(5deg);
}

.page-index .white .floating-pills .p-br {
  bottom: -60px;
  right: -90px;
  transform: rotate(-5deg);
}

/* gentle float so they feel alive */
.page-index .white .floating-pills .pill {
  animation: bubbleFloat var(--dur, 7s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }

  50% {
    transform: translateY(-8px) rotate(var(--r, 0deg));
  }

  100% {
    transform: translateY(-4px) rotate(var(--r, 0deg));
  }
}

/* Reduce clutter on small screens */
@media (max-width:980px) {
  .page-index .white .floating-pills {
    display: block;
    inset: -20px;
  }

  .page-index .white .floating-pills .pill {
    padding: 12px 14px;
    border-radius: 24px;
    font-weight: 800;
    line-height: 1.2;
    font-size: clamp(14px, 3.8vw, 18px);
    max-width: min(300px, 70vw);
  }

  .page-index .white .floating-pills .pill::after {
    width: 16px;
    height: 16px;
    bottom: -8px;
    left: 28px;
  }

  .page-index .white .floating-pills .p-tl {
    top: -36px;
    left: -100px;
  }

  .page-index .white .floating-pills .p-tr {
    top: -36px;
    right: -100px;
  }

  .page-index .white .floating-pills .p-bl {
    bottom: -36px;
    left: -100px;
  }

  .page-index .white .floating-pills .p-br {
    bottom: -36px;
    right: -100px;
  }
}

@media (max-width:560px) {

  /* Keep 15px mobile gutter */
  .page-index .white .pill-stage {
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Keep compact vertical reach to avoid overlapping headings */
  .page-index .white .floating-pills {
    inset: -28px 0;
  }

  /* keep vertical reach */

  .page-index .white .floating-pills .pill {
    padding: 9px 11px;
    border-radius: 22px;
    font-size: clamp(12px, 3.8vw, 14.5px);
    max-width: min(200px, 42vw);
    /* narrower to avoid center overlap */
  }

  .page-index .white .floating-pills .pill::after {
    width: 14px;
    height: 14px;
    bottom: -6px;
    left: 20px;
  }

  /* Push pills a bit further outward (more gap between left/right pairs) */
  .page-index .white .floating-pills .p-tl {
    top: -19px;
    left: -23px;
  }

  .page-index .white .floating-pills .p-tr {
    top: -19px;
    right: -23px;
  }

  .page-index .white .floating-pills .p-bl {
    bottom: -19px;
    left: -23px;
  }

  .page-index .white .floating-pills .p-br {
    bottom: -19px;
    right: -23px;
  }
}

@media (max-width:380px) {
  .page-index .white .floating-pills .pill {
    max-width: min(180px, 46vw);
  }

  .page-index .white .floating-pills .p-tl {
    left: -20px;
  }

  .page-index .white .floating-pills .p-tr {
    right: -20px;
  }

  .page-index .white .floating-pills .p-bl {
    left: -20px;
  }

  .page-index .white .floating-pills .p-br {
    right: -20px;
  }
}

/* Tablet & Mobile */
@media (max-width:980px) {
  .page-index .white-inner.three {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 100px min(8vw, 60px);
  }

  .page-index .white-inner.three {
    justify-items: center;
    text-align: center;
  }

  .page-index .white .side-heading,
  .page-index .white .side-heading.left,
  .page-index .white .side-heading.right {
    text-align: center;
    justify-self: center;
    margin: 0 auto;
  }

  .page-index .white .pill-stage .framed-svg {
    width: min(260px, 52vw);
  }
}

@media (max-width:560px) {
  .page-index .white-inner.three {
    padding: 80px 15px;
    gap: 60px;
  }

  .page-index .white-inner.three {
    justify-items: center;
    text-align: center;
  }

  .page-index .white .side-heading,
  .page-index .white .side-heading.left,
  .page-index .white .side-heading.right {
    text-align: center;
    justify-self: center;
  }

  .page-index .white .pill-stage .framed-svg {
    width: min(220px, 68vw);
  }
}

@media (max-width:980px) {
  .page-index .white-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 100px min(8vw, 60px);
  }

  .page-index .white h2 {
    font-size: 70px;
  }

  .page-index .white p {
    font-size: 23px;
  }
}

@media (max-width:560px) {
  .page-index .white-inner {
    padding: 80px min(6vw, 15px);
  }

  .page-index .white h2 {
    font-size: 50px;
  }

  .page-index .white p {
    font-size: 21px;
  }
}

/* ----- QUOTE SECTION (rings) ----- */
.page-index .spacer-section {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  /* roomy desktop gutters */
}

.page-index .outermost-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--ring-gap-desktop) + 2px);
  /* +2px to visually compensate outer border */
  border: 2px solid var(--ring1);
  border-radius: 50px;
  max-width: min(1100px, 92vw);
  width: 100%;
  box-shadow: none;
}

.page-index .outer-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ring-gap-desktop);
  border: 2px solid var(--ring2);
  border-radius: 40px;
  width: 100%;
  box-shadow: none;
}

.page-index .quote-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 40px;
  border: 2px solid var(--ring3);
  border-radius: 30px;
  margin: 0 auto;
  background: rgba(255, 245, 250, .55);
  /* slightly warm glass to harmonize with island */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: none;
}

.page-index .quote-box blockquote {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 500;
  color: #1f1f1f;
  line-height: 1.3;
  letter-spacing: .2px;
  font-family: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
}

/* Tablet */
@media (max-width:980px) {
  .page-index .spacer-section {
    padding: 40px;
  }

  .page-index .outermost-ring {
    padding: calc(var(--ring-gap-tablet) + 2px);
    /* aspect-ratio: 1 / 1; */
  }

  .page-index .outer-ring {
    padding: var(--ring-gap-tablet);
    /* aspect-ratio: 1 / 1; */
  }

  .page-index .quote-box {
    padding: 28px;
    /* aspect-ratio: 1 / 1; */
  }
}

/* Mobile */
@media (max-width:560px) {
  .page-index .spacer-section {
    padding: 20px 15px;
  }

  .page-index .outermost-ring {
    position: relative;
    /* establish containing block for absolute children */
    padding: calc(var(--ring-gap-mobile) + 1.5px);
    border-radius: 28px;
    border-width: 1.5px;
    width: 100%;
    height: auto;
    min-height: 0;
    /* avoid collapse in flex parent */
  }

  .page-index .outermost-ring::before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 75%;
    /* 4:3 ratio without aspect-ratio */
  }

  .page-index .outer-ring {
    position: absolute;
    top: var(--ring-gap-mobile);
    right: var(--ring-gap-mobile);
    bottom: var(--ring-gap-mobile);
    left: var(--ring-gap-mobile);
    width: auto;
    /* let inset control the size */
    height: auto;
    /* let inset control the size */
    min-height: 0;
    /* guard against flex/min-content issues */
    padding: var(--ring-gap-mobile);
    border-radius: 22px;
    border-width: 1.5px;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    /* let child fill full available height */
    justify-content: stretch;
    /* stretch horizontally as well */
  }

  .page-index .quote-box {
    padding: 16px;
    border-radius: 18px;
    border-width: 1px;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    /* occupy all available space */
    min-height: 0;
    /* avoid flex min-content overflow */
    box-sizing: border-box;
    /* include padding in height calc */
  }
}

/* Very small phones */
@media (max-width:380px) {
  .page-index .outermost-ring {
    padding: 12px;
  }

  .page-index .outer-ring {
    padding: 12px;
  }

  .page-index .quote-box {
    padding: 14px;
  }
}

/* ----- YELLOW SECTION ----- */
.page-index .yellow {
  /* Apply the glass card effect directly to the main island */
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .06) 60%),
    radial-gradient(120% 140% at 10% 10%, rgba(175, 110, 220, .18) 0%, rgba(255, 120, 170, .14) 40%, rgba(255, 160, 210, .10) 100%),
    linear-gradient(160deg, rgba(10, 10, 10, .92) 0%, rgba(15, 15, 15, .88) 60%);
  /* keep it dark */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 4px 8px rgba(255, 255, 255, .05), 0 1px 6px rgba(0, 0, 0, .35), 0 0 4px rgba(170, 120, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #ffffff;
  margin-top: 0;
  border-radius: 30px;
  margin-left: 20px;
  margin-right: 20px;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 900px;
  display: grid;
  place-items: center;
}

.page-index .yellow-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  align-items: center;
  justify-items: center;
  align-content: center;
  height: 100%;
  min-height: inherit;
}

.page-index .yellow h2 {
  margin: 0 0 16px 0;
  font-size: clamp(56px, 8vw, 90px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .2px;
  color: #ffffff;
}

.page-index .yellow p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 400;
  max-width: 520px;
}

/* Glass box effect for black island */
.page-index .yellow .island-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .06) 60%),
    radial-gradient(120% 140% at 10% 10%, rgba(175, 110, 220, .18) 0%, rgba(255, 120, 170, .14) 40%, rgba(255, 160, 210, .10) 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .50), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 8px rgba(170, 120, 255, .25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 28px;
}

@media (max-width:560px) {
  .page-index .yellow .island-card {
    padding: 22px;
    border-radius: 24px;
  }
}

.page-index .yellow .island-content {
  padding: 0;
}

/* Centered single floating card in Yellow (reuse hero-frame look) */
.page-index .yellow-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 60px;
  min-height: inherit;
}

.page-index .yellow .hero-frame {
  position: relative;
  /* override absolute from default hero-frame */
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: min(300px, 36vw);
  aspect-ratio: 1 / 1.25;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16), 0 0 0 3px rgba(255, 255, 255, .18);
  --rot: 0deg;
  --scale: 1;
  animation: floaty var(--float-duration) var(--float-ease) var(--float-delay) infinite both;
}

.page-index .yellow .hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width:980px) {
  .page-index .yellow-center {
    padding: 100px min(8vw, 60px);
  }

  .page-index .yellow .hero-frame {
    width: min(260px, 52vw);
  }

  .page-index .yellow h2,
  .page-index .yellow p {
    color: #ffffff;
  }
}

@media (max-width:560px) {
  .page-index .yellow-center {
    padding: 80px min(6vw, 15px);
  }

  .page-index .yellow .hero-frame {
    width: min(200px, 68vw);
  }

  .page-index .yellow h2,
  .page-index .yellow p {
    color: #ffffff;
  }
}

@media (max-width:560px) {
  .page-index .yellow {
    margin-left: 15px;
    margin-right: 15px;
  }
}

/* Stacked image container for yellow section (3rd section) - NEW DESIGN */
.page-index .card-img.stack {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* anchor left so the fan flows right */
  perspective: 900px;
  /* subtle depth */
  transform-style: preserve-3d;
  --shift: 44px;
  /* horizontal fan spacing (desktop) */
  --drop1: -2px;
  /* slight up for the first */
  --drop2: 6px;
  --drop3: 16px;
  --drop4: 30px;
  /* gentle downward curve */
  aspect-ratio: 3 / 4;
  max-width: 620px;
}

.page-index .card-img.stack .stack-photo {
  position: absolute;
  width: 68%;
  /* tighter width so edges read clearly */
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  object-fit: cover;
  transition: transform .40s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, opacity .35s ease, filter .35s ease;
  will-change: transform;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  /* deeper, island-like */
  backface-visibility: hidden;
  transform-origin: center left;
  /* pivot from left edge for a flowing fan */
}

/* Arc-flow layout: rightward fan, slight Y-tilt toward viewer */
.page-index .card-img.stack .pos1 {
  z-index: 4;
  transform: translate3d(0, var(--drop1), 60px) rotateZ(-2deg) rotateY(-8deg) scale(1.00);
  filter: brightness(1) saturate(1);
}

.page-index .card-img.stack .pos2 {
  z-index: 3;
  transform: translate3d(calc(var(--shift) * 1.00), var(--drop2), 40px) rotateZ(-1deg) rotateY(-6deg) scale(0.988);
  filter: brightness(.92) saturate(.95);
}

.page-index .card-img.stack .pos3 {
  z-index: 2;
  transform: translate3d(calc(var(--shift) * 2.10), var(--drop3), 22px) rotateZ(0deg) rotateY(-4deg) scale(0.976);
  filter: brightness(.86) saturate(.92);
}

.page-index .card-img.stack .pos4 {
  z-index: 1;
  transform: translate3d(calc(var(--shift) * 3.30), var(--drop4), 0px) rotateZ(1deg) rotateY(-2deg) scale(0.964);
  filter: brightness(.82) saturate(.90);
}

@media (hover:hover) {
  .page-index .card-img.stack:hover .pos1 {
    transform: translate3d(-2px, calc(var(--drop1) - 4px), 72px) rotateZ(-2deg) rotateY(-8deg) scale(1.012);
    box-shadow: 0 28px 92px rgba(0, 0, 0, .48);
  }
}

/* Responsive tightening so the arc “flow” remains proportional */
@media (max-width:980px) {
  .page-index .card-img.stack {
    --shift: 32px;
    --drop1: -2px;
    --drop2: 5px;
    --drop3: 12px;
    --drop4: 22px;
  }

  .page-index .card-img.stack .stack-photo {
    width: 76%;
    border-radius: 26px;
  }

  .page-index .yellow .card-img.stack {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    /* center the fan on tablet */
    max-width: min(420px, 92vw);
    transform: translateX(-5%);
  }

  .page-index .yellow .card-img.stack .stack-photo {
    box-shadow: 0 20px 64px rgba(0, 0, 0, .36);
  }
}

@media (max-width:560px) {
  .page-index .card-img.stack {
    --shift: 22px;
    --drop1: -1px;
    --drop2: 4px;
    --drop3: 9px;
    --drop4: 16px;
  }

  .page-index .card-img.stack .stack-photo {
    width: 86%;
    border-radius: 24px;
  }

  .page-index .yellow .card-img.stack {
    width: calc(100% - 50px);
    /* 15px padding on each side, minus extra 20px */
    max-width: none;
    padding: 0 15px;
    box-sizing: border-box;
    justify-content: center;
    transform: translateX(-5%);
  }

  .page-index .yellow .card-img.stack .stack-photo {
    box-shadow: 0 16px 54px rgba(0, 0, 0, .34);
  }
}

@media (max-width:380px) {
  .page-index .card-img.stack {
    --shift: 16px;
    --drop1: -1px;
    --drop2: 3px;
    --drop3: 6px;
    --drop4: 12px;
  }

  .page-index .card-img.stack .stack-photo {
    width: 92%;
    border-radius: 22px;
  }

  .page-index .yellow .card-img.stack {
    width: calc(100% - 50px);
    /* reduce by extra 20px on very small phones too */
    max-width: none;
    padding: 0 15px;
    box-sizing: border-box;
    transform: translateX(-5%);
  }
}




/* ----- Responsiveness ----- */
@media (max-width: 980px) {
  .page-index .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .page-index .qr-card {
    width: 200px;
    height: 200px
  }

  .page-index .blue-inner,
  .page-index .yellow-inner {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .page-index .display {
    font-size: 84px;
  }

  .page-index .sub {
    font-size: 26px;
    margin-top: 0;
  }

  .page-index .blue-inner,
  .page-index .yellow-inner {
    padding: 40px;
  }

  .page-index .hero-inner {
    padding: 140px min(8vw, 60px) 120px min(8vw, 60px);
    place-items: center;
    text-align: center;
  }

  .page-index .blue h2,
  .page-index .yellow h2 {
    font-size: 70px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .page-index .blue p,
  .page-index .yellow p {
    font-size: 23px;
  }

  .page-index .card-img {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    margin: 0;
    justify-self: start;
  }

  .page-index .blue h2,
  .page-index .yellow h2 {
    text-align: left;
  }

  .page-index .blue p,
  .page-index .yellow p {
    text-align: left;
  }
}

@media (max-width: 560px) {

  .page-index .blue-inner,
  .page-index .yellow-inner {
    padding: 32px 15px;
  }

  .page-index .hero-inner {
    padding: 120px min(6vw, 15px) 80px min(6vw, 15px);
    place-items: center;
    text-align: center;
  }

  .page-index .display {
    font-size: 60px;
  }

  .page-index .sub {
    font-size: 24px;
    margin-top: 0;
  }

  .page-index .blue h2,
  .page-index .yellow h2 {
    font-size: 50px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .page-index .blue p,
  .page-index .yellow p {
    font-size: 21px;
  }

  .page-index .card-img {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    margin: 0;
    justify-self: start;
  }

  .page-index .blue-inner,
  .page-index .yellow-inner {
    gap: 24px;
  }

  .page-index .blue p,
  .page-index .yellow p {
    max-width: none;
  }

  .page-index .hero-art {
    display: none !important
  }

  .page-index .qr-card {
    display: none
  }

  .page-index .store-buttons {
    display: flex
  }

  /* .hero-frame{ display:none; } -- removed to allow inline frames */
  .page-index .store-buttons {
    display: flex;
    justify-content: center;
  }

  .page-index .hero .cta-primary {
    font-size: 18px;
    padding: 16px 24px;
  }
}

/* --- Safety Page Styles --- */
/* Safety/Accessibility page specific overrides */
.page-safety {
  --heroRatio: 16/9;
  --mainTopPad: 100px;
}

.page-safety main.page-main {
  padding: var(--mainTopPad) min(6vw, 32px) 60px min(6vw, 32px);
}

@media (max-width: 960px) {
  .page-safety main.page-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-safety {
    --heroRatio: 4/3;
  }
}

@media (max-width: 560px) {
  .page-safety main.page-main {
    padding: 80px 20px 48px 20px;
  }

  .page-safety {
    --mainTopPad: 80px;
    --heroRatio: 1/1;
  }

  .page-safety .hero {
    margin-bottom: 24px;
  }

  .page-safety .hero .inner {
    padding: 20px;
  }

  .page-safety main.page-main {
    padding: var(--mainTopPad) 15px 48px 15px;
  }
}

.page-safety .hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  max-width: var(--contentMax);
  margin: 0 auto 40px auto;
  margin-top: calc(100px - var(--mainTopPad));
  aspect-ratio: var(--heroRatio);
  height: auto;
  display: flex;
  align-items: flex-end;
  background: var(--tile);
}

.page-safety .hero.cover {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0)), url('Images/safety-illustation.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-safety .hero .inner {
  width: 100%;
  max-width: var(--contentMax);
  margin: 0 auto;
  padding: 32px;
}

.page-safety .hero h1 {
  font-size: clamp(48px, 5vw, 56px);
  font-weight: 800;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.page-safety .hero .subheading {
  font-size: clamp(18px, 2.6vw, 26px);
  color: #ffffff;
  margin: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  line-height: 1.3;
}

.page-safety .section {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin: 20px auto 0 auto;
  max-width: var(--contentMax);
  overflow: hidden;
}

.page-safety .section h2 {
  font-size: 22px;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.page-safety .section p {
  margin: 0 0 10px 0;
  color: var(--textPrimary);
  line-height: 1.3;
}

.page-safety .section ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
  line-height: 1.3;
}

.page-safety .note {
  background: var(--settings);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--textSecondary);
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.3;
}

.page-safety .btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-safety .section .btn-row {
  margin-top: 12px;
  flex-wrap: wrap;
}

.page-safety .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bottomNav);
  color: var(--textPrimary);
  text-decoration: none;
  font-weight: 600;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
  white-space: nowrap;
}

.page-safety .section p,
.page-safety .section li {
  overflow-wrap: anywhere;
  word-break: normal;
}

.page-safety .btn.primary {
  background: var(--accentBlue);
  color: #fff;
  border-color: var(--accentBlue);
}

/* --- About Page Redesign Styles --- */
.page-about {
  --about-accent: #FF4F8B;
  --about-accent-2: #C77DFF;
  --about-bg: #FFFFFF;
  --about-text: #1F1F1F;
  --about-text-muted: #6E6E72;
}

.page-about main.page-main {
  padding-top: 100px;
  padding-bottom: 120px;
  background: var(--about-bg);
  position: relative;
  z-index: 1;
}

.page-about .site-footer {
  position: relative;
  z-index: 10;
  background: #ffffff;
}

/* Background Blobs */
.page-about .about-bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-about .blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  filter: blur(120px);
  opacity: 0.12;
  border-radius: 50%;
  animation: blobFloat 25s infinite alternate cubic-bezier(0.44, 0.1, 0.5, 0.9);
}

.page-about .blob-1 {
  background: var(--about-accent);
  top: -10%;
  left: -20%;
}

.page-about .blob-2 {
  background: var(--about-accent-2);
  bottom: -10%;
  right: -20%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.page-about .blob-3 {
  background: var(--about-accent);
  top: 30%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  animation-duration: 18s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  100% {
    transform: translate(10vw, 5vh) rotate(90deg) scale(1.1);
  }
}

/* Hero Section */
.page-about .about-hero {
  padding: 80px 20px 120px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-about .about-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.page-about .about-hero__heading {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 850;
  line-height: 1.2;
  padding: 0.05em 0.1em;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
  color: var(--about-text);
}

.page-about .about-hero__heading span {
  background: var(--about-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0 0.1em 0.12em;
  margin: 0 -0.1em -0.12em;
  vertical-align: bottom;
}

.page-about .about-hero__sub {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--about-text-muted);
  line-height: 1.25;
  max-width: 550px;
}

.page-about em {
  font-family: 'Caveat', cursive;
  font-style: normal;
  color: var(--about-accent);
  font-size: 1.1em;
  font-weight: 500;
}

/* Floating Stickers */
.page-about .sticker-item {
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  z-index: 10;
  will-change: transform;
}

/* About Hero Visual Styles */
.page-about .about-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1500px;
}

.page-about .pill-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
}





.page-about .framed-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}



.page-about .about-hero__content {
  position: relative;
}

/* Island Image Visual */
.page-about .image-island {
  position: relative;
  width: 100%;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.page-about .about-story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-about .island-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 79, 139, 0.15) 0%, transparent 70%);
  z-index: -1;
}

/* Story Section */
.page-about .about-story {
  padding: 140px 20px;
  position: relative;
  z-index: 1;
}

.page-about .about-story__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.page-about .about-story__visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1500px;
}



.page-about .section-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 850;
  line-height: 1.2;
  padding: 0.05em 0.15em;
  padding-bottom: 4px;
  margin-bottom: 40px;
  letter-spacing: -0.04em;
  color: var(--about-text);
}

.page-about .about-story p {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.4;
  color: var(--about-text-muted);
  margin-bottom: 60px;
}

/* Pillars Section */
.page-about .about-pillars {
  padding: 140px 20px;
  position: relative;
  z-index: 1;
}

.page-about .pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.page-about .pillar-card {
  padding: 64px 44px;
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  text-align: left;
}



.page-about .pillar-card__icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: inline-block;
  color: var(--about-accent);
  line-height: 1;
  padding-left: 5px;
  /* Adjust for script slant */
}

.page-about .pillar-card__icon em {
  font-size: 1em;
  color: inherit;
}

.page-about .pillar-card h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.page-about .pillar-card p {
  color: var(--about-text-muted);
  line-height: 1.5;
  font-size: 18px;
}

/* Manifesto Section */
.page-about .about-manifesto {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 60%),
    radial-gradient(110% 110% at 15% 15%, rgba(255, 255, 240, 0.06) 0%, rgba(40, 35, 30, 0.15) 40%, transparent 100%),
    linear-gradient(160deg, rgba(22, 22, 21, 0.98) 0%, rgba(13, 13, 12, 0.96) 60%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 4px 8px rgba(255, 255, 255, .05), 0 1px 6px rgba(0, 0, 0, .35), 0 0 4px rgba(170, 120, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
  color: white;
  overflow: hidden;
  border-radius: 30px;
  margin: 0 20px 0;
  position: relative;
  z-index: 1;
  min-height: 80vh;
  min-height: 80svh;
  max-height: 800px;
  display: grid;
  place-items: center;
  padding: 40px;
}

.page-about .about-manifesto .display {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.1;
  padding: 0.05em 0.12em;
  margin-bottom: 24px;
  letter-spacing: -0.05em;
  font-weight: 850;
}

.page-about .about-manifesto__inner {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.page-about .caveat {
  font-family: 'Caveat', cursive;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--about-accent);
  margin: 0;
}

.page-about .manifesto-content {
  text-align: left;
  max-width: 580px;
}

.page-about .manifesto-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
}

.page-about .manifesto-sub em {
  color: white;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--about-accent);
  text-underline-offset: 4px;
}

.page-about .manifesto-visual-v2 {
  position: relative;
  width: 90%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1/1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  perspective: 2000px;
}

.page-about .collage-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: #222;
}

.page-about .collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-about .collage-item.p1 {
  transform: rotate(-4deg) translateY(10%);
  z-index: 1;
}

.page-about .collage-item.p2 {
  transform: rotate(3deg) scale(1.1);
  z-index: 3;
  border-radius: 100px 30px 100px 30px;
}

.page-about .collage-item.p3 {
  transform: rotate(-2deg);
  z-index: 2;
  border-radius: 30px 100px 30px 100px;
}

.page-about .collage-item.p4 {
  transform: rotate(5deg) translateY(-10%);
  z-index: 1;
}


/* CTA Section */
.page-about .about-cta {
  padding: 160px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-about .about-cta__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 40px;
  background: linear-gradient(135deg, var(--about-accent) 0%, var(--about-accent-2) 100%);
  color: white;
  border-radius: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 50px 100px rgba(255, 79, 139, 0.3);
}

.page-about .about-cta .qr-card {
  background: white;
  padding: 32px;
  border-radius: 40px;
  display: inline-block;
  margin: 48px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.page-about .about-cta .qr {
  width: 180px;
  height: 180px;
  display: block;
}

.page-about .cta-note {
  font-size: 20px;
  font-weight: 500;
  opacity: 0.95;
  max-width: 450px;
  line-height: 1.4;
}



/* Tablet & Mobile Adjustments */
@media (max-width: 1024px) {

  .page-about .about-hero__inner,
  .page-about .about-story__inner,
  .page-about .about-manifesto__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 80px;
  }

  .page-about .about-story__visual {
    order: 2;
  }

  .page-about .about-story__content {
    order: 1;
  }

  .page-about .about-hero__sub,
  .page-about .about-story p {
    margin: 0 auto 40px;
  }

  .page-about .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-about main.page-main {
    padding-top: 80px;
  }

  .page-about .about-hero {
    padding-top: 60px;
  }

  .page-about .pillars-grid {
    grid-template-columns: 1fr;
  }

  .page-about .manifesto-visual {
    height: 450px;
    margin-top: 60px;
  }

  .page-about .manifesto-img {
    width: 180px;
    border-width: 6px;
    border-radius: 32px;
  }

  .page-about .about-manifesto {
    margin: 0 10px 0;
    border-radius: 30px;
    padding: 100px 20px;
  }

  .page-about main.page-main {
    padding-bottom: 80px;
  }
}


/* --- Privacy Policy Page Styles --- */
/* Page specific overrides */
.page-privacy main.page-main {
  padding: 100px min(6vw, 32px) 60px min(6vw, 32px);
}

@media (max-width: 960px) {
  .page-privacy main.page-main {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 560px) {
  .page-privacy main.page-main {
    padding: 100px 15px 48px 15px;
  }
}

.page-privacy {
  scroll-behavior: smooth;
}

.page-privacy .hero {
  margin-bottom: 16px;
}

.page-privacy .hero h1 {
  letter-spacing: -0.02em;
}

.page-privacy .chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.page-privacy .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: var(--textSecondary);
}

.page-privacy .chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accentBlue);
}

.page-privacy .content {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.page-privacy #terms-content section+section {
  border-top: none !important;
  margin-top: 24px !important;
  padding-top: 0 !important;
}

.page-privacy #terms-content section {
  scroll-margin-top: 120px;
}

.page-privacy #terms-content>section:first-of-type>h2 {
  margin-top: 0 !important;
}

.page-privacy #terms-content>section:first-of-type>p:first-of-type {
  margin-top: 0 !important;
}

.page-privacy .back-to-top {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 16px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--textPrimary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-privacy .back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.page-privacy .back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 560px) {
  .page-privacy .back-to-top {
    left: auto;
    right: 20px;
    transform: none;
  }
}

.page-privacy mark,
.page-privacy .hl {
  padding: 0 .2em;
  border-radius: 3px;
  background: linear-gradient(to top, #eaeaea 0 55%, transparent 55%);
  transition: background .2s ease;
}

.page-privacy .hl-underline {
  background: none;
  box-shadow: inset 0 -0.45em 0 #e0e0e0;
  border-radius: 2px;
}

/* --- Contact Us Page Styles --- */
/* Contact page specific overrides */
.page-contact main.page-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px min(6vw, 32px) 60px min(6vw, 32px);
}

@media (max-width: 1024px) {
  .page-contact main.page-main {
    padding: 100px 20px 60px 20px;
  }
}

@media (max-width: 768px) {
  .page-contact main.page-main {
    padding: 100px 15px 60px 15px;
  }
}

@media (max-width: 560px) {
  .page-contact main.page-main {
    padding: 100px 15px 48px 15px;
  }
}

.page-contact .contact-hero {
  margin: 0 0 24px 0;
}

.page-contact .contact-hero h1 {
  margin: 0 0 8px 0;
  font-size: clamp(48px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-contact .contact-hero p {
  margin: 0;
  color: var(--textSecondary);
  font-size: 16px;
  line-height: 1.3;
}

.page-contact .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 60px 0;
  font-size: 13px;
  color: var(--textSecondary);
  font-weight: 500;
}

.page-contact .breadcrumb a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.page-contact .breadcrumb a:hover {
  text-decoration: underline;
}

.page-contact .breadcrumb .sep {
  opacity: 0.6;
}

.page-contact .breadcrumb [aria-current="page"] {
  color: var(--textPrimary);
}

.page-contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.page-contact .form-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.page-contact .form-card header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.page-contact .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

@media (max-width: 720px) {
  .page-contact .form-grid {
    grid-template-columns: 1fr;
  }
}

.page-contact .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-contact .form-row label {
  font-size: 13px;
  color: var(--textSecondary);
  font-weight: 600;
}

.page-contact .attach-drop {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--page);
  color: var(--textSecondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  outline: none;
  word-break: break-word;
}

@media (max-width: 1024px) {
  .page-contact .attach-drop {
    display: none;
  }
}



.page-contact .attach-drop.drag {
  border-color: #2976ff;
  box-shadow: 0 0 0 2px rgba(41, 118, 255, 0.25);
  color: var(--textPrimary);
}

.page-contact .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

/* --- Date Page Styles --- */
/* Date page specific overrides */
.page-date main.page-main {
  padding: 0;
  background: var(--date-bg, #fcf9ff);
  position: relative;
}

.page-date .site-footer {
  position: relative;
  z-index: 10;
  background: #fff;
}

/* Fluid Scroll Snapping */
html.page-date-active {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 80px;
  /* Accounts for header height */
  scroll-behavior: smooth;
}

.page-date .date-hero,
.page-date .date-section,
.page-date .date-cta,
.page-date .site-footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.page-date {
  --date-accent: #FF4D8D;
  --date-accent-2: #C77DFF;
  --date-accent-soft: rgba(255, 77, 141, 0.1);
  --date-bg: #fcf9ff;
  --date-surface: rgba(255, 255, 255, 0.8);
  --date-text: #1f1f1f;
  --date-text-muted: #6e6e72;
}

/* Background Blobs */
.page-date .date-bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-date .blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  filter: blur(100px);
  opacity: 0.15;
  border-radius: 50%;
  animation: blobFloat 20s infinite alternate cubic-bezier(0.44, 0.1, 0.5, 0.9);
}

.page-date .blob-1 {
  background: var(--date-accent);
  top: -10%;
  left: -10%;
}

.page-date .blob-2 {
  background: var(--date-accent-2);
  bottom: -10%;
  right: -10%;
  animation-duration: 25s;
  animation-delay: -5s;
}

.page-date .blob-3 {
  background: var(--date-accent);
  top: 40%;
  left: 30%;
  width: 30vw;
  height: 30vw;
  animation-duration: 15s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  100% {
    transform: translate(10vw, 5vh) rotate(90deg) scale(1.1);
  }
}

/* Hero Section */
.page-date .date-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  position: relative;
  z-index: 1;
}

.page-date .hero-content {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.page-date .hero-title {
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
  color: var(--date-text);
  padding: 0.05em 0;
}

.page-date .hero-title span {
  background: linear-gradient(135deg, var(--date-accent) 0%, var(--date-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  padding-bottom: 0.1em;
}

.page-date .hero-subtitle {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
  color: var(--date-text-muted);
  line-height: 1.1;
  margin-bottom: 40px;
  max-width: 25ch;
  margin-left: auto;
  margin-right: auto;
}

.page-date .hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.page-date .hero-image-island {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: 48px;
  overflow: hidden;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.15);
  background: #fff;
  transform: perspective(1000px) rotateX(10deg);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-date .hero-image-island:hover {
  transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.page-date .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-date .hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--date-accent-soft) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* Sections */
.page-date .date-content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 20px;
  position: relative;
  z-index: 1;
}

.page-date .date-section {
  padding: 120px 0;
}

.page-date .section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.page-date .section-headline {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  color: var(--date-text);
  padding: 0.1em 0;
}

.page-date .section-headline em {
  font-style: italic;
  font-weight: 400;
  display: block;
  background: linear-gradient(135deg, var(--date-accent) 0%, var(--date-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.05em;
}

.page-date .section-description {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
  color: var(--date-text-muted);
  max-width: 32ch;
}

.page-date .section-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-date .branding-element {
  font-size: clamp(80px, 10vw, 160px);
  font-weight: 900;
  background: linear-gradient(180deg, var(--date-text) 0%, transparent 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.08;
  transform: rotate(-15deg);
  user-select: none;
}

.page-date .sticker-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-date .sticker-item {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.12));
  transition: filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-date .sticker-item:hover {
  filter: drop-shadow(0 40px 80px rgba(255, 77, 141, 0.25));
}

/* CTA */
.page-date .date-cta {
  padding: 160px 0;
  text-align: center;
  margin: 100px 0 160px;
  position: relative;
  z-index: 1;
}

.page-date .cta-inner {
  position: relative;
  z-index: 2;
}

.page-date .cta-title {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  padding: 0.1em 0;
  color: var(--date-text);
}

.page-date .cta-subtitle {
  font-size: clamp(18px, 2.5vw, 32px);
  color: var(--date-text-muted);
}

/* Reveal Overrides for Staggering */
.page-date [data-reveal-stagger]>* {
  --i: 0;
  transition-delay: calc(var(--i) * 0.15s);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .page-date .section-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .page-date .section-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .page-date .date-section.alternate .section-visual {
    order: 2;
  }

  .page-date .date-section.alternate .section-text {
    order: 1;
  }

  .page-date .hero-title {
    font-size: clamp(56px, 15vw, 90px);
  }

  .page-date .date-hero {
    padding-top: 140px;
    /* Adjusted to keep content relatively high */
    padding-bottom: 40px;
  }

  .page-date .hero-visual {
    margin-top: 40px;
    /* Distance from text above */
  }

  /* Stronger blurred hint before reveal specifically for the hero image */
  .page-date .hero-visual[data-reveal]:not(.in) {
    filter: blur(20px);
    transform: translateY(40px) scale(0.95);
    opacity: 0.5;
    /* Show as a 'hint' instead of fully hidden */
  }

  .page-date .date-cta {
    padding: 100px 0;
    margin: 40px 0 100px;
  }

  .page-date .sticker-wrap {
    max-width: 280px;
    transition: transform 0.3s ease;
  }

  /* Keep their desktop 'side' feel on mobile */
  .page-date .date-section:not(.alternate) .sticker-wrap {
    margin-left: auto;
    margin-right: 0;
  }

  .page-date .date-section.alternate .sticker-wrap {
    margin-right: auto;
    margin-left: 0;
  }

  .page-date .section-description {
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    line-height: 1.4;
  }

  .page-date .section-headline {
    font-size: clamp(40px, 12vw, 56px);
    line-height: 1.1;
    margin-bottom: 20px;
  }
}

.page-date [data-parallax] {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}


/* --- Accessibility Page Styles --- */
.page-accessibility {
  --page: #ffffff;
  --header: #f5f6f7;
  --settings: #f3f3f3;
  --bottomNav: #ffffff;
  --drawer: #ffffff;
  --tile: #f3f3f3;
  --tileSelected: #e4e4e4;
  --border: #e4e4e4;
  --partition: #d1d1d6;
  --progressBarTrack: #f0f0f0;
  --textPrimary: #1f1f1f;
  --textSecondary: #6e6e72;
  --svgPrimary: #1f1f1f;
  --svgSecondary: #6e6e72;
  --accentRed: #ff4d4d;
  --accentBlue: #1955d7;
  --accentYellow: #ffd966;
  --accentGreen: #28a745;
  --accentPurple: #c77dff;
  --muted: #6e6e72;
  --background: #f5f6f7;
  --bg: #f5f6f7;
  --contentMax: 1100px;
  --contentWidth: var(--contentMax);
  --mainTopPad: 100px;
  --heroRatio: 16/9;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

.page-accessibility {
  margin: 0;
  background: var(--bg);
  color: var(--textPrimary);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  height: 100%;
}

.page-accessibility * {
  box-sizing: border-box;
}

.page-accessibility main.page-main {
  padding: var(--mainTopPad) min(6vw, 32px) 60px min(6vw, 32px);
}

@media (max-width: 960px) {
  .page-accessibility main.page-main {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 560px) {
  .page-accessibility main.page-main {
    padding: var(--mainTopPad) 15px 48px 15px;
  }
}

/* Skip link for keyboard users */
.page-accessibility .skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page-accessibility .skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #fff;
  color: var(--textPrimary);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.page-accessibility main.page-main h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.page-accessibility main.page-main p,
.page-accessibility main.page-main li {
  line-height: 1.6;
}

/* Match Safety tile text sizes */
.page-accessibility main.page-main h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.page-accessibility main.page-main .card p,
.page-accessibility main.page-main .card li {
  line-height: 1.3;
}

.page-accessibility main.page-main .card ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
  line-height: 1.3;
}

.page-accessibility main.page-main section {
  margin-top: 32px;
}

.page-accessibility main.page-main .meta {
  color: var(--textSecondary);
  font-size: 14px;
}

.page-accessibility main.page-main ul {
  padding-left: 18px;
}

.page-accessibility main.page-main .card {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

/* Match Safety page content width */
.page-accessibility .page-main .content {
  max-width: var(--contentMax);
  margin-left: auto;
  margin-right: auto;
}

/* --- Cookies Policy Page Styles --- */
/* Layout structure only; keep Tangled colors */
.page-cookies .content-wrap {
  padding: 0;
}

@media (min-width: 720px) {
  .page-cookies .content-wrap {
    padding: 0;
  }
}

.page-cookies .article {
  max-width: var(--contentMax);
  margin: 0 auto;
}

.page-cookies .eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--textSecondary);
}

.page-cookies h1.title {
  margin: 8px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.3;
  font-weight: 800;
}

.page-cookies .deck {
  color: var(--textSecondary);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.3;
  margin: 0 0 18px;
}

.page-cookies .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  color: var(--textSecondary);
  font-size: 14px;
}

.page-cookies .meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
  margin: 0 4px;
}

.page-cookies .divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.page-cookies .article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: var(--contentMax);
  margin: 0 auto;
}

@media (min-width: 1080px) {
  .page-cookies .article-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    column-gap: clamp(40px, 8vw, 150px);
    /* responsive gap */
    row-gap: 32px;
  }
}

.page-cookies .article-grid .toc {
  position: static;
}

@media (min-width: 1080px) {
  .page-cookies .article-grid .toc {
    position: sticky;
    top: 100px;
  }
}

/* Prose */
.page-cookies .prose {
  font-size: 16px;
  line-height: 1.3;
}

.page-cookies .prose h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 28px 0 10px;
}

.page-cookies .prose h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 22px 0 10px;
  color: var(--textSecondary);
}

.page-cookies .prose p {
  margin: 12px 0;
}

.page-cookies .prose ul,
.page-cookies .prose ol {
  margin: 10px 0 12px 20px;
}

.page-cookies .prose li {
  margin: 6px 0;
}

/* Keep Tangled TOC visual, but ensure spacing when stacked */
.page-cookies .article-grid .toc {
  margin-top: 0;
}

/* Turn off numbered h2 boxes from earlier layout */
.page-cookies .content section>h2::before {
  content: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
}

.page-cookies .content section>h2 {
  padding-left: 0 !important;
}

.page-cookies {
  --page: #ffffff;
  --header: #f5f6f7;
  --settings: #f3f3f3;
  --bottomNav: #ffffff;
  --drawer: #ffffff;
  --tile: #f3f3f3;
  --tileSelected: #e4e4e4;
  --border: #e4e4e4;
  --partition: #d1d1d6;
  --progressBarTrack: #f0f0f0;
  --textPrimary: #1f1f1f;
  --textSecondary: #6e6e72;
  --svgPrimary: #1f1f1f;
  --svgSecondary: #6e6e72;
  --accentRed: #ff4d4d;
  --accentBlue: #1955d7;
  --accentYellow: #ffd966;
  --accentGreen: #28a745;
  --accentPurple: #c77dff;
  --muted: #6e6e72;
  --background: #f5f6f7;
  --bg: #f5f6f7;
  --contentMax: 1100px;
  --mono-stack: 'IBM Plex Mono', monospace;
  --mono: 'IBM Plex Mono', monospace;
}

/* Redundant body style removed */

.page-cookies * {
  box-sizing: border-box;
}

/* Prevent grid children from overflowing on narrow screens */
.page-cookies .article-grid>* {
  min-width: 0;
}

/* Make media scale within their containers */
.page-cookies img,
.page-cookies svg,
.page-cookies video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cookies,
.page-cookies {
  height: 100%;
}

.page-cookies main.page-main {
  padding: 100px min(6vw, 32px) 60px min(6vw, 32px);
}

@media (max-width: 960px) {
  .page-cookies main.page-main {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 560px) {
  .page-cookies main.page-main {
    padding: 100px 15px 48px 15px;
  }
}

/* Terms styles */
.page-cookies .legal {
  max-width: var(--contentMax);
  margin: 0 auto;
}

.page-cookies .legal h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  margin: 0 0 10px;
}

.page-cookies .legal .meta {
  color: var(--textSecondary);
  font-size: 14px;
  margin-bottom: 40px;
}

.page-cookies .legal h2 {
  font-size: clamp(18px, 2.6vw, 26px);
  margin: 32px 0 10px;
}

.page-cookies .legal p {
  line-height: 1.3;
  margin: 0 0 14px;
}

.page-cookies .legal ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.page-cookies .legal li {
  margin: 6px 0;
}

@media (max-width: 560px) {
  .page-cookies .legal h1 {
    margin-bottom: 10px;
  }
}

/* Layout enhancements */
.page-cookies {
  scroll-behavior: smooth;
}


/* Hero */
.page-cookies .hero {
  margin-bottom: 16px;
}

.page-cookies .hero h1 {
  letter-spacing: -0.02em;
}

.page-cookies .chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.page-cookies .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: var(--textSecondary);
}

.page-cookies .chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accentBlue);
}

/* TOC */
.page-cookies .toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-left: 10px;
}

.page-cookies .toc h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--textSecondary);
  font-weight: 600;
}

.page-cookies .toc ol {
  margin: 0 0 0 10px;
  padding: 0;
}

.page-cookies .toc a {
  color: var(--textSecondary);
  text-decoration: none;
  display: block;
  padding: 6px 0;
}

.page-cookies .toc a.active {
  color: var(--textPrimary);
  font-weight: 600;
}

/* TOC base text size */
.page-cookies .toc,
.page-cookies .toc a {
  font-size: 14px;
  line-height: 1.3;
}


/* Article content */
.page-cookies .content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

@media (max-width:560px) {
  .page-cookies .content {
    padding: 16px;
  }
}

.page-cookies .content section+section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

/* Numbered headings */
.page-cookies .content {
  counter-reset: sec;
}

.page-cookies .content section>h2 {
  counter-increment: sec;
  position: relative;
  padding-left: 44px;
}

.page-cookies .content section>h2::before {
  content: counter(sec) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--textSecondary);
  font-size: 14px;
  /* reduced from default ~16px */
  transform: scale(0.9);
  /* slightly smaller visual size */
}

@media (max-width: 560px) {
  .page-cookies .content section>h2::before {
    font-size: 12px;
    transform: scale(0.85);
    width: 28px;
    height: 28px;
  }
}

/* Anchor offset */
.page-cookies .content section {
  scroll-margin-top: 120px;
}


/* Back to top */
.page-cookies .back-to-top {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 16px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--textPrimary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-cookies .back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.page-cookies .back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 560px) {
  .page-cookies .back-to-top {
    left: auto;
    right: 20px;
    transform: none;
  }
}

/* --- Align to reference layout: structure only (no color changes) --- */
/* Use plain prose container (no card) */
.page-cookies .content {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Section spacing only; no dividers */
.page-cookies #terms-content section+section {
  border-top: none !important;
  margin-top: 24px !important;
  padding-top: 0 !important;
}

/* TOC heading style per layout */
.page-cookies .toc h2 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--textSecondary);
}

.page-cookies .article-grid .toc {
  margin-top: 24px;
}

/* Disable old numbered heading pills in this article scope */
.page-cookies #terms-content section>h2::before {
  content: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
}

.page-cookies #terms-content section>h2 {
  padding-left: 0 !important;
}

/* Ensure anchor offset still works */
.page-cookies #terms-content section {
  scroll-margin-top: 120px;
}

/* Ensure exact 6px spacing between TOC navigators */
@media (min-width: 1025px) {
  .page-cookies .toc ol {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 16px;
  }

  .page-cookies .toc li {
    margin: 0;
  }

  .page-cookies .toc a {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* remove extra vertical padding so the visual gap equals 6px */
}

/* TOC numbers match link text (minimal) */
.page-cookies .toc a {
  color: var(--textSecondary);
  text-decoration: none;
}

.page-cookies .toc a.active {
  color: var(--textPrimary);
}

.page-cookies .toc li::marker {
  color: var(--textSecondary);
}

.page-cookies .toc li:has(> a.active)::marker {
  color: var(--textPrimary);
}

/* Force 2-digit TOC list markers */
.page-cookies .toc ol {
  list-style-type: decimal-leading-zero;
  margin-left: 10px;
}

/* --- Spacing fix (final override): exactly 20px total from divider to "On this page" ---
       The divider already has 20px space below it, so the TOC must have zero top margin. */
.page-cookies .article-grid .toc {
  margin-top: 0 !important;
}



/* Ensure exactly 20px total from partition line to first Terms heading/text */
.page-cookies #terms-content>section:first-of-type>h2 {
  margin-top: 0 !important;
}

.page-cookies #terms-content>section:first-of-type>p:first-of-type {
  margin-top: 0 !important;
}

/* Hide TOC on tablet and mobile */
@media (max-width: 1024px) {
  .page-cookies .toc {
    display: none !important;
  }
}

/* --- Legal blocks & tables --- */
/* Modern highlighters — MONOCHROME */
.page-cookies .block-note,
.page-cookies .block-warning,
.page-cookies .block-highlight {
  position: relative;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
  background: #fafafa;
  /* monochrome tint */
  color: var(--textPrimary);
  font-family: var(--mono-stack);
  margin-bottom: 16px;
}

/* Note container: black dashed border */
.page-cookies .block-note {
  border-style: dashed !important;
  border-color: #1f1f1f !important;
}

/* Removed left bar on highlighter blocks */
.page-cookies .block-note::before,
.page-cookies .block-warning::before,
.page-cookies .block-highlight::before {
  content: none !important;
  display: none !important;
}

/* Compact variant (optional) */
.page-cookies .block-compact {
  padding: 10px 14px;
  font-size: 13px;
}

/* Inline highlighters — MONOCHROME */
.page-cookies mark,
.page-cookies .hl {
  padding: 0 .2em;
  border-radius: 3px;
  background: linear-gradient(to top, #eaeaea 0 55%, transparent 55%);
  transition: background .2s ease;
  font-family: var(--mono);
  font-variant-ligatures: none;
}

.page-cookies .hl-underline {
  background: none;
  box-shadow: inset 0 -0.45em 0 #e0e0e0;
  border-radius: 2px;
  font-family: var(--mono);
  font-variant-ligatures: none;
}

/* Map color variants to the same mono treatment */
.page-cookies .hl-blue,
.page-cookies .hl-red {
  background: linear-gradient(to top, #eaeaea 0 55%, transparent 55%);
  font-family: var(--mono);
  font-variant-ligatures: none;
}

/* Force monospace on inline highlights (higher specificity, with !important) */
.page-cookies .legal :is(mark, .page-cookies .hl, .page-cookies .hl-underline, .page-cookies .hl-blue, .page-cookies .hl-red) {
  font-family: var(--mono-stack) !important;
  font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0, "calt" 0;
}

@supports (color: color-mix(in srgb, white, black)) {

  .page-cookies mark,
  .page-cookies .hl {
    background: linear-gradient(to top,
        color-mix(in srgb, black 8%, white) 0 55%,
        transparent 55%);
  }

  .page-cookies .hl-blue,
  .page-cookies .hl-red {
    background: linear-gradient(to top,
        color-mix(in srgb, black 8%, white) 0 55%,
        transparent 55%);
  }
}

.page-cookies .muted {
  color: var(--textSecondary);
  font-size: 13px;
}

/* --- Legal tables — redesigned (monochrome, modern) --- */
.page-cookies .table-wrap {
  width: 100%;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  box-shadow: none;
  position: relative;
}

.page-cookies .table-terms {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  min-width: 560px;
  /* keep columns readable on small screens */
}

/* Allow the table to shrink within small containers */
.page-cookies .article-grid .table-wrap .table-terms {
  width: 100%;
}

.page-cookies .table-terms caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--textSecondary);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  margin: 0;
  /* reset old margin */
}

/* Cells */
.page-cookies .table-terms th,
.page-cookies .table-terms td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 0;
  /* remove gridlines; we'll use row dividers */
  word-break: break-word;
}

/* Header row: sticky & clean */
.page-cookies .table-terms thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  /* above row cells */
  background: #fff;
  color: var(--textPrimary);
  font-weight: 600;
  /* crisp divider under sticky header */
  box-shadow: inset 0 -1px 0 var(--border);
}

/* Row dividers */
.page-cookies .table-terms tr+tr td,
.page-cookies .table-terms tr+tr th {
  border-top: 1px solid var(--border);
}

.page-cookies .table-terms tr:first-child td,
.page-cookies .table-terms tr:first-child th {
  border-top: 0;
  /* avoid double line under the sticky header */
}

/* Zebra — start from first data row (row 2), consistent across all tables */
.page-cookies .table-terms tr:nth-child(even) td {
  background: transparent;
}

/* Key column when rows use a header cell on the left (e.g., definition tables) */
.page-cookies .table-terms tr>th:first-child {
  color: var(--textPrimary);
  font-weight: 600;
  white-space: nowrap;
  width: 200px;
}

/* Links inside tables */
.page-cookies .table-terms a {
  color: var(--textPrimary);
  text-decoration: underline;
}


/* Tighten spacing when used inside compact blocks */
.page-cookies .block-compact .table-wrap {
  margin: 10px 0;
  border-radius: 10px;
}

/* Key–value definition list */
.page-cookies .kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  margin: 12px 0;
}

.page-cookies .kv dt {
  color: var(--textSecondary);
  font-weight: 600;
}

.page-cookies .kv dd {
  margin: 0;
}

@media (max-width: 560px) {
  .page-cookies .kv {
    grid-template-columns: 1fr;
  }
}

/* Do/Don't lists */
.page-cookies .list-do,
.page-cookies .list-dont {
  padding-left: 22px;
  margin: 10px 0;
}

.page-cookies .list-do li::marker {
  content: "✓ ";
  color: var(--textPrimary);
  font-weight: 700;
}

.page-cookies .list-dont li::marker {
  content: "✗ ";
  color: var(--textPrimary);
  font-weight: 700;
}

/* Small pill */
.page-cookies .pill {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--textSecondary);
  background: #fff;
}

/* Subtle footnote */
.page-cookies .legal-note {
  color: var(--textSecondary);
  font-size: 12px;
  margin-top: 6px;
}

/* --- Guidelines Page Styles --- */
/* Layout structure only; keep Tangled colors */
.page-guidelines .content-wrap {
  padding: 0;
}

@media (min-width: 720px) {
  .page-guidelines .content-wrap {
    padding: 0;
  }
}

.page-guidelines .article {
  max-width: var(--contentMax);
  margin: 0 auto;
}

.page-guidelines .eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--textSecondary);
}

.page-guidelines h1.title {
  margin: 8px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.3;
  font-weight: 800;
}

.page-guidelines .deck {
  color: var(--textSecondary);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.3;
  margin: 0 0 18px;
}

.page-guidelines .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  color: var(--textSecondary);
  font-size: 14px;
}

.page-guidelines .meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
  margin: 0 4px;
}

.page-guidelines .divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.page-guidelines .article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: var(--contentMax);
  margin: 0 auto;
}

@media (min-width: 1080px) {
  .page-guidelines .article-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    column-gap: clamp(40px, 8vw, 150px);
    /* responsive gap */
    row-gap: 32px;
  }
}

.page-guidelines .article-grid .toc {
  position: static;
}

@media (min-width: 1080px) {
  .page-guidelines .article-grid .toc {
    position: sticky;
    top: 100px;
  }
}

/* Prose */
.page-guidelines .prose {
  font-size: 16px;
  line-height: 1.3;
}

.page-guidelines .prose h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 28px 0 10px;
}

.page-guidelines .prose h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 22px 0 10px;
  color: var(--textSecondary);
}

.page-guidelines .prose p {
  margin: 12px 0;
}

.page-guidelines .prose ul,
.page-guidelines .prose ol {
  margin: 10px 0 12px 20px;
}

.page-guidelines .prose li {
  margin: 6px 0;
}

/* Keep Tangled TOC visual, but ensure spacing when stacked */
.page-guidelines .article-grid .toc {
  margin-top: 0;
}

/* Turn off numbered h2 boxes from earlier layout */
.page-guidelines .content section>h2::before {
  content: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
}

.page-guidelines .content section>h2 {
  padding-left: 0 !important;
}

.page-guidelines {
  --page: #ffffff;
  --header: #f5f6f7;
  --settings: #f3f3f3;
  --bottomNav: #ffffff;
  --drawer: #ffffff;
  --tile: #f3f3f3;
  --tileSelected: #e4e4e4;
  --border: #e4e4e4;
  --partition: #d1d1d6;
  --progressBarTrack: #f0f0f0;
  --textPrimary: #1f1f1f;
  --textSecondary: #6e6e72;
  --svgPrimary: #1f1f1f;
  --svgSecondary: #6e6e72;
  --accentRed: #ff4d4d;
  --accentBlue: #1955d7;
  --accentYellow: #ffd966;
  --accentGreen: #28a745;
  --accentPurple: #c77dff;
  --muted: #6e6e72;
  --background: #f5f6f7;
  --bg: #f5f6f7;
  --contentMax: 1100px;
}


@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

.page-guidelines {
  margin: 0;
  background: var(--bg);
  color: var(--textPrimary);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
}

.page-guidelines * {
  box-sizing: border-box;
}

/* Prevent grid children from overflowing on narrow screens */
.page-guidelines .article-grid>* {
  min-width: 0;
}

/* Make media scale within their containers */
.page-guidelines img,
.page-guidelines svg,
.page-guidelines video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-guidelines,
.page-guidelines {
  height: 100%;
}

.page-guidelines main.page-main {
  padding: 100px min(6vw, 32px) 60px min(6vw, 32px);
}

@media (max-width: 960px) {
  .page-guidelines main.page-main {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 560px) {
  .page-guidelines main.page-main {
    padding: 100px 15px 48px 15px;
  }
}

/* Terms styles */
.page-guidelines .legal {
  max-width: var(--contentMax);
  margin: 0 auto;
}

.page-guidelines .legal h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  margin: 0 0 10px;
}

.page-guidelines .legal .meta {
  color: var(--textSecondary);
  font-size: 14px;
  margin-bottom: 40px;
}

.page-guidelines .legal h2 {
  font-size: clamp(18px, 2.6vw, 26px);
  margin: 32px 0 10px;
}

.page-guidelines .legal p {
  line-height: 1.3;
  margin: 0 0 14px;
}

.page-guidelines .legal ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.page-guidelines .legal li {
  margin: 6px 0;
}

@media (max-width: 560px) {
  .page-guidelines .legal h1 {
    margin-bottom: 10px;
  }
}

/* Layout enhancements */
.page-guidelines {
  scroll-behavior: smooth;
}


/* Hero */
.page-guidelines .hero {
  margin-bottom: 16px;
}

.page-guidelines .hero h1 {
  letter-spacing: -0.02em;
}

.page-guidelines .chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.page-guidelines .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: var(--textSecondary);
}

.page-guidelines .chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accentBlue);
}

/* TOC */
.page-guidelines .toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-left: 10px;
}

.page-guidelines .toc h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--textSecondary);
  font-weight: 600;
}

.page-guidelines .toc ol {
  margin: 0 0 0 10px;
  padding: 0;
}

.page-guidelines .toc a {
  color: var(--textSecondary);
  text-decoration: none;
  display: block;
  padding: 6px 0;
}

.page-guidelines .toc a.active {
  color: var(--textPrimary);
  font-weight: 600;
}

/* TOC base text size */
.page-guidelines .toc,
.page-guidelines .toc a {
  font-size: 14px;
  line-height: 1.3;
}


/* Article content */
.page-guidelines .content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

@media (max-width:560px) {
  .page-guidelines .content {
    padding: 16px;
  }
}

.page-guidelines .content section+section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

/* Numbered headings */
.page-guidelines .content {
  counter-reset: sec;
}

.page-guidelines .content section>h2 {
  counter-increment: sec;
  position: relative;
  padding-left: 44px;
}

.page-guidelines .content section>h2::before {
  content: counter(sec) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--textSecondary);
  font-size: 14px;
  /* reduced from default ~16px */
  transform: scale(0.9);
  /* slightly smaller visual size */
}

@media (max-width: 560px) {
  .page-guidelines .content section>h2::before {
    font-size: 12px;
    transform: scale(0.85);
    width: 28px;
    height: 28px;
  }
}

/* Anchor offset */
.page-guidelines .content section {
  scroll-margin-top: 120px;
}


/* Back to top */
.page-guidelines .back-to-top {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 16px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--textPrimary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-guidelines .back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.page-guidelines .back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 560px) {
  .page-guidelines .back-to-top {
    left: auto;
    right: 20px;
    transform: none;
  }
}

/* --- Align to reference layout: structure only (no color changes) --- */
/* Use plain prose container (no card) */
.page-guidelines .content {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Section spacing only; no dividers */
.page-guidelines #terms-content section+section {
  border-top: none !important;
  margin-top: 24px !important;
  padding-top: 0 !important;
}

/* TOC heading style per layout */
.page-guidelines .toc h2 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--textSecondary);
}

.page-guidelines .article-grid .toc {
  margin-top: 24px;
}

/* Disable old numbered heading pills in this article scope */
.page-guidelines #terms-content section>h2::before {
  content: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
}

.page-guidelines #terms-content section>h2 {
  padding-left: 0 !important;
}

/* Ensure anchor offset still works */
.page-guidelines #terms-content section {
  scroll-margin-top: 120px;
}

/* Ensure exact 6px spacing between TOC navigators */
@media (min-width: 1025px) {
  .page-guidelines .toc ol {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 16px;
  }

  .page-guidelines .toc li {
    margin: 0;
  }

  .page-guidelines .toc a {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* remove extra vertical padding so the visual gap equals 6px */
}

/* TOC numbers match link text (minimal) */
.page-guidelines .toc a {
  color: var(--textSecondary);
  text-decoration: none;
}

.page-guidelines .toc a.active {
  color: var(--textPrimary);
}

.page-guidelines .toc li::marker {
  color: var(--textSecondary);
}

.page-guidelines .toc li:has(> a.active)::marker {
  color: var(--textPrimary);
}

/* Force 2-digit TOC list markers */
.page-guidelines .toc ol {
  list-style-type: decimal-leading-zero;
  margin-left: 10px;
}

/* --- Spacing fix (final override): exactly 20px total from divider to "On this page" ---
       The divider already has 20px space below it, so the TOC must have zero top margin. */
.page-guidelines .article-grid .toc {
  margin-top: 0 !important;
}



/* Ensure exactly 20px total from partition line to first Terms heading/text */
.page-guidelines #terms-content>section:first-of-type>h2 {
  margin-top: 0 !important;
}

.page-guidelines #terms-content>section:first-of-type>p:first-of-type {
  margin-top: 0 !important;
}

/* Hide TOC on tablet and mobile */
@media (max-width: 1024px) {
  .page-guidelines .toc {
    display: none !important;
  }
}

/* --- Legal blocks & tables --- */
/* Modern highlighters — MONOCHROME */
.page-guidelines .block-note,
.page-guidelines .block-warning,
.page-guidelines .block-highlight {
  position: relative;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  box-shadow: none;
  /* remove lift */
  background: #fafafa;
  /* monochrome tint */
  color: var(--textPrimary);
  font-family: var(--mono-stack);
  margin-bottom: 16px;
}

/* Note container: black dashed border */
.page-guidelines .block-note {
  border-style: dashed !important;
  border-color: #1f1f1f !important;
}

/* Removed left bar on highlighter blocks */
.page-guidelines .block-note::before,
.page-guidelines .block-warning::before,
.page-guidelines .block-highlight::before {
  content: none !important;
  display: none !important;
}

/* Compact variant (optional) */
.page-guidelines .block-compact {
  padding: 10px 14px;
  font-size: 13px;
}

/* Inline highlighters — MONOCHROME */
.page-guidelines mark,
.page-guidelines .hl {
  padding: 0 .2em;
  border-radius: 3px;
  background: linear-gradient(to top, #eaeaea 0 55%, transparent 55%);
  transition: background .2s ease;
  font-family: var(--mono);
  font-variant-ligatures: none;
}

.page-guidelines .hl-underline {
  background: none;
  box-shadow: inset 0 -0.45em 0 #e0e0e0;
  border-radius: 2px;
  font-family: var(--mono);
  font-variant-ligatures: none;
}

/* Map color variants to the same mono treatment */
.page-guidelines .hl-blue,
.page-guidelines .hl-red {
  background: linear-gradient(to top, #eaeaea 0 55%, transparent 55%);
  font-family: var(--mono);
  font-variant-ligatures: none;
}

/* Force monospace on inline highlights (higher specificity, with !important) */
.page-guidelines .legal :is(mark, .page-guidelines .hl, .page-guidelines .hl-underline, .page-guidelines .hl-blue, .page-guidelines .hl-red) {
  font-family: var(--mono-stack) !important;
  font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0, "calt" 0;
}

@supports (color: color-mix(in srgb, white, black)) {

  .page-guidelines mark,
  .page-guidelines .hl {
    background: linear-gradient(to top,
        color-mix(in srgb, black 8%, white) 0 55%,
        transparent 55%);
  }

  .page-guidelines .hl-blue,
  .page-guidelines .hl-red {
    background: linear-gradient(to top,
        color-mix(in srgb, black 8%, white) 0 55%,
        transparent 55%);
  }
}

.page-guidelines .muted {
  color: var(--textSecondary);
  font-size: 13px;
}

/* --- Legal tables — redesigned (monochrome, modern) --- */
.page-guidelines .table-wrap {
  width: 100%;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  box-shadow: none;
  position: relative;
}

.page-guidelines .table-terms {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  min-width: 560px;
  /* keep columns readable on small screens */
}

/* Allow the table to shrink within small containers */
.page-guidelines .article-grid .table-wrap .table-terms {
  width: 100%;
}

.page-guidelines .table-terms caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--textSecondary);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  margin: 0;
  /* reset old margin */
}

/* Cells */
.page-guidelines .table-terms th,
.page-guidelines .table-terms td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 0;
  /* remove gridlines; we'll use row dividers */
  word-break: break-word;
}

/* Header row: sticky & clean */
.page-guidelines .table-terms thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  /* above row cells */
  background: #fff;
  color: var(--textPrimary);
  font-weight: 600;
  /* crisp divider under sticky header */
  box-shadow: inset 0 -1px 0 var(--border);
}

/* Row dividers */
.page-guidelines .table-terms tr+tr td,
.page-guidelines .table-terms tr+tr th {
  border-top: 1px solid var(--border);
}

.page-guidelines .table-terms tr:first-child td,
.page-guidelines .table-terms tr:first-child th {
  border-top: 0;
  /* avoid double line under the sticky header */
}

/* Zebra — start from first data row (row 2), consistent across all tables */
.page-guidelines .table-terms tr:nth-child(even) td {
  background: transparent;
}

/* Key column when rows use a header cell on the left (e.g., definition tables) */
.page-guidelines .table-terms tr>th:first-child {
  color: var(--textPrimary);
  font-weight: 600;
  white-space: nowrap;
  width: 200px;
}

/* Links inside tables */
.page-guidelines .table-terms a {
  color: var(--textPrimary);
  text-decoration: underline;
}

/* Tighten spacing when used inside compact blocks */
.page-guidelines .block-compact .table-wrap {
  margin: 10px 0;
  border-radius: 10px;
}

/* Key–value definition list */
.page-guidelines .kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  margin: 12px 0;
}

.page-guidelines .kv dt {
  color: var(--textSecondary);
  font-weight: 600;
}

.page-guidelines .kv dd {
  margin: 0;
}

@media (max-width: 560px) {
  .page-guidelines .kv {
    grid-template-columns: 1fr;
  }
}

/* Do/Don't lists */
.page-guidelines .list-do,
.page-guidelines .list-dont {
  padding-left: 22px;
  margin: 10px 0;
}

.page-guidelines .list-do li::marker {
  content: "✓ ";
  color: var(--textPrimary);
  font-weight: 700;
}

.page-guidelines .list-dont li::marker {
  content: "✗ ";
  color: var(--textPrimary);
  font-weight: 700;
}

/* Small pill */
.page-guidelines .pill {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--textSecondary);
  background: #fff;
}

/* Subtle footnote */
.page-guidelines .legal-note {
  color: var(--textSecondary);
  font-size: 12px;
  margin-top: 6px;
}


/* --- Support Page Refined Styles --- */


.page-support {
  --support-secondary: #FF8FBA;
  --support-accent: #1955D7;
  --support-glass: rgba(255, 255, 255, 0.7);
  --support-glass-border: rgba(255, 255, 255, 0.4);
}

.page-support .support-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 20px 100px;
  background: #FFE6EF;
  margin-bottom: 60px;
  border-radius: 0 0 80px 80px;
}

.page-support .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.page-support .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-support .hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--textPrimary);
}

.page-support .hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--textSecondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.page-support .search-wrapper {
  max-width: 600px;
  margin: 0 auto 48px;
}

.page-support .search-wrapper .field {
  position: relative;
  background: var(--support-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--support-glass-border);
  border-radius: 20px;
  padding: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.page-support .search-wrapper .field:focus-within {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(255, 79, 139, 0.15);
  border-color: var(--support-primary);
}

.page-support .search-wrapper .ui-search {
  width: 100%;
  height: 60px;
  border: none;
  background: transparent;
  padding: 0 40px 0 56px;
  font-size: 18px;
  color: var(--textPrimary);
  outline: none;
  font-family: inherit;
}

.page-support .search-wrapper .icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--support-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-support .search-wrapper .clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  pointer-events: none;
}

.page-support .pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.page-support .pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--support-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--support-glass-border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--textPrimary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.page-support .pill:hover {
  background: var(--support-primary);
  color: white;
  box-shadow: 0 10px 20px rgba(255, 79, 139, 0.2);
  border-color: var(--support-primary);
}

.page-support .pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  position: relative;
}

.page-support .pill-icon::after {
  content: '';
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Category Section */
.page-support .categories-section {
  padding: 80px 0;
}

.page-support .section-container {
  max-width: var(--contentMax);
  margin: 0 auto;
  padding: 0 20px;
}

.page-support .section-head {
  text-align: center;
  margin-bottom: 60px;
}

.page-support .section-title {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-support .section-description {
  color: var(--textSecondary);
  font-size: 18px;
}

.page-support .cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.page-support .cat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.page-support .cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 79, 139, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-support .cat-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
  border-color: var(--support-primary);
}

.page-support .cat-card:hover::before {
  opacity: 1;
}

.page-support .cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #FFF5F9;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--support-primary);
  position: relative;
  z-index: 2;
}

.page-support .cat-icon::after {
  content: '';
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.page-support .user-icon::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.page-support .card-icon::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

.page-support .shield-icon::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.page-support .zap-icon::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
}

.page-support .message-icon::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.page-support .lock-icon::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.page-support .cat-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.page-support .cat-card p {
  color: var(--textSecondary);
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

/* FAQ Section */
.page-support .faq-section {
  background: #fafafb;
  padding: 100px 0;
}

.page-support .faq-grid {
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.page-support .faq {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.page-support .faq[open] {
  border-color: var(--support-primary);
  box-shadow: 0 15px 40px rgba(255, 79, 139, 0.08);
}

.page-support .faq summary {
  padding: 28px;
  list-style: none;
  font-weight: 700;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  outline: none;
  color: var(--textPrimary);
}

.page-support .faq summary::-webkit-details-marker {
  display: none;
}

.page-support .faq summary::after {
  content: '';
  width: 28px;
  height: 28px;
  background-color: var(--support-secondary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
}

.page-support .faq[open] summary::after {
  transform: rotate(180deg);
  background-color: var(--support-primary);
}

.page-support .faq .answer {
  padding: 0 28px 32px;
  color: var(--textSecondary);
  font-size: 17px;
  line-height: 1.6;
}

.page-support .faq .answer a {
  color: var(--support-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-support .faq .answer ol {
  padding-left: 20px;
}

.page-support .faq .answer li {
  margin-bottom: 12px;
}

/* CTA Banner */
.page-support .help-cta-section {
  padding: 100px 0 140px;
}

.page-support .help-banner {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .06) 60%),
    radial-gradient(120% 140% at 10% 10%, rgba(175, 110, 220, .18) 0%, rgba(255, 120, 170, .14) 40%, rgba(255, 160, 210, .10) 100%),
    linear-gradient(160deg, rgba(10, 10, 10, .92) 0%, rgba(15, 15, 15, .88) 60%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 4px 8px rgba(255, 255, 255, .05), 0 1px 6px rgba(0, 0, 0, .35), 0 0 4px rgba(170, 120, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 30px;
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: white;
  position: relative;
  overflow: hidden;
}


.page-support .banner-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.page-support .banner-content h3 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-support .banner-content p {
  font-size: 20px;
  opacity: 0.8;
  max-width: 500px;
}

.page-support .help-actions {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.page-support .btn {
  padding: 18px 36px;
  border-radius: 20px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.page-support .btn-primary {
  background: var(--support-primary);
  color: white;
}

.page-support .btn-primary:hover {
  background: #ff2673;
}

.page-support .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.page-support .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

@media (max-width: 960px) {
  .page-support .help-banner {
    padding: 60px 40px;
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .page-support .banner-content p {
    margin: 0 auto;
  }

  .page-support .help-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .page-support .help-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .page-support .support-hero {
    border-radius: 0 0 40px 40px;
  }

  .page-support .help-cta-section {
    padding: 60px 0 80px;
  }

  .page-support .help-banner {
    padding: 48px 24px;
    border-radius: 30px;
    gap: 24px;
  }

  .page-support .banner-content h3 {
    font-size: 28px;
  }

  .page-support .banner-content p {
    font-size: 16px;
  }
}


/* Report Overlay Styling (Redesigned) */
.page-support .overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: fade-in 0.3s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.page-support .overlay.open {
  display: flex;
}

.page-support .overlay .dialog {
  background: white;
  border-radius: 24px;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.25);
  animation: modal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-support .overlay .dialog header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 5;
}

.page-support .overlay .dialog header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.page-support .overlay .close-btn {
  background: #f1f1f3;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--textSecondary);
}

.page-support .overlay .close-btn:hover {
  background: #eaeaec;
  color: var(--textPrimary);
  transform: scale(1.05);
}

.page-support .overlay .dialog form {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.page-support .form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-support .form-row label {
  font-weight: 600;
  font-size: 13px;
  color: var(--textSecondary);
}

.page-support .ui-input,
.page-support .select-trigger,
.page-support .ui-textarea {
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  color: var(--textPrimary);
}

.page-support .ui-input:focus,
.page-support .select-trigger:focus,
.page-support .ui-textarea:focus {
  background: white;
  border-color: var(--support-primary);
  box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.1);
}

.page-support .attach-trigger {
  justify-content: center;
}

.page-support .attach-trigger:hover {
  color: var(--support-primary);
}

.page-support .actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.page-support .actions button {
  height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.page-support .actions .btn-primary {
  background: var(--support-primary);
  color: white;
}

.page-support .actions .btn-primary:hover {
  background: #ff2673;
}

.page-support .actions .btn-ghost {
  background: #f5f5f7;
  color: var(--textPrimary);
}

.page-support .actions .btn-ghost:hover {
  background: #eaeaec;
}

.page-support .custom-check {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--textSecondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .page-support .overlay .dialog form {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 16px;
  }

  .page-support .attach-drop {
    display: none;
  }

  .page-support .attach-trigger {
    flex: 1 1 100%;
    height: 52px;
  }

  .page-support .overlay .dialog header {
    padding: 16px 24px;
  }

  .page-support .actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .page-support .actions button {
    width: 100%;
    height: 52px;
  }
}

/* Custom Minimalist Checkbox */
.custom-check {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  gap: 12px;
  transition: opacity 0.2s ease;
}

.chk-label {
  line-height: 1.45;
  padding-top: 1px;
}


.custom-check:hover {
  opacity: 0.8;
}

.chk-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.chk-box {
  width: 20px;
  height: 20px;
  background: #f8f9fb;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  flex-shrink: 0;
}

.chk-box svg {
  width: 14px;
  height: 14px;
  transform: scale(0.6) translateY(1px);
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chk-input:checked~.chk-wrap .chk-box {
  background: #1f1f1f;
  border-color: #1f1f1f;
}

.chk-input:checked~.chk-wrap .chk-box svg {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.chk-input:focus-visible~.chk-wrap .chk-box {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
  border-color: #1f1f1f;
}




/* --- Terms of Services Page Styles --- */
/* Layout structure only; keep Tangled colors */
.page-terms .content-wrap {
  padding: 0;
}

@media (min-width: 720px) {
  .page-terms .content-wrap {
    padding: 0;
  }
}

.page-terms .article {
  max-width: var(--contentMax);
  margin: 0 auto;
}

.page-terms .eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--textSecondary);
}

.page-terms h1.title {
  margin: 8px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.3;
  font-weight: 800;
}

.page-terms .deck {
  color: var(--textSecondary);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.3;
  margin: 0 0 18px;
}

.page-terms .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  color: var(--textSecondary);
  font-size: 14px;
}

.page-terms .meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
  margin: 0 4px;
}

.page-terms .divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.page-terms .article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: var(--contentMax);
  margin: 0 auto;
}

@media (min-width: 1080px) {
  .page-terms .article-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    column-gap: clamp(40px, 8vw, 150px);
    row-gap: 32px;
  }
}

.page-terms .article-grid .toc {
  position: static;
}

@media (min-width: 1080px) {
  .page-terms .article-grid .toc {
    position: sticky;
    top: 100px;
  }
}

/* Prose */
.page-terms .prose {
  font-size: 16px;
  line-height: 1.3;
}

.page-terms .prose h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 28px 0 10px;
}

.page-terms .prose h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 22px 0 10px;
  color: var(--textSecondary);
}

.page-terms .prose p {
  margin: 12px 0;
}

.page-terms .prose ul,
.page-terms .prose ol {
  margin: 10px 0 12px 20px;
}

.page-terms .prose li {
  margin: 6px 0;
}

/* Keep Tangled TOC visual, but ensure spacing when stacked */
.page-terms .article-grid .toc {
  margin-top: 0;
}

/* Turn off numbered h2 boxes from earlier layout */
.page-terms .content section>h2::before {
  content: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
}

.page-terms .content section>h2 {
  padding-left: 0 !important;
}

.page-terms {
  --page: #ffffff;
  --header: #f5f6f7;
  --settings: #f3f3f3;
  --bottomNav: #ffffff;
  --drawer: #ffffff;
  --tile: #f3f3f3;
  --tileSelected: #e4e4e4;
  --border: #e4e4e4;
  --partition: #d1d1d6;
  --progressBarTrack: #f0f0f0;
  --textPrimary: #1f1f1f;
  --textSecondary: #6e6e72;
  --svgPrimary: #1f1f1f;
  --svgSecondary: #6e6e72;
  --accentRed: #ff4d4d;
  --accentBlue: #1955d7;
  --accentYellow: #ffd966;
  --accentGreen: #28a745;
  --accentPurple: #c77dff;
  --muted: #6e6e72;
  --background: #f5f6f7;
  --bg: #f5f6f7;
  --contentMax: 1100px;
}

/* Redundant body/html removed */

.page-terms main.page-main {
  padding: 100px min(6vw, 32px) 60px min(6vw, 32px);
}

@media (max-width: 960px) {
  .page-terms main.page-main {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 560px) {
  .page-terms main.page-main {
    padding: 100px 15px 48px 15px;
  }
}

/* Terms styles */
.page-terms .legal {
  max-width: var(--contentMax);
  margin: 0 auto;
}

.page-terms .legal h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  margin: 0 0 10px;
}

.page-terms .legal .meta {
  color: var(--textSecondary);
  font-size: 14px;
  margin-bottom: 40px;
}

.page-terms .legal h2 {
  font-size: clamp(18px, 2.6vw, 26px);
  margin: 32px 0 10px;
}

.page-terms .legal p {
  line-height: 1.3;
  margin: 0 0 14px;
}

.page-terms .legal ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.page-terms .legal li {
  margin: 6px 0;
}

@media (max-width: 560px) {
  .page-terms .legal h1 {
    margin-bottom: 10px;
  }
}

/* Layout enhancements */
.page-terms {
  scroll-behavior: smooth;
}


/* Hero */
.page-terms .hero {
  margin-bottom: 16px;
}

.page-terms .hero h1 {
  letter-spacing: -0.02em;
}

.page-terms .chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.page-terms .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: var(--textSecondary);
}

.page-terms .chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accentBlue);
}

/* TOC */
.page-terms .toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-left: 10px;
}

.page-terms .toc h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--textSecondary);
  font-weight: 600;
}

.page-terms .toc ol {
  margin: 0 0 0 10px;
  padding: 0;
}

.page-terms .toc a {
  color: var(--textSecondary);
  text-decoration: none;
  display: block;
  padding: 6px 0;
}

.page-terms .toc a.active {
  color: var(--textPrimary);
  font-weight: 600;
}

/* TOC base text size */
.page-terms .toc,
.page-terms .toc a {
  font-size: 14px;
  line-height: 1.3;
}


/* Article content */
.page-terms .content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

@media (max-width:560px) {
  .page-terms .content {
    padding: 16px;
  }
}

.page-terms .content section+section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

/* Numbered headings */
.page-terms .content {
  counter-reset: sec;
}

.page-terms .content section>h2 {
  counter-increment: sec;
  position: relative;
  padding-left: 44px;
}

.page-terms .content section>h2::before {
  content: counter(sec) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--textSecondary);
  font-size: 14px;
  /* reduced from default ~16px */
  transform: scale(0.9);
  /* slightly smaller visual size */
}

@media (max-width: 560px) {
  .page-terms .content section>h2::before {
    font-size: 12px;
    transform: scale(0.85);
    width: 28px;
    height: 28px;
  }
}

/* Anchor offset */
.page-terms .content section {
  scroll-margin-top: 120px;
}


/* Back to top */
.page-terms .back-to-top {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 16px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--textPrimary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-terms .back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.page-terms .back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 560px) {
  .page-terms .back-to-top {
    left: auto;
    right: 20px;
    transform: none;
  }
}

/* --- Align to reference layout: structure only (no color changes) --- */
/* Use plain prose container (no card) */
.page-terms .content {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Section spacing only; no dividers */
.page-terms #terms-content section+section {
  border-top: none !important;
  margin-top: 24px !important;
  padding-top: 0 !important;
}

/* TOC heading style per layout */
.page-terms .toc h2 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--textSecondary);
}

.page-terms .article-grid .toc {
  margin-top: 24px;
}

/* Disable old numbered heading pills in this article scope */
.page-terms #terms-content section>h2::before {
  content: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
}

.page-terms #terms-content section>h2 {
  padding-left: 0 !important;
}

/* Ensure anchor offset still works */
.page-terms #terms-content section {
  scroll-margin-top: 120px;
}

/* Ensure exact 6px spacing between TOC navigators */
@media (min-width: 1025px) {
  .page-terms .toc ol {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 16px;
  }

  .page-terms .toc li {
    margin: 0;
  }

  .page-terms .toc a {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* remove extra vertical padding so the visual gap equals 6px */
}

/* TOC numbers match link text (minimal) */
.page-terms .toc a {
  color: var(--textSecondary);
  text-decoration: none;
}

.page-terms .toc a.active {
  color: var(--textPrimary);
}

.page-terms .toc li::marker {
  color: var(--textSecondary);
}

.page-terms .toc li:has(> a.active)::marker {
  color: var(--textPrimary);
}

/* Force 2-digit TOC list markers */
.page-terms .toc ol {
  list-style-type: decimal-leading-zero;
  margin-left: 10px;
}

/* --- Spacing fix (final override): exactly 20px total from divider to "On this page" ---
       The divider already has 20px space below it, so the TOC must have zero top margin. */
.page-terms .article-grid .toc {
  margin-top: 0 !important;
}



/* Ensure exactly 20px total from partition line to first Terms heading/text */
.page-terms #terms-content>section:first-of-type>h2 {
  margin-top: 0 !important;
}

.page-terms #terms-content>section:first-of-type>p:first-of-type {
  margin-top: 0 !important;
}

/* Hide TOC on tablet and mobile */
@media (max-width: 1024px) {
  .page-terms .toc {
    display: none !important;
  }
}

/* --- Legal blocks & tables --- */
/* Modern highlighters — MONOCHROME */
.page-terms .block-note,
.page-terms .block-warning,
.page-terms .block-highlight {
  position: relative;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  box-shadow: none;
  /* remove lift */
  background: #fafafa;
  /* monochrome tint */
  color: var(--textPrimary);
  font-family: var(--mono-stack);
  margin-bottom: 16px;
}

/* Note container: black dashed border */
.page-terms .block-note {
  border-style: dashed !important;
  border-color: #1f1f1f !important;
}

/* Removed left bar on highlighter blocks */
.page-terms .block-note::before,
.page-terms .block-warning::before,
.page-terms .block-highlight::before {
  content: none !important;
  display: none !important;
}

/* Compact variant (optional) */
.page-terms .block-compact {
  padding: 10px 14px;
  font-size: 13px;
}

/* Inline highlighters — MONOCHROME */
.page-terms mark,
.page-terms .hl {
  padding: 0 .2em;
  border-radius: 3px;
  background: linear-gradient(to top, #eaeaea 0 55%, transparent 55%);
  transition: background .2s ease;
  font-family: var(--mono);
  font-variant-ligatures: none;
}

.page-terms .hl-underline {
  background: none;
  box-shadow: inset 0 -0.45em 0 #e0e0e0;
  border-radius: 2px;
  font-family: var(--mono);
  font-variant-ligatures: none;
}

/* Map color variants to the same mono treatment */
.page-terms .hl-blue,
.page-terms .hl-red {
  background: linear-gradient(to top, #eaeaea 0 55%, transparent 55%);
  font-family: var(--mono);
  font-variant-ligatures: none;
}

/* Force monospace on inline highlights (higher specificity, with !important) */
.page-terms .legal :is(mark, .page-terms .hl, .page-terms .hl-underline, .page-terms .hl-blue, .page-terms .hl-red) {
  font-family: var(--mono-stack) !important;
  font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0, "calt" 0;
}

@supports (color: color-mix(in srgb, white, black)) {

  .page-terms mark,
  .page-terms .hl {
    background: linear-gradient(to top,
        color-mix(in srgb, black 8%, white) 0 55%,
        transparent 55%);
  }

  .page-terms .hl-blue,
  .page-terms .hl-red {
    background: linear-gradient(to top,
        color-mix(in srgb, black 8%, white) 0 55%,
        transparent 55%);
  }
}

.page-terms .muted {
  color: var(--textSecondary);
  font-size: 13px;
}

/* --- Legal tables — redesigned (monochrome, modern) --- */
.page-terms .table-wrap {
  width: 100%;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  box-shadow: none;
  position: relative;
}

.page-terms .table-terms {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  min-width: 560px;
  /* keep columns readable on small screens */
}

/* Allow the table to shrink within small containers */
.page-terms .article-grid .table-wrap .table-terms {
  width: 100%;
}

.page-terms .table-terms caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--textSecondary);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  margin: 0;
  /* reset old margin */
}

/* Cells */
.page-terms .table-terms th,
.page-terms .table-terms td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 0;
  /* remove gridlines; we'll use row dividers */
  word-break: break-word;
}

/* Header row: sticky & clean */
.page-terms .table-terms thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  /* above row cells */
  background: #fff;
  color: var(--textPrimary);
  font-weight: 600;
  /* crisp divider under sticky header */
  box-shadow: inset 0 -1px 0 var(--border);
}

/* Row dividers */
.page-terms .table-terms tr+tr td,
.page-terms .table-terms tr+tr th {
  border-top: 1px solid var(--border);
}

.page-terms .table-terms tr:first-child td,
.page-terms .table-terms tr:first-child th {
  border-top: 0;
  /* avoid double line under the sticky header */
}

/* Zebra — start from first data row (row 2), consistent across all tables */
.page-terms .table-terms tr:nth-child(even) td {
  background: transparent;
}

/* Key column when rows use a header cell on the left (e.g., definition tables) */
.page-terms .table-terms tr>th:first-child {
  color: var(--textPrimary);
  font-weight: 600;
  white-space: nowrap;
  width: 200px;
}

/* Links inside tables */
.page-terms .table-terms a {
  color: var(--textPrimary);
  text-decoration: underline;
}

/* Tighten spacing when used inside compact blocks */
.page-terms .block-compact .table-wrap {
  margin: 10px 0;
  border-radius: 10px;
}

/* Key–value definition list */
.page-terms .kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  margin: 12px 0;
}

.page-terms .kv dt {
  color: var(--textSecondary);
  font-weight: 600;
}

.page-terms .kv dd {
  margin: 0;
}

@media (max-width: 560px) {
  .page-terms .kv {
    grid-template-columns: 1fr;
  }
}

/* Do/Don't lists */
.page-terms .list-do,
.page-terms .list-dont {
  padding-left: 22px;
  margin: 10px 0;
}

.page-terms .list-do li::marker {
  content: "✓ ";
  color: var(--textPrimary);
  font-weight: 700;
}

.page-terms .list-dont li::marker {
  content: "✗ ";
  color: var(--textPrimary);
  font-weight: 700;
}

/* Small pill */
.page-terms .pill {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--textSecondary);
  background: #fff;
}

/* Subtle footnote */
.page-terms .legal-note {
  color: var(--textSecondary);
  font-size: 12px;
  margin-top: 6px;
}