
/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-primary:          #2569EF;
  --color-primary-subdued:  #F5F8FF;
  --color-primary-border:   #2569EF;

  --color-text-default:     #202020;
  --color-text-secondary:   #767676;
  --color-text-on-primary:  #FFFFFF;

  --color-bg-default:       #FFFFFF;
  --color-bg-surface:       #F9F9F9;

  --color-border-default:   #E9E9EB;
  --color-border-secondary: #9A9A9C;

  --color-success:          #17B530;
  --color-success-text:     #202020;  /* dark text on green for WCAG contrast */
  --color-error:            #D93025;
  --color-warning:          #F5A623;

  --color-icon-default:     #202020;
  --color-icon-secondary:   #767676;
  --color-icon-primary:     #2569EF;

  /* Typography */
  --font-family:            'Roboto', sans-serif;
  --font-size-xs:           12px;
  --font-size-sm:           14px;
  --font-size-base:         16px;
  --font-size-lg:           18px;
  --font-size-xl:           24px;
  --font-size-2xl:          28px;
  --font-weight-regular:    400;
  --font-weight-medium:     500;
  --font-weight-semibold:   600;
  --line-height-base:       1.4;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-dropdown: 0 4px 12px rgba(0,0,0,0.12);
}

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

html { font-size: 16px; }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-default);
  background: var(--color-bg-default);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  color: var(--color-text-default);
  background: var(--color-bg-default);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: var(--color-text-secondary); }
input:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 105, 239, 0.15);
}
input.error { border-color: var(--color-error); }
.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-error);
  margin-top: 2px;
}

/* --- Focus styles (global) --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-group label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-default);
}

.auth-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* Left panel */
.auth-form-panel {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px 40px;
  overflow-y: auto;
  background: #fff;
}

.auth-form-inner {
  width: 100%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-logo img { height: 42px; width: auto; }
.auth-heading { margin-top: 20px; display: flex; flex-direction: column; gap: 5px; }
.auth-heading h1 { font-size: 28px; font-weight: 500; color: var(--color-text-default); }
.auth-heading p  { font-size: 16px; color: var(--color-text-default); }
.auth-fields { display: flex; flex-direction: column; gap: 16px; }
.auth-actions { display: flex; flex-direction: column; gap: 24px; margin-top: 30px; }
.button-stack { display: flex; flex-direction: column; gap: 12px; }

.forgot-link {
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.forgot-link:hover { text-decoration: underline; }

.auth-switch {
  font-size: 14px;
  text-align: center;
  color: var(--color-text-default);
}

@media (max-width: 768px) {
  body { overflow: auto; }
  .auth-layout { flex-direction: column; height: auto; min-height: 100vh; }
  .auth-form-panel { flex: none; width: 100%; padding: 32px 24px; }
  .auth-hero-panel { display: none; }
}

.auth-hero-panel {
  flex: 1;
  overflow: hidden;
  padding: 24px 0px;
}

.auth-hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 24px 0 0 24px;
  padding: 40px;
  overflow: hidden;
}

.auth-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px 0 0 24px;
  pointer-events: none;
}

.auth-hero-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.auth-hero-text h2 { font-size: 18px; font-weight: 500; color: #fff; }
.auth-hero-text p  { font-size: 14px; line-height: 1.6; opacity: 0.92; }

.auth-hero-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 608 / 649;
  overflow: hidden;
  margin-left: 80px;
}
.auth-hero-preview img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
}

/* =============================================================
   SIGNUP PROGRESS INDICATOR
   ============================================================= */

.signup-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.signup-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.signup-progress-step + .signup-progress-step::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 16px;
  width: 64px;
  height: 2px;
  background: #e9e7e3;
  margin-right: 0;
}

.signup-progress-step.completed + .signup-progress-step::before,
.signup-progress-step.active + .signup-progress-step::before {
  background: #095DFF;
}

.signup-progress-connector {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: #e9e7e3;
  margin-top: -22px;
  align-self: flex-start;
}

.signup-progress-connector.done {
  background: #095DFF;
}

.step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 2px solid #e9e7e3;
  background: #fff;
  color: #908D87;
  z-index: 1;
}

.signup-progress-step.completed .step-bubble {
  border-color: #095DFF;
  background: #095DFF;
  color: #fff;
}

.signup-progress-step.active .step-bubble {
  border-color: #095DFF;
  color: #095DFF;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #908D87;
  white-space: nowrap;
}

.signup-progress-step.active .step-label {
  color: #095DFF;
  font-weight: 600;
}

.signup-progress-step.completed .step-label {
  color: #095DFF;
}

/* Wrapper that holds step + connector side by side */
.signup-progress-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  margin-bottom: 40px;
}

.signup-progress-track .step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.signup-progress-track .step-line {
  width: 80px;
  height: 2px;
  background: #e9e7e3;
  margin-top: 15px;
  flex-shrink: 0;
}

.signup-progress-track .step-line.done {
  background: #095DFF;
}

/* =============================================================
   PRICING LAYOUT (_base_pricing.html)
   ============================================================= */

.pricing-body {
  overflow: auto;
  background: #f5f4f2;
}

.pricing-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pricing-header {
  background: #fff;
  border-bottom: 1px solid #e9e7e3;
  padding: 16px 32px;
  display: flex;
  align-items: center;
}

.pricing-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.pricing-main {
  flex: 1;
  padding: 48px 24px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.pricing-footer {
  background: #fff;
  border-top: 1px solid #e9e7e3;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #6B6964;
}

.pricing-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
}

.pricing-footer a {
  color: #6B6964;
  text-decoration: none;
}

.pricing-footer a:hover {
  color: #095DFF;
}

/* ── Page intro ──────────────────────────────────────────── */

.pricing-intro {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-intro h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #121110;
  margin: 0 0 8px;
}

.pricing-intro p {
  font-size: 1rem;
  color: #6B6964;
  margin: 0;
}

/* ── Billing toggle ──────────────────────────────────────── */

.billing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.billing-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid #e9e7e3;
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
}

.billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B6964;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.billing-btn.active {
  background: #095DFF;
  color: #fff;
}

.save-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: #f0fad1;
  color: #3C5904;
  padding: 2px 7px;
  border-radius: 100px;
}

.billing-btn.active .save-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ── Pricing cards ───────────────────────────────────────── */

.pricing-cards {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 36px;
}

.plan-card {
  flex: 1;
  background: #fff;
  border: 2px solid #e9e7e3;
  border-radius: 16px;
  padding: 28px 24px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card:hover {
  border-color: #6E88FF;
  box-shadow: 0 4px 20px rgba(9, 93, 255, 0.08);
}

.plan-card.selected {
  border-color: #095DFF;
  box-shadow: 0 4px 20px rgba(9, 93, 255, 0.12);
}

/* Plan badge */
.plan-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 4px;
  align-self: flex-start;
}

.plan-badge--popular {
  background: #eff4ff;
  color: #095DFF;
}

.plan-badge--default {
  background: #f0fad1;
  color: #3C5904;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #121110;
  line-height: 1.2;
}

.plan-tagline {
  font-size: 0.875rem;
  color: #6B6964;
  line-height: 1.4;
}

/* Price block */
.plan-price-wrap {
  margin: 4px 0 8px;
}

.plan-price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
  margin-bottom: 4px;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: #121110;
  margin-top: 6px;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: #121110;
  letter-spacing: -1px;
}

.plan-price-unit {
  font-size: 0.8125rem;
  color: #6B6964;
  margin-bottom: 4px;
}

.plan-price-note {
  font-size: 0.75rem;
  color: #908D87;
}

/* Features list */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #282725;
}

.plan-features .ti-check {
  color: #73A70E;
  font-size: 16px;
  flex-shrink: 0;
}

/* Select button */
.plan-select-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #e9e7e3;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6B6964;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  margin-top: auto;
}

.plan-card.selected .plan-select-btn {
  border-color: #095DFF;
  background: #095DFF;
  color: #fff;
}

.plan-card:hover:not(.selected) .plan-select-btn {
  border-color: #6E88FF;
  color: #095DFF;
}

/* ── Submit row ──────────────────────────────────────────── */

.pricing-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pricing-back a {
  font-size: 0.875rem;
  color: #6B6964;
  text-decoration: none;
}

.pricing-back a:hover {
  color: #095DFF;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .pricing-cards {
    flex-direction: column;
  }

  .pricing-main {
    padding: 32px 16px;
  }

  .pricing-intro h1 {
    font-size: 1.5rem;
  }
}

/* =============================================================
   SHARED COMPONENTS (signup billing + settings billing)
   ============================================================= */

/* Billing form card wrapper on signup */
.billing-form-card {
  background: #fff;
  border: 1px solid #e9e7e3;
  border-radius: 14px;
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.billing-form-card .settings-section {
  background: #f8f7f5;
  border: 1px solid #e9e7e3;
  border-radius: 10px;
  padding: 20px;
}

.billing-form-card .settings-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #211F1C;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ece9e3;
}

/* Stripe Placeholder (shared) */
.stripe-placeholder {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #f8f7f5;
  border: 1px dashed #c8c4bc;
  border-radius: 10px;
  color: #60594E;
}

.stripe-placeholder svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #095DFF;
}

.stripe-placeholder strong {
  font-size: 0.9375rem;
  color: #211F1C;
  display: block;
}

.stripe-placeholder p {
  font-size: 0.875rem;
  margin-top: 4px;
  color: #908D87;
}

/* Stripe Elements card input */
.stripe-card-element {
  padding: 12px 14px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.stripe-card-element.StripeElement--focus {
  border-color: #095DFF;
  box-shadow: 0 0 0 3px rgba(9, 93, 255, 0.12);
}

.stripe-card-element.StripeElement--invalid {
  border-color: #dc3545;
}

.stripe-card-errors {
  font-size: 0.875rem;
  color: #dc3545;
  min-height: 1.25rem;
}