@font-face {
  font-family: Sora;
  src: url("/fonts/sora-latin-variable.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: Asap;
  src: url("/fonts/asap-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Asap;
  src: url("/fonts/asap-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Noto Arabic";
  src: url("/fonts/noto-sans-arabic-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Arabic";
  src: url("/fonts/noto-sans-arabic-arabic-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --paper: #fbfaf7;
  --ink: #202c29;
  --muted: #59645f;
  --line: #dddfd7;
  --accent: #b9412b;
  --sage: #e7eee6;
  --coral: #fbe8e0;
  --yellow: #f6f0dd;
  --heading: Sora, sans-serif;
  --body: Asap, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--heading);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  margin-bottom: 24px;
}
h3 {
  font-size: 21px;
}
p {
  margin-bottom: 20px;
}
a,
button,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}
::selection {
  background: #ffd4bf;
}
.container {
  width: min(1220px, calc(100% - 96px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -1.3px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  flex-shrink: 0;
}
.primary-nav {
  display: flex;
  gap: 29px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}
.primary-nav a {
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--accent);
}
.nav-dashboard {
  margin-left: 11px;
  padding: 10px 18px;
  border: 1px solid #a6ada5;
  border-radius: 6px;
}
.nav-dashboard span {
  padding-left: 10px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 10px 0;
  font-weight: 600;
  gap: 12px;
  align-items: center;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 60px;
  align-items: center;
  padding-block: 60px 56px;
}
.hero h1 {
  font-size: clamp(46px, 4.9vw, 68px);
  letter-spacing: -0.065em;
  line-height: 1.13;
  margin-bottom: 26px;
}
.hero h1 span {
  color: var(--accent);
}
.eyebrow {
  font-size: 12px;
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 500;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.small-line {
  width: 25px;
  height: 2px;
  background: var(--accent);
}
.hero-description {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-top: 34px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 15px 23px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  border: 1px solid var(--accent);
  min-height: 54px;
}
.button:hover {
  background: #953321;
}
.button span {
  font-size: 22px;
  line-height: 1;
}
.text-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.text-link span {
  margin-left: 8px;
}
.hero-note {
  margin-top: 29px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
}
.check {
  color: #42634d;
}
.hero-example {
  min-width: 0;
  position: relative;
  padding-top: 12px;
  scroll-margin-top: 110px;
}
.hero-example:before {
  content: "";
  position: absolute;
  inset: 0 0 28px;
  background: radial-gradient(
    ellipse at 70% 50%,
    #e7eee6 0%,
    #f0f1e9 48%,
    transparent 70%
  );
  z-index: -1;
  transform: none;
}
.example-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px 2px;
}
.example-label {
  font-size: 14px;
  color: var(--muted);
}
.language-switch {
  display: flex;
  padding: 4px;
  background: #eeeee8;
  border: 1px solid #e1e2da;
  border-radius: 7px;
  gap: 2px;
}
.language-switch button {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-family: var(--heading);
  font-weight: 600;
  padding: 9px 11px;
  border-radius: 4px;
  color: var(--muted);
  min-width: 40px;
}
.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.browser-frame {
  border: 1px solid #c6cdc2;
  border-radius: 10px;
  background: white;
  box-shadow: 0 18px 45px -30px #27372a66;
  overflow: hidden;
  transform: rotate(-1deg);
}
.demo-stack {
  display: grid;
}
.demo-page {
  grid-area: 1 / 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}
/* Hidden examples still size the shared grid, so language changes never move it. */
.demo-page[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}
.browser-chrome {
  height: 36px;
  background: #f4f4ee;
  border-bottom: 1px solid #d9dfd4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  color: #666f64;
  font-size: 11px;
  font-family: var(--heading);
}
.browser-dots {
  display: flex;
  gap: 4px;
}
.browser-dots i {
  height: 5px;
  width: 5px;
  border: 1px solid #a4aca0;
  border-radius: 50%;
}
.browser-lock {
  font-size: 17px;
}
.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 24px;
  font-size: 10px;
  background: #fffffa;
}
.outside-wordmark {
  font-family: var(--heading);
  letter-spacing: -0.08em;
  font-size: 23px;
  font-weight: 600;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}
.outside-wordmark span {
  font-size: 29px;
  font-weight: 400;
}
.demo-nav > span:last-child {
  font-size: 19px;
  line-height: 1;
}
.demo-banner {
  position: relative;
  min-height: 264px;
  background: #303e35;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.demo-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 30, 23, 0.75),
    rgba(17, 31, 22, 0.1)
  );
  z-index: -1;
}
.demo-banner > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  z-index: -2;
}
.demo-banner-copy {
  padding: 30px 28px;
  color: white;
  max-width: 90%;
}
.demo-banner-copy > span:first-child {
  font-size: 10px;
  letter-spacing: 0.04em;
}
.demo-banner h2 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.05em;
  margin: 12px 0 23px;
  max-width: 320px;
  white-space: pre-line;
}
.demo-cta {
  font-size: 11px;
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 3px;
}
.demo-bottom {
  padding: 23px 24px;
  background: #f9f6ed;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.mini-label {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.demo-bottom h3 {
  font-size: 16px;
  max-width: 250px;
  line-height: 1.4;
  margin: 5px 0 0;
  letter-spacing: -0.025em;
}
.demo-arrow {
  font-size: 30px;
  font-weight: 400;
}
.demo-page[dir="rtl"] {
  font-family: "Noto Arabic", sans-serif;
}
.demo-page[dir="rtl"] h2,
.demo-page[dir="rtl"] h3 {
  font-family: "Noto Arabic", sans-serif;
  letter-spacing: 0;
}
.demo-page[dir="rtl"] .demo-banner:after {
  background: linear-gradient(
    270deg,
    rgba(16, 30, 23, 0.75),
    rgba(17, 31, 22, 0.1)
  );
}
.demo-page[dir="rtl"] .demo-banner h2 {
  font-size: 36px;
  line-height: 1.5;
  margin-block: 8px 15px;
}
.demo-page[dir="rtl"] .demo-nav {
  font-size: 10px;
}
.demo-page[dir="rtl"] .demo-bottom h3 {
  font-size: 14px;
}
.example-caption {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
}
.caption-line {
  height: 1px;
  width: 22px;
  background: #9da99d;
}
.scope-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
  font-size: 14px;
}
.scope-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 10px;
  text-decoration: none;
  font-weight: 600;
}
.scope-strip a + a {
  border-left: 1px solid var(--line);
}
.scope-strip a:hover {
  background: var(--sage);
  color: var(--ink);
}
.scope-strip a > span {
  color: var(--accent);
  font-size: 17px;
}
.section {
  padding-block: 106px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 100px;
  align-items: end;
  margin-bottom: 42px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > p {
  max-width: 360px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 18px;
}
.image-workbench {
  padding: 28px;
  background: var(--sage);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  border: 1px solid #d9e1d5;
  border-radius: 10px;
  background-image: radial-gradient(#b5c2af77 0.65px, transparent 0.65px);
  background-size: 10px 10px;
}
.banner-example {
  min-width: 0;
  margin: 0;
}
.banner-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  font-size: 13px;
  color: #4d5d4e;
}
.banner-heading span:first-child {
  font-weight: 600;
}
.banner-file {
  display: block;
  border: 1px solid #c8cec0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 8px 14px -12px #263322;
}
.banner-file img {
  width: 100%;
  height: auto;
}
.image-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
  color: #3f5744;
  font-size: 13px;
  text-underline-offset: 3px;
}
.image-details {
  max-width: 680px;
  margin-top: 23px;
}
.image-details p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.image-details strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 5px;
}
.arabic-section {
  background: var(--yellow);
  border-block: 1px solid #e5e2d2;
  padding-block: 80px;
}
.arabic-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 110px;
  align-items: center;
}
.arabic-copy p:not(.eyebrow) {
  max-width: 395px;
  color: var(--muted);
  font-size: 18px;
}
.arabic-copy .text-link {
  display: inline-block;
  margin-top: 6px;
}
.dialect-example {
  min-width: 0;
}
.dialect-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}
.dialect-tabs button {
  border: 1px solid #d2d2bf;
  background: transparent;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.dialect-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.dialect-card {
  padding: 30px 35px;
  background: #fffdf7;
  border: 1px solid #d8d7c6;
  border-radius: 8px;
  min-height: 310px;
  box-shadow: 0 8px 16px -15px #55522b;
}
.dialect-source {
  font-size: 17px;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e2d4;
  margin: 0;
}
.dialect-translation {
  font-family: "Noto Arabic", sans-serif;
  font-size: 36px;
  line-height: 1.8;
  letter-spacing: 0;
  padding-block: 20px;
  margin: 0;
  color: #3f573f;
  font-weight: 600;
  min-height: 110px;
  overflow-wrap: anywhere;
}
.dialect-explanation {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 8px;
}
.dialect-explanation p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 330px;
}
.dialect-indicator {
  background: #819777;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  display: inline-block;
  border-radius: 50%;
  margin-top: 7px;
}
.rules-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px;
  align-items: center;
}
.rules-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 420px;
  font-size: 18px;
}
.rules-example {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transform: rotate(1deg);
  box-shadow: 0 12px 28px -25px #27372a66;
}
.rules-example-header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px 24px;
  background: #f0f2eb;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.rule-document {
  font-size: 22px;
}
.rule-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.rule-scope {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.rule-item p {
  margin: 7px 0 0;
  font-size: 16px;
  max-width: 350px;
}
.is-override {
  margin-left: 22px;
  border-left: 2px solid #c69568;
  background: #fcfaf4;
}
.is-override .rule-scope {
  color: #8b4726;
}
.rule-footer {
  padding: 17px 24px;
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.rule-footer > span {
  color: #4e7153;
}
.how-section {
  padding: 62px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.integration-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0 44px;
}
.integration-mode {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.integration-mode:first-child {
  background: var(--sage);
}
.integration-mode h3 {
  font-size: 25px;
  margin-bottom: 8px;
}
.integration-mode p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 14px;
}
.integration-mode .integration-fit {
  color: var(--ink);
  font-weight: 600;
}
.integration-mode p:last-child {
  margin: 0;
}
.pretranslation-intro h3 {
  font-size: 28px;
  margin-bottom: 12px;
}
.pretranslation-intro p {
  max-width: 660px;
  color: var(--muted);
  margin: 0;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 32px 0 24px;
  gap: 55px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border: 1px solid #c9cec1;
  background: #f1f3eb;
  font-size: 12px;
  border-radius: 50%;
  margin-bottom: 24px;
  font-family: var(--heading);
}
.how-steps h4 {
  font-size: 21px;
  margin-bottom: 12px;
}
.how-steps p {
  color: var(--muted);
  font-size: 16px;
  max-width: 310px;
}
.questions-section {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 80px;
}
.questions-intro {
  color: var(--muted);
  font-size: 17px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
summary {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.025em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  font-family: var(--body);
  font-size: 25px;
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
}
details[open] summary span {
  transform: rotate(45deg);
}
details > div {
  padding-bottom: 22px;
  max-width: 600px;
}
details p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 12px;
}
details p:last-child {
  margin-bottom: 0;
}
.closing {
  background: var(--coral);
  border: 1px solid #efd5c9;
  border-radius: 10px;
  padding: 54px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 70px;
  position: relative;
}
.closing h2 {
  font-size: 42px;
  margin-bottom: 18px;
}
.closing p:not(.eyebrow) {
  font-size: 17px;
  margin: 0;
  color: var(--muted);
  max-width: 395px;
}
.closing-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  z-index: 1;
}
.closing-action > span {
  font-size: 12px;
  color: #725449;
}
.site-footer {
  padding-bottom: 26px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--line);
}
.footer-top > .brand {
  font-size: 23px;
  gap: 0;
}
.footer-top > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-top nav {
  display: flex;
  gap: 25px;
  font-size: 14px;
}
.site-footer a {
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  gap: 22px;
  padding-top: 22px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.no-script-note {
  font-size: 13px;
  color: var(--muted);
}
.document {
  max-width: 720px;
  margin: 60px auto 90px;
  padding: 0 24px;
}
.document h1 {
  font-size: 42px;
}
.document h2 {
  font-size: 25px;
  margin-top: 36px;
}
.document p {
  color: var(--muted);
}
.document .button {
  margin-block: 15px;
}
.dashboard-notice {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dashboard-notice .eyebrow {
  color: var(--accent);
}
.dashboard-notice h1 {
  max-width: 650px;
}
.dashboard-notice p {
  max-width: 570px;
}
.dashboard-notice .button {
  align-self: flex-start;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-example {
    animation: arrive 0.65s ease-out both;
  }
  .hero-example {
    animation-delay: 0.1s;
  }
  @keyframes arrive {
    from {
      opacity: 0.6;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  a,
  button {
    transition:
      background-color 0.15s,
      color 0.15s;
  }
}
@media (min-width: 1500px) {
  .hero {
    gap: 80px;
    padding-block: 68px 64px;
  }
  .hero h1 {
    font-size: 70px;
  }
  .demo-banner {
    min-height: 280px;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 64px);
  }
  .primary-nav {
    gap: 20px;
    font-size: 14px;
  }
  .brand {
    font-size: 22px;
  }
  .nav-dashboard {
    margin-left: 0;
    padding: 8px 12px;
  }
  .hero {
    gap: 32px;
    padding-top: 50px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero-description {
    font-size: 18px;
  }
  .hero-actions {
    gap: 18px;
  }
  .hero-actions .button {
    font-size: 15px;
    gap: 15px;
  }
  .hero-actions .text-link {
    font-size: 14px;
  }
  .demo-banner h2 {
    font-size: 37px;
  }
  .demo-banner {
    min-height: 250px;
  }
  .section-heading {
    gap: 45px;
  }
  .arabic-inner,
  .rules-section {
    gap: 60px;
  }
  .image-workbench {
    padding: 22px;
    gap: 20px;
  }
  .dialect-card {
    padding: 27px;
  }
  .dialect-translation {
    font-size: 30px;
  }
  .questions-section {
    gap: 50px;
  }
  .closing {
    padding: 45px;
  }
  .footer-top > p {
    display: none;
  }
}
@media (max-width: 900px) {
  .header-inner {
    min-height: 76px;
  }
  .primary-nav {
    gap: 15px;
  }
  .primary-nav a {
    font-size: 13px;
  }
  .primary-nav .nav-dashboard {
    font-size: 13px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-description {
    font-size: 17px;
  }
  .hero-actions {
    margin-top: 24px;
  }
  .hero-note {
    font-size: 12px;
  }
  .example-label {
    font-size: 11px;
  }
  .language-switch button {
    padding: 8px;
    min-width: 34px;
  }
  .demo-banner {
    min-height: 245px;
  }
  .demo-banner h2 {
    font-size: 33px;
  }
  .demo-banner-copy {
    padding: 23px 20px;
  }
  .demo-nav,
  .demo-bottom {
    padding: 16px;
  }
  .demo-nav > span:nth-child(2) {
    font-size: 8px;
  }
  .demo-page[dir="rtl"] .demo-banner h2 {
    font-size: 29px;
  }
  .demo-page[dir="rtl"] .demo-bottom h3 {
    font-size: 12px;
  }
  .demo-bottom h3 {
    font-size: 14px;
  }
  .hero-note {
    margin-top: 22px;
  }
  .section {
    padding-block: 80px;
  }
  .arabic-inner,
  .rules-section {
    gap: 35px;
  }
  .how-steps {
    gap: 30px;
  }
  .closing h2 {
    font-size: 34px;
  }
  .closing {
    gap: 24px;
    padding: 35px;
  }
  .scope-strip {
    font-size: 12px;
  }
  .questions-section {
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
  }
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 72px;
    position: relative;
    flex-wrap: wrap;
    gap: 0;
  }
  .brand {
    font-size: 23px;
  }
  .brand-mark {
    width: 27px;
    height: 27px;
  }
  .primary-nav {
    width: 100%;
    flex-wrap: wrap;
    padding: 0 0 18px;
    gap: 15px 22px;
  }
  .primary-nav a {
    font-size: 14px;
  }
  .js .menu-toggle {
    display: flex;
  }
  .js .primary-nav {
    display: none;
  }
  .js .primary-nav.is-open {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
    gap: 37px;
    padding-bottom: 32px;
  }
  .hero h1 {
    font-size: clamp(43px, 8.8vw, 64px);
    max-width: 600px;
  }
  .hero-description {
    max-width: 490px;
    font-size: 19px;
  }
  .hero-actions {
    margin-top: 27px;
    gap: 25px;
  }
  .hero-actions .button {
    font-size: 16px;
    padding: 13px 20px;
    min-height: 50px;
  }
  .hero-actions .text-link {
    font-size: 15px;
  }
  .hero-note {
    font-size: 13px;
    margin-top: 23px;
  }
  .hero-example {
    padding: 8px 4px 0;
    scroll-margin-top: 95px;
    max-width: 550px;
    width: 100%;
    margin-inline: auto;
  }
  .hero-example:before {
    inset: 0 0 28px;
    transform: none;
  }
  .example-label {
    font-size: 13px;
  }
  .language-switch button {
    padding: 9px 12px;
  }
  .demo-banner {
    min-height: 270px;
  }
  .demo-banner h2 {
    font-size: 44px;
  }
  .demo-banner-copy {
    padding: 25px;
  }
  .demo-nav,
  .demo-bottom {
    padding: 18px 22px;
  }
  .demo-nav > span:nth-child(2) {
    font-size: 10px;
  }
  .demo-bottom h3 {
    font-size: 16px;
  }
  .demo-page[dir="rtl"] .demo-banner h2 {
    font-size: 36px;
  }
  .demo-page[dir="rtl"] .demo-bottom h3 {
    font-size: 14px;
  }
  .example-caption {
    font-size: 11px;
    margin-top: 18px;
  }
  .scope-strip {
    grid-template-columns: 1fr 1fr;
    padding-block: 15px;
    gap: 12px 0;
    font-size: 13px;
  }
  .scope-strip a:nth-child(3) {
    border-left: 0;
  }
  .section {
    padding-block: 65px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }
  .section-heading > p {
    max-width: 530px;
    font-size: 17px;
  }
  .section-heading h2 {
    font-size: 36px;
  }
  .eyebrow {
    font-size: 11px;
    margin-bottom: 17px;
  }
  .image-workbench {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 20px;
    max-width: 580px;
    margin-inline: auto;
  }
  .image-details {
    margin-top: 20px;
  }
  .arabic-section {
    padding-block: 60px;
  }
  .arabic-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .arabic-copy h2 {
    font-size: 40px;
  }
  .arabic-copy > p:not(.eyebrow) {
    font-size: 17px;
    max-width: 560px;
  }
  .dialect-example {
    max-width: 550px;
    width: 100%;
  }
  .dialect-card {
    min-height: 260px;
    padding: 25px 28px;
  }
  .dialect-translation {
    font-size: 34px;
  }
  .dialect-explanation p {
    max-width: none;
  }
  .rules-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .rules-copy h2 {
    font-size: 36px;
  }
  .rules-copy > p:not(.eyebrow) {
    font-size: 17px;
    max-width: 560px;
  }
  .rules-example {
    max-width: 550px;
    width: 100%;
    transform: none;
  }
  .how-section {
    padding-block: 50px;
  }
  .how-steps {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
  }
  .how-steps li {
    position: relative;
    padding-left: 60px;
  }
  .step-number {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
  .how-steps h4 {
    margin: 4px 0 10px;
    font-size: 20px;
  }
  .how-steps p {
    max-width: 530px;
    margin-bottom: 0;
  }
  .integration-modes {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  .integration-mode {
    padding: 22px;
  }
  .pretranslation-intro h3 {
    font-size: 25px;
  }
  .questions-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .questions-intro {
    display: none;
  }
  .questions-section h2 {
    margin-bottom: 17px;
  }
  summary {
    font-size: 15px;
    padding-block: 20px;
  }
  .closing {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px 26px;
    margin-bottom: 45px;
    gap: 27px;
  }
  .closing h2 {
    font-size: 34px;
  }
  .closing p:not(.eyebrow) {
    font-size: 16px;
  }
  .closing-action {
    align-items: flex-start;
  }
  .closing-action .button {
    font-size: 16px;
    min-height: 50px;
  }
  .footer-top {
    flex-wrap: wrap;
    padding-bottom: 24px;
    gap: 25px;
  }
  .footer-top nav {
    gap: 23px;
  }
  .footer-bottom {
    gap: 12px 24px;
  }
  .document {
    margin-top: 40px;
  }
  .document h1 {
    font-size: 34px;
  }
}
@media (max-width: 380px) {
  .container {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: 39px;
  }
  .hero-description {
    font-size: 17px;
  }
  .hero-actions {
    gap: 17px;
  }
  .hero-actions .button {
    padding: 12px 15px;
    font-size: 14px;
  }
  .hero-actions .text-link {
    font-size: 14px;
  }
  .example-toolbar {
    gap: 6px;
  }
  .example-label {
    font-size: 11px;
  }
  .language-switch button {
    padding: 8px 9px;
  }
  .demo-banner h2 {
    font-size: 37px;
  }
  .demo-banner-copy {
    padding: 22px 20px;
  }
  .demo-banner {
    min-height: 250px;
  }
  .demo-nav {
    padding: 16px;
  }
  .demo-nav > span:nth-child(2) {
    font-size: 8px;
  }
  .demo-page[dir="rtl"] .demo-banner h2 {
    font-size: 30px;
  }
  .image-workbench {
    padding: 13px;
  }
  .dialect-tabs {
    gap: 5px;
  }
  .dialect-tabs button {
    font-size: 13px;
    padding: 10px 14px;
  }
  .dialect-card {
    padding: 22px;
  }
  .dialect-translation {
    font-size: 27px;
  }
  .scope-strip {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
