/* Tamakkin Premium Copy + Hero UX Final
   Scope: hero content hierarchy, header brand safety, mobile readability.
   No data, routes, dashboards, or Supabase changes. */

.site-header .brand-name,
header .brand-name,
.navbar .brand-name,
.logo-title,
.brand-main {
  font-size: clamp(15px, 1.45vw, 18px) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.site-header .brand-subtitle,
header .brand-subtitle,
.navbar .brand-subtitle,
.logo-subtitle,
.brand-tagline,
.brand-sub {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: clamp(10px, .85vw, 12px) !important;
  font-weight: 800 !important;
  color: #4f665f !important;
  line-height: 1.12 !important;
  margin-top: 3px !important;
  white-space: nowrap !important;
}

html[data-theme="dark"] .site-header .brand-subtitle,
body.dark .site-header .brand-subtitle,
html[data-theme="dark"] header .brand-subtitle,
body.dark header .brand-subtitle,
html[data-theme="dark"] .navbar .brand-subtitle,
body.dark .navbar .brand-subtitle {
  color: rgba(236,245,241,.74) !important;
}

.tmk-hero-premium-title {
  max-width: 760px !important;
  margin: 18px 0 18px auto !important;
  text-align: right !important;
  color: #10251f !important;
  font-size: clamp(2.45rem, 5vw, 4.8rem) !important;
  line-height: 1.08 !important;
  font-weight: 950 !important;
  letter-spacing: -0.045em !important;
  text-wrap: balance !important;
}

html[data-theme="dark"] .tmk-hero-premium-title,
body.dark .tmk-hero-premium-title {
  color: #f8fafc !important;
}

.tmk-hero-brand-title {
  max-width: 760px !important;
  margin: 18px 0 18px auto !important;
  align-items: flex-end !important;
  text-align: right !important;
}

.hero p,
.hero .hero-copy,
.hero .hero-description {
  max-width: 690px !important;
  margin-inline: 0 auto !important;
  text-align: right !important;
  color: #526961 !important;
  line-height: 1.95 !important;
  font-weight: 650 !important;
  text-wrap: pretty !important;
}

html[data-theme="dark"] .hero p,
body.dark .hero p,
html[data-theme="dark"] .hero .hero-copy,
body.dark .hero .hero-copy,
html[data-theme="dark"] .hero .hero-description,
body.dark .hero .hero-description {
  color: rgba(236,245,241,.76) !important;
}

.tmk-hero-benefits {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 18px 0 6px auto !important;
  max-width: 720px !important;
}

.tmk-hero-benefits span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 36px !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
  background: rgba(15, 138, 100, .08) !important;
  border: 1px solid rgba(15, 138, 100, .14) !important;
  color: #0f7b5f !important;
  font-size: .9rem !important;
  font-weight: 850 !important;
}

.tmk-hero-benefits span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f8a64;
}

html[data-theme="dark"] .tmk-hero-benefits span,
body.dark .tmk-hero-benefits span {
  background: rgba(134,239,172,.11) !important;
  border-color: rgba(134,239,172,.18) !important;
  color: #86efac !important;
}

html[data-theme="dark"] .tmk-hero-benefits span::before,
body.dark .tmk-hero-benefits span::before {
  background: #86efac;
}

@media (max-width: 760px) {
  .site-header .brand,
  header .brand,
  .navbar .brand,
  .header-brand,
  .brand-link {
    max-width: 58vw !important;
    overflow: visible !important;
  }

  .site-header .brand-name,
  header .brand-name,
  .navbar .brand-name,
  .logo-title,
  .brand-main {
    font-size: 14.5px !important;
  }

  .site-header .brand-subtitle,
  header .brand-subtitle,
  .navbar .brand-subtitle,
  .logo-subtitle,
  .brand-tagline,
  .brand-sub {
    font-size: 10px !important;
    display: block !important;
  }

  .tmk-hero-premium-title {
    font-size: clamp(2.15rem, 9.2vw, 3.35rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.035em !important;
    margin: 16px 0 16px auto !important;
    max-width: 100% !important;
  }

  .hero p,
  .hero .hero-copy,
  .hero .hero-description {
    max-width: 100% !important;
    font-size: 1rem !important;
    line-height: 1.85 !important;
  }

  .tmk-hero-benefits {
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }

  .tmk-hero-benefits span {
    font-size: .82rem !important;
    min-height: 34px !important;
    padding: 7px 11px !important;
  }
}

@media (max-width: 390px) {
  .tmk-hero-premium-title {
    font-size: 2.05rem !important;
  }

  .tmk-hero-benefits span {
    width: 100%;
    justify-content: flex-end;
  }
}

/* iOS Safari AI Assistant Zoom Fix */
.ai-assistant input,
.ai-assistant textarea,
.ai-chat-input,
.ai-assistant-panel textarea,
.ai-widget-panel textarea {
  font-size: 16px !important;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .ai-assistant-panel,
  .ai-chat-panel,
  .ai-widget-panel {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    left: 12px !important;
    right: auto !important;
    transform: none !important;
    overflow-x: hidden !important;
  }

  .ai-assistant-panel * {
    max-width: 100%;
    box-sizing: border-box;
  }
}
