/* Girdle — modern 2026 light theme */

:root {
  --g-bg: #fafafa;
  --g-surface: #ffffff;
  --g-primary: #2563eb;
  --g-primary-hover: #1d4ed8;
  --g-primary-soft: #eff6ff;
  --g-accent: #06b6d4;
  --g-heading: #09090b;
  --g-body: #52525b;
  --g-muted: #71717a;
  --g-border: #e4e4e7;
  --g-border-subtle: rgba(0, 0, 0, 0.06);
  --g-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --g-shadow-lg: 0 8px 32px -8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
  --g-radius: 0.75rem;
  --g-radius-lg: 1rem;
  --g-radius-xl: 1.25rem;
  --g-sidebar: #18181b;
  --g-font: "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ── Base ── */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  color: var(--g-body);
  background: var(--g-bg);
  font-family: var(--g-font);
  line-height: 1.6;
}
h1, h2, h3, h4, .text-heading {
  color: var(--g-heading);
  font-family: var(--g-font);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
p, li { color: var(--g-body); }
.font-display, .girdle-wordmark { font-family: var(--g-font); font-weight: 700; letter-spacing: -0.02em; }
.font-secondary { font-family: var(--g-font); }

.text-gradient {
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--g-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ── */
.btn-primary, .btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--g-radius); background: var(--g-primary);
  padding: 0.6875rem 1.375rem; font-family: var(--g-font);
  font-size: 0.875rem; font-weight: 600; color: #fff;
  border: none; box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(37, 99, 235, 0.15);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover, .btn-accent:hover {
  background: var(--g-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}
.btn-brand, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--g-radius); border: 1px solid var(--g-border);
  background: var(--g-surface); padding: 0.6875rem 1.375rem;
  font-family: var(--g-font); font-size: 0.875rem; font-weight: 600;
  color: var(--g-heading); box-shadow: var(--g-shadow);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-brand:hover, .btn-outline:hover {
  background: var(--g-bg); border-color: #d4d4d8; transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--g-radius); border: 1px solid var(--g-border);
  background: var(--g-surface); padding: 0.625rem 1rem;
  font-family: var(--g-font); font-size: 0.875rem; font-weight: 500;
  color: var(--g-body); transition: background 0.15s;
}
.btn-secondary:hover { background: var(--g-bg); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--g-radius); padding: 0.5rem 1rem;
  font-family: var(--g-font); font-size: 0.875rem; font-weight: 500;
  color: var(--g-body); transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); color: var(--g-heading); }

/* ── Forms & cards ── */
.input-field {
  display: block; width: 100%; border-radius: var(--g-radius);
  border: 1px solid var(--g-border); background: var(--g-surface);
  padding: 0.625rem 0.875rem; font-family: var(--g-font); font-size: 0.9375rem;
  color: var(--g-heading); transition: border-color 0.15s, box-shadow 0.15s;
}
.input-field:focus {
  border-color: var(--g-primary); outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.card {
  border-radius: var(--g-radius-lg); border: 1px solid var(--g-border-subtle);
  background: var(--g-surface); padding: 1.5rem;
  box-shadow: var(--g-shadow);
}
.card-dashed {
  border-radius: var(--g-radius-lg); border: 2px dashed var(--g-border);
  background: var(--g-bg); padding: 1.5rem; text-align: center;
}

/* ── Icons & utilities ── */
.icon-btn {
  display: inline-flex; height: 2rem; width: 2rem; align-items: center;
  justify-content: center; border-radius: var(--g-radius); transition: background 0.15s, color 0.15s;
}
.icon-btn-muted { color: var(--g-muted); }
.icon-btn-muted:hover { background: var(--g-primary-soft); color: var(--g-primary); }
.icon-btn-danger { color: var(--g-muted); }
.icon-btn-danger:hover { background: #fef2f2; color: #dc2626; }

.badge, .pill {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border-radius: 9999px; background: var(--g-primary-soft);
  padding: 0.25rem 0.75rem; font-family: var(--g-font);
  font-size: 0.75rem; font-weight: 600; color: var(--g-primary);
  border: 1px solid rgba(37, 99, 235, 0.12);
}
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--g-primary); animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.link-accent {
  font-family: var(--g-font); font-size: 0.875rem; font-weight: 600;
  color: var(--g-primary); transition: color 0.15s;
}
.link-accent:hover { color: var(--g-primary-hover); }
.text-muted { color: var(--g-muted); }
.text-heading { color: var(--g-heading); font-weight: 700; letter-spacing: -0.02em; }

.alert-error {
  border-radius: var(--g-radius); border: 1px solid #fecaca;
  background: #fef2f2; padding: 0.75rem 1rem; font-size: 0.875rem; color: #dc2626;
}
.alert-warn {
  border-radius: var(--g-radius); border: 1px solid #fde68a;
  background: #fffbeb; padding: 0.75rem 1rem; font-size: 0.875rem; color: #b45309;
}
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--g-radius); background: #dc2626; padding: 0.625rem 1rem;
  font-size: 0.875rem; font-weight: 600; color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: background .2s;
}
.btn-danger:hover { background: #b91c1c; }

/* ── Modals ── */
.girdle-modal {
  position: fixed; inset: 0; z-index: 90;
}
#girdle-confirm-modal { z-index: 100; }

.girdle-modal-panel-error {
  border-color: #fecaca; background: #fff;
}
.girdle-modal-panel-error [data-message-title] { color: #dc2626; }
.girdle-modal-panel-warn {
  border-color: #fde68a; background: #fff;
}
.girdle-modal-panel-warn [data-message-title] { color: #b45309; }
.girdle-modal-panel-success {
  border-color: #bbf7d0; background: #fff;
}
.girdle-modal-panel-success [data-message-title] { color: #15803d; }

/* ── App shell ── */
.app-shell { background: var(--g-bg); color: var(--g-heading); font-family: var(--g-font); min-height: 100vh; }

.app-content {
  position: relative; z-index: 10;
  min-width: 0; min-height: 100vh;
  width: 100%;
}
@media (min-width: 1024px) {
  .app-content { margin-left: 16rem; width: calc(100% - 16rem); }
}

.app-mobile-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; height: 3.5rem; align-items: center; gap: 0.75rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--g-border-subtle);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
}
@media (min-width: 1024px) {
  .app-mobile-topbar { display: none; }
}

.app-study-header {
  position: sticky; z-index: 30; top: 0;
  border-bottom: 1px solid var(--g-border-subtle);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
}
@media (max-width: 1023px) {
  .app-study-header { top: 3.5rem; }
}

.app-study-tabs {
  display: flex; gap: 0.25rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.app-study-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .app-study-tabs { gap: 0.5rem; } }

.tab-active { border-color: var(--g-primary); color: var(--g-primary); font-weight: 600; }
.tab-inactive { border-color: transparent; color: var(--g-muted); }
.tab-inactive:hover { border-color: var(--g-border); color: var(--g-heading); }
.border-subtle { border-color: var(--g-border); }

#app-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  width: 16rem;
  display: flex;
  flex-direction: column;
  background: var(--g-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
@media (min-width: 1024px) {
  #app-sidebar { transform: translateX(0) !important; }
}
#app-sidebar::before {
  content: ''; position: absolute; bottom: -4rem; left: -2rem; width: 10rem; height: 14rem;
  opacity: 0.08; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 120' fill='none'%3E%3Cpath d='M20 0c8 7 8 16 0 23s-8 16 0 23 8 16 0 23 8 16 0 23 8 16 0 23' stroke='%2322d3ee' stroke-width='3'/%3E%3Cpath d='M60 0c-8 7-8 16 0 23s8 16 0 23-8 16 0 23 8 16 0 23-8 16 0 23' stroke='%232563eb' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;
}
#app-sidebar .sidebar-brand { position: relative; z-index: 1; }
#app-sidebar .sidebar-nav {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 0.125rem;
}
#app-sidebar .sidebar-footer { position: relative; z-index: 1; }
#app-sidebar .nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  border-left: 3px solid transparent;
  font-family: var(--g-font);
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
#app-sidebar .nav-link .nav-icon {
  width: 1rem; height: 1rem; flex-shrink: 0; opacity: 0.85;
}
#app-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
#app-sidebar .nav-link.nav-active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-left-color: var(--g-accent);
}
#app-sidebar .nav-link.nav-active .nav-icon { opacity: 1; }
#app-sidebar .girdle-wordmark { color: #fff; }

/* ── Logo ── */
.girdle-mark { display: block; flex-shrink: 0; height: 2rem; width: 2rem; }
.girdle-logo-md .girdle-mark { height: 2.25rem; width: 2.25rem; }
.girdle-logo-lg .girdle-mark { height: 2.75rem; width: 2.75rem; }
.girdle-wordmark { font-weight: 700; letter-spacing: -0.03em; }

/* ── Public header ── */
.sp-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--g-border-subtle);
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px) saturate(180%);
}
.sp-header a.nav-link {
  font-family: var(--g-font); font-size: 0.875rem; font-weight: 500;
  color: var(--g-muted); transition: color 0.15s;
}
.sp-header a.nav-link:hover { color: var(--g-heading); }

/* ── Landing ── */
.landing-page {
  background: var(--g-bg); color: var(--g-body); min-height: 100%;
  overflow-x: hidden; position: relative;
}
.landing-page > section,
.landing-page > footer { position: relative; z-index: 1; }

.landing-hero {
  position: relative;
  padding-bottom: 4rem;
}
.landing-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(6, 182, 212, 0.08), transparent),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(37, 99, 235, 0.06), transparent);
  pointer-events: none;
}

.landing-hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 3rem; align-items: center;
  max-width: 72rem; margin: 0 auto; padding: 3rem 1.25rem 0;
}
@media (min-width: 1024px) {
  .landing-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; padding: 4rem 2rem 0; }
}

.landing-hero-copy h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
  color: var(--g-heading);
}
.landing-hero-copy .lead {
  font-size: 1.125rem; line-height: 1.7;
  color: var(--g-muted); margin-top: 1.5rem; max-width: 34rem;
}
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.landing-stats {
  display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid var(--g-border-subtle);
}
.landing-stat strong {
  display: block; font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--g-heading);
}
.landing-stat span { font-size: 0.8125rem; color: var(--g-muted); }

.landing-hero-grid-split {
  align-items: stretch;
}
@media (min-width: 1024px) {
  .landing-hero-grid-split { grid-template-columns: 1fr 1.1fr; }
}

/* Page-wide helix watermark */
.landing-helix-bg {
  pointer-events: none; position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.landing-helix-bg-svg {
  position: absolute; right: -8%; top: 10%; width: min(40vw, 22rem); height: 80vh;
  opacity: 0.09;
}

/* Helix image frame — cyan/blue tint on all clinical photos */
.helix-frame {
  position: relative; overflow: hidden; border-radius: var(--g-radius-xl);
  box-shadow: var(--g-shadow-lg), 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.helix-frame-hero { border-radius: var(--g-radius-xl); }
.helix-frame-img {
  display: block; width: 100%; object-fit: cover; aspect-ratio: 4/3;
}
.helix-frame-img-top { object-position: center 10%; }
.helix-frame-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(34, 211, 238, 0.22) 0%,
    rgba(37, 99, 235, 0.15) 35%,
    rgba(9, 9, 11, 0.08) 100%
  );
  mix-blend-mode: multiply;
}
.helix-frame-hero .helix-frame-shade,
.landing-hero-media-shade {
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.28) 0%,
    rgba(37, 99, 235, 0.4) 45%,
    rgba(9, 9, 11, 0.5) 100%
  );
  mix-blend-mode: normal;
}
.helix-frame-corner {
  position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 3;
  width: 2.5rem; height: 4rem; opacity: 0.85; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 64' fill='none'%3E%3Cpath d='M10 0c4 3.5 4 8 0 11.5s-4 8 0 11.5 4 8 0 11.5 4 8 0 11.5 4 8 0 11.5' stroke='%2322d3ee' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M30 0c-4 3.5-4 8 0 11.5s4 8 0 11.5-4 8 0 11.5 4 8 0 11.5-4 8 0 11.5' stroke='%232563eb' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5));
}

.helix-parallax-shade {
  background: linear-gradient(
    135deg,
    rgba(30, 64, 175, 0.82) 0%,
    rgba(6, 182, 212, 0.45) 50%,
    rgba(9, 9, 11, 0.78) 100%
  ) !important;
}

/* Path / trust / process helix accents */
.path-card-helix {
  position: relative; overflow: hidden;
}
.path-card-helix::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--g-primary) 0%, var(--g-accent) 100%);
}
.path-card-helix::after {
  content: ''; position: absolute; bottom: -2rem; right: -2rem; width: 6rem; height: 8rem;
  opacity: 0.06; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 120' fill='none'%3E%3Cpath d='M20 0c8 7 8 16 0 23s-8 16 0 23 8 16 0 23 8 16 0 23 8 16 0 23' stroke='%232563eb' stroke-width='3'/%3E%3Cpath d='M60 0c-8 7-8 16 0 23s8 16 0 23-8 16 0 23 8 16 0 23-8 16 0 23' stroke='%2322d3ee' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;
}

.process-step-helix { position: relative; overflow: hidden; }
.process-step-helix::after {
  content: ''; position: absolute; top: 1rem; right: 1rem; width: 2rem; height: 3rem;
  opacity: 0.12; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 64' fill='none'%3E%3Cpath d='M10 0c4 3.5 4 8 0 11.5s-4 8 0 11.5 4 8 0 11.5 4 8 0 11.5 4 8 0 11.5' stroke='%2322d3ee' stroke-width='2'/%3E%3Cpath d='M30 0c-4 3.5-4 8 0 11.5s4 8 0 11.5-4 8 0 11.5 4 8 0 11.5-4 8 0 11.5' stroke='%232563eb' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.trust-badge-helix { position: relative; overflow: hidden; }
.trust-badge-helix::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background: radial-gradient(circle at 100% 0%, var(--g-accent) 0%, transparent 60%);
}

/* Sparrow split hero media + helix */
.landing-hero-visual-wrap {
  position: relative; min-height: 420px;
}
@media (min-width: 1024px) { .landing-hero-visual-wrap { min-height: 520px; } }

.landing-hero-media {
  position: relative; height: 280px; border-radius: var(--g-radius-xl);
  overflow: hidden; border: 1px solid var(--g-border-subtle);
  box-shadow: var(--g-shadow-lg);
}
@media (min-width: 1024px) { .landing-hero-media { height: 100%; min-height: 480px; } }

.landing-hero-slides { position: absolute; inset: 0; }
.landing-hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: hero-fade 15s infinite;
}
.landing-hero-slide--a { background-position: center 20%; }
.landing-hero-slide--b { background-position: center center; }
.landing-hero-slide--c { background-position: 60% center; }
.landing-hero-slide:nth-child(1) { animation-delay: 0s; }
.landing-hero-slide:nth-child(2) { animation-delay: 5s; }
.landing-hero-slide:nth-child(3) { animation-delay: 10s; }
@keyframes hero-fade {
  0%, 28% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

.landing-hero-media-shade {
  position: absolute; inset: 0;
}
.landing-hero-helix {
  position: absolute; right: -12%; top: -12%; width: 58%; height: 125%;
  opacity: 0.55; pointer-events: none;
}

.landing-preview-overlap {
  position: absolute; bottom: -1.5rem; left: 1rem; right: 1rem; z-index: 2;
}
@media (min-width: 1024px) {
  .landing-preview-overlap { bottom: 2rem; left: -2rem; right: auto; width: min(100%, 22rem); }
}

/* Why section — Sparrow 3-col */
.why-grid {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1fr 1.1fr 1fr; gap: 3rem; }
}
.why-quote {
  font-size: 1.125rem; line-height: 1.7; color: var(--g-muted); font-style: italic;
}
.why-image { position: relative; }

/* Feature splits — Sparrow software layout */
.feature-grid { display: flex; flex-direction: column; gap: 4rem; }
.feature-split {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 768px) {
  .feature-split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .feature-split-reverse .feature-split-img { order: 2; }
  .feature-split-reverse .feature-split-body { order: 1; }
}
.feature-split-img .helix-frame { height: 100%; }
.feature-split-body {
  border-radius: var(--g-radius-lg); border: 1px solid var(--g-border-subtle);
  background: var(--g-surface); padding: 2rem; box-shadow: var(--g-shadow);
}

/* Process track with helix connector */
.process-track {
  display: grid; gap: 2rem;
}
@media (min-width: 768px) {
  .process-track { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 0; }
}
.process-step {
  border-radius: var(--g-radius-lg); border: 1px solid var(--g-border-subtle);
  background: var(--g-surface); padding: 1.75rem; box-shadow: var(--g-shadow);
  text-align: center;
}
@media (min-width: 768px) { .process-step { text-align: left; } }
.process-num {
  display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center;
  border-radius: var(--g-radius); font-size: 0.75rem; font-weight: 800;
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--g-accent) 100%);
  color: #fff; margin-bottom: 1rem;
}
.process-connector {
  display: none;
}
@media (min-width: 768px) {
  .process-connector {
    display: block; width: 3rem; height: 2px; margin-top: 3rem;
    background: linear-gradient(90deg, var(--g-primary), var(--g-accent));
    opacity: 0.4;
  }
}

/* Parallax CTA with helix */
.landing-parallax-cta {
  position: relative; overflow: hidden; min-height: 20rem;
}
.landing-parallax-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05);
}
.landing-parallax-shade {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.88) 0%, rgba(9, 9, 11, 0.75) 100%);
}
.landing-parallax-helix {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: min(32vw, 14rem); height: 75%; opacity: 0.28; pointer-events: none;
}
.landing-parallax-cta .btn-outline:hover {
  background: #fff; color: var(--g-primary); border-color: #fff;
}

/* Login split — Sparrow signin + helix (always split: stacked mobile, side-by-side desktop) */
.login-split {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr;
  background: var(--g-bg);
}
@media (min-width: 1024px) {
  .login-split {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
}
.login-split-media {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 11rem;
  height: 34vh;
  max-height: 300px;
}
@media (min-width: 768px) {
  .login-split-media {
    min-height: 14rem;
    height: 40vh;
    max-height: 380px;
  }
}
@media (min-width: 1024px) {
  .login-split-media {
    height: auto;
    min-height: 100vh;
    max-height: none;
  }
}
.login-split-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center top;
}
@media (min-width: 1024px) {
  .login-split-bg { background-position: center; }
}
.login-split-shade {
  position: absolute; inset: 0;
}
.login-split-helix {
  position: absolute; right: -10%; top: -5%; width: 55%; height: 110%;
  opacity: 0.4; pointer-events: none;
}
.login-split-tagline {
  position: absolute; bottom: 1.25rem; left: 1.25rem; right: 1.25rem; z-index: 2;
}
@media (min-width: 768px) {
  .login-split-tagline { bottom: 2rem; left: 2rem; right: 2rem; }
}
@media (min-width: 1024px) {
  .login-split-tagline { bottom: 3rem; left: 3rem; right: 3rem; }
}
.pill-on-dark {
  background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.pill-on-dark .pill-dot { background: #22d3ee; }

.login-split-form {
  display: flex; flex-direction: column; min-height: 0;
}
@media (min-width: 1024px) {
  .login-split-form { min-height: 100vh; }
}
.login-split-form .login-header {
  position: relative; flex-shrink: 0;
  display: flex; align-items: center;
  height: 3.5rem; padding: 0 1.25rem;
  border-bottom: 1px solid var(--g-border-subtle);
  background: rgba(255, 255, 255, 0.92);
}
@media (min-width: 640px) {
  .login-split-form .login-header { height: 4rem; padding: 0 2.5rem; }
}
.login-split-form .sp-header { position: relative; }
.login-split-form footer { border-top: none; padding-top: 0; background: transparent; }

/* Product preview mockup */
.landing-preview {
  position: relative;
}
.landing-preview-glow {
  position: absolute; inset: -20% -10%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.landing-preview-frame {
  position: relative; border-radius: var(--g-radius-xl);
  border: 1px solid var(--g-border-subtle);
  background: var(--g-surface);
  box-shadow: var(--g-shadow-lg);
  overflow: hidden;
}
.landing-preview-bar {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--g-border-subtle);
  background: #f4f4f5;
}
.landing-preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.landing-preview-dot:nth-child(1) { background: #fca5a5; }
.landing-preview-dot:nth-child(2) { background: #fde047; }
.landing-preview-dot:nth-child(3) { background: #86efac; }
.landing-preview-body { padding: 1.25rem; display: grid; gap: 0.875rem; }
.landing-preview-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.landing-preview-card {
  border-radius: var(--g-radius); border: 1px solid var(--g-border-subtle);
  background: var(--g-bg); padding: 1rem;
}
.landing-preview-card.wide { grid-column: 1 / -1; }
.landing-preview-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--g-muted);
}
.landing-preview-value {
  font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--g-heading); margin-top: 0.25rem;
}
.landing-preview-bar-chart {
  display: flex; align-items: flex-end; gap: 4px; height: 48px; margin-top: 0.75rem;
}
.landing-preview-bar-chart span {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--g-primary) 0%, rgba(37, 99, 235, 0.4) 100%);
}
.landing-preview-bar-chart span:nth-child(2) { height: 70%; }
.landing-preview-bar-chart span:nth-child(3) { height: 45%; }
.landing-preview-bar-chart span:nth-child(4) { height: 90%; }
.landing-preview-bar-chart span:nth-child(5) { height: 60%; }
.landing-preview-bar-chart span:nth-child(6) { height: 80%; }
.landing-preview-bar-chart span:nth-child(1) { height: 55%; }
.landing-preview-check {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--g-body); margin-top: 0.5rem;
}
.landing-preview-check::before {
  content: ''; width: 16px; height: 16px; border-radius: 4px;
  background: var(--g-primary); flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.landing-preview-float {
  position: absolute; z-index: 2;
  border-radius: var(--g-radius); border: 1px solid var(--g-border-subtle);
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  padding: 0.75rem 1rem; box-shadow: var(--g-shadow-lg);
  font-size: 0.8125rem; font-weight: 600; color: var(--g-heading);
  animation: float-y 4s ease-in-out infinite;
}
.landing-preview-float.top { top: -12px; right: -8px; }
.landing-preview-float.bottom { bottom: 24px; left: -16px; animation-delay: -2s; }
.landing-preview-float .sub { font-weight: 500; color: var(--g-muted); font-size: 0.75rem; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.landing-section { padding: 5rem 1.25rem; }
@media (min-width: 640px) { .landing-section { padding: 6rem 2rem; } }
.landing-section-inner { max-width: 72rem; margin: 0 auto; }
.landing-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800; letter-spacing: -0.03em;
}
.landing-section-lead {
  font-size: 1.0625rem; color: var(--g-muted); margin-top: 0.75rem; max-width: 36rem;
}

.bg-sp-light { background: var(--g-bg); }
.bg-sp-surface { background: var(--g-surface); }

.section-label {
  font-size: 0.8125rem; font-weight: 600; color: var(--g-primary);
  margin-bottom: 0.75rem;
}

.path-card {
  border-radius: var(--g-radius-lg); border: 1px solid var(--g-border-subtle);
  background: var(--g-surface); padding: 1.75rem;
  box-shadow: var(--g-shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  color: inherit; text-decoration: none; display: block;
}
.path-card:hover {
  color: inherit; transform: translateY(-4px);
  box-shadow: var(--g-shadow-lg); border-color: rgba(37, 99, 235, 0.2);
}
.path-card-featured {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(145deg, #eff6ff 0%, #ffffff 60%);
}
.path-icon {
  display: flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center;
  border-radius: var(--g-radius); background: var(--g-primary-soft);
  font-size: 1rem; font-weight: 800; color: var(--g-primary);
}

.bento-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; }
  .bento-card.span-2 { grid-column: span 2; }
}
.bento-card {
  border-radius: var(--g-radius-lg); border: 1px solid var(--g-border-subtle);
  background: var(--g-surface); padding: 1.75rem;
  box-shadow: var(--g-shadow); transition: box-shadow 0.2s;
}
.bento-card:hover { box-shadow: var(--g-shadow-lg); }
.bento-icon {
  display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center;
  border-radius: var(--g-radius); background: var(--g-primary-soft); color: var(--g-primary);
  margin-bottom: 1rem;
}

.step-card {
  border-radius: var(--g-radius-lg); border: 1px solid var(--g-border-subtle);
  background: var(--g-surface); padding: 1.75rem; box-shadow: var(--g-shadow);
}
.step-num {
  display: flex; height: 2rem; width: 2rem; align-items: center; justify-content: center;
  border-radius: var(--g-radius); background: var(--g-heading);
  font-size: 0.75rem; font-weight: 700; color: #fff;
}

.trust-badge {
  border-radius: var(--g-radius-lg); border: 1px solid var(--g-border-subtle);
  background: var(--g-surface); padding: 1.5rem; box-shadow: var(--g-shadow);
  transition: box-shadow 0.2s;
}
.trust-badge:hover { box-shadow: var(--g-shadow-lg); }
.trust-icon {
  display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center;
  border-radius: var(--g-radius); background: var(--g-primary-soft); color: var(--g-primary);
  margin-bottom: 0.75rem;
}

.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  margin-bottom: 0.625rem; line-height: 1.5; font-size: 0.9375rem;
}
.check-list li::before {
  content: ''; display: block; width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: 0.1rem;
  border-radius: 50%; background: var(--g-primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

.faq-item {
  border-radius: var(--g-radius-lg) !important;
  border: 1px solid var(--g-border-subtle) !important;
  transition: box-shadow 0.2s;
}
.faq-item[open] { box-shadow: var(--g-shadow); }
.faq-item summary {
  list-style: none; cursor: pointer;
  color: var(--g-heading); font-weight: 600; font-size: 0.9375rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

.cta-band {
  border-radius: var(--g-radius-xl);
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0891b2 100%);
  padding: 3rem 2.5rem; color: #fff;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 50%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h1, .cta-band h2, .cta-band h3, .cta-band h4 { color: #fff !important; }
.cta-band p { color: rgba(255, 255, 255, 0.85) !important; }
.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.4); color: #fff;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(4px);
}
.cta-band .btn-outline:hover { background: #fff; color: var(--g-primary); border-color: #fff; }

/* ── App pages (2026 theme) ── */
.label-field {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--g-heading); margin-bottom: 0.25rem;
}
.app-page-header {
  padding: 1rem 1rem 1.25rem;
  border-bottom: 1px solid var(--g-border-subtle);
  background: rgba(255, 255, 255, 0.88);
}
@media (min-width: 640px) { .app-page-header { padding: 1.25rem 2rem 1.5rem; } }
.app-page-header h1 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; }
@media (min-width: 640px) { .app-page-header h1 { font-size: 1.875rem; } }
.app-page-lead { margin-top: 0.375rem; font-size: 0.875rem; color: var(--g-muted); line-height: 1.5; }
.app-main { padding: 1.25rem 1rem 2rem; }
@media (min-width: 640px) { .app-main { padding: 1.5rem 2rem 2.5rem; } }

@media (max-width: 639px) {
  .stat-card-value { font-size: 1.375rem; word-break: break-word; }
  .stat-card { padding: 1rem 1.125rem; }
}

.trial-registry-link {
  color: var(--g-primary);
  text-decoration: none;
}
.trial-registry-link:hover { text-decoration: underline; }
.trial-registry-title {
  color: var(--g-heading);
  text-decoration: none;
  line-height: 1.4;
}
.trial-registry-title:hover { color: var(--g-primary); }
.trial-card:hover { border-color: rgba(37, 99, 235, 0.2); }

.trial-registry-summary summary {
  list-style: none;
}
.trial-registry-summary summary::-webkit-details-marker { display: none; }
.trial-registry-summary summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s;
}
.trial-registry-summary[open] summary::before { transform: rotate(90deg); }

.trial-ai-abstract {
  margin-top: 0.75rem;
}

.trial-ai-abstract-btn[disabled] { opacity: 0.7; cursor: wait; }

/* Right slide-out panel for trial abstracts */
body.trial-drawer-open { overflow: hidden; }

.trial-abstract-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.trial-abstract-drawer.is-open {
  pointer-events: auto;
}

.trial-abstract-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.trial-abstract-drawer.is-open .trial-abstract-drawer-backdrop {
  opacity: 1;
}

.trial-abstract-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 28rem);
  background: var(--g-surface);
  border-left: 1px solid var(--g-border-subtle);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.trial-abstract-drawer.is-open .trial-abstract-drawer-panel {
  transform: translateX(0);
}

.trial-abstract-drawer-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--g-border-subtle);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.05), transparent);
}

.trial-abstract-drawer-nct {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--g-primary);
}

.trial-abstract-drawer-title {
  margin-top: 0.375rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--g-heading);
}

.trial-abstract-drawer-close {
  flex-shrink: 0;
}

.trial-abstract-drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.875rem 1.25rem 0;
}

.trial-abstract-drawer-label {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g-muted);
}

.trial-abstract-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--g-body);
  white-space: pre-wrap;
  word-break: break-word;
}

.trial-abstract-drawer-body.is-loading {
  color: var(--g-muted);
  font-style: italic;
}

.trial-abstract-drawer-body.is-error {
  color: #b45309;
}

.trial-abstract-drawer-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--g-border-subtle);
  background: rgba(250, 250, 250, 0.85);
}

@media (max-width: 639px) {
  .trial-abstract-drawer-panel { width: 100%; }
}

.stat-card {
  border-radius: var(--g-radius-lg); border: 1px solid var(--g-border-subtle);
  background: var(--g-surface); padding: 1.25rem 1.5rem; box-shadow: var(--g-shadow);
  transition: box-shadow 0.2s; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--g-primary), var(--g-accent));
  opacity: 0.7;
}
.stat-card:hover { box-shadow: var(--g-shadow-lg); }
.stat-card-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--g-muted);
}
.stat-card-value {
  margin-top: 0.5rem; font-size: 1.875rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--g-heading);
}

.progress-track {
  height: 0.5rem; overflow: hidden; border-radius: 9999px; background: #e4e4e7;
}
.progress-fill {
  height: 100%; border-radius: 9999px;
  background: linear-gradient(90deg, var(--g-primary) 0%, var(--g-accent) 100%);
}

.task-card {
  display: flex; align-items: center; gap: 1rem;
  border-radius: var(--g-radius-lg); border: 1px solid var(--g-border-subtle);
  background: var(--g-surface); padding: 1rem 1.25rem; box-shadow: var(--g-shadow);
  transition: border-color 0.2s, background 0.2s;
}
.task-card-done {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(145deg, #eff6ff 0%, #ffffff 70%);
}
.task-check {
  display: flex; height: 1.5rem; width: 1.5rem; flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: 0.375rem; border: 1.5px solid var(--g-border);
  background: var(--g-surface); transition: all 0.15s; cursor: pointer;
}
.task-check-done { border-color: var(--g-primary); background: var(--g-primary); color: #fff; }

.study-card {
  display: flex; flex-direction: column;
  border-radius: var(--g-radius-lg); border: 1px solid var(--g-border-subtle);
  background: var(--g-surface); padding: 1.5rem; box-shadow: var(--g-shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.study-card:hover {
  transform: translateY(-2px); box-shadow: var(--g-shadow-lg);
  border-color: rgba(37, 99, 235, 0.15);
}
.app-empty-icon {
  display: flex; height: 3.5rem; width: 3.5rem; align-items: center; justify-content: center;
  border-radius: var(--g-radius-lg); background: var(--g-primary-soft); color: var(--g-primary);
}
.metric-card {
  border-radius: var(--g-radius-lg); border: 1px solid var(--g-border-subtle);
  background: var(--g-surface); padding: 1.5rem; box-shadow: var(--g-shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.metric-card:hover { border-color: rgba(37, 99, 235, 0.2); box-shadow: var(--g-shadow-lg); }

.tab-active { border-color: var(--g-primary) !important; color: var(--g-primary) !important; font-weight: 600; }
.tab-inactive { border-color: transparent !important; color: var(--g-muted) !important; }
.tab-inactive:hover { color: var(--g-heading) !important; border-color: var(--g-border) !important; }

/* ── App background ── */
.app-bg { background: var(--g-bg); }
.app-helix-watermark {
  position: absolute; right: -8%; top: 2%;
  width: min(45vw, 10rem); height: 28vh;
  opacity: 0.05; pointer-events: none;
}
@media (min-width: 1024px) {
  .app-helix-watermark {
    right: -5%; top: 5%;
    width: min(28vw, 16rem); height: 50vh;
    opacity: 0.06;
  }
}

/* ── DNA helix ── */
.dna-scene { animation: helix-drift 20s ease-in-out infinite; }
.dna-orbit { animation: helix-spin 90s linear infinite; transform-origin: center; }
.trial-dash { stroke-dasharray: 8 12; animation: dash-flow 3s linear infinite; }
.dna-node { animation: node-pulse 2.5s ease-in-out infinite; }
@keyframes helix-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes helix-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-2%, 3%) scale(1.03); } }
@keyframes dash-flow { to { stroke-dashoffset: -100; } }
@keyframes node-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .dna-scene, .dna-orbit, .trial-dash, .dna-node, .path-card,
  .landing-preview-float, .pill-dot, .landing-hero-slide { animation: none !important; transform: none !important; }
  .landing-hero-slide:first-child { opacity: 1; }
  .landing-hero-slide:not(:first-child) { opacity: 0; }
}

/* ── Responsive — landing & public ── */
@media (max-width: 639px) {
  .landing-section { padding: 3.5rem 1rem; }
  .landing-section h2 { font-size: 1.625rem; }
  .landing-hero-grid { padding: 2rem 1rem 0; gap: 2rem; }
  .landing-hero-visual-wrap { min-height: 300px; }
  .landing-hero-media { height: 200px; }
  .landing-preview-overlap { bottom: -0.75rem; left: 0.5rem; right: 0.5rem; }
  .landing-preview-float { display: none; }
  .landing-stats { gap: 1.25rem; margin-top: 1.75rem; padding-top: 1.5rem; }
  .landing-stat strong { font-size: 1.25rem; }
  .feature-grid { gap: 2.5rem; }
  .process-track { gap: 1.5rem; }
  .landing-parallax-cta .landing-section-inner { padding-top: 3rem; padding-bottom: 3rem; }
  .sp-header .girdle-wordmark { font-size: 1rem; }
}

@media (max-width: 1023px) {
  .login-split-tagline p.text-2xl { font-size: 1.25rem; }
  .login-split-form main { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .why-grid { gap: 2rem; }
}

@media (max-width: 767px) {
  .process-track { grid-template-columns: 1fr; }
  .process-connector { display: none; }
}

/* ── Field info tooltips (key dates, etc.) ── */
.field-info {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.25rem;
}
.field-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--g-muted);
  cursor: help;
  border-radius: 9999px;
  transition: color 0.15s;
}
.field-info-btn:hover,
.field-info-btn:focus-visible {
  color: var(--g-primary);
  outline: none;
}
.field-info-icon {
  width: 1.125rem;
  height: 1.125rem;
}
.field-info-tip {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: 16rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--g-radius);
  border: 1px solid var(--g-border-subtle);
  background: var(--g-surface);
  box-shadow: var(--g-shadow-lg);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--g-body);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}
.field-info-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--g-border-subtle);
}
.field-info:hover .field-info-tip,
.field-info:focus-within .field-info-tip {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 639px) {
  .field-info-tip {
    left: 0;
    transform: none;
    max-width: min(16rem, calc(100vw - 2rem));
  }
}
