/* Root Variables */
:root {
  --page-width: 1120px;
  --st-header-offset: 72px;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-accent: #f28b3d;
  --color-accent-hover: #ec7b2a;
  --color-accent-pressed: #db6b1f;
  --color-accent-soft: #fde6d5;
  --color-ring: rgba(242, 139, 61, 0.35);
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --st-public-bg: #f8f4ed;
  --st-public-bg-soft: #fcfaf7;
  --st-public-surface: rgba(255, 255, 255, 0.88);
  --st-public-surface-strong: rgba(255, 255, 255, 0.94);
  --st-public-surface-muted: rgba(255, 255, 255, 0.72);
  --st-public-text: #0f172a;
  --st-public-muted: #526071;
  --st-public-border: rgba(15, 23, 42, 0.12);
  --st-public-border-strong: rgba(15, 23, 42, 0.18);
  --st-public-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 18px 40px rgba(15, 23, 42, 0.07);
  --st-public-shadow-soft: 0 1px 0 rgba(15, 23, 42, 0.03), 0 12px 28px rgba(15, 23, 42, 0.05);
  --st-public-accent-soft: rgba(242, 139, 61, 0.12);
  --st-public-accent-rose: rgba(251, 113, 133, 0.12);
  --st-public-shell-x: clamp(18px, 3.2vw, 28px);
  --st-public-shell-top: clamp(34px, 5vw, 52px);
  --st-public-shell-bottom: clamp(68px, 8vw, 96px);
  --st-public-section-gap: clamp(28px, 4vw, 42px);
  --st-public-card-gap: clamp(14px, 2vw, 18px);
  --st-public-card-pad: clamp(22px, 3vw, 32px);
  --st-public-subcard-pad: clamp(16px, 2vw, 22px);
  --st-public-header-gap: clamp(10px, 1.8vw, 14px);
}

/* Base / Reset */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding-top: var(--st-header-offset);
  background: var(--color-bg);
  color: var(--color-text);
}

.st-public-page-scope {
  position: relative;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--st-public-shell-top) var(--st-public-shell-x) var(--st-public-shell-bottom);
  display: grid;
  gap: var(--st-public-section-gap);
  background:
    radial-gradient(960px 360px at 8% 0%, rgba(242, 139, 61, 0.18), transparent 58%),
    radial-gradient(880px 320px at 92% 4%, rgba(251, 113, 133, 0.10), transparent 52%),
    linear-gradient(180deg, var(--st-public-bg-soft) 0%, #f7f4ee 22%, #f8fafc 60%, #f6f7fb 100%);
  color: var(--st-public-text);
  border-radius: 32px;
}

.shell h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card .subtitle,
.subtitle {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Layout */
.shell {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.home-shell {
  padding-top: 48px;
}

.home-grid {
  display: grid;
  gap: 48px;
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 560px;
}

.home-aside {
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
  margin-top: 6px;
}

.home-cards {
  display: grid;
  gap: 12px;
}

.home-aside .right-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 560px;
}

.waitlist-accordion {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.waitlist-choice {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.waitlist-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.waitlist-panel.is-open {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
}

/* Components */
.card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.st-public-page-scope h1,
.st-public-page-scope h2,
.st-public-page-scope h3,
.st-public-page-scope h4 {
  color: var(--st-public-text);
}

.st-public-page-scope > * {
  min-width: 0;
}

.st-public-page-scope > .mt-8,
.st-public-page-scope > .card.mt-8,
.st-public-page-scope > section.mt-8,
.st-public-page-scope > div.mt-8,
.st-public-page-scope > .grid.mt-8 {
  margin-top: 0 !important;
}

.st-public-page-header {
  display: grid;
  gap: var(--st-public-header-gap);
  max-width: 760px;
}

.st-public-page-header--compact {
  max-width: 640px;
}

.st-public-page-header--legal {
  max-width: 820px;
}

.st-public-page-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.st-public-page-header .subtitle {
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.72;
}

.st-public-page-header .pill {
  justify-self: start;
}

.st-public-page-header .divider {
  margin-top: 2px;
}

.st-public-page-header::after {
  content: "";
  width: clamp(88px, 14vw, 124px);
  height: 1px;
  background: linear-gradient(90deg, rgba(242, 139, 61, 0.65), rgba(242, 139, 61, 0));
  opacity: 0.9;
}

.st-public-page-scope > .grid {
  align-items: start;
  gap: clamp(18px, 2.2vw, 24px);
}

.st-public-page-scope .subtitle,
.st-public-page-scope .meta,
.st-public-page-scope .text-slate-600,
.st-public-page-scope .text-slate-500,
.st-public-page-scope .text-slate-700 {
  color: var(--st-public-muted);
}

.st-public-page-scope .pill {
  gap: 8px;
  padding: 8px 12px;
  border-color: var(--st-public-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 238, 0.92));
  color: #8c5a29;
  box-shadow: var(--st-public-shadow-soft);
}

.st-public-page-scope .pill-dot {
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(242, 139, 61, 0.16);
}

.st-public-page-scope .card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--st-public-card-pad);
  border-color: var(--st-public-border);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(242, 139, 61, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 238, 0.92));
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 14px 30px rgba(15, 23, 42, 0.055);
}

.st-public-page-scope > .grid > .card,
.st-public-page-scope > .mt-8.grid > section.card,
.st-public-page-scope > section.card,
.st-public-page-scope > div.card,
.st-public-page-scope > .card {
  backdrop-filter: blur(8px);
}

.st-public-page-scope .card::before,
.st-public-page-scope article.rounded-2xl::before,
.st-public-page-scope a.rounded-2xl::before,
.st-public-page-scope .rounded-2xl.border::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(242, 139, 61, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: -1;
}

.st-public-page-scope .rounded-2xl.border,
.st-public-page-scope .rounded-2xl[class*="border-slate"],
.st-public-page-scope article.rounded-2xl,
.st-public-page-scope a.rounded-2xl {
  position: relative;
  overflow: hidden;
  padding: var(--st-public-subcard-pad);
  border-color: var(--st-public-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 246, 240, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.st-public-page-scope a.rounded-2xl:hover,
.st-public-page-scope article.rounded-2xl:hover,
.st-public-page-scope .rounded-2xl.border:hover {
  border-color: var(--st-public-border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 239, 0.92));
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), 0 12px 24px rgba(15, 23, 42, 0.05);
}

.st-public-page-scope a.inline-flex.rounded-full.border,
.st-public-page-scope .inline-flex.rounded-full.border {
  border-color: var(--st-public-border);
  background: var(--st-public-surface-strong);
  color: var(--st-public-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.st-public-page-scope a.inline-flex.rounded-full.border:hover,
.st-public-page-scope .inline-flex.rounded-full.border:hover {
  border-color: var(--st-public-border-strong);
  color: var(--st-public-text);
  background: #fffdf9;
}

.st-public-page-scope .divider {
  width: 72px;
  background: linear-gradient(90deg, rgba(242, 139, 61, 0.85), rgba(251, 113, 133, 0.6));
}

.st-public-page-scope .waitlist-form {
  max-width: 760px;
  gap: 12px;
  padding: var(--st-public-card-pad);
  border-radius: 26px;
  border: 1px solid var(--st-public-border);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(242, 139, 61, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 238, 0.92));
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 14px 30px rgba(15, 23, 42, 0.055);
}

.st-public-page-scope .waitlist-input {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--st-public-border);
  color: var(--st-public-text);
}

.st-public-page-scope .waitlist-input:focus {
  border-color: rgba(242, 139, 61, 0.6);
  box-shadow: 0 0 0 4px rgba(242, 139, 61, 0.16);
}

.st-public-page-scope .waitlist-input::placeholder {
  color: #7c8798;
}

.st-public-page-scope .waitlist-result {
  color: var(--st-public-text);
}

.st-contact-page .st-contact-page__form {
  max-width: 760px;
}

.st-contact-page .st-contact-page__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 6px;
}

.st-contact-page .st-contact-page__submit {
  min-width: 236px;
  max-width: 284px;
  min-height: 50px;
  height: 50px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff8f1;
  background: linear-gradient(135deg, #f59b42 0%, #eb6f4d 100%);
  box-shadow:
    0 16px 30px rgba(235, 111, 77, 0.2),
    0 2px 6px rgba(15, 23, 42, 0.08);
}

.st-contact-page .st-contact-page__submit:hover {
  background: linear-gradient(135deg, #f08b33 0%, #e56347 100%);
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(235, 111, 77, 0.24),
    0 4px 10px rgba(15, 23, 42, 0.1);
}

.st-contact-page .st-contact-page__submit:active {
  background: linear-gradient(135deg, #df7823 0%, #d5573d 100%);
  transform: translateY(1px);
  box-shadow:
    0 10px 18px rgba(235, 111, 77, 0.18),
    0 1px 4px rgba(15, 23, 42, 0.08);
}

.st-contact-page .st-contact-page__result {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  max-width: 44ch;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.74);
  animation: st-contact-result-fade 220ms ease-out;
}

.st-contact-page .st-contact-page__result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: rgba(242, 139, 61, 0.14);
  color: #c85d2a;
  box-shadow: inset 0 0 0 1px rgba(235, 111, 77, 0.16);
}

.st-contact-page .st-contact-page__result-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}

.st-contact-page .st-contact-page__result--error {
  color: #8f3d2b;
}

@keyframes st-contact-result-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.st-public-page-scope .st-public-page__hero-frame {
  margin-bottom: 0;
  border-color: var(--st-public-border);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(242, 139, 61, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 246, 250, 0.96));
  box-shadow: var(--st-public-shadow);
}

.st-public-page-scope .st-public-page__hero-frame img {
  aspect-ratio: 16 / 8.6;
}

.st-public-page-legal {
  max-width: 920px;
}

.st-public-page-richtext {
  max-width: 72ch;
}

.st-public-page-richtext h2 {
  margin-bottom: 0.85rem;
}

.st-public-page-richtext ul,
.st-public-page-richtext ol {
  padding-left: 1.35rem;
}

.st-public-page-scope :is(.card, article.rounded-2xl, a.rounded-2xl, .rounded-2xl.border) > .text-xs.font-semibold.uppercase {
  color: #9a612d;
  letter-spacing: 0.16em;
}

.st-public-page-scope :is(.card, article.rounded-2xl, a.rounded-2xl, .rounded-2xl.border) :is(h2, h3) {
  text-wrap: balance;
  line-height: 1.08;
}

.st-public-page-scope :is(.card, article.rounded-2xl, a.rounded-2xl, .rounded-2xl.border) :is(p, li) {
  line-height: 1.68;
}

.st-public-page-scope a.rounded-2xl,
.st-public-page-scope article.rounded-2xl,
.st-public-page-scope .card,
.st-public-page-scope .waitlist-form {
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease,
    opacity 220ms ease;
}

.st-public-motion-ready .st-public-motion-item {
  --st-motion-distance: 22px;
  --st-motion-duration: 720ms;
  --st-motion-delay: 0ms;
  transition:
    opacity var(--st-motion-duration) cubic-bezier(0.22, 1, 0.36, 1) var(--st-motion-delay),
    transform var(--st-motion-duration) cubic-bezier(0.22, 1, 0.36, 1) var(--st-motion-delay);
}

.st-public-motion-ready .st-public-motion-item:not(.st-public-motion-visible) {
  opacity: 0;
  transform: translateY(var(--st-motion-distance));
}

.st-public-motion-ready .st-public-motion-item.st-public-motion-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .st-public-motion-ready .st-public-motion-item,
  .st-public-page-scope a.rounded-2xl,
  .st-public-page-scope article.rounded-2xl,
  .st-public-page-scope .card,
  .st-public-page-scope .waitlist-form {
    transition: none !important;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #22c55e;
}



.st-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-accent);
  text-decoration: none;
}

/* Shared header brand: logo plus text link */
.st-brand__logo {
  display: block;
  width: clamp(24px, 2vw, 30px);
  height: clamp(24px, 2vw, 30px);
  flex: 0 0 auto;
  object-fit: contain;
}

.st-brand__text {
  display: inline-block;
}

.st-nav {
  justify-self: center;
  display: none;
  align-items: center;
  gap: 18px;
}

.st-navlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

.st-navlink:hover {
  color: var(--color-text);
}

.st-navlink__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.st-actions {
  justify-self: end;
  display: none;
  align-items: center;
  gap: 12px;
}

.st-logout-form {
  margin: 0;
}

.st-btn-primary-sm,
.st-btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.st-btn-primary-sm {
  background: var(--color-text);
  color: var(--color-bg);
}

.st-btn-ghost-sm {
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
}

.st-btn__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.st-iconbtn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.st-iconbtn__icon {
  width: 18px;
  height: 18px;
}

.st-mobile {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.st-mobile__inner {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 14px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.st-mobile__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.st-btn-full {
  width: 100%;
}

.st-brand:focus-visible,
.st-navlink:focus-visible,
.st-btn-primary-sm:focus-visible,
.st-btn-ghost-sm:focus-visible,
.st-iconbtn:focus-visible {
  outline: 2px solid rgba(107, 114, 128, 0.45);
  outline-offset: 2px;
}

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

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--color-text);
}

.site-footer .st-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-accent);
  text-decoration: none;
}

.site-footer .st-footer-brand:hover,
.site-footer .st-footer-brand:focus-visible {
  color: var(--color-accent);
}

.st-footer-brand__logo {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
}

.st-footer-brand__text {
  display: inline-block;
  line-height: 1;
}

.home-shell .home-title {
  margin: 0;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.home-subtitle {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 560px;
}

.home-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
}

.home-list .list-bullet {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.home-secondary {
  font-size: 13px;
  color: var(--color-text-muted);
}

.home-secondary span {
  color: inherit;
}

.home-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.home-meta span {
  color: inherit;
}

.home-aside .right-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.home-aside .right-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--color-surface);
}

.home-aside .right-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.home-aside .right-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.home-aside .tag {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
}

.home-aside .right-footer {
  margin-top: 18px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.waitlist-input {
  width: 100%;
  max-width: 560px;
  height: 48px;
  min-height: 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.2;
  outline: none;
}

.waitlist-input:focus {
  border-color: var(--color-text);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.35);
}

.waitlist-input::placeholder {
  color: var(--color-text-muted);
}

#waitlist-result,
.waitlist-result {
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-text);
}

.waitlist-back {
  margin-top: 8px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  align-self: flex-start;
}

.waitlist-success {
  text-align: center;
}

/* Utilities */
.divider,
.home-divider {
  width: 56px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
}

.meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Media Queries */
@media (max-width: 720px) {
  .shell {
    padding: 28px 16px 60px;
  }

  .card {
    padding: 24px;
  }

  .card h1 {
    font-size: 26px;
  }

  .st-public-page-scope {
    padding-top: 30px;
    padding-bottom: 58px;
    border-radius: 26px;
    gap: 24px;
  }

  .st-public-page-header {
    gap: 10px;
  }

  .st-public-page-header::after {
    width: 88px;
  }

  .st-public-page-scope .waitlist-form {
    padding: 20px;
    border-radius: 22px;
  }

  .st-public-page-scope .card {
    padding: 22px;
    border-radius: 22px;
  }

  .st-public-page-scope .rounded-2xl.border,
  .st-public-page-scope .rounded-2xl[class*="border-slate"],
  .st-public-page-scope article.rounded-2xl,
  .st-public-page-scope a.rounded-2xl {
    padding: 16px;
  }

  .st-public-page-scope .st-public-page__hero-frame {
    border-radius: 24px;
  }

  .st-contact-page .st-contact-page__actions {
    margin-top: 4px;
  }

  .st-contact-page .st-contact-page__submit {
    min-width: 100%;
    max-width: none;
  }

  .st-contact-page .st-contact-page__result {
    max-width: none;
  }

  .st-public-motion-ready .st-public-motion-item {
    --st-motion-distance: 12px;
    --st-motion-duration: 460ms;
    --st-motion-delay: 0ms;
  }
}

@media (min-width: 768px) {
  .st-nav {
    display: inline-flex;
  }

  .st-actions {
    display: inline-flex;
  }

  .st-header__toggle {
    display: none;
  }

  .st-mobile {
    display: none;
  }
}

@media (min-width: 960px) {
  .home-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }

  .home-aside {
    border-top: none;
    border-left: 1px solid var(--color-border);
    padding-top: 0;
    padding-left: 32px;
    margin-top: 0;
  }

  .home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-shell .home-title {
    font-size: 34px;
  }

  .home-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Blog rich HTML */
.st-toc {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.st-toc__item {
  position: relative;
  padding: 6px 0 6px 12px;
  border-left: 2px solid #e2e8f0;
}

.st-toc__item--h2 {
  border-left-color: #cbd5e1;
}

.st-toc__item--h3 {
  margin-left: 10px;
  border-left-style: dotted;
  border-left-color: #cbd5e1;
}

.st-toc__link {
  display: inline-block;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(242, 139, 61, 0.5);
  text-underline-offset: 5px;
  text-decoration-skip-ink: auto;
  color: #0f172a;
}

.st-toc__link:hover {
  color: #0f172a;
  text-decoration-color: rgba(242, 139, 61, 0.85);
}

.st-toc__link.is-active {
  font-weight: 800;
  text-decoration-color: rgba(242, 139, 61, 1);
}

.st-toc__link:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.st-toc__item.is-active {
  border-left-color: var(--color-accent);
}

.st-toc__item.is-active .st-toc__link {
  color: #0f172a;
}

.st-richtext {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
}

.st-richtext > *:first-child {
  margin-top: 0;
}

.st-richtext p {
  margin: 0 0 16px;
  color: var(--color-text);
}

.st-richtext h2 {
  margin: 38px 0 14px;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #0f172a;
  scroll-margin-top: 96px;
}

.st-richtext h3 {
  margin: 26px 0 12px;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #0f172a;
  scroll-margin-top: 96px;
}

.st-richtext ul,
.st-richtext ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--color-text);
}

.st-richtext li {
  margin: 6px 0;
}

.st-richtext a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.st-richtext hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 26px 0;
}

.st-richtext strong {
  color: #0f172a;
}

.st-richtext blockquote {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--color-border);
  background: #f8fafc;
  border-radius: var(--radius-sm);
  color: #334155;
}

.st-richtext pre {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  background: #0b1220;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  overflow: auto;
  font-size: 13px;
  line-height: 1.5;
}

.st-richtext code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

.st-richtext img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.st-richtext h2:target,
.st-richtext h3:target {
  box-shadow: inset 0 -2px 0 rgba(242, 139, 61, 0.35);
}

.st-richtext h2.st-heading-active,
.st-richtext h3.st-heading-active {
  font-weight: 800;
}

/* About page Wagtail rich text output */
.cms-richtext {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
}

.cms-richtext > *:first-child {
  margin-top: 0;
}

.cms-richtext p {
  margin: 0 0 16px;
  color: var(--color-text);
}

.cms-richtext h2 {
  margin: 38px 0 14px;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.cms-richtext h3 {
  margin: 26px 0 12px;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.cms-richtext ul,
.cms-richtext ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--color-text);
}

.cms-richtext ul {
  list-style: disc;
}

.cms-richtext ol {
  list-style: decimal;
}

.cms-richtext li {
  margin: 6px 0;
}

.cms-richtext a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === Frosted Header (Apple smooth) === */
.st-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--st-header-offset);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.48);
  border-bottom: 1px solid rgba(148, 163, 184, 0.34);
  box-shadow: 0 0 0 rgba(15, 23, 42, 0);
  transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.st-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  pointer-events: none;
  z-index: -1;
}

.st-header.is-scrolled {
  background: rgba(255, 255, 255, 0.58);
  border-bottom-color: rgba(148, 163, 184, 0.44);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body .st-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  column-gap: clamp(12px, 1.8vw, 20px);
  padding: 0 clamp(16px, 2vw, 24px);
  min-height: var(--st-header-offset);
  line-height: 1.25;
}

body .st-header.is-scrolled .st-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  column-gap: clamp(12px, 1.8vw, 20px);
  padding: 0 clamp(16px, 2vw, 24px);
  min-height: var(--st-header-offset);
  line-height: 1.25;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .st-header { background: rgba(255, 255, 255, 0.9); }
  .st-header.is-scrolled { background: rgba(255, 255, 255, 0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .st-header { transition: none; }
}

/* === Mobile reliability: fixed header + reserved space === */
@media (max-width: 767px) {
  :root { --st-header-offset: 64px; }

  body.st-has-fixed-mobile-header {
    padding-top: var(--st-header-offset);
  }

  .st-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    transform: translateZ(0);
  }

  .st-header__inner {
    padding: 10px 16px;
    min-height: var(--st-header-offset);
  }

  .st-header.is-scrolled .st-header__inner {
    padding: 7px 16px;
    min-height: 60px;
  }

  .st-brand__logo {
    height: 24px;
  }

  .st-footer-brand__logo {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 1024px) {
  .st-footer-brand__logo {
    width: 32px;
    height: 32px;
  }
}
