/*
  Baims | Safeer (ambassador programme) — landing page + /apply form
  Breakpoints:
    Desktop  ≥ 1200px  (default styles below)
    Tablet   600px – 1199.98px
    Phone    ≤ 599.98px
*/

:root {
  --blue: #45aaf2;
  --ink: #222222;
  --ink-2: #4e4e4e;
  --navy: #023447;
  --paper: #f6f5f4;
  --star: #ffd55a;
  --line: rgba(0, 0, 0, 0.08);
  --field-line: #e3e3e3;

  --font: "Avenir Next World", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);

  /* Framer spring (stiffness 500, damping 60) used for the FAQ */
  --spring-ui: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-ui-dur: 787ms;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-ui: linear(0, 0.023 1.27%, 0.0728 2.54%, 0.1351 3.81%, 0.2018 5.08%, 0.2683 6.35%, 0.3321 7.62%, 0.392 8.89%, 0.4476 10.17%, 0.4987 11.44%, 0.5454 12.71%, 0.5879 13.98%, 0.6266 15.25%, 0.6618 16.52%, 0.6937 17.79%, 0.7226 19.06%, 0.7487 20.33%, 0.7725 21.6%, 0.794 22.87%, 0.8134 24.14%, 0.831 25.41%, 0.847 26.68%, 0.8615 27.95%, 0.8746 29.22%, 0.8864 30.5%, 0.8971 31.77%, 0.9069 33.04%, 0.9157 34.31%, 0.9236 35.58%, 0.9308 36.85%, 0.9374 38.12%, 0.9433 39.39%, 0.9487 40.66%, 0.9535 41.93%, 0.9579 43.2%, 0.9619 44.47%, 0.9655 45.74%, 0.9687 47.01%, 0.9717 48.28%, 0.9744 49.56%, 0.9768 50.83%, 0.979 52.1%, 0.981 53.37%, 0.9828 54.64%, 0.9844 55.91%, 0.9859 57.18%, 0.9872 58.45%, 0.9884 59.72%, 0.9895 60.99%, 0.9905 62.26%, 0.9914 63.53%, 0.9922 64.8%, 0.9929 66.07%, 0.9936 67.34%, 0.9942 68.61%, 0.9948 69.89%, 0.9953 71.16%, 0.9957 72.43%, 0.9961 73.7%, 0.9965 74.97%, 0.9968 76.24%, 0.9971 77.51%, 0.9974 78.78%, 0.9976 80.05%, 0.9979 81.32%, 0.9981 82.59%, 0.9982 83.86%, 0.9984 85.13%, 0.9986 86.4%, 0.9987 87.67%, 0.9988 88.95%, 0.9989 90.22%, 0.999 91.49%, 0.9991 92.76%, 0.9992 94.03%, 0.9993 95.3%, 0.9993 96.57%, 0.9994 97.84%, 0.9995 99.11%, 1 100%);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, p, ul, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow-x: clip;
}

.only-phone {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.btn--wide {
  width: 307px;
  max-width: 100%;
}

.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 15px;
  border-radius: 8px;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  padding: 0 100px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  display: block;
  flex: none;
  width: 119px;
  height: 69px;
}

.logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-link {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--ink-2);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger {
  display: none;
}

.site-header__menu {
  display: none;
}

/* ---------- Section header (eyebrow + title + subtitle) ---------- */

.sh {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 768px;
  max-width: 100%;
  text-align: center;
}

/* Framer keeps an empty subtitle line here, which adds one more gap */
.sh--bare {
  padding-bottom: 16px;
}

.sh__eyebrow {
  font-size: 16px;
  line-height: 1.75;
  font-weight: 700;
  color: var(--ink-2);
}

.sh__title {
  font-size: 42px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.sh__sub {
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink-2);
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 96px 32px 64px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 768px;
  max-width: 100%;
  text-align: center;
}

.hero__title {
  max-width: 720px;
  font-size: 56px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* The words sitting on the hand-drawn underline */
.hero__mark {
  position: relative;
  display: inline-block;
}

.hero__underline {
  position: absolute;
  top: 82%;
  left: -6%;
  z-index: -1;
  width: 112%;
  height: 0.52em;
  transform: rotate(-1deg);
  overflow: visible;
}

.hero__sub {
  font-size: 24px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--ink-2);
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Click-to-load YouTube player */
.video {
  position: relative;
  width: 963px;
  max-width: 100%;
  aspect-ratio: 963 / 544;
  border-radius: 12px;
  overflow: hidden;
  background: #000 center / cover no-repeat;
}

.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.video__play svg {
  display: block;
  width: 100%;
  height: 100%;
}

.video__play .video__play-bg {
  fill: #212121;
  fill-opacity: 0.8;
  transition: fill 0.1s, fill-opacity 0.1s;
}

.video:hover .video__play-bg,
.video__play:focus-visible .video__play-bg {
  fill: #f00;
  fill-opacity: 1;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Main features ---------- */

.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 64px 32px 20px;
}

.features__main {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  width: 1080px;
  max-width: 100%;
}

.feature-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 32px;
  border-radius: 16px;
  background: var(--paper);
}

.feature-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 468 / 351;
  border-radius: 8px;
  object-fit: contain;
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.card-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.card-text {
  font-size: 18px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--ink-2);
}

/* ---------- Additional features ---------- */

.extras {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 32px 64px;
}

.extras__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 1080px;
  max-width: 100%;
}

.extra {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 255px;
  padding: 32px;
  border-radius: 16px;
  background: var(--paper);
}

/* Desktop reads right-to-left: calendar, laptop, gift */
.extra--calendar { order: 1; }
.extra--laptop { order: 2; }
.extra--gift { order: 3; }

.extra__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}

.extra__icon img {
  width: 44px;
  height: 44px;
}

.extra__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 286px;
}

/* ---------- Testimonials ---------- */

.testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 64px 0;
}

.testimonials .sh {
  padding: 0 32px;
  width: calc(768px + 64px);
}

.slideshow {
  --card-w: 460px;
  --card-h: 320px;
  --gap: 32px;
  position: relative;
  width: 100%;
  height: var(--card-h);
}

.slideshow__track {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  gap: var(--gap);
  direction: ltr;
  will-change: transform;
}

.review {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  width: var(--card-w);
  height: var(--card-h);
  padding: 32px;
  border-radius: 16px;
  background: var(--paper);
  direction: rtl;
  text-align: right;
}

.review__name {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.review__text {
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink-2);
}

.review__stars {
  display: flex;
  gap: 10px;
  color: var(--star);
}

.review__stars svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
  padding: 64px 32px 48px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 768px;
  max-width: 100%;
}

.faq__item {
  padding: 16px;
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
}

.faq__h {
  font: inherit;
}

.faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 39px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: right;
  cursor: pointer;
}

.faq__q:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 8px;
}

.faq__qtext {
  flex: 1;
  padding: 8px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.faq__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 39px;
  padding: 6px;
  color: var(--ink-2);
  transition: transform var(--spring-ui-dur) var(--spring-ui);
}

.faq__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
}

.faq__a {
  overflow: hidden;
}

.faq__a-inner {
  padding: 8px;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--ink-2);
  text-align: right;
}

/* ---------- Final CTA ---------- */

.final {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 64px 32px;
}

.final__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 650px;
  max-width: 100%;
  padding: 32px 64px;
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
}

.final__title {
  font-size: 42px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.final__sub {
  font-size: 18px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--ink-2);
}

/* Hand-drawn burst that flickers through three frames */
.sparkle {
  position: absolute;
  top: -90px;
  right: -68px;
  width: 266px;
  height: 229px;
  pointer-events: none;
}

.sparkle svg {
  position: absolute;
  visibility: hidden;
}

.sparkle svg.is-on {
  visibility: visible;
}

.sparkle__f1 { left: 35px; top: 8px; width: 208px; height: 213px; }
.sparkle__f2 { left: 42px; top: -10px; width: 228px; height: 234px; }
.sparkle__f3 { left: 51px; top: 0; width: 219px; height: 216px; }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 64px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
}

.footer__cols {
  display: flex;
  align-items: flex-start;
  gap: 96px;
  width: 768px;
  max-width: 100%;
  direction: ltr;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.footer__col--brand {
  flex: 1;
}

.footer__heading {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
  direction: rtl;
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer__links a {
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink);
  direction: rtl;
  transition: color 0.3s var(--ease);
}

.footer__links a:hover {
  color: var(--ink-2);
}

.footer__logo {
  display: block;
  width: 64px;
  height: 34px;
}

.footer__logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__copy {
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink-2);
  direction: rtl;
}

/* ---------- Motion (initial states; JS plays them in) ---------- */

.js [data-appear="title"]:not(.is-in) {
  opacity: 0.001;
  transform: perspective(1200px) translateY(16px) rotateX(24deg);
}

.js [data-appear="fade"]:not(.is-in) {
  opacity: 0.001;
}

.js [data-appear="video"]:not(.is-in) {
  opacity: 0.001;
  transform: perspective(1200px) translateY(16px) rotateX(32deg);
}

.js [data-appear="section"]:not(.is-in) {
  opacity: 0;
  transform: perspective(1200px) translateY(16px) scale(0.95) rotateX(8deg);
}

.js .hero__underline path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.js .hero__underline.is-drawn path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s var(--ease) 0.2s;
}

/* =================================================================
   /apply — registration form
   ================================================================= */

.apply-page {
  padding-top: 140px;
}

.apply-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  height: 108px;
  padding: 28px 58px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.apply-header .logo {
  width: 118px;
  height: 52px;
}

.apply-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 1296px;
  max-width: 100%;
  padding: 0 0 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  height: 40px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(2, 52, 71, 0.08);
  border-radius: 12px;
  background: rgba(2, 52, 71, 0.04);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  transition: background-color 0.2s var(--ease);
}

.back-link:hover {
  background: rgba(2, 52, 71, 0.08);
}

.back-link svg {
  width: 24px;
  height: 24px;
}

.apply-intro {
  display: flex;
  align-items: center;
  gap: 50px;
}

.apply-intro__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.apply-intro__title {
  font-size: 42px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.apply-intro__body {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--navy);
}

.apply-intro__img {
  flex: none;
  width: 249px;
  height: 249px;
  border-radius: 24px;
  object-fit: cover;
}

.apply-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.apply-form__cols {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.form-card--basic {
  flex: 0 0 415px;
}

.form-card--study {
  flex: 1;
  min-width: 0;
}

.form-card__title {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--navy);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field__label {
  padding: 0;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink-2);
}

.field__hint {
  margin-top: -6px;
  font-size: 14px;
  line-height: 1.4;
  color: #808080;
}

.field__hint--alert {
  color: #eb0000;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input,
.select {
  height: 52px;
  padding: 0 16px;
}

.textarea {
  min-height: 110px;
  padding: 16px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #a3a3a3;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(69, 170, 242, 0.18);
}

.select {
  appearance: none;
  padding-left: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%234e4e4e' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat left 16px center / 16px;
  cursor: pointer;
}

.phone-input {
  display: flex;
  gap: 8px;
  direction: ltr; /* country code on the left, like a written number */
}

.phone-input__code {
  flex: 0 0 62px;
  padding: 0;
  text-align: center;
  direction: ltr;
  color: var(--ink);
}

.phone-input .input:not(.phone-input__code) {
  direction: ltr;
  text-align: right;
}

.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  direction: ltr; /* same column order as the original */
}

.skills .choice {
  justify-content: space-between;
  direction: rtl;
}

.choice {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), opacity 0.2s;
}

.choice input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--blue);
  background: rgba(69, 170, 242, 0.06);
}

.choice:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.choice:has(input:disabled) input {
  cursor: not-allowed;
}

.radios {
  display: flex;
  gap: 10px;
}

.radios .choice {
  min-height: 44px;
  padding: 8px 14px;
}

.radios .choice input {
  width: 16px;
  height: 16px;
}

/* Collapsed in place, not pushed off-screen: a far-off-screen element on an
   RTL page widens the scroll area and the page opens on an empty strip */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.submit {
  align-self: flex-end;
  width: 240px;
  height: 52px;
  font-size: 14px;
  transition: opacity 0.2s var(--ease);
}

.submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  font-size: 15px;
  line-height: 1.6;
  color: #eb0000;
}

.form-status:empty {
  display: none;
}

.apply-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 56px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.apply-done[hidden] {
  display: none;
}

.apply-done__emoji {
  font-size: 44px;
  line-height: 1;
}

.apply-done__title {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.apply-done__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}

.apply-done .btn {
  margin-top: 12px;
}

/* =================================================================
   Tablet 600px – 1199.98px
   ================================================================= */

@media (min-width: 600px) and (max-width: 1199.98px) {
  .site-header__bar {
    padding: 0 clamp(24px, 5vw, 50px);
  }

  .hero__title {
    font-size: 48px;
  }

  .video {
    width: 655px;
  }

  .sh__title,
  .final__title {
    font-size: 36px;
  }

  .features {
    padding-bottom: 16px;
  }

  .features__main {
    width: 768px;
  }

  .extras__grid {
    grid-template-columns: repeat(2, 1fr);
    width: 936px;
  }

  .extra {
    justify-content: flex-start;
  }

  /* Tablet reads: laptop, gift, then calendar across the full width */
  .extra--laptop { order: 1; }
  .extra--gift { order: 2; }
  .extra--calendar { order: 3; grid-column: 1 / -1; justify-content: center; }

  .apply-wrap {
    padding: 0 32px 40px;
  }

  .apply-header {
    padding: 28px 32px;
  }

  .apply-form__cols {
    flex-direction: column;
    align-items: stretch;
  }

  .form-card--basic {
    flex: none;
  }
}

/* =================================================================
   Phone ≤ 599.98px
   ================================================================= */

@media (max-width: 599.98px) {
  .only-phone {
    display: inline;
  }

  .hide-phone {
    display: none;
  }

  /* Header */
  .site-header__bar {
    padding: 0 20px;
  }

  .site-header__nav .nav-link {
    display: none;
  }

  .site-header .logo {
    width: 100px;
    height: 58px;
  }

  .site-header__actions {
    flex-direction: row-reverse;
  }

  .site-header__actions .btn {
    height: 40px;
    font-size: 14px;
  }

  .burger {
    position: relative;
    display: block;
    flex: none;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .burger span {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 2px;
    border-radius: 10px;
    background: #999;
  }

  .burger span:nth-child(1) { top: 7px; }
  .burger span:nth-child(2) { top: 15px; }
  .burger span:nth-child(3) { top: 23px; }

  .burger:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 6px;
  }

  .site-header__menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s var(--ease);
  }

  .site-header__menu > div {
    overflow: hidden;
  }

  .site-header__menu nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 47px;
    padding: 47px 0 50px;
  }

  .site-header.is-open .site-header__menu {
    grid-template-rows: 1fr;
  }

  /* Hero */
  .hero {
    gap: 48px;
    padding: 32px 16px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__sub {
    font-size: 18px;
  }

  .hero__buttons {
    gap: 8px;
  }

  .hero__buttons .btn {
    width: 100%;
    font-size: 14px;
  }

  .video {
    width: 340px;
  }

  /* Section headers */
  .sh__title {
    font-size: 32px;
  }

  /* Main features */
  .features {
    padding: 48px 16px 16px;
  }

  .features__main {
    flex-direction: column;
  }

  .feature-card {
    padding: 16px;
  }

  .feature-card__img {
    aspect-ratio: 326 / 269;
  }

  .card-title {
    font-size: 20px;
    line-height: 1.2;
  }

  .card-text {
    font-size: 16px;
  }

  /* Additional features: icon beside the text */
  .extras {
    padding: 0 16px 48px;
  }

  .extras__grid {
    grid-template-columns: 1fr;
  }

  .extra {
    flex-direction: row;
    align-items: center;
    min-height: 128px;
    padding: 16px 32px;
  }

  .extra__body {
    max-width: none;
  }

  .extra--gift { order: 1; }
  .extra--laptop { order: 2; }
  .extra--calendar { order: 3; }

  /* Testimonials */
  .testimonials .sh {
    padding: 0 16px;
  }

  .slideshow {
    --card-w: 340px;
    --card-h: 223px;
  }

  /* FAQ */
  .faq {
    gap: 32px;
    padding: 48px 16px;
  }

  .faq__qtext {
    font-size: 14px;
  }

  /* Final CTA */
  .final {
    padding: 48px 16px;
  }

  .final__card {
    gap: 16px;
    padding: 32px;
  }

  .final__title {
    font-size: 20px;
  }

  .final__sub {
    font-size: 16px;
  }

  .sparkle {
    display: none;
  }

  /* Footer */
  .footer {
    padding: 48px 32px;
  }

  .footer__cols {
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  .footer__col {
    width: 100%;
  }

  .footer__heading {
    font-size: 14px;
  }

  /* Apply */
  .apply-header {
    padding: 28px 20px;
  }

  .apply-wrap {
    gap: 32px;
    padding: 0 20px 40px;
  }

  .apply-intro {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 32px;
  }

  .apply-intro__img {
    align-self: center;
    width: 212px;
    height: 200px;
  }

  .apply-intro__title {
    font-size: 32px;
  }

  .apply-form__cols {
    flex-direction: column;
    align-items: stretch;
  }

  .form-card--basic {
    flex: none;
  }

  .skills {
    grid-template-columns: 1fr;
  }

  .submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
