/* Rivit Marketing Site */

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

:root {
  --bg: #0f0f10;
  --bg-card: #1c1c1e;
  --bg-elevated: #2c2c2e;
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-dim: #6e6e73;
  --accent: #4a6a88;
  --accent-hover: #3d5a75;
  --amber: #d4943a;
  --amber-hover: #c08430;
  --success: #30d158;
  --border: #3a3a3c;
  --radius: 12px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.hero-subtitle-secondary {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--amber);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.cta-btn:hover {
  background: var(--amber-hover);
}

.cta-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
}

.how-it-works h2,
.features h2,
.pricing h2,
.download h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

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

.step {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--amber);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Features */
.features {
  padding: 80px 0;
}

.features h2 {
  margin-bottom: 48px;
}

/* Section label (centered, with amber line decorators) */
.section-label-centered {
  font-family: 'Tektur', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-label-centered::before,
.section-label-centered::after {
  content: '';
  height: 1px;
  width: 48px;
  background: linear-gradient(to right, transparent, rgba(212, 148, 58, 0.4));
}

.section-label-centered::after {
  background: linear-gradient(to left, transparent, rgba(212, 148, 58, 0.4));
}

/* Reframe block */
.reframe {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.reframe-headline {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.reframe-headline em {
  font-style: normal;
  color: var(--amber);
}

.reframe-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto;
}

/* Bento feature layout */
.features-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.feature-card.hero {
  border-color: rgba(212, 148, 58, 0.2);
  background: linear-gradient(135deg, rgba(212, 148, 58, 0.06) 0%, rgba(212, 148, 58, 0.02) 40%, transparent 70%);
  padding: 32px 36px;
}

.feature-card.hero::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--amber), transparent);
  opacity: 0.5;
}

.features-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.feature-marker svg {
  flex-shrink: 0;
}

.feature-marker span {
  font-family: 'Tektur', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-card.hero h3 {
  font-size: 1.4rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.feature-card.hero p {
  font-size: 0.95rem;
}

.feature-card .accent {
  color: var(--amber);
  font-weight: 600;
}

/* Trust section */
.trust {
  padding: 80px 0;
}

.section-label-steel::before,
.section-label-steel::after {
  background: linear-gradient(to right, transparent, rgba(74, 106, 136, 0.4)) !important;
}

.section-label-steel::after {
  background: linear-gradient(to left, transparent, rgba(74, 106, 136, 0.4)) !important;
}

.section-label-steel {
  color: var(--accent);
}

.section-title-steel {
  font-family: 'Tektur', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6a8faa, #4a6a88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 56px;
}

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

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.35;
}

.trust-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.trust-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.trust-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.accent-steel {
  color: var(--accent);
  font-weight: 600;
}

/* Product Proof */
.product-proof {
  padding: 80px 0;
}

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

.proof-card {
  text-align: center;
}

.proof-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 64px 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
}

.proof-placeholder span {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.proof-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Pricing */
.pricing {
  padding: 80px 0;
}

.pricing-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-top: -32px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}

.pricing-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--amber);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
}

.save-note {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-top: 24px;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card li::before {
  content: "\2713  ";
  color: var(--success);
  font-weight: 600;
}

/* Final CTA (inside pricing section) */
.final-cta {
  text-align: center;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.final-cta-headline {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.final-cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.risk-reversal {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* Download */
.download {
  padding: 80px 0;
  text-align: center;
}

.download p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.smartscreen-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
}

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

/* How It Works: Horizontal Flow */
.section-title-tektur {
  font-family: 'Tektur', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ecc06a, #d4943a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 48px;
}

.ritual-row {
  margin-bottom: 0;
}

.row-label {
  font-family: 'Tektur', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(212, 148, 58, 0.3), transparent);
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}

.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flow-step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tektur-title {
  font-family: 'Tektur', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--amber) !important;
}

.flow-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.flow-step-outcome {
  border-color: rgba(212, 148, 58, 0.2);
  background: linear-gradient(135deg, rgba(212, 148, 58, 0.05), transparent);
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  align-self: center;
}

.flow-arrow svg {
  width: 24px;
  height: 24px;
  color: var(--text-dim);
  opacity: 0.3;
}

.mva-examples {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.mva-example {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Tektur', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--amber);
}

.mva-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  opacity: 0.7;
}

.row-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 40px 0;
}

/* Animated hex icon */
@keyframes hexSettleBouncy {
  0%    { transform: rotate(0deg); }
  3%    { transform: rotate(38deg); }
  5%    { transform: rotate(28deg); }
  6.5%  { transform: rotate(30deg); }
  14%   { transform: rotate(30deg); }
  19%   { transform: rotate(90deg); }
  28%   { transform: rotate(90deg); }
  33%   { transform: rotate(150deg); }
  42%   { transform: rotate(150deg); }
  47%   { transform: rotate(210deg); }
  57%   { transform: rotate(210deg); }
  62%   { transform: rotate(270deg); }
  71%   { transform: rotate(270deg); }
  76%   { transform: rotate(330deg); }
  86%   { transform: rotate(330deg); }
  90%   { transform: rotate(360deg); }
  100%  { transform: rotate(360deg); }
}

@keyframes gentleBreathe {
  0%, 100% { transform: scale(0.88); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 1; }
}

.row-icon-animated .hex-rotate {
  animation: hexSettleBouncy 6s ease-in-out infinite;
  transform-origin: 50px 50px;
}

.row-icon-animated .center-pulse {
  animation: gentleBreathe 10s ease-in-out infinite;
  transform-origin: 50px 50px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .reframe-headline {
    font-size: 1.35rem;
  }

  .reframe-body {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-card.hero {
    padding: 28px 24px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .section-title-steel {
    font-size: 1.6rem;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    max-width: 320px;
    width: 100%;
  }

  footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(15, 15, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Tektur', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

/* Waitlist Form */
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

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

.waitlist-form input:focus {
  border-color: var(--accent);
}

.waitlist-form button {
  padding: 14px 28px;
  background: var(--amber);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.waitlist-form button:hover {
  background: var(--amber-hover);
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-success {
  color: var(--success);
  font-size: 0.95rem;
  margin-top: 12px;
}

.waitlist-error {
  color: #ff453a;
  font-size: 0.95rem;
  margin-top: 12px;
}

/* Legal Pages */
.legal {
  padding: 120px 0 80px;
}

.legal .container {
  max-width: 720px;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal .last-updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal ul {
  padding-left: 24px;
}

.legal a {
  color: var(--accent);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

/* Stripe Redirect Pages */
.redirect-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.redirect-content {
  max-width: 480px;
}

.redirect-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}

.redirect-icon.success {
  background: rgba(48, 209, 88, 0.15);
  color: var(--success);
}

.redirect-icon.cancel {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
}

.redirect-icon.neutral {
  background: rgba(74, 106, 136, 0.15);
  color: var(--accent);
}

.redirect-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.redirect-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.6;
}
