/* Stitch-inspired web screens for Sndirian
   Shared by the landing, guardian portal, emergency help, and pricing pages. */

:root {
  --stitch-warm-white: #fff8f5;
  --stitch-surface: #fff1ea;
  --stitch-surface-strong: #ffeadf;
  --stitch-surface-high: #ffe3d4;
  --stitch-surface-higher: #ffdbc8;
  --stitch-surface-alert: #fbe9e7;
  --stitch-surface-success: #e8f5f0;
  --stitch-surface-muted: #f5ddd0;
  --stitch-primary: #186a55;
  --stitch-primary-soft: #74bfa5;
  --stitch-secondary: #97472e;
  --stitch-secondary-soft: #fe997a;
  --stitch-terracotta: #c75b39;
  --stitch-emergency: #8b2500;
  --stitch-text: #2c1608;
  --stitch-text-muted: #7d6e63;
  --stitch-outline: rgba(111, 121, 116, 0.2);
  --stitch-shadow: 0 10px 30px rgba(60, 36, 21, 0.08);
  --stitch-shadow-strong: 0 18px 42px rgba(60, 36, 21, 0.12);
  --stitch-radius-lg: 24px;
  --stitch-radius-md: 18px;
  --stitch-radius-sm: 14px;
  --stitch-radius-pill: 9999px;
  --stitch-max-width: 1280px;
  --stitch-sidebar-width: 256px;
  --stitch-font: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.stitch-page {
  margin: 0;
  font-family: var(--stitch-font);
  color: var(--stitch-text);
  background:
    radial-gradient(circle at top right, rgba(116, 191, 165, 0.14), transparent 28%),
    radial-gradient(circle at 14% 8%, rgba(245, 221, 208, 0.5), transparent 32%),
    linear-gradient(180deg, #fffaf5 0%, #fff8f5 100%);
}

body.stitch-page::before {
  display: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.stitch-app {
  min-height: 100vh;
}

.stitch-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 221, 208, 0.7);
}

.stitch-topbar__inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 24px;
  overflow: visible;
}

.stitch-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--stitch-primary);
  flex: 0 0 auto;
}

.stitch-brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(60, 36, 21, 0.12);
}

.stitch-brand__text {
  font-size: 1.05rem;
}

.stitch-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  overflow: visible;
  white-space: normal;
  min-width: 0;
}

.stitch-nav-group {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  position: relative;
  align-items: stretch;
}

.stitch-nav-group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stitch-nav-group > summary::-webkit-details-marker {
  display: none;
}

.stitch-nav-group__trigger {
  gap: 8px;
  min-height: 40px;
  white-space: nowrap;
}

.stitch-nav-group__trigger::after {
  content: '▾';
  font-size: 0.72rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.stitch-nav-group[open] > .stitch-nav-group__trigger::after {
  transform: rotate(180deg);
}

.stitch-nav-group[open] > .stitch-nav-group__trigger,
.stitch-nav-group > summary:hover {
  color: var(--stitch-primary);
  background: rgba(245, 221, 208, 0.45);
}

.stitch-nav-group__menu {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(245, 221, 208, 0.85);
  border-radius: 18px;
  background: rgba(255, 250, 245, 0.97);
  box-shadow: var(--stitch-shadow);
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 220px;
  max-width: 260px;
  align-self: flex-start;
}

.stitch-nav-group[open] > .stitch-nav-group__menu {
  display: flex;
}

.stitch-nav__link {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--stitch-text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.stitch-nav__link:hover {
  color: var(--stitch-primary);
  background: rgba(245, 221, 208, 0.45);
}

.stitch-nav__link.is-active {
  color: var(--stitch-primary);
  background: rgba(116, 191, 165, 0.16);
}

.stitch-nav-group__menu .stitch-nav__link {
  justify-content: flex-start;
  width: 100%;
  padding: 9px 12px;
  border-radius: 14px;
}

.stitch-nav-group__menu .stitch-nav__link:hover {
  background: rgba(245, 221, 208, 0.5);
}

.stitch-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  justify-self: end;
}

.stitch-icon-btn,
.stitch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.stitch-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--stitch-text-muted);
  background: transparent;
}

.stitch-icon-btn:hover {
  background: rgba(245, 221, 208, 0.45);
  color: var(--stitch-primary);
}

.stitch-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--stitch-radius-pill);
  font-weight: 600;
}

.stitch-button--primary {
  background: var(--stitch-secondary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(151, 71, 46, 0.18);
}

.stitch-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(151, 71, 46, 0.24);
}

.stitch-button--ghost {
  background: transparent;
  color: var(--stitch-secondary);
  border: 1px solid rgba(151, 71, 46, 0.28);
}

.stitch-button--ghost:hover {
  background: rgba(151, 71, 46, 0.06);
}

.stitch-button--mint {
  background: var(--stitch-primary);
  color: #fff;
}

.stitch-button--mint:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(24, 106, 85, 0.18);
}

.stitch-shell {
  width: 100%;
  max-width: var(--stitch-max-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.stitch-sidebar {
  position: sticky;
  top: 72px;
  width: var(--stitch-sidebar-width);
  height: calc(100vh - 72px);
  padding: 18px 14px 16px;
  background: rgba(255, 241, 234, 0.88);
  border-right: 1px solid rgba(245, 221, 208, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stitch-sidebar__brand {
  padding: 4px 6px 14px;
}

.stitch-sidebar__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--stitch-primary);
  letter-spacing: -0.02em;
}

.stitch-sidebar__subtitle {
  margin: 4px 0 0;
  color: var(--stitch-text-muted);
  font-size: 0.82rem;
}

.stitch-sidebar__emergency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  background: var(--stitch-emergency);
  box-shadow: 0 12px 24px rgba(139, 37, 0, 0.2);
  font-weight: 700;
  cursor: pointer;
}

.stitch-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  flex: 1;
}

.stitch-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--stitch-text-muted);
  transition: background-color 160ms ease, color 160ms ease;
}

.stitch-sidebar__link:hover {
  background: rgba(245, 221, 208, 0.42);
  color: var(--stitch-primary);
}

.stitch-sidebar__link.is-active {
  background: rgba(116, 191, 165, 0.24);
  color: var(--stitch-primary);
  font-weight: 600;
}

.stitch-sidebar__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(245, 221, 208, 0.7);
  padding-top: 12px;
}

.stitch-sidebar__footer-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  color: var(--stitch-text-muted);
  transition: background-color 160ms ease, color 160ms ease;
}

.stitch-sidebar__footer-link:hover {
  background: rgba(245, 221, 208, 0.42);
  color: var(--stitch-primary);
}

.stitch-main {
  flex: 1;
  min-width: 0;
}

.stitch-main__inner {
  padding: 28px 24px 40px;
}

.stitch-page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.stitch-page-subtitle {
  margin: 10px 0 0;
  color: var(--stitch-text-muted);
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.7;
}

.stitch-hero {
  padding: 46px 24px 32px;
}

.stitch-hero__grid {
  max-width: var(--stitch-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.stitch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(116, 191, 165, 0.18);
  color: var(--stitch-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.stitch-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.7rem, 6vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.stitch-accent {
  color: var(--stitch-secondary);
}

.stitch-hero__copy {
  max-width: 54ch;
  color: var(--stitch-text-muted);
  line-height: 1.8;
  font-size: 1.03rem;
}

.stitch-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.stitch-panel {
  position: relative;
  border-radius: var(--stitch-radius-lg);
  background: linear-gradient(180deg, #fff3eb 0%, #f8dfcf 100%);
  border: 1px solid rgba(245, 221, 208, 0.9);
  box-shadow: var(--stitch-shadow);
}

.stitch-panel--hero {
  padding: 26px;
  min-height: 320px;
  overflow: hidden;
}

.stitch-panel__badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffd58f 0%, #f7b94f 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  font-size: 1.6rem;
}

.stitch-panel__title {
  margin: 14px 0 8px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.stitch-panel__copy {
  margin: 0;
  color: var(--stitch-text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.stitch-timer {
  margin-top: 22px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 250, 245, 0.88);
  border: 1px solid rgba(245, 221, 208, 0.8);
  text-align: center;
}

.stitch-timer__value {
  display: block;
  color: var(--stitch-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.stitch-timer__label {
  display: block;
  margin-top: 8px;
  color: var(--stitch-text-muted);
  font-size: 0.88rem;
}

.stitch-section {
  padding: 28px 24px 0;
}

.stitch-section__inner {
  max-width: var(--stitch-max-width);
  margin: 0 auto;
}

.stitch-section--accent {
  margin-top: 26px;
  padding: 42px 24px;
  background: rgba(245, 221, 208, 0.75);
}

.stitch-section__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
}

.stitch-section__header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.stitch-section__header p {
  margin: 10px 0 0;
  color: var(--stitch-text-muted);
  line-height: 1.7;
}

.stitch-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stitch-step {
  background: rgba(255, 250, 245, 0.9);
  border: 1px solid rgba(245, 221, 208, 0.8);
  border-radius: var(--stitch-radius-md);
  padding: 18px;
  box-shadow: var(--stitch-shadow);
}

.stitch-step__number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(116, 191, 165, 0.2);
  color: var(--stitch-primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.stitch-step h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
}

.stitch-step p {
  margin: 0;
  color: var(--stitch-text-muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.stitch-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stitch-feature {
  background: rgba(255, 250, 245, 0.9);
  border: 1px solid rgba(245, 221, 208, 0.8);
  border-radius: var(--stitch-radius-md);
  padding: 18px;
  box-shadow: var(--stitch-shadow);
  min-height: 180px;
}

.stitch-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(232, 245, 240, 0.95);
  color: var(--stitch-primary);
  margin-bottom: 14px;
}

.stitch-feature__icon.is-terracotta {
  background: rgba(251, 233, 231, 0.95);
  color: var(--stitch-terracotta);
}

.stitch-feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.stitch-feature p {
  margin: 0;
  color: var(--stitch-text-muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.stitch-section--plans {
  padding-top: 44px;
}

.stitch-section--plans .stitch-section__header {
  margin-bottom: 30px;
}

.stitch-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stitch-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border-radius: var(--stitch-radius-md);
  border: 1px solid rgba(245, 221, 208, 0.95);
  background: rgba(255, 250, 245, 0.92);
  box-shadow: var(--stitch-shadow);
}

.stitch-pricing-card--featured {
  border: 2px solid rgba(151, 71, 46, 0.55);
  background: rgba(255, 248, 245, 0.98);
  box-shadow: var(--stitch-shadow-strong);
}

.stitch-pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--stitch-secondary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: var(--stitch-shadow);
}

.stitch-plan__name {
  font-size: 1.05rem;
  font-weight: 600;
}

.stitch-plan__price {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--stitch-primary);
}

.stitch-plan__subprice {
  color: var(--stitch-text-muted);
  font-size: 0.88rem;
}

.stitch-divider {
  height: 1px;
  background: rgba(245, 221, 208, 1);
}

.stitch-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.stitch-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--stitch-text-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.stitch-bullets li.is-emphasis {
  color: var(--stitch-emergency);
  background: var(--stitch-surface-alert);
  padding: 8px 10px;
  border-radius: 10px;
}

.stitch-card-button {
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(151, 71, 46, 0.32);
  background: transparent;
  color: var(--stitch-secondary);
  font-weight: 600;
}

.stitch-card-button--primary {
  background: var(--stitch-secondary);
  color: #fff;
  border-color: transparent;
}

.stitch-card-button--primary:hover,
.stitch-card-button:hover {
  transform: translateY(-1px);
}

.stitch-breadcrumb {
  color: var(--stitch-text-muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.stitch-breadcrumb a {
  color: var(--stitch-text-muted);
}

.stitch-breadcrumb a:hover {
  color: var(--stitch-primary);
}

.stitch-content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.stitch-card {
  background: rgba(255, 250, 245, 0.94);
  border: 1px solid rgba(245, 221, 208, 0.85);
  border-radius: var(--stitch-radius-md);
  box-shadow: var(--stitch-shadow);
}

.stitch-card--soft {
  background: linear-gradient(180deg, #fff3eb 0%, #f8dfcf 100%);
}

.stitch-card--alert {
  background: linear-gradient(180deg, #fff1ea 0%, #fce0d4 100%);
}

.stitch-card__inner {
  padding: 18px;
}

.stitch-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.stitch-status--success {
  background: rgba(232, 245, 240, 1);
  color: var(--stitch-primary);
}

.stitch-status--pending {
  background: rgba(255, 248, 229, 1);
  color: #8d6a00;
}

.stitch-status--muted {
  background: rgba(245, 245, 245, 1);
  color: #5e6a66;
}

.stitch-dashboard__hero {
  grid-column: span 8;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.stitch-dashboard__actions {
  grid-column: span 4;
}

.stitch-dashboard__circle {
  grid-column: 1 / -1;
}

.stitch-dashboard__code {
  grid-column: 1 / -1;
}

.stitch-dashboard__tile-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.stitch-dashboard__tile {
  background: rgba(255, 250, 245, 0.68);
  border-radius: 12px;
  padding: 14px;
}

.stitch-dashboard__panel-title {
  margin: 0 0 10px;
  font-size: 1rem;
}

.stitch-dashboard__stack {
  display: grid;
  gap: 14px;
}

.stitch-guardian-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(245, 221, 208, 0.85);
  background: #fffaf5;
}

.stitch-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid rgba(116, 191, 165, 0.6);
}

.stitch-avatar--placeholder {
  display: grid;
  place-items: center;
  background: rgba(245, 221, 208, 0.6);
  color: var(--stitch-text-muted);
  border: 1px solid rgba(245, 221, 208, 0.9);
}

.stitch-guardian-card__title {
  margin: 0;
  font-weight: 600;
}

.stitch-guardian-card__meta {
  margin: 4px 0 0;
  color: var(--stitch-text-muted);
  font-size: 0.8rem;
}

.stitch-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 221, 208, 0.9);
  background: #fffaf5;
}

.stitch-code__value {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--stitch-primary);
}

.stitch-emergency-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.stitch-emergency__visual {
  grid-column: span 5;
}

.stitch-emergency__content {
  grid-column: span 7;
}

.stitch-emergency__image-frame {
  background: rgba(255, 250, 245, 0.9);
  border-radius: var(--stitch-radius-md);
  overflow: hidden;
  border: 1px solid rgba(245, 221, 208, 0.9);
}

.stitch-emergency__image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.stitch-emergency__caption {
  margin: 12px 0 0;
  text-align: center;
  color: var(--stitch-text-muted);
  font-size: 0.82rem;
}

.stitch-flow {
  display: grid;
  gap: 12px;
}

.stitch-flow__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 221, 208, 0.85);
  background: rgba(255, 250, 245, 0.9);
}

.stitch-flow__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.stitch-flow__number--mint {
  background: rgba(232, 245, 240, 1);
  color: var(--stitch-primary);
}

.stitch-flow__number--terracotta {
  background: rgba(251, 233, 231, 1);
  color: var(--stitch-secondary);
}

.stitch-flow__number--alert {
  background: rgba(255, 227, 212, 1);
  color: var(--stitch-emergency);
}

.stitch-flow__item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.stitch-flow__item p {
  margin: 0;
  color: var(--stitch-text-muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.stitch-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stitch-action {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stitch-action__tile {
  min-height: 120px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
}

.stitch-action__tile--emergency {
  background: var(--stitch-emergency);
  color: #fff;
  box-shadow: 0 14px 24px rgba(139, 37, 0, 0.18);
}

.stitch-action__tile--tracking {
  background: rgba(255, 227, 212, 0.95);
  color: var(--stitch-emergency);
  border: 1px solid rgba(139, 37, 0, 0.28);
}

.stitch-action__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stitch-action p {
  margin: 0;
  color: var(--stitch-text-muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.stitch-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--stitch-text-muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.stitch-backlink:hover {
  color: var(--stitch-primary);
}

.stitch-muted {
  color: var(--stitch-text-muted);
}

.stitch-mobile-only {
  display: none;
}

.stitch-hide-mobile {
  display: block;
}

.material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.material-symbols-outlined.is-filled {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(245, 221, 208, 0.55);
}

.lang-btn {
  min-width: 36px;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--stitch-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  color: var(--stitch-primary);
  background: rgba(255, 250, 245, 0.95);
  box-shadow: 0 4px 12px rgba(60, 36, 21, 0.08);
}

body.lang-id .lang-en {
  display: none;
}

body.lang-en .lang-id {
  display: none;
}

.legal-shell {
  align-items: flex-start;
  gap: 24px;
  padding: 28px 24px 0;
}

.legal-sidebar {
  position: sticky;
  top: 88px;
  gap: 18px;
  width: 286px;
  padding-top: 18px;
  height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-self: flex-start;
}

.legal-sidebar__card,
.legal-toc,
.legal-article,
.legal-note {
  backdrop-filter: blur(10px);
}

.legal-sidebar__card {
  padding: 18px;
  border-radius: var(--stitch-radius-lg);
  border: 1px solid rgba(245, 221, 208, 0.78);
  background: rgba(255, 241, 234, 0.86);
  box-shadow: var(--stitch-shadow);
}

.legal-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stitch-text-muted);
}

.legal-sidebar__title {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--stitch-primary);
}

.legal-sidebar__app {
  margin: 8px 0 0;
  color: var(--stitch-text-muted);
  font-size: 0.92rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.legal-meta--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.legal-meta span {
  padding: 7px 10px;
  border-radius: var(--stitch-radius-pill);
  background: rgba(255, 250, 245, 0.95);
  color: var(--stitch-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.legal-toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--stitch-radius-lg);
  border: 1px solid rgba(245, 221, 208, 0.78);
  background: rgba(255, 250, 245, 0.84);
  box-shadow: var(--stitch-shadow);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.legal-toc__label {
  margin: 0 0 2px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stitch-text-muted);
}

.legal-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--stitch-text-muted);
  font-size: 0.91rem;
  line-height: 1.45;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.legal-toc__link:hover {
  background: rgba(245, 221, 208, 0.45);
  color: var(--stitch-primary);
}

.legal-toc__index {
  flex-shrink: 0;
  min-width: 1.7rem;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(116, 191, 165, 0.16);
  color: var(--stitch-primary);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.legal-article {
  flex: 1;
  min-width: 0;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(245, 221, 208, 0.8);
  background: rgba(255, 241, 234, 0.84);
  box-shadow: var(--stitch-shadow-strong);
}

.legal-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(245, 221, 208, 0.78);
}

.legal-kicker {
  margin: 0;
  color: var(--stitch-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  color: var(--stitch-text);
  font-size: clamp(2.2rem, 3.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.legal-subtitle {
  margin: 0;
  max-width: 62ch;
  color: var(--stitch-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.legal-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 106, 85, 0.16);
  background: rgba(232, 245, 240, 0.78);
  color: var(--stitch-text);
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-content {
  max-width: none;
}

.legal-section {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(245, 221, 208, 0.85);
  border-radius: 22px;
  background: rgba(255, 250, 245, 0.92);
  box-shadow: 0 8px 24px rgba(60, 36, 21, 0.06);
  scroll-margin-top: 104px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 12px;
  color: var(--stitch-primary);
  font-size: 1.35rem;
}

.legal-section h3 {
  margin: 18px 0 8px;
  color: var(--stitch-secondary);
  font-size: 1.02rem;
}

.legal-section h4 {
  margin: 16px 0 8px;
  color: var(--stitch-text);
  font-size: 0.96rem;
}

.legal-section p,
.legal-section li {
  color: var(--stitch-text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.legal-section p {
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0;
  padding-left: 1.2rem;
}

.legal-section li {
  margin-bottom: 0.45rem;
}

.legal-section a {
  color: var(--stitch-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section table {
  display: block;
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-section th,
.legal-section td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(245, 221, 208, 0.9);
  vertical-align: top;
}

.legal-section thead tr {
  border-bottom: 2px solid rgba(245, 221, 208, 0.95);
}

.stitch-footer {
  margin-top: 28px;
  padding: 0 0 28px;
}

.stitch-footer__inner {
  max-width: var(--stitch-max-width);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 28px;
  border-top: 1px solid rgba(245, 221, 208, 0.78);
  background: rgba(255, 241, 234, 0.58);
  border-radius: 28px 28px 0 0;
}

.stitch-footer__brand p {
  margin: 0 0 8px;
  color: var(--stitch-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.stitch-footer__note {
  margin: 0;
  color: var(--stitch-text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.stitch-footer h4 {
  margin: 0 0 12px;
  color: var(--stitch-primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.stitch-footer__links a {
  color: var(--stitch-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: color 160ms ease;
}

.stitch-footer__links a:hover {
  color: var(--stitch-primary);
}

@media (max-width: 1180px) {
  .stitch-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    white-space: normal;
  }

  .stitch-shell {
    display: block;
  }

  .stitch-sidebar {
    display: none;
  }

  .legal-sidebar {
    display: none;
  }

  .stitch-main__inner {
    padding-top: 24px;
  }

  .legal-article {
    border-radius: 24px;
  }

  .stitch-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .stitch-topbar__inner,
  .stitch-footer__inner,
  .stitch-main__inner,
  .stitch-hero,
  .stitch-section,
  .stitch-section--accent {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stitch-topbar__inner {
    gap: 12px;
  }

  .stitch-nav {
    gap: 6px;
  }

  .stitch-nav__link {
    padding: 9px 12px;
  }

  .stitch-hero__grid,
  .stitch-content-grid,
  .stitch-emergency-grid {
    grid-template-columns: 1fr;
  }

  .stitch-steps,
  .stitch-features,
  .stitch-pricing,
  .stitch-actions-grid {
    grid-template-columns: 1fr;
  }

  .stitch-dashboard__hero,
  .stitch-dashboard__actions,
  .stitch-emergency__visual,
  .stitch-emergency__content {
    grid-column: span 1;
  }

  .stitch-actions {
    gap: 8px;
  }

  .stitch-button {
    min-height: 40px;
    padding-inline: 14px;
  }
}

@media (max-width: 680px) {
  .stitch-hide-mobile {
    display: none;
  }

  .stitch-mobile-only {
    display: inline-flex;
  }

  .stitch-topbar__inner {
    min-height: 68px;
  }

  .stitch-brand__text {
    font-size: 1rem;
  }

  .stitch-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .stitch-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stitch-button,
  .stitch-card-button {
    width: 100%;
  }

  .legal-shell {
    padding: 20px 16px 0;
  }

  .legal-article {
    padding: 18px;
  }

  .legal-hero h1 {
    font-size: 2rem;
  }

  .legal-section {
    padding: 16px;
  }

  .legal-section h2 {
    font-size: 1.18rem;
  }

  .legal-section p,
  .legal-section li {
    font-size: 0.94rem;
  }
}
