/* Speakout landing — scoped, minimal, Diako navy/white + orange CTA */
.ec-page {
  --ec-navy: #0f172a;
  --ec-navy-2: #1e293b;
  --ec-text: #334155;
  --ec-muted: #64748b;
  --ec-line: #e2e8f0;
  --ec-bg: #ffffff;
  --ec-soft: #f8fafc;
  --ec-orange: #f97316;
  --ec-orange-deep: #ea580c;
  --ec-max: 1120px;
  --ec-pad: clamp(1.25rem, 3vw, 1.5rem);
  --ec-font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --ec-display: "Playfair Display", Georgia, serif;
  --ec-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--ec-navy);
  background: var(--ec-bg);
  font-family: var(--ec-font);
  overflow-x: clip;
}

.ec-page * { box-sizing: border-box; }
.ec-page img { max-width: 100%; display: block; }
.ec-page a { color: inherit; text-decoration: none; }

.ec-wrap {
  width: min(var(--ec-max), calc(100% - (var(--ec-pad) * 2)));
  margin-inline: auto;
}

.ec-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.ec-section--soft { background: var(--ec-soft); }
.ec-section--navy {
  background: var(--ec-navy);
  color: #fff;
}

.ec-kicker {
  margin: 0 0 0.65rem;
  color: var(--ec-orange-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ec-section--navy .ec-kicker { color: #fdba74; }

.ec-h1, .ec-h2, .ec-h3 {
  margin: 0;
  font-family: var(--ec-font);
  font-weight: 800;
  line-height: 1.35;
  color: inherit;
}
.ec-h1 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); max-width: 16ch; }
.ec-h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 0.75rem; }
.ec-h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }

.ec-lead {
  margin: 0;
  color: var(--ec-text);
  font-size: 1.02rem;
  line-height: 1.9;
  max-width: 54ch;
}
.ec-section--navy .ec-lead { color: rgba(255, 255, 255, 0.82); }

.ec-head { margin-bottom: 2rem; max-width: 640px; }

.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ec-ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ec-btn:hover { transform: translateY(-1px); }
.ec-btn--primary {
  background: var(--ec-orange);
  color: #fff;
}
.ec-btn--primary:hover { background: var(--ec-orange-deep); }
.ec-btn--ghost {
  background: transparent;
  color: var(--ec-navy);
  border-color: var(--ec-line);
}
.ec-btn--ghost:hover { border-color: var(--ec-navy); }
.ec-btn--light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.ec-btn--light:hover { background: rgba(255, 255, 255, 0.08); }
.ec-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Reveal */
.ec-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ec-ease), transform 0.65s var(--ec-ease);
}
.ec-reveal.is-in { opacity: 1; transform: none; }

/* Hero */
.ec-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--ec-soft);
  border-bottom: 1px solid var(--ec-line);
}
.ec-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.ec-hero__copy { display: grid; gap: 1rem; align-content: start; }
.ec-hero__brand {
  margin: 0;
  font-family: var(--ec-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ec-navy);
  line-height: 1;
}
.ec-hero__media {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.75rem;
  min-height: 360px;
}
.ec-hero__media figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ec-line);
}
.ec-hero__media figure:first-child { grid-row: span 2; }
.ec-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 170px;
}
.ec-hero__media figure:first-child img { min-height: 360px; }

/* Split */
.ec-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.ec-split--flip { direction: ltr; }
.ec-split--flip > * { direction: rtl; }
.ec-split__media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ec-line);
  background: #fff;
}
.ec-split__media img { width: 100%; height: auto; object-fit: cover; }
.ec-why-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.ec-why-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.85rem;
  align-items: start;
}
.ec-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ec-navy);
  color: #fff;
  font-size: 1rem;
  overflow: hidden;
}
.ec-icon img { width: 100%; height: 100%; object-fit: cover; }

/* Benefits / method grids */
.ec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ec-item {
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--ec-line);
  border-radius: 14px;
  background: #fff;
}
.ec-item p {
  margin: 0;
  color: var(--ec-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}
.ec-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--ec-soft);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  overflow: hidden;
}
.ec-item__icon img { width: 100%; height: 100%; object-fit: cover; }

/* Levels */
.ec-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.ec-tab {
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--ec-line);
  background: #fff;
  color: var(--ec-text);
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ec-tab.is-active {
  background: var(--ec-navy);
  border-color: var(--ec-navy);
  color: #fff;
}
.ec-level {
  display: none;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.35rem;
  border: 1px solid var(--ec-line);
  border-radius: 16px;
  background: #fff;
  animation: ecFade 0.35s var(--ec-ease);
}
.ec-level.is-active { display: grid; }
@keyframes ecFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.ec-level__cover {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ec-line);
  background: var(--ec-soft);
}
.ec-level__cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.ec-level__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 1rem;
}
.ec-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--ec-soft);
  color: var(--ec-navy-2);
  font-size: 0.78rem;
  font-weight: 700;
}
.ec-level__body p {
  margin: 0 0 0.9rem;
  color: var(--ec-text);
  line-height: 1.85;
  font-size: 0.98rem;
}
.ec-level__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.ec-level__body li {
  position: relative;
  padding-right: 1rem;
  color: var(--ec-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.ec-level__body li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ec-orange);
}

/* Books */
.ec-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ec-book {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--ec-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s var(--ec-ease);
}
.ec-book:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}
.ec-book figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ec-soft);
  border: 1px solid var(--ec-line);
}
.ec-book img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.ec-book__level {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--ec-orange-deep);
  font-size: 0.78rem;
  font-weight: 800;
}
.ec-book p {
  margin: 0.35rem 0 0.7rem;
  color: var(--ec-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Method */
.ec-method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Placement / final CTA */
.ec-cta-box {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 1.25rem;
  align-items: center;
}
.ec-cta-box .ec-h2 { margin-bottom: 0.55rem; }

/* FAQ */
.ec-faq {
  display: grid;
  gap: 0.65rem;
  max-width: 800px;
}
.ec-faq details {
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  background: #fff;
  padding: 0.95rem 1.1rem;
}
.ec-faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  color: var(--ec-navy);
}
.ec-faq summary::-webkit-details-marker { display: none; }
.ec-faq summary::after {
  content: "+";
  float: left;
  color: var(--ec-muted);
  font-weight: 700;
}
.ec-faq details[open] summary::after { content: "–"; }
.ec-faq p {
  margin: 0.75rem 0 0;
  color: var(--ec-text);
  line-height: 1.85;
  font-size: 0.95rem;
}

/* CEFR accordion secondary */
.ec-cefr {
  margin-top: 1.5rem;
  border-top: 1px solid var(--ec-line);
  padding-top: 1.25rem;
}
.ec-cefr details {
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  background: #fff;
  padding: 0.95rem 1.1rem;
}
.ec-cefr summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.ec-cefr summary::-webkit-details-marker { display: none; }
.ec-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid var(--ec-line);
}
.ec-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.ec-table-wrap th,
.ec-table-wrap td {
  padding: 0.75rem 0.9rem;
  text-align: right;
  border-bottom: 1px solid var(--ec-line);
  font-size: 0.88rem;
}
.ec-table-wrap th {
  background: var(--ec-navy);
  color: #fff;
  font-weight: 800;
}
.ec-table-wrap tr:last-child td { border-bottom: 0; }

@media (max-width: 980px) {
  .ec-hero__grid,
  .ec-split,
  .ec-level,
  .ec-cta-box { grid-template-columns: 1fr; }
  .ec-grid,
  .ec-books { grid-template-columns: repeat(2, 1fr); }
  .ec-method { grid-template-columns: repeat(2, 1fr); }
  .ec-hero__media { min-height: 0; }
  .ec-hero__media figure:first-child img { min-height: 260px; }
  .ec-level__cover { max-width: 220px; }
}

@media (max-width: 640px) {
  .ec-grid,
  .ec-books,
  .ec-method,
  .ec-hero__media { grid-template-columns: 1fr; }
  .ec-hero__media figure:first-child { grid-row: auto; }
  .ec-actions .ec-btn { flex: 1 1 100%; }
  .ec-h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-reveal, .ec-level, .ec-btn {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
