/* BRIX download page — mobile-first, widens into a two-column desktop layout. */

@font-face {
  font-family: 'Heebo';
  src: url('/static/download/v2/fonts/Heebo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Heebo';
  src: url('/static/download/v2/fonts/Heebo-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Heebo';
  src: url('/static/download/v2/fonts/Heebo-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #161a21;
  --body: #59616d;
  --muted: #646b76;
  --brand: #ffd262;
  --brand-deep: #f5b82e;
  --cream-1: #fff9e9;
  --cream-2: #fffbf2;
  --line: #e9ebef;
  --focus: #075d9d;
  --gutter: clamp(18px, 5.6vw, 27px);
  --page-max: 1200px;
}

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

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

body.dl {
  margin: 0;
  font-family: 'Heebo', 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.dl img {
  display: block;
  max-width: 100%;
  height: auto;
}

.dl h1,
.dl h2,
.dl h3,
.dl p {
  margin: 0;
}

.dl a {
  color: inherit;
}

.dl a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.dl-container {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Header ─────────────────────────────────────────────── */

.dl-header {
  position: relative;
  z-index: 3;
  background: #fff;
}

.dl-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 16px;
}

.dl-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dl-logo img {
  display: block;
  width: 110px;
  height: auto;
}

.dl-header__cta {
  display: none;
}

/* ── Hero ───────────────────────────────────────────────── */

.dl-hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream-1) 0%, var(--cream-2) 100%);
  overflow: hidden;
}

.dl-hero__grid {
  position: relative;
  padding-top: clamp(18px, 6vw, 28px);
}

.dl-hero__copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.dl-eyebrow {
  font-size: clamp(12.5px, 3.5vw, 14px);
  font-weight: 500;
  color: var(--muted);
}

.dl-hero__title {
  margin-top: 6px;
  font-size: clamp(31px, 9.67vw, 43px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--ink);
}

.dl-hero__title span {
  display: block;
}

.dl-highlight {
  margin-top: 12px;
}

.dl-highlight span {
  display: inline-block;
  padding: 3px 14px 5px;
  font-size: clamp(16.5px, 5.05vw, 22px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--ink);
  background: var(--brand);
  border-radius: 9px;
  transform: rotate(-1.2deg);
  box-shadow: 0 6px 16px -8px rgba(245, 184, 46, 0.7);
}

.dl-hero__body {
  margin-top: 14px;
  font-size: clamp(13.5px, 3.75vw, 16px);
  line-height: 1.55;
  color: var(--body);
}

/* ── Store buttons ──────────────────────────────────────── */

.dl-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px clamp(8px, 2.6vw, 14px);
  margin: 20px auto 0;
}

.dl-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dl-store img {
  height: clamp(36px, 11.6vw, 46px);
  width: auto;
  border-radius: 8px;
}

.dl-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(22, 26, 33, 0.55);
}

.dl-store:active {
  transform: translateY(0);
}

/* ── Hero art (ribbon background + phone) ───────────────── */

.dl-hero__art {
  position: relative;
  margin: 18px calc(var(--gutter) * -1) 0;
  aspect-ratio: 1.075;
  background: url('/static/download/v2/images/hero-bg.webp') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
}

.dl-hero__glow {
  position: absolute;
  inset: 18% 22%;
  background: radial-gradient(closest-side, rgba(255, 210, 98, 0.45), rgba(255, 210, 98, 0));
  filter: blur(10px);
}

.dl .dl-hero__phone {
  position: absolute;
  left: 50%;
  top: 48%;
  height: 96.3%;
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(22, 26, 33, 0.18));
}

/* ── Paths (four cards) ─────────────────────────────────── */

.dl-paths {
  padding-top: clamp(14px, 4vw, 26px);
}

.dl-section-head {
  text-align: center;
}

.dl-section-title {
  font-size: clamp(22px, 6.55vw, 30px);
  font-weight: 900;
  line-height: 1.2;
}

.dl-section-sub {
  margin-top: 4px;
  font-size: clamp(13px, 3.6vw, 15px);
  color: var(--body);
}

.dl-cards {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.dl-card {
  --tint: #eef7fd;
  --edge: #e1eef7;
  --accent: #3299cc;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 12px;
  background: var(--tint);
  border: 1px solid var(--edge);
  border-radius: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dl-card--blue { --tint: #eef7fd; --edge: #e1eef7; --accent: #3299cc; }
.dl-card--green { --tint: #ebf8f3; --edge: #dbefe6; --accent: #21a888; }
.dl-card--pink { --tint: #fbf0f4; --edge: #f4e3ea; --accent: #cb4775; }
.dl-card--gold { --tint: #fff7e9; --edge: #f4e9d5; --accent: #c99231; }

.dl-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  color: var(--accent);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px -3px rgba(22, 26, 33, 0.18);
}

.dl-card__icon svg {
  width: 20px;
  height: 20px;
}

.dl-card__title {
  font-size: clamp(17.5px, 5.13vw, 21px);
  font-weight: 900;
  line-height: 1.25;
}

.dl-card__body {
  margin-top: 2px;
  font-size: clamp(12.5px, 3.44vw, 14.5px);
  line-height: 1.5;
  color: var(--body);
}

/* ── Bottom download card ───────────────────────────────── */

.dl-cta-wrap {
  padding-top: 49px;
}

.dl-cta {
  position: relative;
  overflow: hidden;
  padding: 26px 18px 24px;
  text-align: center;
  background: linear-gradient(160deg, #fff8e7 0%, #ffefbd 100%);
  border: 1px solid #fbe7b3;
  border-radius: 16px;
}

.dl-cta::before,
.dl-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dl-cta::before {
  width: 180px;
  height: 180px;
  top: -90px;
  left: -60px;
  background: radial-gradient(closest-side, rgba(255, 210, 98, 0.55), rgba(255, 210, 98, 0));
}

.dl-cta::after {
  width: 220px;
  height: 220px;
  bottom: -130px;
  right: -70px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

.dl-cta__copy,
.dl-stores--cta {
  position: relative;
  z-index: 1;
}

.dl-cta__title {
  font-size: clamp(22px, 6.55vw, 30px);
  font-weight: 900;
  line-height: 1.2;
}

.dl-cta__title span {
  display: block;
}

.dl-cta__body {
  margin-top: 8px;
  font-size: clamp(13px, 3.6vw, 15px);
  color: var(--body);
}

.dl-stores--cta {
  margin-top: 18px;
}

.dl-stores--cta .dl-store img {
  height: clamp(34px, 10.8vw, 44px);
}

/* ── Footer ─────────────────────────────────────────────── */

.dl-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding: 26px 0 18px;
  text-align: center;
}

.dl-footer__inner {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.dl-footer__brand {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.dl-logo--footer img {
  width: 100px;
}

.dl-footer__tagline {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.dl-footer__mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink) !important;
  text-decoration: none;
}

.dl-footer__mail:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dl-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.dl-footer__nav li {
  display: flex;
  align-items: center;
}

.dl-footer__nav li + li::before {
  content: '';
  width: 3px;
  height: 3px;
  margin-inline: 4px;
  background: #b6bbc3;
  border-radius: 50%;
}

.dl-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.dl-footer__nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dl-footer__meta {
  margin-top: 6px;
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: #8a909a;
}

.dl-footer__meta a {
  color: inherit;
}

.dl-footer__version:empty {
  display: none;
}

/* ── Entrance motion ────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .dl-hero__copy > * {
    animation: dl-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .dl-hero__copy > :nth-child(2) { animation-delay: 0.06s; }
  .dl-hero__copy > :nth-child(3) { animation-delay: 0.12s; }
  .dl-hero__copy > :nth-child(4) { animation-delay: 0.18s; }
  .dl-hero__copy > :nth-child(5) { animation-delay: 0.24s; }

  .dl-hero__phone {
    animation: dl-phone-in 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes dl-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes dl-phone-in {
    from { opacity: 0; transform: translate(-50%, -44%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
  }

  .dl-highlight span {
    animation: dl-rise 0.7s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

/* ── Tablet ─────────────────────────────────────────────── */

@media (min-width: 640px) {
  .dl-container {
    max-width: 760px;
  }

  .dl-hero__art {
    max-width: 520px;
    margin-inline: auto;
  }

  .dl-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .dl-card {
    padding: 16px;
  }
}

/* ── Desktop ────────────────────────────────────────────── */

@media (min-width: 980px) {
  .dl-container {
    max-width: var(--page-max);
    padding-inline: 40px;
  }

  .dl-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid rgba(233, 235, 239, 0.8);
  }

  .dl-header__inner {
    justify-content: space-between;
    min-height: 72px;
    padding-block: 0;
  }

  .dl-logo img {
    width: 92px;
  }

  .dl-header__cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink) !important;
    text-decoration: none;
    background: var(--brand);
    border-radius: 999px;
    box-shadow: 0 8px 18px -10px rgba(245, 184, 46, 0.9);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .dl-header__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -12px rgba(245, 184, 46, 1);
  }

  .dl-hero {
    background:
      radial-gradient(900px 520px at 85% 0%, rgba(255, 210, 98, 0.22), transparent 70%),
      linear-gradient(180deg, var(--cream-1) 0%, var(--cream-2) 100%);
  }

  .dl-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 32px;
    min-height: min(680px, calc(100vh - 72px));
    padding-top: 0;
  }

  .dl-hero__copy {
    text-align: right;
    padding-block: 48px;
  }

  .dl-eyebrow {
    font-size: 17px;
  }

  .dl-hero__title {
    margin-top: 10px;
    font-size: clamp(50px, 5vw, 68px);
    line-height: 1.04;
  }

  .dl-highlight {
    margin-top: 18px;
  }

  .dl-highlight span {
    font-size: clamp(24px, 2.3vw, 30px);
    padding: 4px 18px 7px;
    border-radius: 12px;
  }

  .dl-hero__body {
    margin-top: 20px;
    font-size: 19px;
    max-width: 30ch;
  }

  .dl-hero__body br {
    display: none;
  }

  .dl-hero__copy .dl-stores {
    justify-content: flex-start;
    margin: 30px 0 0;
    max-width: none;
  }

  .dl-store img {
    height: 54px;
  }

  .dl-hero__art {
    align-self: stretch;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
    min-height: 600px;
    margin-inline-end: -40px;
    background-size: cover;
    background-position: center;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-composite: intersect;
  }

  .dl .dl-hero__phone {
    top: 50%;
    height: min(90%, 620px);
  }

  .dl-hero__glow {
    inset: 20% 26%;
  }

  .dl-paths {
    padding-top: 88px;
  }

  .dl-section-title {
    font-size: 42px;
  }

  .dl-section-sub {
    margin-top: 8px;
    font-size: 18px;
  }

  .dl-cards {
    margin-top: 40px;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .dl-card {
    flex-direction: column;
    gap: 18px;
    padding: 26px 24px 28px;
    border-radius: 20px;
  }

  .dl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -22px rgba(22, 26, 33, 0.35);
  }

  .dl-card__icon {
    width: 52px;
    height: 52px;
    margin-top: 0;
    border-radius: 14px;
  }

  .dl-card__icon svg {
    width: 28px;
    height: 28px;
  }

  .dl-card__title {
    font-size: clamp(19px, 1.5vw, 21px);
  }

  .dl-card__body {
    margin-top: 8px;
    font-size: 15.5px;
  }

  .dl-cta-wrap {
    padding-top: 96px;
  }

  .dl-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 56px;
    text-align: right;
    border-radius: 28px;
  }

  .dl-cta::before {
    width: 420px;
    height: 420px;
    top: -200px;
    left: -120px;
  }

  .dl-cta::after {
    width: 460px;
    height: 460px;
    bottom: -280px;
    right: -140px;
  }

  .dl-cta__title {
    font-size: 44px;
    line-height: 1.12;
  }

  .dl-cta__body {
    margin-top: 12px;
    font-size: 19px;
  }

  .dl-stores--cta {
    flex: none;
    flex-wrap: nowrap;
    margin: 0;
  }

  .dl-stores--cta .dl-store img {
    height: 54px;
  }

  .dl-footer {
    margin-top: 80px;
    padding: 36px 0 24px;
    text-align: right;
  }

  .dl-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: stretch;
  }

  .dl-footer__brand {
    justify-items: start;
  }

  .dl-logo--footer img {
    width: 76px;
  }

  .dl-footer__tagline {
    font-size: 15px;
  }

  .dl-footer__tagline br {
    display: none;
  }

  .dl-footer__nav a {
    font-size: 14.5px;
  }

  .dl-footer__meta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    grid-template-columns: 1fr auto;
  }
}

.dl-whatsapp {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
  transition: transform 0.15s ease;
}

.dl-whatsapp img {
  display: block;
  width: 100%;
  height: 100%;
}

.dl-whatsapp:hover {
  transform: scale(1.08);
}

.dl-whatsapp:focus-visible {
  outline: 3px solid #128c7e;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .dl-whatsapp {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 58px;
    height: 58px;
  }
}

.dl-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dl-service-grid a {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(40, 70, 130, 0.08);
}
.dl-service-grid img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #f7fbff;
}
.dl-service-grid span {
  display: block;
  padding: 12px 14px 16px;
  font-weight: 900;
  color: #161a21;
}
@media (max-width: 720px) {
  .dl-service-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .dl-whatsapp {
    transition: none;
  }
}
