/* ============================================================
   Fasting Control — theme override for Arsha template
   PURPLE SYSTEM — tokens synced from constants/colors.ts
   (app repo origin/main, build 116 era). Load AFTER main.css.
   Updated 2026-08-20.
============================================================ */

:root {
  --default-font: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  --heading-font: 'Schibsted Grotesk', -apple-system, sans-serif;
  --nav-font: 'Schibsted Grotesk', sans-serif;

  /* Global palette — app tokens */
  --background-color: #F4F1FA;   /* appBackground */
  --default-color: #6E6486;      /* textSecondary */
  --heading-color: #241B33;      /* textPrimary */
  --accent-color: #5B4B8A;       /* plum (primary action) */
  --accent-hover: #473A6E;       /* plum dark */
  --amber: #FFB45E;              /* amber accent */
  --amber-dark: #E8932E;
  --success: #3DBE8B;
  --surface-color: #FFFFFF;      /* boxBackground */
  --contrast-color: #FFFFFF;
}

:root {
  --nav-color: #241B33;
  --nav-hover-color: #5B4B8A;
  --nav-mobile-background-color: #F4F1FA;
  --nav-dropdown-background-color: #FFFFFF;
  --nav-dropdown-color: #241B33;
  --nav-dropdown-hover-color: #5B4B8A;
}

.light-background {
  --background-color: #EFEAF6;   /* lightGray */
  --surface-color: #FFFFFF;
}

/* Dark sections — deep aubergine, amber accent */
.dark-background {
  --background-color: #241B33;
  --default-color: #EDE7F4;
  --heading-color: #FFFFFF;
  --surface-color: #3A2E5C;
  --contrast-color: #FFFFFF;
  --accent-color: #FFB45E;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.015em;
  font-weight: 700;
}
.section-title h2 {
  font-family: var(--heading-font);
  font-weight: 700;
}
.section-title h2::after {
  background: var(--accent-color);
}

/* ---------- Header / nav ---------- */
.header {
  background: rgba(244, 241, 250, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36, 27, 51, 0.06);
}
.header .logo h1 {
  font-family: 'Schibsted Grotesk', sans-serif;
  color: var(--heading-color);
}
.header .logo .brand-icon {
  width: 34px; height: 34px; border-radius: 8px;
  margin-right: 10px;
  box-shadow: 0 2px 8px rgba(36, 27, 51, 0.08);
}
.btn-getstarted, .btn-getstarted:focus {
  background: #5B4B8A;
  color: #fff;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 14px;
  border: none;
  transition: all 0.2s ease;
}
.btn-getstarted:hover {
  background: #473A6E;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(91, 75, 138, 0.28);
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 40px;
  background: linear-gradient(160deg, #241B33 0%, #3A2E5C 60%, #473A6E 100%);
}
.hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
}
.hero h1 .accent {
  color: #FFB45E;
  font-style: italic;
}
.hero p {
  color: rgba(237, 231, 244, 0.85);
  font-size: 18px;
}
.btn-get-started {
  background: #FFB45E;
  color: #241B33;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-get-started:hover {
  background: #E8932E;
  color: #241B33;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 180, 94, 0.35);
}
.btn-watch-video {
  color: #fff !important;
  margin-left: 20px;
}
.btn-watch-video i {
  color: #FFB45E;
  font-size: 28px;
}
.hero .hero-img {
  text-align: center;
}
.hero .hero-img img {
  max-width: 380px;
  border-radius: 36px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
}

/* ---------- Section spacing ---------- */
section {
  padding: 80px 0;
}
.section-title {
  padding-bottom: 50px;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}
.section-title p {
  font-size: 17px;
  color: var(--default-color);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Cards / boxes ---------- */
.service-item, .steps-item, .pricing-item, .faq-item {
  background: var(--surface-color);
  border: 1px solid #E8E0F0;
  box-shadow: 0 2px 10px rgba(36, 27, 51, 0.04);
  border-radius: 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-item:hover, .steps-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -10px rgba(36, 27, 51, 0.14);
}

.services .service-item {
  padding: 30px 26px;
}
.services .service-item .icon {
  background: #EDE7F4;
  color: #5B4B8A;
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.services .service-item .icon i { font-size: 28px; }
.services .service-item h4 a {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 20px;
}

/* Steps / work-process */
.work-process .steps-item {
  overflow: hidden;
}
.work-process .steps-content h3 {
  font-family: var(--heading-font);
  color: var(--heading-color);
}
.work-process .feature-item i {
  color: #3DBE8B;
}

/* Why-us */
.why-us .content h3 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: 26px;
}
.why-us .content strong {
  color: #5B4B8A;
}
.why-us .faq-item {
  background: var(--surface-color);
}
.why-us .faq-item h3 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: 17px;
}
.why-us .faq-item h3 span {
  color: #8A5BA6;
}

/* Pricing card */
.pricing-item {
  padding: 40px 32px;
  text-align: center;
}
.pricing-item h3 {
  font-family: var(--heading-font);
  font-size: 22px;
  color: var(--heading-color);
  margin-bottom: 14px;
}
.pricing-item h4 {
  font-family: var(--heading-font);
  color: #5B4B8A;
  font-size: 54px;
  font-weight: 700;
  margin: 10px 0 20px;
}
.pricing-item h4 sup {
  font-size: 22px;
  top: -20px;
}
.pricing-item h4 span {
  color: var(--default-color);
  font-size: 18px;
  font-weight: 400;
}
.pricing-item ul {
  text-align: left;
  padding: 0 10px;
}
.pricing-item ul li {
  padding: 8px 0;
  color: var(--default-color);
}
.pricing-item ul li i {
  color: #3DBE8B;
  margin-right: 8px;
}
.pricing-item .buy-btn {
  background: #5B4B8A;
  color: #fff !important;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  display: inline-block;
  margin-top: 22px;
  transition: all 0.2s ease;
}
.pricing-item .buy-btn:hover {
  background: #473A6E;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(91, 75, 138, 0.3);
}
.pricing-item.featured {
  border: 2px solid #5B4B8A;
  box-shadow: 0 12px 30px -10px rgba(91, 75, 138, 0.25);
  transform: scale(1.03);
}

/* FAQ */
.faq-2 .faq-item {
  background: var(--surface-color);
  padding: 22px 26px;
  margin-bottom: 14px;
}
.faq-2 .faq-item h3 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: 17px;
}
.faq-2 .faq-icon {
  color: #5B4B8A;
}
.faq-2 .faq-toggle {
  color: #5B4B8A;
}

/* CTA */
.call-to-action {
  position: relative;
}
.call-to-action::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(36, 27, 51, 0.88), rgba(58, 46, 92, 0.75));
}
.call-to-action > .container { position: relative; z-index: 1; }
.call-to-action h3 {
  font-family: var(--heading-font);
  color: #F4F1FA;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
}
.call-to-action p {
  color: rgba(237, 231, 244, 0.82);
}
.cta-btn {
  background: #FFB45E;
  color: #241B33;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.cta-btn:hover {
  background: #E8932E;
  color: #241B33;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 180, 94, 0.35);
}

/* Subscribe */
.subscribe h2 {
  font-family: var(--heading-font);
  color: var(--heading-color);
}
.subscribe .btn-primary {
  background: #5B4B8A;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0 24px;
  font-weight: 600;
}
.subscribe .btn-primary:hover {
  background: #473A6E;
}
.subscribe input[type="email"] {
  background: var(--surface-color);
  border: 1px solid #E8E0F0;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 14px 18px;
}

/* Contact */
.contact .info-item {
  background: var(--surface-color);
  padding: 22px;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 1px solid #E8E0F0;
}
.contact .info-item i {
  background: #EDE7F4;
  color: #5B4B8A;
  font-size: 22px;
  padding: 12px;
  border-radius: 12px;
  margin-right: 16px;
}
.contact .info-item h3 {
  font-family: var(--heading-font);
  font-size: 18px;
  color: var(--heading-color);
  margin-bottom: 4px;
}
.contact form {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #E8E0F0;
}
.contact form button[type="submit"] {
  background: #5B4B8A;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 36px;
  font-weight: 600;
}
.contact form button[type="submit"]:hover {
  background: #473A6E;
}

/* Footer */
.footer {
  background: #241B33;
  color: rgba(237, 231, 244, 0.78);
  padding: 60px 0 20px;
}
.footer-newsletter {
  background: #3A2E5C;
  padding: 50px 0;
}
.footer-newsletter h4 {
  font-family: var(--heading-font);
  color: #F4F1FA;
}
.footer-newsletter p {
  color: rgba(237, 231, 244, 0.7);
}
.footer .sitename {
  font-family: var(--heading-font);
  color: #F4F1FA;
  font-size: 22px;
}
.footer h4 {
  font-family: var(--heading-font);
  color: #F4F1FA;
  font-size: 17px;
}
.footer a, .footer .footer-links a {
  color: rgba(237, 231, 244, 0.7);
  transition: color 0.2s ease;
}
.footer a:hover, .footer .footer-links a:hover {
  color: #FFB45E;
}
.footer .social-links a {
  background: rgba(237, 231, 244, 0.08);
  color: #F4F1FA;
  border: none;
}
.footer .social-links a:hover {
  background: #5B4B8A;
  color: #fff;
}
.footer .copyright {
  color: rgba(237, 231, 244, 0.5);
}

/* ---------- Custom FC components ---------- */
.eyebrow-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #FFB45E;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(255, 180, 94, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  margin-top: 40px;
}
.stat-grid .stat-num {
  font-family: var(--heading-font);
  color: #5B4B8A;
  font-size: 38px;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.stat-grid .stat-label {
  color: var(--default-color);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.roadmap-item {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #E8E0F0;
  background: var(--surface-color);
}
.roadmap-item.done { border-left: 4px solid #3DBE8B; }
.roadmap-item.now  { border-left: 4px solid #5B4B8A; }
.roadmap-item.next { border-left: 4px solid #FFB45E; }
.roadmap-item .stage {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--default-color);
  margin-bottom: 10px;
}
.roadmap-item.done .stage { color: #3DBE8B; }
.roadmap-item.now  .stage { color: #5B4B8A; }
.roadmap-item.next .stage { color: #E8932E; }
.roadmap-item h4 {
  font-family: var(--heading-font);
  font-size: 17px;
  color: var(--heading-color);
  margin-bottom: 8px;
}
.roadmap-item p {
  font-size: 14px;
  color: var(--default-color);
  margin: 0;
}
@media (max-width: 768px) {
  .roadmap-timeline { grid-template-columns: 1fr; }
}

/* CTA text safety */
.call-to-action h3,
.call-to-action p {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

/* Steps-number badge */
.work-process .steps-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #5B4B8A;
  color: #fff !important;
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 6px 16px rgba(91, 75, 138, 0.28);
  margin-bottom: 14px;
}

