﻿/* RubanBuild â€” public (pre-auth) pages: landing, login, signup, pricing */
:root {
  --rb-primary:       #e69829;
  --rb-primary-dark:  #cb7c11;
  --rb-primary-light: #fff7ed;
  --rb-accent:        #102b45;
  --rb-accent-soft:   #e7eef6;
  --rb-bg:            #f4f6f9;
  --rb-card:          #fff;
  --rb-border:        #e6eaf0;
  --rb-text:          #1f2937;
  --rb-text-muted:    #6b7280;
  --rb-radius:        10px;
  --rb-shadow:        0 2px 16px rgba(16,43,69,.09);
  --rb-shadow-md:     0 8px 40px rgba(16,43,69,.12);
  --rb-danger:        #ef4444;
  --rb-danger-bg:     #fef2f2;
  --rb-danger-border: #fecaca;
}

/* â”€â”€ Base â”€â”€ */
body.rb-public {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--rb-text);
  background: var(--rb-bg);
}

/* â”€â”€ Navbar â”€â”€ */
.rb-pub-nav {
  background: var(--rb-card);
  border-bottom: 1px solid var(--rb-border);
  padding: .7rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.rb-pub-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 900;
  color: var(--rb-accent);
  text-decoration: none;
  font-size: 1.2rem;
}
.rb-pub-brand .ic {
  width: 36px;
  height: 36px;
  border-radius: var(--rb-radius);
  background: var(--rb-primary);
  color: var(--rb-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.rb-pub-brand span { color: var(--rb-primary); }

/* â”€â”€ Auth card â”€â”€ */
.rb-auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--rb-bg);
}
.rb-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--rb-card);
  border-radius: 16px;
  box-shadow: var(--rb-shadow-md);
  padding: 2.4rem;
}
.rb-auth-card h4 {
  font-weight: 800;
  color: var(--rb-accent);
}

/* â”€â”€ Buttons â€” solid (no gradient) â”€â”€ */
.rb-btn {
  width: 100%;
  background: var(--rb-primary);
  border: none;
  color: var(--rb-accent);
  font-weight: 700;
  padding: .8rem;
  border-radius: var(--rb-radius);
  font-size: 1rem;
  transition: background .15s, box-shadow .15s;
}
.rb-btn:hover {
  background: var(--rb-primary-dark);
  color: var(--rb-accent);
}
.rb-btn:focus-visible {
  outline: 3px solid var(--rb-primary);
  outline-offset: 2px;
}

/* â”€â”€ Form controls â”€â”€ */
.form-control:focus {
  border-color: var(--rb-primary);
  box-shadow: 0 0 0 3px rgba(230,152,41,.18);
  outline: none;
}
.form-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--rb-accent);
}

/* â”€â”€ Auth form fields (input-group, contact-form style) â”€â”€ */
.rb-auth-right .form-label {
  margin-bottom: .35rem;
}
.rb-auth-right .input-group-text {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #9ca3af;
  border-radius: 8px 0 0 8px;
}
.rb-auth-right .input-group .form-control {
  border-left: none;
  border-radius: 0 8px 8px 0;
}
.rb-auth-right .form-control {
  border-color: #d1d5db;
  border-radius: 8px;
  padding: .6rem .85rem;
  font-size: .9rem;
}
.rb-auth-right .input-group:focus-within .input-group-text {
  border-color: var(--rb-primary);
}
.rb-auth-right .form-control:focus {
  border-color: var(--rb-primary);
  box-shadow: 0 0 0 3px rgba(230,152,41,.15);
}
/* Full-width gradient submit button for auth forms */
.rb-btn-auth {
  background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-dark));
  border-radius: 8px;
  padding: .75rem;
  font-weight: 700;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.rb-btn-auth:hover {
  background: linear-gradient(135deg, var(--rb-primary-dark), var(--rb-primary-dark));
  transform: translateY(-2px);
  box-shadow: var(--rb-shadow-md);
}

/* â”€â”€ Validation states â”€â”€ */
.has-error .form-control {
  border-color: var(--rb-danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.field-error {
  display: block;
  margin-top: .25rem;
  font-size: .8rem;
  color: var(--rb-danger);
  font-weight: 600;
}

/* â”€â”€ Hero section â”€â”€ */
.rb-hero {
  background: linear-gradient(135deg, var(--rb-accent), #0a1f33);
  color: #fff;
  padding: 5rem 0;
}
.rb-hero h1 {
  font-weight: 900;
  font-size: 2.6rem;
  letter-spacing: -1px;
}
.rb-hero h1 span { color: var(--rb-primary); }

/* â”€â”€ Feature cards â”€â”€ */
.rb-feat {
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
}
.rb-feat .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--rb-primary-light);
  color: var(--rb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* â”€â”€ 2-column auth layout â”€â”€ */
.rb-auth-section {
  background: var(--rb-bg);
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 3rem 1rem;
}
.rb-auth-2col {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  background: var(--rb-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--rb-shadow-md);
}
.rb-auth-left {
  width: 42%;
  flex-shrink: 0;
  background: var(--rb-accent);
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.rb-auth-left .rb-pub-brand { color: #fff; }
.rb-auth-left .rb-pub-brand span { color: var(--rb-primary); }
.rb-auth-tagline {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 1.5rem 0 .6rem;
  color: #fff;
}
.rb-auth-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.rb-auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rb-auth-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  font-size: .88rem;
  color: rgba(255,255,255,.88);
  border-top: 1px solid rgba(255,255,255,.1);
}
.rb-auth-features li:first-child { border-top: none; }
.rb-auth-features i { color: var(--rb-primary); flex-shrink: 0; }
.rb-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(230,152,41,.18);
  border: 1px solid rgba(230,152,41,.35);
  color: var(--rb-primary);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 100px;
  margin-bottom: .75rem;
}
.rb-auth-right {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.75rem 2.5rem;
}
.rb-auth-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.rb-auth-inner h4 { font-weight: 800; color: var(--rb-accent); }

/* â”€â”€ Footer â”€â”€ */
.rb-pub-footer {
  background: var(--rb-accent);
  color: rgba(255,255,255,.75);
  padding: 1.5rem 0;
  font-size: .85rem;
}
.rb-pub-footer a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
}
.rb-pub-footer a:hover { color: #fff; }

/* â”€â”€ Mobile responsive â”€â”€ */
@media (max-width: 768px) {
  .rb-auth-section { padding: 1.5rem 1rem; }
  .rb-auth-2col { flex-direction: column; }
  .rb-auth-left {
    width: 100%;
    padding: 2rem 1.5rem;
    border-radius: 16px 16px 0 0;
  }
  .rb-auth-right { padding: 2rem 1.5rem; }
  .rb-hero h1 { font-size: 1.9rem; letter-spacing: -.5px; }
}
@media (max-width: 480px) {
  .rb-auth-left, .rb-auth-right { padding: 1.5rem 1.25rem; }
  .rb-hero h1 { font-size: 1.55rem; }
}

/* â”€â”€ Pricing page â”€â”€ */
.rb-price-card {
  background: var(--rb-card);
  border: 2px solid var(--rb-border);
  border-radius: 18px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
}
.rb-price-card.featured { border-color: var(--rb-primary); box-shadow: 0 12px 48px rgba(230,152,41,.2); }
.rb-price-amount { font-size: 2.6rem; font-weight: 900; color: var(--rb-accent); line-height: 1; }
.rb-price-amount sup { font-size: 1rem; vertical-align: top; margin-top: .5rem; }
.rb-price-period { font-size: .85rem; color: var(--rb-text-muted); margin-left: .2rem; }
.rb-price-badge {
  display: inline-block;
  background: var(--rb-primary);
  color: var(--rb-accent);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.rb-price-name { font-size: 1.15rem; font-weight: 800; color: var(--rb-accent); margin-bottom: .3rem; }
.rb-price-meta { font-size: .82rem; color: var(--rb-text-muted); margin-top: .3rem; }
.rb-price-annual { font-size: .8rem; color: var(--rb-text-muted); margin-top: .3rem; }
.rb-feat-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.rb-feat-list li {
  padding: .4rem 0;
  font-size: .9rem;
  color: var(--rb-text);
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}
.rb-feat-list li i { color: var(--rb-primary); margin-top: .1rem; flex-shrink: 0; }
.rb-feat-list li.muted { color: var(--rb-text-muted); }
.rb-feat-list li.muted i { color: var(--rb-border); }
.rb-compare th { background: var(--rb-bg); font-weight: 700; font-size: .85rem; color: var(--rb-text); padding: .75rem 1rem; }
.rb-compare td { padding: .7rem 1rem; font-size: .88rem; vertical-align: middle; border-color: var(--rb-border); }
.rb-compare-val { font-weight: 600; color: var(--rb-accent); }
.rb-check { color: var(--rb-primary); font-size: 1.1rem; }
.rb-cross { color: var(--rb-border); font-size: 1.1rem; }
.rb-section-light { background: var(--rb-bg); padding: 4rem 0; }
.rb-section-white { background: var(--rb-card); padding: 4rem 0; }
.rb-section-dark { background: linear-gradient(135deg, var(--rb-accent), #0a1f33); padding: 4rem 0; }
.rb-faq-item { background: var(--rb-card); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: .75rem; }
.rb-faq-q { font-weight: 700; color: var(--rb-accent); cursor: pointer; }
.rb-faq-a { display: none; margin-top: .75rem; color: var(--rb-text-muted); font-size: .9rem; }
.rb-section-h2 { font-weight: 800; color: var(--rb-accent); font-size: 1.6rem; text-align: center; margin-bottom: 2rem; }
.rb-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(230,152,41,.15);
  color: var(--rb-primary);
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* â”€â”€ Legal / static pages â”€â”€ */
.rb-legal-body { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem; }
.rb-legal-body h1 { font-size: 1.8rem; font-weight: 900; color: var(--rb-accent); margin-bottom: .5rem; }
.rb-legal-body h2 { font-size: 1.15rem; font-weight: 800; color: var(--rb-accent); margin-top: 2rem; margin-bottom: .5rem; }
.rb-legal-body p, .rb-legal-body li { color: var(--rb-text); font-size: .95rem; line-height: 1.75; }
.rb-legal-body ul { padding-left: 1.5rem; }
.rb-legal-updated { font-size: .82rem; color: var(--rb-text-muted); margin-bottom: 2rem; }

/* â”€â”€ Dark mode â”€â”€ */
[data-theme="dark"] {
  --rb-bg:          #0f172a;
  --rb-card:        #1e293b;
  --rb-border:      #334155;
  --rb-text:        #f1f5f9;
  --rb-text-muted:  #94a3b8;
  --rb-accent-soft: #1e3a5f;
  --rb-shadow:      0 2px 16px rgba(0,0,0,.4);
  --rb-shadow-md:   0 8px 40px rgba(0,0,0,.5);
}
[data-theme="dark"] body.rb-public {
  background: var(--rb-bg);
  color: var(--rb-text);
}
[data-theme="dark"] .rb-pub-nav {
  background: var(--rb-card);
  border-color: var(--rb-border);
}
[data-theme="dark"] .rb-pub-brand { color: #e2e8f0; }
[data-theme="dark"] .rb-auth-wrap { background: var(--rb-bg); }
[data-theme="dark"] .rb-auth-card {
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
}
[data-theme="dark"] .rb-auth-card h4 { color: #e2e8f0; }
[data-theme="dark"] .rb-feat {
  background: var(--rb-card);
  border-color: var(--rb-border);
}
[data-theme="dark"] .form-control {
  background: #0f172a;
  border-color: var(--rb-border);
  color: var(--rb-text);
}
[data-theme="dark"] .form-control:focus {
  background: #0f172a;
  border-color: var(--rb-primary);
  color: var(--rb-text);
}
[data-theme="dark"] .form-label { color: #cbd5e1; }
[data-theme="dark"] .text-muted { color: var(--rb-text-muted) !important; }
[data-theme="dark"] .rb-auth-right { background: var(--rb-bg); }
[data-theme="dark"] .rb-auth-inner {
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
}
[data-theme="dark"] .rb-auth-inner h4 { color: #e2e8f0; }
[data-theme="dark"] .rb-price-card { background: var(--rb-card); border-color: var(--rb-border); }
[data-theme="dark"] .rb-compare th { background: var(--rb-card); color: var(--rb-text); }
[data-theme="dark"] .rb-compare td { border-color: var(--rb-border); }
[data-theme="dark"] .rb-faq-item { background: var(--rb-card); }
[data-theme="dark"] .rb-section-white { background: var(--rb-card); }
[data-theme="dark"] .rb-legal-body h1,
[data-theme="dark"] .rb-legal-body h2 { color: #e2e8f0; }

/* ══ SECTION PATTERN UTILITIES ══ */
.section-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--rb-primary, #e69829); display: block; margin-bottom: .5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--rb-accent, #102b45); line-height: 1.2; }
.section-title span { color: var(--rb-primary, #e69829); }
.divider { width: 56px; height: 4px; background: var(--rb-primary, #e69829); border-radius: 2px; margin: 1rem 0; }
.divider-center { margin-left: auto; margin-right: auto; }
