/* CalmioBot — light landing, teal–green accents */

:root {
  --bg: #f4fbf9;
  --bg-elevated: #ffffff;
  --text: #0c1f1a;
  --text-muted: #4a6b62;
  --border: #c5e4dc;
  --teal: #0d9488;
  --teal-hover: #0f766e;
  --teal-soft: #ccfbf1;
  --mint: #5eead4;
  --green: #059669;
  --green-hover: #047857;
  --green-soft: #d1fae5;
  --shadow: 0 4px 24px rgba(13, 148, 136, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 148, 136, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
  font-family: var(--font), "Segoe UI", "Tahoma", sans-serif;
}

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 640px;
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  color: var(--teal);
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.35);
}

.logo__mark--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.logo__text {
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }
}

.nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 99;
}

.nav.nav--open {
  display: flex;
}

.nav__link {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nav__link:last-child {
  border-bottom: none;
}

.nav__link:hover {
  color: var(--teal);
  text-decoration: none;
}

@media (min-width: 880px) {
  .nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav__link {
    padding: 0;
    border: none;
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.lang-row button {
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.lang-row button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.lang-row button.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-hover);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--green), #10b981);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--green-hover), var(--green));
  color: #fff;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.btn--ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* ——— Hero ——— */
.hero {
  padding: 2.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.text-gradient {
  background: linear-gradient(120deg, var(--teal), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.hero__blob {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(94, 234, 212, 0.35) 0%,
    rgba(13, 148, 136, 0.08) 55%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.mock-window {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  background: var(--bg-elevated);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mock-window__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, #ecfdf5, #f0fdfa);
  border-bottom: 1px solid var(--border);
}

.mock-window__dots::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 16px 0 0 #fbbf24, 32px 0 0 #4ade80;
}

.mock-window__title {
  margin-left: 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-window__body {
  padding: 1rem 1rem 1.25rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px 12px 12px 4px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 0.8rem;
  color: var(--text);
}

.mock-bubble--dim {
  opacity: 0.75;
}

.mock-toast {
  align-self: flex-end;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669, #0d9488);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
  animation: toast-pop 2.4s ease-in-out infinite;
}

.mock-toast__icon {
  font-size: 1rem;
}

@keyframes toast-pop {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-6px) scale(1.02);
    opacity: 0.95;
  }
}

/* ——— Sections ——— */
.section {
  padding: 3rem 0;
}

.section--steps {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--form {
  background: linear-gradient(180deg, var(--bg) 0%, #e8faf6 100%);
}

.section--pricing {
  background: var(--bg-elevated);
}

.section--faq {
  padding-bottom: 4rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 36rem;
}

/* ——— Steps ——— */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps__item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.steps__item:hover {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: var(--shadow);
}

.steps__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  color: var(--teal);
}

.steps__icon svg {
  width: 100%;
  height: 100%;
}

.steps__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.steps__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ——— Form ——— */
.form-loading {
  text-align: center;
  color: var(--text-muted);
  min-height: 1.5rem;
}

.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0.85rem 0 0.35rem;
}

.form-label:first-of-type {
  margin-top: 0;
}

.form-select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fafefd;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-select:focus {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  outline-offset: 2px;
  border-color: var(--teal);
}

.form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-summary {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--teal-soft);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 0;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ——— Pricing ——— */
.pricing {
  display: grid;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing__note {
  max-width: 640px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  background: var(--teal-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.price-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.price-card--featured {
  background: linear-gradient(160deg, #ecfdf5 0%, #fff 50%);
  border-color: #6ee7b7;
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.15);
}

.price-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.price-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.price-card__amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--teal);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.price-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ——— FAQ ——— */
.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.faq-q:hover {
  background: var(--teal-soft);
}

.faq-q__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  position: relative;
}

.faq-q__icon::before,
.faq-q__icon::after {
  content: "";
  position: absolute;
  background: var(--teal);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s;
}

.faq-q__icon::before {
  width: 10px;
  height: 2px;
}

.faq-q__icon::after {
  width: 2px;
  height: 10px;
}

.faq-item.is-open .faq-q__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-a {
  display: none;
  padding: 0 1.25rem 1.1rem;
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-a p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ——— Footer ——— */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 0;
  margin-top: 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: #f1f5f9;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.footer__link {
  color: #5eead4;
  text-decoration: none;
}

.footer__link:hover {
  color: #99f6e4;
  text-decoration: underline;
}

.footer__dot {
  opacity: 0.4;
}

.footer__copy {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* ——— Blog list ——— */
.blog-page {
  padding: 2.5rem 0 4rem;
  min-height: 50vh;
}

.blog-page__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.blog-page__intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 40rem;
}

.blog-page__loading,
.blog-page__error {
  padding: 2rem 0;
  color: var(--text-muted);
}

.blog-page__error {
  color: #f87171;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.blog-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
  transform: translateY(-2px);
}

.blog-card__img-wrap {
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.blog-card__img-wrap--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.5;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-card__desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ——— Blog post ——— */
.blog-post-page {
  padding: 2rem 0 4rem;
  min-height: 50vh;
}

.blog-post-page__inner {
  max-width: 720px;
}

.blog-post-page__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--teal);
  text-decoration: none;
  font-size: 0.95rem;
}

.blog-post-page__back:hover {
  text-decoration: underline;
}

.blog-article__header {
  margin-bottom: 1.5rem;
}

.blog-article__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.blog-article__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-article__figure {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-article__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.blog-article__content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.blog-article__content h2,
.blog-article__content h3 {
  margin: 1.75rem 0 0.75rem;
  font-weight: 700;
}

.blog-article__content p {
  margin: 0 0 1rem;
}

.blog-article__content ul,
.blog-article__content ol {
  margin: 0 0 1rem 1.25rem;
}

.blog-article__content a {
  color: var(--teal);
}

.blog-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
