@font-face {
  font-family: Manrope;
  src: url('./assets/fonts/Manrope.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f0f3ef;
  --ink: #14373c;
  --muted: #526967;
  --accent: #348267;
  --line: #cdd8d0;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 7px; }
img { display: block; width: 100%; height: auto; }
p, h1, figure { margin: 0; }
.page { width: min(1600px, 100%); min-height: 100svh; margin-inline: auto; padding-inline: clamp(24px, 4.2vw, 80px); display: flex; flex-direction: column; }
.skip-link { position: fixed; z-index: 10; left: 16px; top: -100px; background: var(--ink); color: white; padding: 14px; }
.skip-link:focus { top: 12px; }
.masthead { min-height: 108px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: 5px; align-items: baseline; font-size: 20px; font-weight: 800; letter-spacing: -1px; }
.wordmark span { color: var(--accent); font-size: 12px; letter-spacing: -.3px; }
.platform { font-size: 10px; letter-spacing: 1.7px; font-weight: 700; }
.download-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr); align-items: center; gap: clamp(32px, 4vw, 76px); padding-block: 64px 80px; flex: 1; }
h1 { font-size: clamp(72px, 8vw, 128px); font-weight: 800; line-height: .94; letter-spacing: -.075em; }
.title-ar { display: block; }
.title-period { color: var(--accent); }
.description { margin-top: 30px; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: -.35px; line-height: 1.6; }
.download-actions { margin-top: 38px; max-width: 320px; }
.download-button { min-height: 64px; width: 100%; padding: 18px 20px; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; transition: background .18s; }
.download-button.is-ready { background: #d43b1b; }
.download-button[href]:hover { background: #bd3014; }
.download-button[aria-disabled='true'] { cursor: default; background: #373836; color: #fff; }
.download-button svg { flex: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.button-arrow { margin-left: auto; font-size: 23px; font-weight: 400; line-height: 1; }
.download-button[aria-disabled='true'] .button-arrow { visibility: hidden; }
.release-status { margin-top: 12px; font-size: 11px; line-height: 1.6; color: var(--muted); min-height: 18px; }
.release-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 5px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.release-meta:has(#release-version:empty) { display: none; }
.fallback-link { display: inline-block; font-size: 12px; text-decoration: underline; margin-top: 14px; }
.app-preview { min-width: 0; }
.preview-frame { border: 7px solid #252728; border-radius: 16px; overflow: hidden; background: #0d1617; box-shadow: 0 24px 38px -27px #1b1c1d65, 0 0 0 1px #111; }
.app-preview figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 8px; letter-spacing: 1.3px; color: var(--muted); margin-top: 18px; font-weight: 650; }
.footer { min-height: 84px; padding-block: 24px; display: flex; gap: 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.requirements { display: inline-flex; gap: 12px; }
.footer a { color: var(--ink); display: inline-flex; align-items: center; gap: 12px; min-height: 32px; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer a span { font-size: 17px; }

@media (min-width: 1800px) {
  .download-layout { gap: 88px; }
}

@media (max-width: 1000px) {
  .download-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
  h1 { font-size: clamp(64px, 9vw, 90px); }
  .description { font-size: 14px; }
  .download-button { font-size: 12px; padding-inline: 16px; }
}

@media (max-width: 680px) {
  .page { padding-inline: 24px; }
  .masthead { min-height: 76px; }
  .wordmark { font-size: 18px; }
  .platform { font-size: 8px; letter-spacing: 1.3px; }
  .download-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 34px 35px; }
  h1 { font-size: clamp(56px, 17vw, 104px); line-height: 1; white-space: nowrap; }
  .title-ar { display: inline; margin-left: .1em; }
  .description { margin-top: 12px; font-size: 14px; }
  .download-actions { margin-top: 24px; max-width: none; }
  .download-button { min-height: 58px; font-size: 13px; padding: 16px 20px; }
  .release-status { margin-top: 10px; }
  .preview-frame { border-width: 5px; border-radius: 11px; }
  .app-preview figcaption { font-size: 7px; letter-spacing: .9px; margin-top: 12px; }
  .footer { min-height: 78px; gap: 12px 20px; flex-wrap: wrap; padding-block: 18px; font-size: 9px; }
  .requirements { order: 3; flex-basis: 100%; gap: 10px; }
}

@media (max-width: 359px) {
  .page { padding-inline: 20px; }
  h1 { font-size: 56px; }
}

@media (max-height: 520px) and (min-width: 681px) {
  .masthead { min-height: 62px; }
  .download-layout { padding-block: 28px; }
  h1 { font-size: 62px; }
  .description { margin-top: 15px; }
  .download-actions { margin-top: 19px; }
  .download-button { min-height: 52px; padding-block: 12px; }
  .footer { min-height: 62px; padding-block: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The AMBOT study studio identity, shared with the app. */
.wordmark { width: 128px; }
.platform { display: flex; align-items: center; gap: 10px; }
.platform-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.download-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); padding-block: 58px; }
.eyebrow { margin-bottom: 22px; font-size: 11px; letter-spacing: 2px; font-weight: 750; }
h1 { font-size: clamp(42px, 4.1vw, 65px); font-weight: 650; line-height: 1.09; letter-spacing: -.055em; }
.description { max-width: 340px; margin-top: 24px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.download-actions { margin-top: 32px; max-width: 330px; }
.download-button, .download-button.is-ready { min-height: 62px; border-radius: 12px; background: var(--ink); transition: background .2s, transform .2s, box-shadow .2s; }
.download-button[href]:hover { background: #22564f; transform: translateY(-2px); box-shadow: 0 8px 20px #14373c18; }
.download-button[aria-disabled='true'] { background: #526967; }
.release-meta { gap: 8px 16px; font-size: 12px; color: var(--ink); }
.app-preview { background: var(--ink); padding: 22px; border-radius: 24px; color: var(--paper); box-shadow: 0 24px 50px -35px #14373c70; animation: arrive .65s ease-out both; }
.preview-top { display: flex; justify-content: space-between; margin-bottom: 18px; font-size: 9px; letter-spacing: 1.6px; color: #b1e9d0; }
.preview-frame { border: 1px solid #ffffff20; border-radius: 10px; background: #0c2025; box-shadow: none; aspect-ratio: 1600 / 920; display: grid; align-items: center; }
.preview-frame img { max-height: 100%; object-fit: contain; }
.app-preview figcaption { flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; letter-spacing: normal; }
.preview-switcher { display: flex; gap: 4px; flex-wrap: wrap; }
.preview-switcher button { font: inherit; border: 1px solid transparent; border-radius: 8px; min-height: 44px; padding: 10px 12px; font-size: 11px; font-weight: 650; color: #d2e1dc; background: transparent; cursor: pointer; touch-action: manipulation; transition: background .2s, color .2s; }
.preview-switcher button:hover { background: #ffffff0d; }
.preview-switcher button[aria-pressed='true'] { background: #b1e9d0; color: var(--ink); }
.preview-switcher button:focus-visible { outline: 3px solid #b1e9d0; outline-offset: 3px; }
.preview-caption { font-size: 10px; color: #c2d3cc; line-height: 1.5; }
.footer { font-size: 11px; }
.footer a { min-height: 44px; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) { .download-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); } h1 { font-size: 42px; } .app-preview { padding: 16px; } .preview-caption { flex-basis: 100%; } }
@media (max-width: 680px) {
 .masthead { min-height: 86px; } .wordmark { width: 100px; } .platform { gap: 6px; }
 .download-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 32px; } .eyebrow { margin-bottom: 14px; font-size: 10px; } h1 { font-size: clamp(38px, 11vw, 60px); white-space: normal; }
 .description { margin-top: 16px; font-size: 14px; max-width: 330px; } .download-actions { margin-top: 22px; max-width: none; } .download-button { min-height: 58px; } .app-preview { padding: 15px; border-radius: 18px; } .preview-top { margin-bottom: 13px; font-size: 8px; } .app-preview figcaption { margin-top: 13px; gap: 10px; } .preview-switcher { gap: 2px; } .preview-switcher button { padding-inline: 10px; } .preview-caption { font-size: 10px; }
 .footer { font-size: 10px; }
}
@media (max-width: 359px) { .page { padding-inline: 18px; } .platform { font-size: 7px; } .preview-switcher button { padding-inline: 7px; font-size: 10px; } }
@media (max-height: 520px) and (min-width: 681px) { .masthead { min-height: 70px; } .wordmark { width: 100px; } .download-layout { padding-block: 26px; } h1 { font-size: 36px; } .eyebrow { margin-bottom: 12px; } .description { margin-top: 12px; font-size: 13px; } .download-actions { margin-top: 16px; } .download-button { min-height: 52px; padding-block: 12px; } }
