/* Shared layout for the three Persian footer destinations. */
.footer-page {
  --page-blue: #1c3c8c;
  --page-muted: #605e63;
  --page-shadow: -2px 2px 12px rgb(0 0 0 / 6%);
}
.footer-page .footer-row-desktop {
  padding-top: 31px;
}
.page-content {
  padding: 64px 120px 96px;
}
.page-content h2,
.page-content h3,
.page-content p {
  direction: rtl;
  text-align: right;
}
.page-material-icon {
  font-family: "Material Icons Round";
  font-size: 24px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
  color: var(--page-blue);
}

/* The hero shares the landing page's navigation, typography, and gradient. */
.page-hero-body {
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
  padding: 0 120px 40px;
}
.page-hero-stage {
  position: relative;
  flex-shrink: 0;
  width: 400px;
  height: 300px;
}
.page-hero-glow {
  position: absolute;
  left: -60px;
  top: -110px;
}
.page-hero-art-frame {
  position: absolute;
  overflow: hidden;
}
.page-hero-art {
  display: block;
  max-width: none;
  pointer-events: none;
}
.about-page .page-hero-stage .page-hero-art-frame {
  left: 0;
  top: -40px;
  width: 318px;
  height: 318px;
}
.about-page .page-hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-page .page-hero-stage .page-hero-art-frame {
  left: 79px;
  top: 10px;
  width: 242px;
  height: 270px;
}
.contact-page .page-hero-art {
  position: absolute;
  left: -20.04%;
  top: -10.76%;
  width: 132.98%;
  height: 119.43%;
}
.privacy-page .page-hero-stage .page-hero-art-frame {
  left: 66px;
  top: 10px;
  width: 268px;
  height: 270px;
}
.privacy-page .page-hero-art {
  position: absolute;
  left: -15.5%;
  top: -12.95%;
  width: 128.75%;
  height: 127.83%;
}
.page-hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 20px;
  background: white;
  box-shadow: -3px 6px 28px rgb(0 0 0 / 8%);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  rotate: 4deg;
}
.about-page .page-hero-chip {
  left: 198.2px;
  top: 246px;
}
.contact-page .page-hero-chip {
  left: 174.23px;
  top: 222px;
  font-family: Comme, sans-serif;
}
.privacy-page .page-hero-chip {
  left: -25.63px;
  top: 246px;
}
.page-chip-icon {
  display: flex;
  padding: 4px;
  border-radius: 50%;
  background: #dce5f8;
}
.page-hero-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  color: white;
  direction: rtl;
  text-align: right;
}
.page-hero-copy h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 80px;
}
.page-hero-copy p {
  font-size: 18px;
  line-height: 32px;
}

/* About: the illustrated story and four benefits. */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.about-story {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 56px;
  position: relative;
  overflow: clip;
  border-radius: 40px;
  background: linear-gradient(#eef2fc, #d2ddf6);
  box-shadow: var(--page-shadow);
}
.about-story-stage {
  position: relative;
  width: 440px;
  height: 440px;
}
.about-story-orbs,
.about-tile-orbs,
.contact-email-orbs,
.contact-report-orbs {
  position: absolute;
  pointer-events: none;
}
.about-story-orbs {
  left: -164px;
  top: -44px;
}
.about-story-art {
  position: absolute;
  left: 70px;
  top: 55.5px;
  width: 300px;
  height: 329px;
  object-fit: contain;
}
.story-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 999px;
  background: rgb(255 255 255 / 60%);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgb(4 12 31 / 8%);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}
.story-chip .page-material-icon {
  font-size: 20px;
  line-height: 20px;
}
.story-chip-audio {
  left: -8px;
  top: 96px;
  rotate: 4deg;
}
.story-chip-meaning {
  left: 262px;
  top: 40px;
  rotate: -3deg;
}
.story-chip-review {
  left: 214px;
  top: 372px;
  rotate: 3deg;
}
.about-story-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
}
.story-eyebrow {
  padding: 6px 14px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 999px;
  background: rgb(255 255 255 / 60%);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgb(4 12 31 / 8%);
  color: var(--page-blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.about-story h2,
.about-no-more > h2 {
  width: 100%;
  font-size: 36px;
  font-weight: 700;
  line-height: 52px;
}
.story-beat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 20px;
  background: rgb(255 255 255 / 50%);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgb(4 12 31 / 6%);
}
.story-beat-label {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.story-beat-before {
  background: #f5dee5;
  color: #3a0d1e;
}
.story-beat-now {
  background: var(--page-blue);
  color: white;
}
.story-beat p {
  width: 100%;
  font-size: 18px;
  line-height: 32px;
  color: var(--page-muted);
}
.story-callout {
  width: 100%;
  padding: 16px 20px;
  border-radius: 20px;
  background: #f6ecd4;
  color: #3a2a06;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.about-no-more {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about-no-more > h2 {
  text-align: center;
}
.about-no-more > h2 span {
  color: var(--page-blue);
}
.about-tiles {
  display: grid;
  grid-template-columns: 476px 200px minmax(0, 1fr);
  gap: 24px;
}
.about-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 340px;
  padding: 40px;
  overflow: clip;
  border-radius: 32px;
  box-shadow: var(--page-shadow);
}
.about-tile-dictionary {
  grid-column: span 1;
  background: linear-gradient(#fbf5e6, #f1dda8);
}
.about-tile-audio {
  grid-column: span 2;
  background: linear-gradient(#e6f2f8, #bfddeb);
}
.about-tile-paper {
  grid-column: span 2;
  background: linear-gradient(#e4f4e9, #bfe3cb);
}
.about-tile-leitner {
  grid-column: span 1;
  background: linear-gradient(#fbeff2, #f1d3dc);
}
.about-tile-orbs {
  left: -100.7px;
  top: -105.7px;
}
.about-tile-audio .about-tile-orbs {
  left: -82.9px;
  top: -91.9px;
}
.about-tile-paper .about-tile-orbs {
  left: -120.4px;
  top: -91.9px;
}
.about-tile-leitner .about-tile-orbs {
  left: -94.2px;
}
.about-tile-art {
  position: absolute;
  object-fit: contain;
}
.about-tile-dictionary .about-tile-art {
  left: 42px;
  top: 24px;
  width: 134px;
  height: 132px;
  rotate: -6deg;
}
.about-tile-audio .about-tile-art {
  left: 45.6px;
  top: 66.3px;
  width: 246px;
  height: 228px;
  rotate: 5deg;
}
.about-tile-paper .about-tile-art {
  left: 45.7px;
  top: 63px;
  width: 171px;
  height: 228px;
  rotate: 5deg;
}
.about-tile-leitner .about-tile-art {
  left: 42.5px;
  top: 24px;
  width: 147px;
  height: 132px;
  rotate: -6deg;
}
.about-tile-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.about-tile-audio .about-tile-copy,
.about-tile-paper .about-tile-copy {
  width: 360px;
}
.about-tile h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
}
.about-tile p {
  color: var(--page-muted);
  font-size: 18px;
  line-height: 32px;
}

/* Contact: a mail link beside the designed in-app reporting preview. */
.contact-channels {
  display: grid;
  grid-template-columns: 476px minmax(0, 1fr);
  gap: 24px;
}
.contact-email,
.contact-report {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  height: 464px;
  overflow: clip;
  border-radius: 32px;
  box-shadow: var(--page-shadow);
}
.contact-email {
  padding: 32px;
  background: linear-gradient(#fbf5e6, #f1dda8);
}
.contact-email-orbs {
  left: -79.33px;
  top: -162.67px;
}
.contact-email-icon {
  position: absolute;
  left: 32.96px;
  top: 46.34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  border: 1.455px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  background: rgb(255 255 255 / 60%);
  backdrop-filter: blur(14.545px);
  box-shadow: 0 11.636px 34.909px rgb(4 12 31 / 8%);
  rotate: 6deg;
}
.contact-email-icon .page-material-icon {
  font-size: 58.18px;
  line-height: 58.182px;
}
.contact-email-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
}
.contact-email h2,
.contact-report h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
}
.contact-email-link {
  padding: 10px 18px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 999px;
  background: rgb(255 255 255 / 65%);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgb(4 12 31 / 8%);
  color: var(--page-blue);
  font-family: Comme, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  white-space: nowrap;
}
.contact-report {
  padding: 40px;
  background: linear-gradient(#eef2fc, #d2ddf6);
}
.contact-report-orbs {
  left: 10px;
  top: -60px;
}
.report-preview {
  position: absolute;
  left: 32.05px;
  top: 49.27px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: 360px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 24px;
  background: rgb(255 255 255 / 62%);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgb(4 12 31 / 8%);
  rotate: 3deg;
}
.report-preview-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.report-preview-row,
.report-preview-switch {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: white;
  box-shadow: -2px 4px 20px rgb(0 0 0 / 7%);
}
.report-preview-row {
  gap: 16px;
  height: 80px;
}
.report-preview-row > div {
  flex: 1;
  min-width: 0;
}
.report-preview-row p {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.report-preview-row small {
  display: block;
  margin-top: 4px;
  direction: rtl;
  text-align: right;
  color: var(--page-muted);
  font-size: 12px;
  line-height: 16px;
}
.report-preview-switch {
  justify-content: space-between;
  height: 64px;
  padding-left: 12px;
  color: var(--page-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.report-switch-art {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}
.contact-report-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.contact-report-copy p {
  font-size: 18px;
  line-height: 32px;
  color: var(--page-muted);
}

/* Terms: one semantic document, with a linked desktop contents panel. */
.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
}
.policy-document {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 48px 56px;
  border-radius: 28px;
  background: white;
}
.policy-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}
.policy-section h2 {
  width: 100%;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}
.policy-section p {
  width: 100%;
  color: var(--page-muted);
  font-size: 16px;
  line-height: 24px;
}
.policy-contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #0a1946;
  color: white;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.policy-contents {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  background: white;
  direction: rtl;
  text-align: right;
}
.policy-contents h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.policy-contents nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.policy-contents a {
  color: var(--page-muted);
  font-size: 14px;
  line-height: 20px;
}
.policy-contents a:hover {
  color: var(--page-blue);
}

/* Match the landing page's desktop scale without scaling its shared shell twice. */
@media (min-width: 1200px) and (max-width: 1439px) {
  .footer-page main {
    width: 1440px;
    zoom: calc(100vw / 1440px);
  }
  .footer-page .desktop-layout {
    width: auto;
    zoom: 1;
  }
}

/* Mobile layouts follow the separate Persian mobile frames. */
@media (max-width: 1199px) {
  .page-content {
    padding: 24px 16px 48px;
  }
  .page-hero-copy-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: calc(100% - 40px);
    padding: 8px 0 40px;
    color: white;
    direction: rtl;
    text-align: center;
  }
  .page-hero-copy-mobile .page-hero-art-frame {
    position: relative;
    flex-shrink: 0;
    height: 120px;
  }
  .about-page .page-hero-copy-mobile .page-hero-art-frame {
    width: 200px;
    height: 200px;
  }
  .contact-page .page-hero-copy-mobile .page-hero-art-frame {
    width: 108px;
  }
  .privacy-page .page-hero-copy-mobile .page-hero-art-frame {
    width: 119px;
  }
  .page-hero-copy-mobile h1 {
    width: 100%;
    font-size: 28px;
    font-weight: 800;
    line-height: 36px;
  }
  .page-hero-copy-mobile p {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
  }
  .about-content {
    gap: 16px;
  }
  .about-story {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 20px 24px;
    border-radius: 28px;
  }
  .about-story-stage {
    width: 100%;
    height: 300px;
  }
  .about-story-orbs {
    left: -112px;
    top: -26px;
  }
  .about-story-art {
    left: 46px;
    top: 46.5px;
    width: 196px;
    height: 215px;
  }
  .story-chip {
    gap: 6px;
    padding: 7px 12px 7px 10px;
    font-size: 12px;
    line-height: 16px;
  }
  .story-chip .page-material-icon {
    font-size: 16px;
    line-height: 16px;
  }
  .story-chip-audio {
    left: -4px;
    top: 70px;
  }
  .story-chip-meaning {
    left: 168px;
    top: 22px;
  }
  .story-chip-review {
    left: 138px;
    top: 252px;
  }
  .about-story-copy {
    width: 100%;
  }
  .story-eyebrow {
    padding: 5px 12px;
    backdrop-filter: blur(8px);
  }
  .about-story h2,
  .about-no-more > h2 {
    font-size: 24px;
    line-height: 32px;
  }
  .story-beat {
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
  }
  .story-beat-label {
    padding: 3px 10px;
    font-size: 12px;
    line-height: 16px;
  }
  .story-beat p {
    font-size: 16px;
    line-height: 24px;
  }
  .story-callout {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 24px;
  }
  .about-no-more {
    gap: 16px;
    padding-top: 24px;
  }
  .about-tiles {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .about-tile {
    flex-direction: column;
    gap: 8px;
    height: auto;
    padding: 164px 24px 24px;
    border-radius: 28px;
  }
  .about-tile-audio {
    order: 0;
  }
  .about-tile-dictionary {
    order: 1;
  }
  .about-tile-leitner {
    order: 2;
  }
  .about-tile-paper {
    order: 3;
  }
  .about-tile .about-tile-orbs {
    top: -88.6px;
  }
  .about-tile-audio .about-tile-orbs {
    left: -84.1px;
  }
  .about-tile-dictionary .about-tile-orbs {
    left: 65.9px;
  }
  .about-tile-leitner .about-tile-orbs {
    left: -81.6px;
  }
  .about-tile-paper .about-tile-orbs {
    left: 82.9px;
  }
  .about-tile .about-tile-art {
    top: 24px;
    height: 124px;
  }
  .about-tile-audio .about-tile-art {
    left: 30.1165px;
    top: 16.7115px;
    width: 133px;
    rotate: -6deg;
  }
  .about-tile-dictionary .about-tile-art {
    left: auto;
    right: 30.827px;
    top: 30.298px;
    width: 127px;
    rotate: 6deg;
  }
  .about-tile-leitner .about-tile-art {
    left: 30.103px;
    top: 16.453px;
    width: 138px;
    rotate: -6deg;
  }
  .about-tile-paper .about-tile-art {
    left: auto;
    right: 30.508px;
    top: 28.521px;
    width: 93px;
    rotate: 6deg;
  }
  .about-tile .about-tile-copy {
    width: 100%;
    gap: 8px;
  }
  .about-tile h3 {
    font-size: 20px;
    line-height: 28px;
  }
  .about-tile p {
    font-size: 14px;
    line-height: 20px;
  }
  .contact-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .contact-report {
    order: 0;
    display: block;
    height: auto;
    padding: 20px;
    border-radius: 28px;
  }
  .contact-report-orbs {
    left: -60px;
    top: -34px;
  }
  .report-preview {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding: 12px;
    border-radius: 20px;
    rotate: 0deg;
  }
  .contact-report-copy {
    gap: 10px;
    padding-top: 26px;
  }
  .contact-email h2,
  .contact-report h2 {
    font-size: 20px;
    line-height: 28px;
  }
  .contact-report-copy p {
    font-size: 14px;
    line-height: 20px;
  }
  .contact-email {
    order: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    height: auto;
    padding: 20px;
    border-radius: 28px;
  }
  .contact-email-orbs {
    left: -36px;
    top: -76px;
  }
  .contact-email-icon {
    position: relative;
    left: auto;
    top: auto;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    margin: 3.1695px;
    border-width: 1px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgb(4 12 31 / 8%);
  }
  .contact-email-icon .page-material-icon {
    font-size: 28px;
    line-height: 28px;
  }
  .contact-email-copy {
    flex: 1;
    gap: 8px;
  }
  .contact-email h2 {
    width: 100%;
  }
  .contact-email-link {
    padding: 6px 14px;
    backdrop-filter: blur(6px);
    font-size: 16px;
    line-height: 24px;
  }
  .policy-layout {
    display: block;
  }
  .policy-document {
    gap: 28px;
    padding: 20px;
    border-radius: 24px;
  }
  .policy-section {
    gap: 8px;
  }
  .policy-contents {
    display: none;
  }
}
