.seo-hero {
  padding-block: clamp(58px, 8vw, 104px) 70px;
  background: var(--dawai-ivory);
}

.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--dawai-muted);
  font-size: 14px;
}

.seo-breadcrumb a,
.seo-privacy-link a {
  color: var(--dawai-teal);
  font-weight: 600;
}

.seo-hero-grid,
.seo-content-section.with-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
}

.seo-hero-grid.content-only {
  grid-template-columns: minmax(0, 1fr);
}

.seo-hero-copy {
  max-width: 790px;
}

.seo-hero-copy h1,
.seo-not-found h1 {
  margin: 20px 0;
  color: var(--dawai-teal);
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.2;
  text-wrap: balance;
}

.seo-hero-copy > p {
  max-width: 70ch;
  color: var(--dawai-body);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.8;
}

.seo-hero-copy .trial-message {
  color: var(--dawai-muted);
  font-size: 15px;
}

.seo-hero-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.seo-hero-phones .seo-phone {
  width: min(285px, 48%);
}

.seo-content {
  padding-block: 38px 100px;
}

.seo-content-section {
  margin-block: 34px;
  padding: clamp(26px, 4.5vw, 54px);
  border: 1px solid var(--dawai-border);
  border-radius: 28px;
  background: #fffdfa;
  box-shadow: 0 12px 34px rgb(19 33 31 / 5%);
}

.seo-section-copy {
  min-width: 0;
}

.seo-content-section h2,
.seo-price-section h2,
.seo-final-cta h2,
.seo-not-found h2 {
  margin: 0 0 18px;
  color: var(--dawai-teal);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.seo-content-section p,
.seo-content-section li {
  color: var(--dawai-body);
  font-size: 17px;
  line-height: 1.8;
}

.seo-content-section .seo-answer {
  color: var(--dawai-ink);
  font-size: 18px;
  font-weight: 500;
}

.seo-content-section ul {
  display: grid;
  gap: 8px;
  padding-inline-start: 24px;
}

.seo-section-visual {
  display: flex;
  min-width: 0;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 26px;
  background: var(--dawai-mint);
}

.seo-section-visual .seo-phone {
  width: min(300px, 100%);
}

.seo-content-section.with-visual > * { min-width: 0; }
.seo-section-visual { width: 100%; max-width: 100%; box-sizing: border-box; background: transparent; padding: 24px; }
.seo-content-section.with-visual { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; }
@media (max-width: 1023px) {
  .seo-content-section.with-visual { grid-template-columns: minmax(0, 1fr); }
  .seo-content-section.with-visual .seo-section-visual { max-width: 560px; justify-self: center; }
}

.seo-phone.phone-illustration {
  overflow: visible;
}

.seo-faq-list {
  display: grid;
  gap: 12px;
}

.seo-faq-list details {
  padding: 19px 22px;
  border: 1px solid var(--dawai-border);
  border-radius: 18px;
  background: var(--dawai-ivory);
}

.seo-faq-list summary {
  color: var(--dawai-teal);
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}

.seo-faq-list p {
  margin: 12px 0 0;
}

.seo-price-section {
  margin-block: 64px;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--dawai-border);
  border-radius: 30px;
  background: var(--dawai-cream);
}

.seo-price-section > .seo-answer {
  color: var(--dawai-body);
  font-size: 17px;
}

.seo-price-section .pricing-grid {
  margin-top: 28px;
}

.seo-price-section .button-white {
  display: inline-flex;
  margin-top: 12px;
  color: var(--dawai-teal);
}

.seo-price-section .pricing-renewal,
.seo-privacy-link {
  color: var(--dawai-muted);
  font-size: 15px;
}

.seo-final-cta {
  margin-top: 78px;
  padding: clamp(32px, 6vw, 70px);
  border-radius: 30px;
  background: var(--dawai-teal);
  color: white;
  text-align: center;
}

.seo-final-cta h2,
.seo-final-cta p {
  color: white;
}

.seo-final-cta p {
  max-width: 68ch;
  margin: 0 auto 22px;
  line-height: 1.8;
}

.seo-not-found {
  min-height: 55vh;
  padding-block: 90px;
}

.seo-not-found p {
  max-width: 60ch;
  color: var(--dawai-body);
}

.seo-not-found ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  padding-inline-start: 24px;
}

.seo-not-found li a {
  color: var(--dawai-teal);
}

.seo-related {
  margin-block: 44px;
  padding: 28px;
  border-radius: 24px;
  background: var(--dawai-mint);
}

.seo-related h2 {
  margin-top: 0;
  color: var(--dawai-teal);
  font-size: 26px;
  line-height: 1.6;
}

.seo-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-inline-start: 22px;
}

.seo-related a {
  color: var(--dawai-teal);
  font-weight: 500;
}

@media (max-width: 760px) {
  .seo-hero-grid,
  .seo-content-section.with-visual {
    grid-template-columns: minmax(0, 1fr);
  }

  .seo-hero-grid {
    gap: 28px;
  }

  .seo-hero-phones .seo-phone {
    width: min(245px, 46%);
  }

  .seo-content-section {
    margin-block: 22px;
    padding: 24px;
  }

  .seo-section-visual {
    width: min(100%, 390px);
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .seo-hero {
    padding-block: 42px 44px;
  }

  .seo-breadcrumb {
    margin-bottom: 24px;
  }

  .seo-hero-copy h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .seo-hero-phones {
    gap: 10px;
  }

  .seo-hero-phones .seo-phone {
    width: min(205px, 48%);
  }

  .seo-content-section h2 {
    font-size: 27px;
  }

  .seo-not-found ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Search pages: generous reading rhythm, with the homepage palette left intact. */
.seo-hero,
.seo-content,
.seo-not-found {
  min-width: 0;
}

.seo-hero-copy h1,
.seo-content-section h2,
.seo-price-section h2,
.seo-final-cta h2,
.seo-not-found h1,
.seo-not-found h2 {
  overflow-wrap: anywhere;
}

.seo-hero-copy h1 {
  line-height: 1.16;
}

.seo-hero-copy > p {
  margin-block: 18px 0;
}

.seo-hero-copy .trial-message {
  line-height: 1.7;
}

.seo-breadcrumb a,
.seo-privacy-link a,
.seo-not-found li a {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.seo-breadcrumb a:hover,
.seo-privacy-link a:hover,
.seo-not-found li a:hover {
  color: var(--dawai-orange-text);
}

.seo-content-section,
.seo-price-section,
.seo-faq-list details {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.seo-content-section:hover,
.seo-price-section:hover {
  border-color: rgb(14 79 75 / 28%);
  box-shadow: 0 16px 38px rgb(19 33 31 / 7%);
}

.seo-content-section.with-visual {
  align-items: center;
}

.seo-content-section p,
.seo-content-section li,
.seo-faq-list p {
  line-height: 1.78;
}

.seo-content-section p:last-child,
.seo-content-section ul:last-child {
  margin-bottom: 0;
}

.seo-section-visual {
  min-height: 220px;
}

.seo-phone.phone-illustration {
  margin-bottom: 52px;
}

.seo-hero-phones .seo-phone.phone-illustration {
  margin-bottom: 52px;
}

.seo-section-visual .seo-phone.phone-illustration {
  margin-bottom: 50px;
}

.seo-faq-list details {
  scroll-margin-top: 110px;
}

.seo-faq-list details[open] {
  border-color: rgb(14 79 75 / 34%);
  box-shadow: 0 8px 24px rgb(19 33 31 / 5%);
}

.seo-faq-list summary {
  padding-inline-end: 4px;
  text-underline-offset: 4px;
}

.seo-faq-list summary:hover {
  color: var(--dawai-orange-text);
}

.seo-faq-list details > p {
  max-width: 76ch;
}

.seo-price-section .pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.seo-price-section .plan-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.seo-price-section .plan-card .button {
  max-width: 100%;
  white-space: normal;
}

.seo-price-section .pricing-renewal {
  line-height: 1.7;
}

.seo-final-cta {
  overflow: hidden;
}

.seo-final-cta h2 {
  line-height: 1.3;
}

.seo-final-cta p {
  font-size: 17px;
}

.seo-not-found {
  padding-block: clamp(64px, 9vw, 110px);
}

.seo-not-found p,
.seo-not-found li {
  line-height: 1.75;
}

.seo-pages a:focus-visible,
.seo-pages button:focus-visible,
.seo-pages summary:focus-visible,
.seo-breadcrumb a:focus-visible,
.seo-privacy-link a:focus-visible,
.seo-not-found a:focus-visible {
  outline: 3px solid var(--dawai-orange);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Arabic needs a little more vertical room for joined letterforms and marks. */
:where([lang="ar"], [dir="rtl"]) .seo-hero-copy h1,
:where([lang="ar"], [dir="rtl"]) .seo-not-found h1 {
  line-height: 1.55;
  letter-spacing: 0;
}

:where([lang="ar"], [dir="rtl"]) .seo-hero-copy > p,
:where([lang="ar"], [dir="rtl"]) .seo-content-section p,
:where([lang="ar"], [dir="rtl"]) .seo-content-section li,
:where([lang="ar"], [dir="rtl"]) .seo-faq-list summary,
:where([lang="ar"], [dir="rtl"]) .seo-faq-list p,
:where([lang="ar"], [dir="rtl"]) .seo-price-section,
:where([lang="ar"], [dir="rtl"]) .seo-final-cta p,
:where([lang="ar"], [dir="rtl"]) .seo-not-found p,
:where([lang="ar"], [dir="rtl"]) .seo-not-found li {
  line-height: 1.9;
}

:where([lang="ar"], [dir="rtl"]) .seo-content-section h2,
:where([lang="ar"], [dir="rtl"]) .seo-price-section h2,
:where([lang="ar"], [dir="rtl"]) .seo-final-cta h2,
:where([lang="ar"], [dir="rtl"]) .seo-not-found h2 {
  line-height: 1.55;
}

@media (max-width: 760px) {
  .seo-hero {
    padding-block: 54px 58px;
  }

  .seo-content {
    padding-block: 26px 72px;
  }

  .seo-content-section {
    padding: clamp(22px, 5vw, 30px);
    border-radius: 24px;
  }

  .seo-content-section.with-visual {
    gap: 24px;
  }

  .seo-hero-phones {
    gap: clamp(10px, 3vw, 20px);
  }

  .seo-hero-phones .seo-phone {
    width: min(250px, 46%);
  }

  .seo-price-section {
    margin-block: 46px;
    border-radius: 25px;
  }

  .seo-price-section .pricing-grid {
    margin-top: 22px;
  }
}

@media (max-width: 560px) {
  .seo-price-section .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
    margin-inline: auto;
  }

  .seo-price-section .plan-card {
    padding: 26px 22px;
  }

  .seo-price-section .plan-badge {
    inset-inline-end: 16px;
    max-width: 45%;
    white-space: normal;
    text-align: center;
  }

  .seo-final-cta {
    margin-top: 56px;
    border-radius: 24px;
  }
}

@media (max-width: 380px) {
  .seo-hero-phones .seo-phone {
    width: min(205px, 46%);
  }

  .seo-content-section {
    padding: 20px 18px;
  }

  .seo-faq-list details {
    padding: 17px 18px;
  }

  .seo-price-section {
    padding: 22px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-breadcrumb a,
  .seo-privacy-link a,
  .seo-not-found li a,
  .seo-content-section,
  .seo-price-section,
  .seo-faq-list details {
    scroll-behavior: auto;
    transition: none;
  }
}
