/* ==========================================================================
   MOTIVE FHREM COMPANY LIMITED — official website
   Values are taken from the Lanhu design (1920px artboard, 1x CSS px).
   ========================================================================== */

:root {
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Bengali", sans-serif;
  --font-alt: "Poppins", "Satoshi", var(--font);

  --c-page: #f6f6f6;
  --c-white: #fff;
  --c-text: #000;
  --c-body: #4a4a4a;
  --c-muted: #6b6b6b;          /* design #808080, darkened for WCAG AA on #f6f6f6 */
  --c-soft: rgba(0, 0, 0, 0.6);
  --c-accent: #2988ff;          /* large headings only (3:1 large-text AA) */
  --c-link: #1d66a1;            /* design #439bdb, darkened for AA on the header */
  --c-nav-active: #020e35;
  --c-dark: #2d2d2d;
  --c-border: #e6e8ec;
  --c-line: #d9d9d9;
  --c-yellow: #ffd116;
  --c-focus: #1d66a1;

  --container: 1280px;
  --gutter: 24px;
  --header-h: 64px;
  --radius-card: 12px;
  --radius-panel: 20px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, address, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--c-dark);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.accent { color: var(--c-accent); }

.todo { color: #b45309; font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  transition: transform 0.25s var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.25s;
}
.btn--dark { background: var(--c-dark); color: #fff; }
.btn--dark::after { mix-blend-mode: overlay; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: 0.35; }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--contact { height: 38px; padding: 0 30px; font-size: 16px; }
.btn--lg { min-width: 220px; height: 52px; padding: 0 32px; font-size: 18px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* base: design "Rectangle 14" rgba(247,247,247,.7) + 1px white border (slightly more opaque for contrast) */
.site-header::before {
  background: rgba(247, 247, 247, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
/* scrolled state: solid + shadow, faded in with opacity only */
.site-header::after {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 24px rgba(2, 14, 53, 0.08);
  opacity: 0;
  transition: opacity 0.3s;
}
.site-header.is-scrolled::after { opacity: 1; }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  flex: none;
  margin-left: 8px;
  border-radius: 50%;
  transition: transform 0.3s var(--ease-out);
}
.brand:hover { transform: rotate(-8deg) scale(1.05); }
.brand img { width: 42px; height: 42px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 60px;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
  color: var(--c-link);
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current] { color: var(--c-nav-active); font-weight: 600; }
.nav__link[aria-current]::after { transform: scaleX(0); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-right: 6px; }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-nav-active);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.menu-toggle__bar { top: 21px; }
.menu-toggle__bar::before,
.menu-toggle__bar::after { content: ""; left: 0; }
.menu-toggle__bar::before { transform: translateY(-6px); }
.menu-toggle__bar::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { transform: rotate(45deg); background: var(--c-nav-active); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after { transform: rotate(-45deg); background: var(--c-nav-active); }

@media (min-width: 900px) {
  .site-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 1099.98px) and (min-width: 900px) {
  .nav__list { gap: 36px; }
}

@media (max-width: 899.98px) {
  :root { --gutter: 20px; }
  .brand { margin-left: 0; }
  .header__actions { margin-right: -6px; }
  .btn--contact { height: 36px; padding: 0 18px; font-size: 14px; }
  .menu-toggle { display: inline-block; }

  /* Without JS: nav is a static row under the header so links stay reachable */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 4px 0 12px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 32px rgba(2, 14, 53, 0.12);
    border-radius: 0 0 20px 20px;
  }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .header__inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); }
  html:not(.js) .site-nav { position: static; order: 3; width: 100%; padding: 0 0 8px; background: none; box-shadow: none; }
  html:not(.js) .nav__list { flex-wrap: wrap; gap: 0 20px; }
  html:not(.js) .hero__content { padding-top: 40px; }

  html.js .site-nav {
    position: fixed;
    top: var(--header-h);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  html.js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0s;
  }
  html.js .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  html.js .nav__link {
    display: block;
    padding: 14px 24px;
    font-size: 17px;
  }
  html.js .nav__link::after { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; }

.hero__stage {
  position: relative;
  height: 1153px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--c-page);
  background-image: url("../assets/hero-1920.webp");
  background-image: image-set(url("../assets/hero-1920.webp") 1x, url("../assets/hero-3840.webp") 2x);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  animation: hero-bg 1.6s var(--ease-out) both;
  transform-origin: 50% 70%;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 190px;
  text-align: center;
  color: #fff;
}
.hero__title {
  max-width: 760px;
  margin-inline: auto;
  font-size: 47px;
  font-weight: 500;
  line-height: 57px;
  text-shadow: 0 1px 12px rgba(10, 70, 130, 0.25);
  animation: rise 0.9s var(--ease-out) 0.1s both;
}
.hero__lead {
  max-width: 560px;
  margin: 30px auto 0;
  font-size: 16px;
  line-height: 19px;
  text-shadow: 0 1px 6px rgba(10, 70, 130, 0.45);
  animation: rise 0.9s var(--ease-out) 0.22s both;
}
.hero__cta {
  margin-top: 30px;
  min-width: 224px;
  height: 53px;
  animation: rise 0.9s var(--ease-out) 0.34s both;
}

.hero__features {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1153px;
  z-index: 1;
  pointer-events: none;
}

.glass {
  position: absolute;
  width: 386px;
  min-height: 167px;
  padding: 30px 40px 28px 43px;
  border: 1px solid #fff;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 44.4px rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: #fff;
  pointer-events: auto;
}
.glass--left {
  top: 588px;
  left: 4px;
  animation: rise-side 1s var(--ease-out) 0.5s both, float 7s ease-in-out 1.6s infinite;
}
.glass--right {
  top: 723px;
  right: -36px;
  animation: rise-side 1s var(--ease-out) 0.65s both, float 7s ease-in-out 2.4s infinite;
}
.glass__title {
  font-size: 27px;
  font-weight: 500;
  line-height: 33px;
  text-shadow: 0 1px 8px rgba(10, 70, 130, 0.3);
}
.glass__text {
  margin-top: 22px;
  max-width: 330px;
  font-size: 14px;
  line-height: 17px;
  text-shadow: 0 1px 4px rgba(10, 70, 130, 0.55);
}

/* Tablet & mobile: text on top, visual below, feature cards under the visual */
@media (max-width: 1199.98px) {
  .hero__stage {
    --bg-h: 880px;
    height: auto;
    padding-bottom: calc(var(--bg-h) * 0.548);  /* man occupies the lower ~55% of the artwork */
  }
  .hero__bg {
    /* sky colour fills any space above the artwork; artwork pinned to the bottom */
    background-color: #3b95d6;
    background-size: auto var(--bg-h);
    bottom: -2px;
  }
  .hero__content { padding-top: calc(var(--header-h) + 48px); }

  .hero__features {
    position: relative;
    inset: auto;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: -56px;
  }
  .glass {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 0;
    padding: 26px 28px;
    border-radius: 32px;
    background: linear-gradient(135deg, #1b65aa 0%, #2f86cf 100%);
    box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.35), 0 12px 28px rgba(27, 101, 170, 0.18);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .glass--left,
  .glass--right { top: auto; left: auto; right: auto; animation: rise 0.9s var(--ease-out) 0.45s both; }
  .glass__title { font-size: 22px; line-height: 28px; text-shadow: none; }
  .glass__text { margin-top: 12px; font-size: 14px; line-height: 20px; max-width: none; text-shadow: none; }
}

@media (max-width: 767.98px) {
  .hero__stage { --bg-h: 760px; }
  .hero__content { padding-top: calc(var(--header-h) + 36px); }
  .hero__title { font-size: clamp(28px, 7.6vw, 40px); line-height: 1.22; }
  .hero__title br { display: none; }
  .hero__lead { margin-top: 18px; font-size: 15px; line-height: 22px; }
  .hero__cta { margin-top: 24px; }
  .hero__features { grid-template-columns: 1fr; margin-top: -40px; gap: 14px; }
  .glass { padding: 22px 24px; border-radius: 28px; }
  .glass__title { font-size: 20px; line-height: 26px; }
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section { position: relative; }

.h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
}

.section-head--center { text-align: center; }
.section-head__lead {
  max-width: 700px;
  margin: 28px auto 0;
  font-size: 16px;
  line-height: 19px;
  color: var(--c-muted);
}

/* ---------- Why Choose Us ---------- */
.why { padding-top: 17px; }
.why__title { font-size: 44px; line-height: 53px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
  margin-top: 94px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: 40px 21px 46px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  background: #fff;
  transition: transform 0.35s var(--ease-out);
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 18px 40px rgba(41, 136, 255, 0.14);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); }
.card:hover::after { opacity: 1; }

.card__icon { width: 38px; height: 38px; transition: transform 0.5s var(--ease-out); }
.card:hover .card__icon { transform: rotate(45deg) scale(1.08); }

.card__title {
  max-width: 341px;
  margin-top: 22px;
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
}
.card__text {
  max-width: 367px;
  margin-top: auto;
  padding-top: 32px;
  font-size: 14px;
  line-height: 17px;
  color: var(--c-muted);
}

/* ---------- Trusted Partner ---------- */
.partner { padding-top: 160px; }

.partner__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.partner__title { max-width: 560px; }
.partner__title .accent { display: block; }
.partner__lead {
  max-width: 322px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 19px;
  text-align: right;
  color: var(--c-muted);
}

.partner__grid {
  display: grid;
  grid-template-columns: minmax(0, 744fr) minmax(0, 522fr);
  gap: 14px;
  margin-top: 47px;
}

.promo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 452px;
  padding: 44px 42px 37px;
  border-radius: var(--radius-panel);
  background: #0d4e9f url("../assets/partner-bg.webp") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.promo__text {
  max-width: 550px;
  font-size: 24px;
  line-height: 29px;
}
.promo__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
}
.promo__tag--hl { color: var(--c-yellow); }
.promo__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.system {
  display: flex;
  flex-direction: column;
  min-height: 452px;
  border-radius: var(--radius-panel);
  background: #fff;
  overflow: hidden;
}
.system__title {
  padding: 37px 35px 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 39px;
}
.system__text {
  max-width: 376px;
  padding: 10px 35px 0;
  font-size: 14px;
  line-height: 17px;
  color: var(--c-muted);
}
.system__visual {
  position: relative;
  margin-top: auto;
  padding-top: 24px;
}
.system__visual img { width: 100%; }
.system__note {
  position: absolute;
  left: 37.4%;
  bottom: 13.8%;
  width: 52.7%;
  font-size: 13px;
  line-height: 16px;
  color: var(--c-muted);
}

/* ---------- FAQ ---------- */
.faq { padding-top: 105px; }

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 690px);
  align-items: center;
  gap: 40px;
}
.faq__title { max-width: 360px; }
.faq__lead {
  max-width: 322px;
  margin-top: 21px;
  font-size: 16px;
  line-height: 19px;
  color: var(--c-muted);
}

.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  list-style: none;
  border-radius: 4px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__item[open] > .faq__q { padding-bottom: 16px; }

.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  transition: transform 0.35s var(--ease-out);
}
.faq__icon img { position: absolute; inset: 0; transition: opacity 0.25s, transform 0.35s var(--ease-out); }
.faq__icon-minus { opacity: 0; transform: rotate(-90deg); }
.faq__item[open] .faq__icon-plus { opacity: 0; transform: rotate(90deg); }
.faq__item[open] .faq__icon-minus { opacity: 1; transform: none; }
.faq__q:hover .faq__icon { transform: scale(1.08); }

.faq__a {
  max-width: 640px;
  padding: 0 56px 30px 0;
  font-size: 16px;
  line-height: 19px;
  color: var(--c-muted);
}
.faq__item[open] .faq__a { animation: faq-in 0.4s var(--ease-out); }

/* ---------- Download CTA ---------- */
.cta {
  position: relative;
  padding-top: 171px;
  text-align: center;
}
.cta__title {
  max-width: 680px;
  margin-inline: auto;
  font-size: 32px;
  font-weight: 500;
  line-height: 43px;
}
.cta__title .accent { display: block; }
.cta__btn { margin-top: 24px; }

.cta__ground {
  position: relative;
  height: 107px;
  margin-top: 25px;
  background-image: url("../assets/grass-1x.webp");
  background-image: image-set(url("../assets/grass-1x.webp") 1x, url("../assets/grass-2x.webp") 2x);
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 107px;
}
.cta__mascot {
  position: absolute;
  bottom: -21px;
  left: calc(50% + 432px);    /* design x=1392 on a 1920 artboard */
  width: 244px;
  height: auto;
  clip-path: inset(0 0 12% 0);   /* design frame crops the feet (236 of 268px) */
  animation: bob 4.5s ease-in-out infinite;
  transform-origin: 50% 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding-top: 59px;
  background: #fff;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 57px;
}
.footer__company { padding-left: 7px; }
.footer__name {
  font-family: var(--font-alt);
  font-size: 17px;
  font-weight: 500;
  line-height: 18px;
}
.footer__contact { margin-top: 26px; }
.footer__row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 340px;
  font-size: 14px;
  line-height: 17px;
  color: var(--c-soft);
}
.footer__row + .footer__row { margin-top: 20px; }
.footer__row img { flex: none; width: 20px; height: 20px; margin-top: -1px; }
.footer__row a { transition: color 0.2s; }
.footer__row a:hover { color: var(--c-text); text-decoration: underline; }

.footer__nav { display: flex; margin-right: -18px; }
.footer__col { min-width: 180px; }
.footer__col:last-child { min-width: 109px; }
.footer__title {
  font-family: var(--font-alt);
  font-size: 16px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer__col ul { margin-top: 18px; }
.footer__col li a {
  display: inline-block;
  padding: 4px 0;
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 19px;
  color: var(--c-soft);
  transition: color 0.2s, transform 0.25s var(--ease-out);
}
.footer__col li + li { margin-top: 11px; }
.footer__col li a:hover { color: var(--c-text); transform: translateX(3px); }

.footer__copy {
  padding: 17px 0 16px;
  border-top: 1px solid var(--c-line);
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: var(--c-soft);
}

/* ==========================================================================
   Privacy page
   ========================================================================== */
.policy {
  padding: calc(var(--header-h) + 108px) 0 63px;
  background-color: var(--c-page);
  background-image: url("../assets/privacy-bg.webp");
  background-repeat: no-repeat;
  background-position: center 42px;
  background-size: 1920px auto;
  background-size: max(1920px, 100%) auto;
}
.policy__title {
  font-size: 42px;
  font-weight: 500;
  line-height: 51px;
  text-align: center;
  animation: rise 0.8s var(--ease-out) 0.05s both;
}
.policy__meta {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  color: var(--c-muted);
}
.policy__switch {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}
.policy__switch button {
  min-width: 64px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.policy__switch button[aria-pressed="true"] { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }

.policy__body {
  max-width: 762px;
  margin: 59px auto 0;
  font-size: 16px;
  line-height: 32px;
  color: var(--c-body);
  animation: rise 0.8s var(--ease-out) 0.15s both;
}
.policy__body p { text-indent: 0.75em; }
.policy__body p + p { margin-top: 18px; }
.policy__body h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  color: var(--c-text);
}
.policy__body h3 {
  margin: 24px 0 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: var(--c-text);
}
.policy__body ul,
.policy__body ol { margin: 8px 0 16px; padding-left: 1.4em; }
.policy__body ul { list-style: disc; }
.policy__body ol { list-style: decimal; }
.policy__body a { color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; }

.policy__placeholder {
  padding: 20px 24px;
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  background: rgba(255, 251, 235, 0.85);
  color: #78350f;
  line-height: 28px;
}
.policy__placeholder p { text-indent: 0; }
.policy__placeholder code { font-size: 14px; }

.policy + .cta { padding-top: 171px; }

/* ==========================================================================
   Responsive — sections
   ========================================================================== */
@media (max-width: 1199.98px) {
  .card__title { font-size: 26px; line-height: 32px; }
  .footer__nav { margin-right: 0; }
  .cta__mascot { left: auto; right: 2%; width: 200px; }
}

@media (max-width: 1023.98px) {
  .why { padding-top: 56px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
  .card { min-height: 360px; }
  .card:last-child { grid-column: 1 / -1; min-height: 260px; }
  .partner { padding-top: 100px; }
  .partner__grid { grid-template-columns: 1fr; }
  .faq { padding-top: 96px; }
  .faq__grid { grid-template-columns: 1fr; gap: 24px; }
  .faq__title { max-width: none; }
}

@media (max-width: 767.98px) {
  .h2 { font-size: 30px; line-height: 38px; }
  .why { padding-top: 48px; }
  .why__title { font-size: 32px; line-height: 40px; }
  .section-head__lead { margin-top: 14px; font-size: 15px; line-height: 22px; }

  .cards { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .card,
  .card:last-child { min-height: 0; padding: 28px 22px 28px; }
  .card__title { margin-top: 16px; font-size: 22px; line-height: 28px; }
  .card__text { padding-top: 14px; font-size: 14px; line-height: 21px; }

  .partner { padding-top: 72px; }
  .partner__head { flex-direction: column; gap: 12px; }
  .partner__lead { margin-top: 0; text-align: left; font-size: 15px; line-height: 22px; }
  .partner__grid { margin-top: 28px; gap: 14px; }
  .promo { min-height: 340px; padding: 28px 24px 26px; }
  .promo__text { font-size: 19px; line-height: 27px; }
  .promo__tags { font-size: 22px; line-height: 28px; }
  .system { min-height: 0; }
  .system__title { padding: 26px 22px 0; font-size: 26px; line-height: 32px; }
  .system__text { padding: 8px 22px 0; line-height: 20px; }
  .system__note { position: static; width: auto; padding: 0 22px 24px; margin-top: -4px; line-height: 19px; }

  .faq { padding-top: 72px; }
  .faq__lead { margin-top: 10px; font-size: 15px; line-height: 22px; }
  .faq__q { gap: 16px; padding: 20px 0; font-size: 17px; line-height: 23px; }
  .faq__item[open] > .faq__q { padding-bottom: 10px; }
  .faq__a { padding: 0 0 22px; font-size: 15px; line-height: 22px; }

  .cta { padding-top: 88px; }
  .cta__title { font-size: 24px; line-height: 32px; }
  .cta__ground { height: 84px; margin-top: 44px; background-size: auto 84px; }
  .cta__mascot { right: 4px; bottom: -12px; width: 110px; }

  .site-footer { padding-top: 40px; }
  .footer__top { flex-direction: column; gap: 32px; padding-bottom: 36px; }
  .footer__company { padding-left: 0; }
  .footer__nav { gap: 40px; }
  .footer__col,
  .footer__col:last-child { min-width: 0; }
  .footer__col ul { margin-top: 12px; }
  .footer__col li + li { margin-top: 4px; }
  .footer__col li a { padding: 8px 0; }
  .footer__row { max-width: none; }
  .footer__row a { display: inline-block; padding: 4px 0; margin-top: -4px; }
  .footer__copy { font-size: 12px; line-height: 17px; padding-bottom: 20px; }

  .policy { padding-top: calc(var(--header-h) + 48px); padding-bottom: 32px; background-size: auto 1100px; background-position: center 0; }
  .policy__title { font-size: 30px; line-height: 38px; }
  .policy__body { margin-top: 32px; font-size: 15px; line-height: 27px; }
  .policy + .cta { padding-top: 72px; }
}

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes rise-side {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-2deg); }
}
@keyframes hero-bg {
  from { opacity: 0.4; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Scroll reveal — only hides content when JS is running (html.js) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* cards keep their own hover transition once revealed */
html.js .card[data-reveal].is-visible { transition: opacity 0.8s var(--ease-out) var(--d, 0ms), transform 0.35s var(--ease-out); }
html.js .card[data-reveal].is-visible:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover,
  .card:hover,
  .brand:hover,
  .footer__col li a:hover { transform: none; }
}
