/* ==========================================================================
   CLSTRE WAITLIST — FOUNDER PHILOSOPHY EDITION
   Brand Design System & Responsive Stylesheet
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary-color: #0f172a;
  --primary-accent: #075aaa;
  --primary-accent-hover: #06498a;
  --primary-accent-light: rgba(7, 90, 170, 0.08);
  --primary-accent-focus: rgba(7, 90, 170, 0.16);
  
  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8fafc;
  --info-box: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #94a3b8;
  --grey: #64748b;
  --dark-grey: #334155;
  --text-muted: #64748b;

  /* Status */
  --success-accent: #10b981;
  --success-accent-light: rgba(16, 185, 129, 0.12);
  --error-accent: #ef4444;
  --error-accent-light: rgba(239, 68, 68, 0.08);

  /* Typography */
  --font-family-base: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-signature: 'Caveat', cursive;

  /* Layout */
  --container-max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 10px 30px -5px rgba(7, 90, 170, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--white);
  color: var(--primary-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  height: 60px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.waitlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--primary-accent-light);
  border: 1px solid rgba(7, 90, 170, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-accent);
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-accent);
  box-shadow: 0 0 0 0 rgba(7, 90, 170, 0.6);
  animation: pulse-dot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(7, 90, 170, 0.6);
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(7, 90, 170, 0);
  }
}

/* ── Main Section ──────────────────────────────────────────────────────── */
.founder-philosophy-section {
  padding: 3.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle background radiance */
.founder-philosophy-section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 90, 170, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.founder-philosophy-container {
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.founder-philosophy-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* On mobile: Content is first */
.founder-philosophy-content {
  order: 1;
  display: flex;
  flex-direction: column;
}

/* On mobile: Founder Card is second (placed directly under content and ABOVE the waitlist form) */
.founder-philosophy-card {
  order: 2;
  background: var(--info-box);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

@media (min-width: 992px) {
  .founder-philosophy-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    grid-template-rows: auto auto;
    column-gap: 3.5rem;
    row-gap: 2.25rem;
    align-items: start;
  }

  .founder-philosophy-card {
    grid-column: 1;
    grid-row: 1 / span 2;
    order: initial;
    position: sticky;
    top: 96px;
  }

  .founder-philosophy-content {
    grid-column: 2;
    grid-row: 1;
    order: initial;
  }
}

.founder-philosophy-avatar-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 1.25rem;
}

.founder-philosophy-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-accent);
}

.founder-philosophy-badge {
  position: absolute;
  bottom: -15px;
  right: -30px;
  background: var(--primary-accent);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 5px rgba(7, 90, 170, 0.3);
}

.founder-philosophy-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.founder-philosophy-role {
  color: var(--grey);
  font-size: 0.875rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.founder-philosophy-socials {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.founder-philosophy-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-accent);
  border: 1px solid var(--primary-accent);
  color: var(--white);
  transition: all 0.2s ease;
}

.founder-philosophy-social-link svg {
  width: 16px;
  height: 16px;
}

.founder-philosophy-social-link:hover {
  background: var(--primary-accent-hover);
  border-color: var(--primary-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(7, 90, 170, 0.25);
}

.founder-philosophy-quote-box {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.founder-philosophy-quote-icon {
  width: 22px;
  height: 22px;
  color: var(--primary-accent);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.founder-philosophy-quote-text {
  font-style: italic;
  color: var(--grey);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── Right Column: Content & Narrative ─────────────────────────────────── */
.founder-philosophy-content {
  display: flex;
  flex-direction: column;
}

.founder-philosophy-header {
  margin-bottom: 1.75rem;
}

.founder-philosophy-headline {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .founder-philosophy-headline {
    font-size: 3rem;
  }
}

.text-accent {
  color: var(--primary-accent);
}

.founder-philosophy-subheadline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary-accent);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .founder-philosophy-subheadline {
    font-size: 1.25rem;
  }
}

.founder-philosophy-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dark-grey);
}

.founder-philosophy-body p {
  margin-bottom: 1.5rem;
}

.founder-philosophy-body b {
  color: var(--primary-color);
  font-weight: 600;
}

.framework-steps {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 1.5rem 0 2rem;
}

.step-item {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  background: transparent;
  border: none;
  padding: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transform: translateY(2px);
}

.step-content {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark-grey);
}

.step-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.founder-philosophy-signature {
  font-family: var(--font-family-signature);
  font-size: 2.6rem;
  color: var(--primary-accent);
  margin: 0.5rem 0 2.25rem;
  opacity: 0.95;
  transform: rotate(-1.5deg);
  order: 3;
  display: none; /* Hidden on mobile since name is already on the founder card */
}

@media (min-width: 992px) {
  .founder-philosophy-signature {
    display: inline-block;
    order: initial;
  }
}

/* ── Waitlist Opt-in Card (Last on mobile, Row 2 Column 2 on desktop) ───── */
.waitlist-card {
  order: 3;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;  
}

@media (min-width: 992px) {
  .waitlist-card {
    grid-column: 2;
    grid-row: 2;
    order: initial;
    padding: 2.25rem 2rem;
  }
}

.waitlist-card:focus-within {
  border-color: rgba(7, 90, 170, 0.4);
  box-shadow: 0 12px 36px -4px rgba(7, 90, 170, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.waitlist-card-header {
  margin-bottom: 1.5rem;
}

.waitlist-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.waitlist-subtitle {
  font-size: 0.925rem;
  color: var(--grey);
  line-height: 1.5;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 600px) {
  .form-row {
    flex-direction: row;
    align-items: center;
  }
}

.input-field-wrapper {
  position: relative;
  flex: 1;
}

.mail-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--grey);
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-field-wrapper input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  color: var(--primary-color);
  background-color: var(--off-white);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.input-field-wrapper input::placeholder {
  color: #94a3b8;
}

.input-field-wrapper input:focus {
  background-color: var(--white);
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 4px var(--primary-accent-focus);
}

.input-field-wrapper input:focus + .mail-icon,
.input-field-wrapper:focus-within .mail-icon {
  color: var(--primary-accent);
}

.submit-btn {
  height: 42px;
  padding: 0 1.25rem;
  min-width: 140px;
  background-color: var(--primary-accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(7, 90, 170, 0.2);
}

.submit-btn:hover {
  background-color: var(--primary-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(7, 90, 170, 0.28);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Spinner */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submit-btn.loading .btn-label,
.submit-btn.loading .btn-arrow {
  display: none;
}

.submit-btn.loading .btn-spinner {
  display: block;
}

/* Error / Info messages */
.form-message {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  display: none;
}

.form-message.error {
  display: block;
  color: var(--error-accent);
}

.form-message.info {
  display: block;
  color: var(--primary-accent);
}

/* Guarantees chips */
.waitlist-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--grey);
  font-weight: 500;
}

.guarantee-item svg {
  width: 14px;
  height: 14px;
  color: var(--success-accent);
  stroke-width: 2.5;
}

/* ── Success Confirmation Card ─────────────────────────────────────────── */
.success-view {
  text-align: center;
  padding: 1.5rem 0.5rem;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--success-accent-light);
  color: var(--success-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08);
  animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bounceIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon-badge svg {
  width: 32px;
  height: 32px;
}

.success-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
}

.success-description {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.success-description strong {
  color: var(--primary-color);
  font-weight: 600;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background-color: var(--success-accent-light);
  color: var(--success-accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}

.reset-wrapper {
  margin-top: 1.25rem;
}

.reset-btn {
  background: none;
  border: none;
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  color: var(--primary-accent);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--white);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
}

.copyright-text {
  font-size: 0.875rem;
  color: var(--grey);
}
