/* @import "bootstrap/dist/css/bootstrap.min.css"; */

:root {
  --surface: #f9f9fc;
  --surface-container-low: #f3f3f6;
  --surface-container-lowest: rgba(255, 255, 255, 0.82);
  --surface-container-solid: #ffffff;
  --surface-ink: #1a1c1e;
  --surface-ink-soft: #584236;
  --outline-ghost: rgba(224, 192, 176, 0.2);
  --primary: #9b4500;
  --primary-container: #ff7701;
  --primary-soft: rgba(255, 119, 1, 0.12);
  --tertiary-container: rgba(0, 166, 255, 0.14);
  --tertiary-ink: #005e9c;
  --success-soft: rgba(28, 176, 93, 0.1);
  --success-ink: #1a7a4c;
  --danger-soft: rgba(198, 73, 63, 0.12);
  --danger-ink: #9d3028;
  --ambient-shadow: 0 20px 48px rgba(26, 28, 30, 0.06);
  --glass-shadow: 0 20px 48px rgba(26, 28, 30, 0.08);
  --radius-xl: 1.5rem;
  --radius-lg: 1.15rem;
  --radius-md: 0.85rem;
  --radius-pill: 999px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--surface-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 119, 1, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(155, 69, 0, 0.1), transparent 32%),
    linear-gradient(180deg, #fcfbfd 0%, var(--surface) 100%);
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-tight,
.editorial-heading,
.section-title {
  font-family: "Space Grotesk", "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.04em;
  color: var(--surface-ink);
}

p,
span,
label,
input,
button,
a,
li,
td,
th {
  font-family: "Inter", sans-serif;
}

p,
.text-secondary {
  color: var(--surface-ink-soft) !important;
  line-height: 1.72;
}

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

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

.bg-pattern {
  position: relative;
  overflow: hidden;
}

.bg-pattern::before,
.bg-pattern::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(4px);
}

.bg-pattern::before {
  width: 28rem;
  height: 28rem;
  top: -12rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(255, 119, 1, 0.16), transparent 70%);
}

.bg-pattern::after {
  width: 34rem;
  height: 34rem;
  left: -12rem;
  bottom: -16rem;
  background: radial-gradient(circle, rgba(155, 69, 0, 0.12), transparent 72%);
}

.landing-shell,
.auth-shell {
  position: relative;
  z-index: 1;
}

.glass-nav,
.top-bar,
.auth-card,
.hero-card,
.dashboard-card,
.table-card,
.metric-card,
.ts-card,
.sidebar-content {
  background: var(--surface-container-lowest);
  backdrop-filter: blur(24px);
  box-shadow: var(--ambient-shadow);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.8) !important;
}

.hero-card,
.auth-card,
.dashboard-card,
.table-card,
.sidebar-content {
  border-radius: var(--radius-xl);
}

.metric-card,
.ts-card,
.auth-stat,
.top-action-link {
  border-radius: var(--radius-lg);
}

.surface-low {
  background: var(--surface-container-low);
}

.surface-high {
  background: var(--surface-container-solid);
}

.no-line-section {
  background: var(--surface-container-low);
  border-radius: var(--radius-xl);
}

.btn {
  border-radius: var(--radius-pill);
  padding: 1rem 2rem;
  font-size: 0.97rem;
  font-weight: 600;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-brand {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  background: linear-gradient(135deg, #863a00 0%, #f56d00 100%);
}

.btn-soft {
  background: var(--surface-container-solid);
  color: var(--surface-ink);
  border: 0;
}

.btn-soft:hover,
.btn-soft:focus {
  color: var(--surface-ink);
  background: #fff6f1;
}

.shell-link {
  color: var(--primary);
  font-weight: 600;
}

.section-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.display-tight {
  line-height: 0.94;
}

.editorial-kicker {
  max-width: 14rem;
  margin-left: auto;
  color: var(--surface-ink-soft);
  font-size: 0.95rem;
}

.badge-chip,
.dashboard-chip,
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--surface-ink-soft);
}

.badge-chip::before,
.auth-badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary-container);
}

.dashboard-chip i,
.top-action-link i {
  color: var(--primary);
}

.hero-card {
  padding: 1.75rem;
}

.hero-kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-kpi .metric,
.flow-card,
.story-card,
.ts-card {
  background: var(--surface-container-solid);
  padding: 1.4rem;
}

.hero-kpi .metric-label,
.metric-sub {
  color: var(--surface-ink-soft);
  font-size: 0.9rem;
}

.hero-kpi .metric-value,
.metric-main {
  display: block;
  margin-top: 0.4rem;
  font-family: "Space Grotesk", "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.feature-grid .ts-card,
.story-card,
.flow-card {
  height: 100%;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.auth-panel {
  padding: 2.6rem;
}

.auth-showcase {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(145deg, #6e2f00 0%, #b85100 45%, #ff7701 100%);
  color: #fff;
}

.auth-showcase h2,
.auth-showcase h3 {
  color: #fff;
}

.auth-showcase p,
.auth-showcase .muted-on-dark,
.auth-showcase span {
  color: rgba(255, 245, 239, 0.82);
}

.auth-stat {
  background: rgba(255, 255, 255, 0.14);
  padding: 1rem 1.1rem;
}

.auth-stat strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #fff;
}

.auth-form .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--surface-ink);
}

.auth-form .form-control {
  min-height: 3.65rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface-container-low);
  color: var(--surface-ink);
}

.auth-form .form-control:focus {
  background: var(--surface-container-solid);
  box-shadow: 0 0 0 2px rgba(155, 69, 0, 0.16);
}

.auth-form .form-icon {
  left: 1.7rem;
}

.auth-form .toggle-password {
  right: 0.9rem !important;
}

.dashboard-hero {
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(243, 243, 246, 0.92)),
    var(--surface-container-low);
}

.metric-card {
  padding: 1.45rem;
}

.metric-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--surface-ink-soft);
  font-weight: 600;
}

.metric-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--primary-soft);
  color: var(--primary);
}

.soft-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
}

.soft-status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.status-success {
  background: var(--tertiary-container);
  color: var(--tertiary-ink);
}

.status-warning {
  background: rgba(255, 190, 92, 0.2);
  color: #8e5200;
}

.status-danger {
  background: var(--danger-soft);
  color: var(--danger-ink);
}

.table-card table thead th {
  border: 0;
  color: var(--surface-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.table-card table tbody td {
  border-top: 0;
  vertical-align: middle;
}

.row-clickable tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.row-clickable tbody tr:hover {
  background: rgba(255, 119, 1, 0.05);
  transform: translateY(-1px);
}

.sidebar {
  background: transparent !important;
}

.sidebar-content {
  margin: 1rem;
}

.top-bar {
  margin: 1rem 1rem 0;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8) !important;
}

.page-content-wrapper {
  padding: 1.5rem 1rem 2rem;
}

#navbar-sidebar .nav-item .nav-link {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--surface-ink-soft);
  font-weight: 600;
}

#navbar-sidebar .nav-item .nav-link:hover,
#navbar-sidebar .nav-item.active > .nav-link {
  background: var(--primary-soft);
  color: var(--primary);
}

#navbar-sidebar .nav.flex-column {
  margin-left: 0.4rem;
}

.top-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface-container-solid);
  color: var(--surface-ink-soft);
  font-weight: 600;
}

.top-action-link:hover {
  background: #fff4eb;
  color: var(--primary);
}

.progress {
  background: var(--surface-container-low);
}

.progress-bar {
  border-radius: 999px;
}

.text-underline {
  text-decoration: none;
}

.editorial-offset {
  padding-left: 8%;
}

@media (max-width: 991.98px) {
  .hero-kpi {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 1.5rem;
  }

  .sidebar-content {
    margin: 0;
    border-radius: 0;
  }

  .top-bar {
    margin: 0.75rem 0.75rem 0;
  }

  .page-content-wrapper {
    padding: 1.25rem 0.75rem 2rem;
  }

  .editorial-offset {
    padding-left: 0;
  }
}

.stitch-shell {
  width: min(100% - 3rem, 78rem);
  margin-inline: auto;
}

.stitch-homepage {
  background: var(--surface);
}

.stitch-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px);
  background: rgba(249, 249, 252, 0.82);
}

.stitch-nav__inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.stitch-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  color: var(--surface-ink-soft);
}

.stitch-brand__mark {
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}

.stitch-brand__sub {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.stitch-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stitch-nav__links a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--surface-ink-soft);
  padding-bottom: 0.25rem;
}

.stitch-nav__links a.is-active {
  color: var(--primary-container);
  border-bottom: 2px solid var(--primary-container);
}

.stitch-main {
  padding-top: 3rem;
}

.stitch-hero {
  padding-block: 4rem 7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 32rem);
  align-items: center;
  gap: 4rem;
}

.stitch-display {
  margin: 0 0 2rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.stitch-display span {
  color: var(--primary);
}

.stitch-lead {
  max-width: 34rem;
  font-size: 1.18rem;
  margin-bottom: 2.25rem;
}

.stitch-hero__actions,
.stitch-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stitch-hero__visual {
  position: relative;
  min-height: 36rem;
}

.stitch-visual-card {
  position: absolute;
  inset: 0;
  border-radius: 2.5rem;
  overflow: hidden;
  background: var(--surface-container-low);
}

.stitch-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
}

.stitch-orb--one {
  inset: 8% auto auto 10%;
  width: 17rem;
  height: 17rem;
  background: radial-gradient(circle, rgba(255, 119, 1, 0.36), transparent 65%);
}

.stitch-orb--two {
  inset: auto 4% 12% auto;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(155, 69, 0, 0.2), transparent 70%);
}

.stitch-orb--three {
  inset: 24% 26% auto auto;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(255, 183, 141, 0.6), transparent 72%);
}

.stitch-visual-panel {
  position: absolute;
  right: 2.25rem;
  top: 2.25rem;
  width: min(18rem, 60%);
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(16px);
}

.stitch-visual-panel__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.stitch-visual-panel__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.stitch-floating-card {
  position: absolute;
  left: -2.5rem;
  bottom: -2.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  width: min(23rem, 92%);
  padding: 1.6rem;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow);
}

.stitch-floating-card__icon {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tertiary-container);
  color: #fff;
  flex-shrink: 0;
}

.stitch-floating-card__label {
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.stitch-floating-card h3 {
  margin: 0 0 0.85rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
}

.stitch-progress {
  width: 100%;
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-container-high);
  margin-bottom: 0.85rem;
}

.stitch-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
}

.stitch-floating-card__meta {
  margin: 0;
  font-size: 0.95rem;
}

.stitch-proof {
  padding-block: 1rem 4rem;
}

.stitch-proof__label {
  margin-bottom: 1.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(88, 66, 54, 0.45) !important;
}

.stitch-proof__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  opacity: 0.42;
}

.stitch-proof__brands span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stitch-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  padding-block: 4rem 7rem;
}

.stitch-grid__feature {
  border-radius: 2rem;
  padding: 2.25rem;
}

.stitch-grid__feature h2,
.stitch-grid__feature h3 {
  margin-bottom: 0.8rem;
}

.stitch-grid__feature--wide {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  background: var(--surface-container-low);
}

.stitch-grid__feature--accent {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  background: var(--primary-container);
  color: #fff;
}

.stitch-grid__feature--accent h2,
.stitch-grid__feature--accent p,
.stitch-grid__feature--accent span {
  color: #fff !important;
}

.stitch-grid__feature--accent .material-symbols-outlined {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stitch-grid__feature--small {
  grid-column: span 4;
  background: var(--surface-container-solid);
  box-shadow: 0 6px 16px rgba(26, 28, 30, 0.03);
}

.stitch-grid__rail-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stitch-mini-card {
  min-width: 11rem;
  padding: 1.4rem;
  border-radius: 1.4rem;
  background: var(--surface-container-solid);
}

.stitch-mini-card .material-symbols-outlined {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--primary);
}

.stitch-mini-card strong,
.stitch-mini-card small {
  display: block;
}

.stitch-mini-card small {
  margin-top: 0.3rem;
  color: var(--surface-ink-soft);
}

.stitch-feature-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.stitch-feature-icon--warm {
  background: #ffdbc9;
  color: var(--primary);
}

.stitch-feature-icon--blue {
  background: #cee5ff;
  color: var(--tertiary-ink);
}

.stitch-feature-icon--neutral {
  background: var(--surface-container-highest);
  color: var(--surface-ink);
}

.stitch-section-band {
  background: var(--surface-container-low);
  padding-block: 7rem;
}

.stitch-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
  gap: 3rem;
  align-items: center;
}

.stitch-band__copy h2 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 2.5rem;
}

.stitch-step-list {
  display: grid;
  gap: 2rem;
}

.stitch-step {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
}

.stitch-step > span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.stitch-step h4 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.stitch-step p {
  margin-bottom: 0;
}

.stitch-analytics-card {
  border-radius: 2rem;
  padding: 2rem;
  background: var(--surface-container-solid);
  box-shadow: var(--glass-shadow);
}

.stitch-analytics-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stitch-analytics-card__top p,
.stitch-analytics-card__footer small {
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  color: var(--surface-ink-soft);
}

.stitch-analytics-card__top h3 {
  margin: 0;
  font-size: 2rem;
}

.stitch-analytics-card__top > span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.stitch-bars {
  min-height: 14rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.stitch-bars span {
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--primary-container) 0%, var(--primary) 100%);
}

.stitch-analytics-card__footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stitch-analytics-card__footer strong,
.stitch-analytics-card__footer small {
  display: block;
}

.stitch-cta {
  padding-block: 7rem;
}

.stitch-cta__panel {
  position: relative;
  overflow: hidden;
  border-radius: 3rem;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
}

.stitch-cta__panel h2 {
  position: relative;
  z-index: 1;
  max-width: 50rem;
  margin: 0 auto 2rem;
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 5.25rem);
}

.stitch-cta__glow {
  position: absolute;
  top: -9rem;
  right: -7rem;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(8px);
}

.stitch-cta__actions {
  position: relative;
  z-index: 1;
  justify-content: center;
}

.btn-light {
  background: #fff;
  color: var(--primary);
  border: 0;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.stitch-footer {
  background: var(--surface-container-low);
  padding: 3rem 0;
}

.stitch-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.stitch-footer__inner p,
.stitch-footer__links a {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(88, 66, 54, 0.6);
}

.stitch-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

@media (max-width: 991.98px) {
  .stitch-nav__links {
    display: none;
  }

  .stitch-hero,
  .stitch-band {
    grid-template-columns: 1fr;
  }

  .stitch-hero {
    gap: 2.5rem;
    padding-block: 2rem 5rem;
  }

  .stitch-hero__visual {
    min-height: 26rem;
  }

  .stitch-floating-card {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }

  .stitch-grid__feature--wide,
  .stitch-grid__feature--accent,
  .stitch-grid__feature--small {
    grid-column: span 12;
  }

  .stitch-section-band,
  .stitch-cta {
    padding-block: 5rem;
  }

  .stitch-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .stitch-shell {
    width: min(100% - 1.5rem, 78rem);
  }

  .stitch-main {
    padding-top: 2rem;
  }

  .stitch-display {
    font-size: clamp(2.9rem, 14vw, 4.2rem);
  }

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

  .stitch-hero__visual {
    min-height: 22rem;
  }

  .stitch-visual-panel {
    width: calc(100% - 2rem);
    right: 1rem;
    top: 1rem;
  }

  .stitch-grid,
  .stitch-proof {
    padding-block: 3rem;
  }

  .stitch-grid__feature,
  .stitch-cta__panel,
  .stitch-analytics-card {
    padding: 1.5rem;
  }
}

.stitch-checkout-page {
  min-height: 100vh;
  background: var(--surface);
}

.stitch-checkout-header {
  padding-block: 1rem;
}

.stitch-checkout-header__inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stitch-checkout-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--surface-ink-soft);
}

.stitch-checkout-header__mark {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
}

.stitch-checkout-header__secure {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--surface-container-low);
  color: var(--surface-ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stitch-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 2rem;
  align-items: start;
  padding-block: 2rem 5rem;
}

.stitch-checkout-main {
  display: grid;
  gap: 2rem;
}

.stitch-checkout-intro h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.25rem, 4vw, 3rem);
}

.stitch-checkout-intro p {
  font-size: 1.05rem;
}

.stitch-checkout-form {
  display: grid;
  gap: 1.5rem;
}

.stitch-method-list {
  display: grid;
  gap: 1rem;
}

.stitch-method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stitch-method-option__box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 1rem;
  background: var(--surface-container-solid);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  box-shadow: 0 2px 10px rgba(26, 28, 30, 0.02);
}

.stitch-method-option input:checked + .stitch-method-option__box {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.stitch-method-option__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-container-low);
  color: var(--primary);
  flex-shrink: 0;
}

.stitch-method-option__icon--blue {
  color: var(--tertiary-ink);
}

.stitch-method-option__copy {
  display: grid;
  gap: 0.2rem;
  flex: 1;
}

.stitch-method-option__copy strong {
  font-size: 1rem;
}

.stitch-method-option__copy small {
  color: var(--surface-ink-soft);
}

.stitch-method-option__radio {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--outline);
  flex-shrink: 0;
}

.stitch-method-option input:checked + .stitch-method-option__box .stitch-method-option__radio {
  border-color: var(--primary);
  background: radial-gradient(circle, #fff 0 28%, var(--primary) 30% 100%);
}

.stitch-checkout-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(0, 166, 255, 0.08);
  color: var(--tertiary-ink);
}

.stitch-checkout-note strong {
  display: block;
  margin-bottom: 0.35rem;
}

.stitch-checkout-note p {
  margin: 0;
  color: var(--tertiary-ink) !important;
}

.stitch-checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stitch-field {
  display: grid;
  gap: 0.45rem;
}

.stitch-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--surface-ink);
}

.stitch-field input {
  min-height: 3.5rem;
  border: 0;
  border-radius: 0.95rem;
  background: var(--surface-container-low);
  padding: 0.95rem 1rem;
  color: var(--surface-ink);
}

.stitch-field input:focus {
  outline: none;
  background: var(--surface-container-solid);
  box-shadow: 0 0 0 2px rgba(155, 69, 0, 0.18);
}

.stitch-field--full {
  grid-column: 1 / -1;
}

.stitch-pay-button {
  justify-content: center;
}

.stitch-checkout-summary {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.9rem;
  background: var(--surface-container-low);
}

.stitch-checkout-summary__merchant {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stitch-checkout-summary__logo {
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
}

.stitch-checkout-summary__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stitch-checkout-summary__merchant p,
.stitch-checkout-summary__meta span {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(88, 66, 54, 0.62) !important;
}

.stitch-checkout-summary__merchant h2,
.stitch-checkout-summary__detail h3 {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
}

.stitch-checkout-summary__meta {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
}

.stitch-checkout-summary__meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stitch-checkout-summary__meta strong {
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.stitch-checkout-summary__meta .is-total {
  align-items: end;
  padding-top: 0.5rem;
}

.stitch-checkout-summary__meta .is-total strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.stitch-checkout-summary__detail p,
.stitch-checkout-summary__escrow p {
  margin: 0;
}

.stitch-checkout-summary__escrow {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(232, 232, 234, 0.56);
}

.stitch-checkout-empty {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 3rem;
}

.stitch-checkout-empty__card {
  width: min(100%, 34rem);
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 2rem;
  background: var(--surface-container-lowest);
  box-shadow: var(--glass-shadow);
}

.stitch-checkout-empty__card h1 {
  margin-bottom: 0.7rem;
}

.stitch-checkout-empty__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(198, 73, 63, 0.12);
  color: var(--danger-ink);
}

.stitch-checkout-empty__icon--success {
  background: var(--tertiary-container);
  color: #fff;
}

.stitch-paid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.stitch-paid-grid__item {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--surface-container-low);
}

.stitch-paid-grid__item small,
.stitch-paid-grid__item strong {
  display: block;
}

.stitch-paid-grid__item small {
  margin-bottom: 0.35rem;
  color: var(--surface-ink-soft);
}

@media (max-width: 991.98px) {
  .stitch-checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .stitch-checkout-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stitch-checkout-fields,
  .stitch-paid-grid {
    grid-template-columns: 1fr;
  }

  .stitch-checkout-summary,
  .stitch-checkout-empty__card {
    padding: 1.5rem;
  }

  .stitch-checkout-summary__meta .is-total strong {
    font-size: 1.55rem;
  }
}

.stitch-nav--subpage {
  position: sticky;
  top: 0;
}

.stitch-subpage-main {
  padding-top: 2rem;
}

.stitch-subpage-hero,
.stitch-ramp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.stitch-subpage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stitch-ramp-market {
  display: flex;
  justify-content: flex-end;
}

.stitch-ramp-market {
  width: min(100%, 25rem);
  padding: 2rem;
  border-radius: 2rem;
  background: var(--surface-container-lowest);
  box-shadow: var(--glass-shadow);
}

.stitch-ramp-market small,
.stitch-ramp-panel__header h2 + span,
.stitch-ramp-status,
.stitch-coming-soon {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stitch-ramp-panel h2,
.stitch-ramp-panel h3 {
  margin: 0.4rem 0 0.7rem;
}

.stitch-ramp-status,
.stitch-coming-soon {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 119, 1, 0.12);
  color: var(--primary);
}

.stitch-ramp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 4rem;
}

.stitch-ramp-panel,
.stitch-side-card {
  padding: 2rem;
  border-radius: 2rem;
  background: var(--surface-container-lowest);
  box-shadow: var(--ambient-shadow);
}

.stitch-ramp-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stitch-ramp-panel__header h2 {
  margin-bottom: 0.25rem;
}

.stitch-ramp-panel__header p {
  max-width: 20rem;
  margin: 0;
}

.stitch-ramp-side,
.stitch-create-form {
  display: grid;
  gap: 1.25rem;
}

.stitch-create-form__grid,
.stitch-ramp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stitch-field select {
  min-height: 3.5rem;
  border: 0;
  border-radius: 0.95rem;
  background: var(--surface-container-low);
  padding: 0.95rem 1rem;
  color: var(--surface-ink);
  appearance: none;
}

.stitch-field select:focus {
  outline: none;
  background: var(--surface-container-solid);
  box-shadow: 0 0 0 2px rgba(155, 69, 0, 0.18);
}

.stitch-side-card p,
.stitch-ramp-panel p {
  margin: 0;
}

.stitch-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.stitch-create-center {
  display: flex;
  justify-content: center;
  padding-bottom: 4rem;
}

.stitch-create-stage {
  width: min(100%, 64rem);
  display: grid;
  gap: 1.75rem;
}

.stitch-create-stage__intro {
  max-width: 48rem;
  text-align: center;
  margin: 0 auto;
}

.stitch-create-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stitch-create-type-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
  text-align: left;
  border: 1px solid rgba(140, 113, 99, 0.12);
  border-radius: 1.35rem;
  background: var(--surface-container-lowest);
  box-shadow: var(--ambient-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.stitch-create-type-card:hover {
  transform: translateY(-1px);
}

.stitch-create-type-card.is-active {
  border-color: rgba(255, 119, 1, 0.35);
  background: #fff8f2;
}

.stitch-create-type-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.stitch-create-type-card small {
  color: var(--surface-ink-soft);
}

.stitch-create-type-card__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.stitch-create-type-card__icon--warm {
  background: #ffdbc9;
  color: #9b4500;
}

.stitch-create-type-card__icon--blue {
  background: #cee5ff;
  color: #00639a;
}

.stitch-create-type-card__icon--danger {
  background: #ffdad6;
  color: #ba1a1a;
}

.stitch-create-panel-wrap {
  position: relative;
}

.stitch-create-panel {
  display: none;
  padding: 2rem;
  border-radius: 2rem;
  background: var(--surface-container-lowest);
  box-shadow: var(--ambient-shadow);
}

.stitch-create-panel.is-active {
  display: grid;
  gap: 1.5rem;
}

.stitch-create-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.stitch-create-panel__header h2 {
  margin: 0.35rem 0 0;
}

.stitch-create-panel__header p {
  max-width: 22rem;
  margin: 0;
}

.stitch-side-card--metrics {
  display: grid;
  gap: 1rem;
  background: var(--surface-container-low);
}

.stitch-side-card--metrics div {
  display: grid;
  gap: 0.2rem;
}

.stitch-side-card--metrics small,
.stitch-ramp-amount label,
.stitch-ramp-market__top small {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(88, 66, 54, 0.62);
}

.stitch-side-card--metrics strong,
.stitch-ramp-market__top strong,
.stitch-ramp-market__top span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.stitch-ramp-market {
  display: grid;
  gap: 1.25rem;
}

.stitch-ramp-market__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.stitch-ramp-market__bars {
  min-height: 10rem;
  display: flex;
  align-items: end;
  gap: 0.65rem;
}

.stitch-ramp-market__bars span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(255, 119, 1, 0.4), rgba(155, 69, 0, 0.9));
}

.stitch-ramp-panel--primary {
  display: grid;
  gap: 1.4rem;
}

.stitch-ramp-centered {
  display: flex;
  justify-content: center;
  padding-bottom: 4rem;
}

.stitch-ramp-panel--solo {
  width: min(100%, 48rem);
}

.stitch-ramp-panel--solo h1 {
  margin: 0.45rem 0 0.6rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.stitch-ramp-panel--muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 243, 246, 0.92));
}

.stitch-ramp-form {
  display: grid;
  gap: 1.25rem;
}

.stitch-ramp-exchange {
  position: relative;
  display: grid;
  gap: 1rem;
}

.stitch-ramp-arrow {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 119, 1, 0.12);
  color: var(--primary);
}

.stitch-ramp-arrow--exchange {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 3.35rem;
  height: 3.35rem;
  background: #ccff2f;
  color: #1a1c1e;
  box-shadow: 0 12px 30px rgba(174, 224, 28, 0.35);
  transform: translate(-50%, -50%);
}

.stitch-ramp-exchange-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1.65rem;
  background: var(--surface-container-solid);
  border: 1px solid rgba(140, 113, 99, 0.14);
  box-shadow: 0 8px 20px rgba(26, 28, 30, 0.06);
}

.stitch-ramp-exchange-card__header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.stitch-ramp-exchange-card__header label {
  font-size: 1.05rem;
  color: var(--surface-ink);
}

.stitch-ramp-exchange-card__header .material-symbols-outlined {
  font-size: 1.15rem;
  color: rgba(88, 66, 54, 0.62);
}

.stitch-ramp-exchange-card__body {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(140, 113, 99, 0.12);
}

.stitch-ramp-exchange-card__body strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(88, 66, 54, 0.6);
}

.stitch-ramp-amount-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(88, 66, 54, 0.78);
}

.stitch-ramp-amount-input::placeholder {
  color: rgba(88, 66, 54, 0.55);
}

.stitch-ramp-amount-input:focus {
  outline: none;
}

.stitch-ramp-currency-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  min-width: 10rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(140, 113, 99, 0.14);
  background: #fff;
}

.stitch-ramp-currency-chip .material-symbols-outlined,
.stitch-ramp-currency-chip__flag {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d9e5ff;
  color: #4d6ecc;
  font-size: 1rem;
}

.stitch-ramp-currency-chip__flag {
  background: linear-gradient(90deg, #1f8a43 0 33%, #ffffff 33% 66%, #1f8a43 66% 100%);
  border: 1px solid rgba(31, 138, 67, 0.15);
}

.stitch-ramp-currency-chip div {
  display: grid;
  gap: 0.15rem;
}

.stitch-ramp-currency-chip div > span {
  font-weight: 700;
  color: var(--surface-ink);
}

.stitch-ramp-currency-chip small {
  color: var(--surface-ink-soft);
}

.stitch-ramp-exchange-card__meta {
  display: grid;
  gap: 0.25rem;
}

.stitch-ramp-exchange-card__meta span {
  color: var(--surface-ink-soft);
}

.stitch-ramp-bank {
  display: grid;
  gap: 0.75rem;
}

.stitch-ramp-bank__top,
.stitch-ramp-bank__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stitch-ramp-bank__top span {
  color: var(--surface-ink);
}

.stitch-ramp-bank__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--surface-ink-soft);
}

.stitch-ramp-bank__row {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(140, 113, 99, 0.16);
  background: var(--surface-container-solid);
}

.stitch-ramp-bank__row--inputs,
.stitch-ramp-bank__account {
  padding: 0;
}

.stitch-ramp-bank__cell {
  flex: 1;
  padding: 1rem 1.1rem;
}

.stitch-ramp-bank__cell + .stitch-ramp-bank__cell {
  border-left: 1px solid rgba(140, 113, 99, 0.14);
}

.stitch-ramp-bank__account {
  border-radius: 1rem;
  border: 1px solid rgba(140, 113, 99, 0.16);
  background: var(--surface-container-solid);
  color: var(--surface-ink);
}

.stitch-ramp-bank__input {
  width: 100%;
  min-height: 3.35rem;
  border: 0;
  background: transparent;
  padding: 0.95rem 1.1rem;
  color: var(--surface-ink);
}

.stitch-ramp-bank__input:focus {
  outline: none;
}

.stitch-ramp-bank__input--full {
  font-weight: 600;
}

.stitch-ramp-submit {
  justify-content: center;
}

.stitch-ramp-rate-card {
  display: grid;
  gap: 1.1rem;
}

.stitch-ramp-rate-card h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(88, 66, 54, 0.62);
}

.stitch-ramp-rate-card__list {
  display: grid;
  gap: 1rem;
}

.stitch-ramp-rate-card__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stitch-ramp-rate-card__asset {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stitch-ramp-rate-card__asset .material-symbols-outlined {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-container-low);
  color: var(--surface-ink);
  font-size: 1.1rem;
}

.stitch-ramp-rate-card__asset span:last-child {
  font-weight: 600;
}

.stitch-ramp-rate-card__item strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.stitch-ramp-visual-card {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(152, 84, 23, 0.92), rgba(42, 56, 70, 0.92));
  box-shadow: var(--ambient-shadow);
}

.stitch-ramp-visual-card__media {
  position: absolute;
  inset: 0;
}

.stitch-ramp-visual-card__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
}

.stitch-ramp-visual-card__orb--one {
  width: 18rem;
  height: 10rem;
  top: 8%;
  right: 8%;
  transform: rotate(-18deg);
  background:
    radial-gradient(circle at 34% 34%, rgba(145, 255, 241, 0.66), transparent 12%),
    radial-gradient(circle at 52% 52%, rgba(33, 28, 22, 0.52), transparent 26%),
    radial-gradient(circle at 74% 36%, rgba(122, 231, 214, 0.56), transparent 10%);
}

.stitch-ramp-visual-card__orb--two {
  width: 12rem;
  height: 8rem;
  bottom: 10%;
  right: 20%;
  transform: rotate(18deg);
  background:
    radial-gradient(circle at 34% 36%, rgba(22, 21, 18, 0.48), transparent 22%),
    radial-gradient(circle at 60% 50%, rgba(114, 228, 214, 0.52), transparent 14%);
}

.stitch-ramp-visual-card__orb--three {
  width: 7rem;
  height: 7rem;
  top: 18%;
  right: 10%;
  box-shadow:
    0 0 0 1px rgba(186, 230, 226, 0.34),
    0 0 0 1rem rgba(186, 230, 226, 0.05),
    0 0 0 2rem rgba(186, 230, 226, 0.03);
}

.stitch-ramp-visual-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  color: #fff;
}

.stitch-ramp-visual-card__overlay p {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76) !important;
}

.stitch-ramp-visual-card__overlay h4 {
  margin: 0;
  max-width: 18rem;
  color: #fff;
}

@media (max-width: 991.98px) {
  .stitch-subpage-hero,
  .stitch-ramp-hero,
  .stitch-ramp-layout {
    grid-template-columns: 1fr;
  }

  .stitch-ramp-market {
    justify-content: flex-start;
  }

  .stitch-create-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .stitch-subpage-main {
    padding-top: 1rem;
  }

  .stitch-ramp-panel,
  .stitch-side-card,
  .stitch-create-panel,
  .stitch-ramp-market,
  .stitch-ramp-visual-card {
    padding: 1.5rem;
  }

  .stitch-create-panel__header,
  .stitch-ramp-panel__header {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

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

  .stitch-ramp-arrow--exchange {
    position: static;
    transform: none;
    margin: -0.35rem auto;
  }

  .stitch-ramp-exchange-card__body,
  .stitch-ramp-bank__top,
  .stitch-ramp-bank__row {
    flex-direction: column;
    align-items: stretch;
  }

  .stitch-ramp-panel--solo h1 {
    font-size: 2.4rem;
  }

  .stitch-ramp-currency-chip {
    min-width: 0;
    width: 100%;
  }

  .stitch-ramp-bank__cell + .stitch-ramp-bank__cell {
    border-left: 0;
    border-top: 1px solid rgba(140, 113, 99, 0.14);
  }
}

.stitch-rails-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.stitch-rails-hero__panel {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: 2rem;
  background: var(--surface-container-lowest);
  box-shadow: var(--glass-shadow);
}

.stitch-rails-stat {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--outline-ghost);
}

.stitch-rails-stat:last-child {
  border-bottom: 0;
}

.stitch-rails-stat small {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(88, 66, 54, 0.62);
}

.stitch-rails-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.stitch-rails-types {
  padding-bottom: 4rem;
}

.stitch-rails-types__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.stitch-rails-type-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: 18rem;
  padding: 2rem;
  border-radius: 1.4rem;
  background: var(--surface-container-lowest);
  box-shadow: var(--ambient-shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}

.stitch-rails-type-card--interactive:hover {
  background: #f1f1f4;
  transform: translateY(-2px);
}

.stitch-rails-type-card--muted {
  background: var(--surface-container-low);
}

.stitch-rails-type-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.35rem);
  line-height: 0.95;
}

.stitch-rails-type-card p {
  max-width: 15rem;
  margin: 0 0 auto;
  font-size: 1.02rem;
}

.stitch-rails-type-card__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.stitch-rails-type-card__icon--primary {
  background: #ffdbc9;
  color: #9b4500;
}

.stitch-rails-type-card__icon--secondary {
  background: #ffdbc9;
  color: #904c21;
}

.stitch-rails-type-card__icon--tertiary {
  background: #cee5ff;
  color: #00639a;
}

.stitch-rails-type-card__icon--muted {
  background: #e8e8ea;
  color: rgba(88, 66, 54, 0.46);
}

.stitch-rails-type-card__icon--danger {
  background: #ffdad6;
  color: #ba1a1a;
}

.stitch-rails-type-card__badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: #e2e2e5;
  color: rgba(88, 66, 54, 0.82);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stitch-rails-type-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-weight: 700;
}

.stitch-rails-type-card__action::after {
  content: "\2192";
  font-size: 1rem;
}

.stitch-rails-type-card__action--primary {
  color: #9b4500;
}

.stitch-rails-type-card__action--secondary {
  color: #904c21;
}

.stitch-rails-type-card__action--tertiary {
  color: #4b68c7;
}

.stitch-rails-type-card__action--danger {
  color: #c1492f;
}

.stitch-rails-visual-card {
  grid-column: span 2;
  min-height: 20rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.95fr);
  overflow: hidden;
  border-radius: 1.4rem;
  background: var(--primary);
  box-shadow: 0 24px 56px rgba(58, 39, 23, 0.2);
}

.stitch-rails-visual-card__copy {
  position: relative;
  z-index: 2;
  padding: 2.4rem;
  display: grid;
  align-content: center;
  justify-items: start;
}

.stitch-rails-visual-card__copy h2 {
  margin: 0 0 1rem;
  max-width: 22rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  color: #fff;
}

.stitch-rails-visual-card__copy p {
  max-width: 18rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 244, 235, 0.86) !important;
}

.stitch-rails-visual-card__media {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(circle at 24% 28%, rgba(132, 244, 227, 0.6), transparent 12%),
    radial-gradient(circle at 40% 34%, rgba(91, 54, 20, 0.56), transparent 18%),
    radial-gradient(circle at 56% 40%, rgba(124, 236, 223, 0.58), transparent 11%),
    radial-gradient(circle at 62% 58%, rgba(36, 34, 28, 0.62), transparent 20%),
    radial-gradient(circle at 76% 26%, rgba(127, 238, 221, 0.48), transparent 10%),
    linear-gradient(135deg, rgba(126, 71, 14, 0.08), rgba(28, 52, 70, 0.55));
}

.stitch-rails-visual-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(155, 69, 0, 0.95), rgba(155, 69, 0, 0.2) 38%, rgba(41, 63, 78, 0.3));
}

.stitch-rails-visual-card__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
}

.stitch-rails-visual-card__glow--one {
  width: 16rem;
  height: 10rem;
  top: 12%;
  right: 8%;
  transform: rotate(-18deg);
  background:
    radial-gradient(circle at 40% 35%, rgba(144, 255, 242, 0.78), transparent 16%),
    radial-gradient(circle at 56% 52%, rgba(44, 28, 15, 0.4), transparent 28%),
    radial-gradient(circle at 72% 38%, rgba(138, 246, 230, 0.58), transparent 10%);
}

.stitch-rails-visual-card__glow--two {
  width: 12rem;
  height: 8rem;
  bottom: 10%;
  right: 16%;
  transform: rotate(20deg);
  background:
    radial-gradient(circle at 30% 42%, rgba(32, 25, 16, 0.42), transparent 24%),
    radial-gradient(circle at 58% 48%, rgba(117, 230, 217, 0.48), transparent 14%);
}

.stitch-rails-visual-card__glow--three {
  width: 6rem;
  height: 6rem;
  right: 8%;
  top: 18%;
  box-shadow:
    0 0 0 1px rgba(186, 230, 226, 0.3),
    0 0 0 0.9rem rgba(186, 230, 226, 0.05),
    0 0 0 1.8rem rgba(186, 230, 226, 0.03);
}

.stitch-rails-cta__panel {
  position: relative;
  overflow: hidden;
  min-height: 16.5rem;
  display: grid;
  align-items: center;
  padding: 2.6rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(90deg, rgba(144, 77, 12, 0.96) 0%, rgba(150, 80, 11, 0.95) 48%, rgba(56, 87, 108, 0.92) 100%);
  box-shadow: 0 24px 56px rgba(58, 39, 23, 0.2);
}

.stitch-rails-cta__copy {
  position: relative;
  z-index: 2;
  max-width: 25rem;
}

.stitch-rails-cta__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  color: #fff;
}

.stitch-rails-cta__copy p {
  margin: 0 0 1.75rem;
  max-width: 18rem;
  color: rgba(255, 244, 235, 0.9) !important;
  font-size: 1.15rem;
  line-height: 1.5;
}

.stitch-rails-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  background: #fff;
  color: #9b4500;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.stitch-rails-cta__button:hover,
.stitch-rails-cta__button:focus {
  color: #7d3800;
  background: #fff8f3;
}

.stitch-rails-cta__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stitch-rails-blob,
.stitch-rails-ring {
  position: absolute;
  border-radius: 999px;
}

.stitch-rails-blob--one {
  width: 26rem;
  height: 15rem;
  right: 6%;
  top: -6%;
  background:
    radial-gradient(circle at 40% 35%, rgba(126, 240, 225, 0.72), transparent 20%),
    radial-gradient(circle at 56% 52%, rgba(61, 39, 20, 0.48), transparent 32%),
    radial-gradient(circle at 62% 38%, rgba(153, 248, 231, 0.62), transparent 13%),
    radial-gradient(circle at 72% 62%, rgba(130, 243, 232, 0.58), transparent 12%),
    radial-gradient(circle at 78% 24%, rgba(127, 238, 221, 0.5), transparent 10%);
  filter: blur(2px);
  transform: rotate(-14deg);
  opacity: 0.9;
}

.stitch-rails-blob--two {
  width: 17rem;
  height: 11rem;
  right: 14%;
  bottom: -10%;
  background:
    radial-gradient(circle at 30% 40%, rgba(31, 24, 16, 0.42), transparent 28%),
    radial-gradient(circle at 55% 48%, rgba(130, 243, 232, 0.44), transparent 18%),
    radial-gradient(circle at 72% 34%, rgba(111, 222, 210, 0.52), transparent 16%);
  filter: blur(6px);
  transform: rotate(18deg);
}

.stitch-rails-blob--three {
  width: 13rem;
  height: 13rem;
  right: -2%;
  top: 8%;
  background:
    radial-gradient(circle at 40% 40%, rgba(168, 255, 245, 0.64), transparent 18%),
    radial-gradient(circle at 58% 64%, rgba(96, 214, 202, 0.4), transparent 16%);
  filter: blur(3px);
}

.stitch-rails-ring {
  width: 7rem;
  height: 7rem;
  right: 2.5rem;
  top: 4.2rem;
  border: 1px solid rgba(186, 230, 226, 0.26);
  box-shadow:
    0 0 0 1rem rgba(186, 230, 226, 0.05),
    0 0 0 2.2rem rgba(186, 230, 226, 0.03);
}

@media (max-width: 991.98px) {
  .stitch-rails-hero {
    grid-template-columns: 1fr;
  }

  .stitch-rails-types__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stitch-rails-visual-card {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .stitch-rails-hero__panel,
  .stitch-rails-type-card,
  .stitch-rails-visual-card__copy {
    padding: 1.5rem;
  }

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

  .stitch-rails-visual-card {
    grid-column: auto;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .stitch-rails-visual-card__media {
    min-height: 16rem;
  }

  .stitch-rails-cta__panel {
    padding: 1.75rem;
  }

  .stitch-rails-cta__copy p {
    max-width: none;
  }

  .stitch-rails-blob--one {
    width: 18rem;
    height: 11rem;
    right: -8%;
    top: 8%;
  }

  .stitch-rails-blob--two {
    width: 12rem;
    height: 8rem;
    right: 6%;
  }

  .stitch-rails-ring {
    right: 1rem;
    top: auto;
    bottom: 1.5rem;
  }
}
