/* Break Time Now Design System - Vanilla CSS Version */

/* Break Time Now Design System - Clean, institutional, Google Ads compliant
All colors MUST be HSL - professional blues, grays, and clean whites
*/

:root {
  /* Clean institutional palette */
  --background: 210 40% 98%;
  --foreground: 210 11% 15%;

  /* Card system */
  --card: 0 0% 100%;
  --card-foreground: 210 11% 15%;

  /* Popover system */
  --popover: 0 0% 100%;
  --popover-foreground: 210 11% 15%;

  /* Brand primary - professional blue */
  --primary: 210 100% 40%;
  --primary-foreground: 0 0% 100%;
  --primary-soft: 210 100% 95%;

  /* Secondary - light professional blue */
  --secondary: 210 40% 96%;
  --secondary-foreground: 210 11% 15%;

  /* Muted tones */
  --muted: 210 40% 96%;
  --muted-foreground: 210 6% 46%;

  /* Accent - soft blue */
  --accent: 210 40% 96%;
  --accent-foreground: 210 11% 15%;

  /* Destructive - soft red for compliance */
  --destructive: 0 50% 50%;
  --destructive-foreground: 0 0% 100%;

  /* Borders and inputs - clean and professional */
  --border: 210 20% 90%;
  --input: 210 20% 94%;
  --ring: 210 100% 40%;

  /* Clean radius for institutional look */
  --radius: 0.375rem;

  /* Success and warning states */
  --success: 142 76% 36%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 100%;

  /* Header and navigation */
  --header-bg: 0 0% 100%;
  --nav-hover: 210 40% 96%;

  /* Professional gradients */
  --gradient-hero: linear-gradient(135deg, hsl(210 100% 40%), hsl(210 100% 50%));
  --gradient-card: linear-gradient(145deg, hsl(0 0% 100%), hsl(210 20% 98%));
  --gradient-soft: linear-gradient(180deg, hsl(210 40% 98%), hsl(0 0% 100%));

  /* Shadows - professional and subtle */
  --shadow-soft: 0 1px 3px 0 hsl(210 20% 15% / 0.1), 0 1px 2px 0 hsl(210 20% 15% / 0.06);
  --shadow-medium: 0 4px 6px -1px hsl(210 20% 15% / 0.1), 0 2px 4px -1px hsl(210 20% 15% / 0.06);
  --shadow-elegant: 0 10px 15px -3px hsl(210 20% 15% / 0.1), 0 4px 6px -2px hsl(210 20% 15% / 0.05);

  /* Transitions */
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Removed dark mode to match React version light theme */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Typography */
h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.875rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.25rem;
  }
}

/* Navigation */
.nav {
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-soft);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
  }
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon span {
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  background: hsl(var(--nav-hover));
  color: hsl(var(--primary));
}

.nav-language {
  margin-left: 1rem;
}

.language-dropdown {
  position: relative;
  margin-left: 0.5rem;
}

.language-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.5rem;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.language-button:hover {
  background: hsl(var(--secondary));
}

.language-icon {
  width: 1rem;
  height: 1rem;
}

.language-code {
  text-transform: uppercase;
  font-weight: 500;
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  min-width: 8rem;
  z-index: 10;
  display: none;
}

.language-menu.show {
  display: block;
}

.language-option {
  display: block;
  padding: 0.5rem 0.75rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.language-option:hover {
  background: hsl(var(--secondary));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 1.5rem;
  height: 2px;
  background: hsl(var(--foreground));
  margin: 0.2rem 0;
  transition: var(--transition-smooth);
}

@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 4rem;
    flex-direction: column;
    background: hsl(var(--header-bg));
    width: 100%;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-medium);
    padding: 2rem 0;
    gap: 1rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Page Management */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-soft);
  padding: 1rem 0 4rem;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 1.5rem 0 6rem;
  }
}

.hero-mobile {
  display: block;
}

.hero-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .hero-mobile {
    display: none;
  }
  .hero-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.hero-mobile-content {
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge-mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  width: fit-content;
  margin: 0 auto;
}

.badge-icon-mobile {
  width: 0.75rem;
  height: 0.75rem;
}

.badge-desktop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  width: fit-content;
}

.badge-icon-desktop {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 1024px) {
  .badge {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
  .badge-icon {
    width: 1rem;
    height: 1rem;
  }
}

.hero-title-mobile {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.hero-title-desktop {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title-desktop {
    font-size: 3.75rem;
  }
}

.hero-subtitle-desktop {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hero-text-desktop {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.hero-preview-mobile {
  position: relative;
  max-width: 12.5rem;
  margin: 0 auto;
}

.preview-image-mobile {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
}

.preview-badge-mobile {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: hsl(var(--success));
  color: hsl(var(--success-foreground));
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.hero-image-desktop {
  position: relative;
}

.mockup-image-desktop {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elegant);
}

.image-badge-desktop {
  position: absolute;
  top: -1rem;
  right: -1rem;
  background: hsl(var(--success));
  color: hsl(var(--success-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-description-mobile {
  text-align: center;
}

.hero-description-mobile p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  padding: 0 0.5rem;
}

/* MSISDN Form */
.hero-form-mobile {
  margin: 1rem 0;
}

.hero-form-desktop {
  display: none;
  max-width: 28rem;
  margin: 3rem auto 0;
}

@media (min-width: 1024px) {
  .hero-form-mobile {
    display: none;
  }
  .hero-form-desktop {
    display: block;
  }
}

.msisdn-form {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-medium);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.form-label-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.phone-icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

.phone-input-mobile {
  width: 100%;
  background: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.75rem;
  color: hsl(var(--foreground));
  font-size: 1.125rem;
  text-align: center;
}

.phone-input-desktop {
  width: 100%;
  background: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.75rem;
  color: hsl(var(--foreground));
  font-size: 1.125rem;
  text-align: center;
}

.phone-input-mobile:focus,
.phone-input-desktop:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring));
}

.submit-btn-mobile {
  width: 100%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.submit-btn-desktop {
  width: 100%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.submit-btn-mobile:hover,
.submit-btn-desktop:hover {
  background: hsl(210, 100%, 35%);
}

.form-info-mobile {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.form-info-desktop {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shield-icon {
  width: 0.75rem;
  height: 0.75rem;
  color: hsl(var(--success));
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 0;
  background: hsl(0, 0%, 100%, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.section-header p {
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-hero);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

.step-card p {
  color: hsl(var(--muted-foreground));
}

/* Features Section */
.features {
  padding: 4rem 0;
}

.features-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .features-content {
    grid-template-columns: 1fr 1fr;
  }
}

.features-image {
  text-align: center;
}

.features-img {
  width: 100%;
  max-width: 28rem;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elegant);
}

.features-text h2 {
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}

.features-list {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(var(--primary-soft));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  color: hsl(var(--primary));
  font-size: 1.25rem;
}

.feature-content h3 {
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: hsl(var(--muted-foreground));
}

.pricing-info {
  background: hsl(var(--primary-soft));
  padding: 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pricing-check {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.pricing-check i {
  color: hsl(var(--success));
  font-size: 1.25rem;
}

.pricing-title {
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.pricing-text {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background: hsl(var(--secondary));
  border-top: 1px solid hsl(var(--border));
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 3rem 0 0;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 2fr;
  }
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius);
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon span {
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
}

.footer-logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.footer-brand p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-section h4 {
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-section a {
  display: block;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: var(--transition-smooth);
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: hsl(var(--primary));
}

.footer-contact {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom p {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 1rem;
  box-shadow: var(--shadow-medium);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-notice.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 767px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

.cookie-content p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cookie-btn.accept {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.cookie-btn.decline {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

.cookie-btn:hover {
  opacity: 0.9;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}

.toast {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-medium);
  max-width: 20rem;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-left: 4px solid hsl(var(--success));
}

.toast.error {
  border-left: 4px solid hsl(0, 50%, 50%);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Utilities */
.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn[disabled], .btn.disabled {
  background: rgba(0, 0, 0, .1);
  color: rgba(0, 0, 0, .3);
  box-shadow: none;
}