/* Bripply Marketing Site — Components */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.display {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-weight: 600;
}

.lead {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 58ch;
}

.meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--fg) 30%, var(--border));
}

.btn-ghost {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  color: var(--fg);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--fg) 14%, transparent);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  min-height: 44px;
}

.btn-link::after {
  content: '→';
  transition: transform var(--motion-fast);
}

.btn-link:hover::after { transform: translateX(3px); }

/* ─── CAPTURE FORM ─── */
.capture {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  max-width: 28rem;
  padding: var(--space-1);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.capture input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  padding: 0 var(--space-4);
  font-size: var(--text-sm);
}

.capture input::placeholder {
  color: color-mix(in srgb, var(--fg) 35%, transparent);
}

.capture .btn {
  flex-shrink: 0;
  min-height: 40px;
  padding-inline: var(--space-5);
}

/* ─── CHIPS ─── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip.is-accent {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: var(--accent);
}

.chip.is-live {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
}

.chip.is-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: var(--space-2);
  box-shadow: 0 0 8px var(--wave-glow);
}

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.card-elevated {
  box-shadow: var(--elev-raised);
}

/* ─── THREAD SEPARATOR ─── */
.thread-sep {
  width: min(640px, 100%);
  height: 40px;
  position: relative;
  overflow: hidden;
  opacity: 0.85;
  mask-image: linear-gradient(15deg, transparent, black 20px, black calc(100% - 20px), transparent);
  -webkit-mask-image: linear-gradient(15deg, transparent, black 20px, black calc(100% - 20px), transparent);
}

.thread-sep__lane {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
}

.thread-sep__electron {
  position: absolute;
  top: 0;
  left: 100%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: #22f2e9;
  box-shadow:
    0 0 6px 1px rgba(34, 242, 233, 0.85),
    0 0 14px 2px rgba(32, 217, 210, 0.35);
  opacity: 0.95;
  animation-name: thread-sep-electron-run;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes thread-sep-electron-run {
  0% {
    left: 100%;
  }
  100% {
    left: -20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thread-sep__electron {
    animation: none;
    opacity: 0;
  }
}

/* ─── WORKFLOW RAIL ─── */
.workflow-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
}

.workflow-step {
  position: relative;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-height: 100%;
}

.workflow-step h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-display);
}

.workflow-step p {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ─── MODULE GRID (4 pillars on features, 3 on index) ─── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.module-card {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.module-card .num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.module-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.module-card p {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ─── PRODUCT MOCK ─── */
.mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--elev-raised);
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.mock-body { padding: var(--space-5); }

.mock-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.mock-tab {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}

.mock-tab.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.mock-score {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.mock-label {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.mock-meter {
  display: grid;
  gap: var(--space-3);
}

.mock-meter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
}

.mock-meter-track {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  overflow: hidden;
}

.mock-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.trend-list {
  display: grid;
  gap: var(--space-2);
}

.trend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.trend-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}

/* ─── SCAN LABEL ─── */
.scan-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--accent);
  min-height: 1.2em;
}

/* ─── MARQUEE ─── */
.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.marquee-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  animation: marquee 28s linear infinite;
  padding-block: var(--space-5);
}

.marquee-card {
  flex: 0 0 auto;
  width: 220px;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.marquee-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* ─── HERO MESH (interactive fabric wave) ─── */
[data-hero-mesh] {
  cursor: crosshair;
  touch-action: pan-y;
}

.hero-mesh__stage {
  position: relative;
  flex: 0 0 auto;
  height: clamp(240px, 42vh, 440px);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.hero-mesh__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-mesh__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse 58% 48% at 50% 50%, rgba(34, 242, 233, 0.12), transparent 72%);
}

.hero-mesh__title-slot {
  position: relative;
  min-height: clamp(4rem, 11vw, 6.25rem);
  width: 100%;
  max-width: min(28rem, 92vw);
  margin-inline: auto;
}

.hero-mesh__title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  max-width: none;
  width: 100%;
  gap: 0;
  color: var(--fg);
  line-height: 1.05;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.hero-mesh__title-line-stack {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero-mesh__title-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  line-height: inherit;
  font-size: inherit;
}

.hero-mesh__title-layer--front { z-index: 2; }
.hero-mesh__title-layer--back {
  z-index: 1;
  clip-path: inset(0 0 0 100%);
  -webkit-clip-path: inset(0 0 0 100%);
}

.hero-mesh__title-layer--sans,
.hero-mesh__title--sans {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-mesh__title-layer--serif,
.hero-mesh__title--serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.hero-mesh__title-layer--cursive,
.hero-mesh__title--cursive {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Legacy static grid — used on login/get-started panels */
.ripple-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, black, transparent);
}

/* ─── SECTION SURFACES ─── */
.surface-dark { background: var(--bg); color: var(--fg); }
.surface-raised { background: var(--surface); color: var(--fg); }
.surface-light { background: var(--offwhite); color: var(--bg); --fg: #080b0d; --muted: #6b7a82; --border: #d8e0e2; --surface: #ffffff; }

.section {
  padding-block: var(--section-y);
}

.section-header {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.section-header.center {
  text-align: center;
  justify-items: center;
}

/* ─── FORMS (get-started, contact, login) ─── */
.form-panel {
  display: grid;
  gap: var(--space-6);
}

.form-grid {
  display: grid;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.field label {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: var(--focus-ring);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: var(--text-sm);
  color: var(--muted);
}

.form-success {
  display: none;
  padding: var(--space-6);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.form-success.visible { display: block; }

.form-success h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
  /* Room for featured chip sitting on the top edge */
  padding-top: 14px;
}

.price-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  min-width: 0;
}

.price-card-wrap.is-featured {
  z-index: 1;
}

.price-card-wrap.is-featured > .chip-row {
  position: absolute;
  top: 0;
  right: var(--space-5);
  transform: translateY(-50%);
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

.price-card-wrap.is-featured > .chip-row > .chip {
  pointer-events: auto;
  background: var(--surface);
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  height: 100%;
  position: relative;
  overflow: visible;
}

.price-card.is-featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--elev-raised);
}

.price-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
}

.price-amount {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  margin: 0;
}

.price-amount-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55em;
  margin: 0;
}

.price-amount-was {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  color: #e0524d;
  text-decoration: line-through;
  text-decoration-color: #e0524d;
  text-decoration-thickness: 2px;
  margin: 0;
}

.price-amount-row .price-amount {
  display: inline;
}

.price-offer-meta {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}

.price-offer-meta strong {
  color: var(--fg);
  font-weight: 600;
}

.price-list {
  list-style: none;
  display: grid;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
  padding: 0;
}

.price-card > .btn {
  margin-top: auto;
}

.price-list li::before {
  content: '·';
  color: var(--accent);
  margin-right: var(--space-2);
}

.toggle-row {
  display: inline-flex;
  gap: var(--space-1);
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.toggle-btn {
  min-height: 36px;
  padding: 0 var(--space-4);
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: var(--text-sm);
}

.toggle-btn.is-active {
  background: var(--accent);
  color: var(--accent-on);
}

.faq-list {
  display: grid;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

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

.faq-item p {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ─── SCATTER CTA ─── */
.scatter {
  text-align: center;
  display: grid;
  gap: var(--space-5);
  justify-items: center;
  padding-block: var(--section-y);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .workflow-rail,
  .module-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .capture { flex-direction: column; align-items: stretch; border-radius: var(--radius-md); padding: var(--space-3); }
  .capture .btn { width: 100%; }
}
