/* Download page (/download/). Shell, glass tokens and guide art come from site.css. */
.download { width: min(100% - 40px, var(--site-max)); margin: 0 auto; padding: 0 0 24px; }

/* ---------- Hero ---------- */
.download-hero {
  position: relative; z-index: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px;
  min-height: 640px; margin-top: 28px; padding: 56px 64px;
  border: 1px solid var(--glass-rim); border-radius: 40px;
  background:
    radial-gradient(42% 60% at 6% 4%, rgba(47, 190, 106, .3), transparent 70%),
    radial-gradient(40% 55% at 98% 8%, rgba(46, 155, 255, .22), transparent 70%),
    radial-gradient(48% 60% at 86% 104%, rgba(255, 107, 61, .26), transparent 70%),
    radial-gradient(30% 40% at 40% 100%, rgba(62, 214, 196, .2), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .32));
  box-shadow: var(--glass-shadow);
}
.download-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; background: var(--site-green-soft); color: var(--site-green-ink);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.download-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--site-green); animation: download-pulse 1.6s ease-in-out infinite; }
@keyframes download-pulse { 50% { opacity: .4; transform: scale(.7); } }
.download-hero h1 { margin: 22px 0 16px; font-size: clamp(52px, 7vw, 96px); line-height: .98; letter-spacing: -.06em; }
.download-hero h1 .accent { color: var(--site-green); }
.download-hero__copy > p { max-width: 480px; margin: 0; color: var(--site-soft); font-size: 18px; line-height: 1.65; font-weight: 500; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.store-button {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-width: 200px; height: 68px; padding: 0 24px 0 20px; border-radius: 20px;
  background: var(--site-ink); color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(22, 20, 15, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.store-button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(22, 20, 15, .6); }
.store-button.is-soon { cursor: default; }
.store-button > svg { flex: 0 0 auto; width: 28px; height: 28px; }
.store-button__text { display: grid; line-height: 1.15; }
.store-button__text small { font-size: 11px; font-weight: 600; opacity: .75; }
.store-button__text strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.store-button__soon {
  position: absolute; top: -10px; right: -8px;
  padding: 4px 10px; border-radius: 999px; background: var(--site-orange); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 12px -4px rgba(255, 107, 61, .6);
}
.download-note { margin-top: 18px !important; color: var(--site-muted) !important; font-size: 14px !important; font-weight: 600 !important; }

/* ---------- Phone illustration (built from brand assets, not a screenshot) ---------- */
.download-hero__art { position: relative; height: 560px; }
.phones { position: absolute; inset: 0; }
.phone {
  position: absolute; width: 260px; aspect-ratio: 9 / 19.2; padding: 10px;
  border-radius: 46px; background: #16140F; text-align: left;
  box-shadow: 0 40px 70px -30px rgba(22, 20, 15, .55), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
/* --x shifts each phone from the centre; the float animation reuses it so small screens can pull them inwards. */
.phone--front { --x: -30%; left: 50%; top: 50%; z-index: 2; transform: translate(var(--x), -50%) rotate(4deg); animation: phone-float 6s ease-in-out infinite; }
.phone--back { --x: -102%; left: 50%; top: 50%; z-index: 1; width: 232px; transform: translate(var(--x), -46%) rotate(-8deg); opacity: .96; animation: phone-float-back 7s ease-in-out infinite; }
@keyframes phone-float { 50% { transform: translate(var(--x), -52%) rotate(3deg); } }
@keyframes phone-float-back { 50% { transform: translate(var(--x), -44%) rotate(-9deg); } }
.phone__screen {
  position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; gap: 12px; padding: 44px 14px 16px;
  border-radius: 37px;
  background:
    radial-gradient(70% 40% at 0% 0%, rgba(47, 190, 106, .28), transparent 70%),
    radial-gradient(60% 40% at 100% 100%, rgba(255, 107, 61, .2), transparent 70%),
    #F7F2E6;
}
.phone__notch { position: absolute; top: 12px; left: 50%; width: 84px; height: 24px; border-radius: 999px; background: #16140F; transform: translateX(-50%); }
.mock-logo { align-self: center; width: 70px; height: auto; }
.mock-active {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 20px;
  background: rgba(255, 255, 255, .78); box-shadow: 0 10px 20px -14px rgba(22, 20, 15, .35);
}
.mock-active img { width: 44px; height: 44px; padding: 6px; border-radius: 14px; background: rgba(255, 107, 61, .12); }
.mock-active span, .mock-card span { display: grid; gap: 2px; min-width: 0; }
.mock-active strong, .mock-card strong { font-size: 13px; line-height: 1.25; }
.mock-active em { color: var(--site-green-ink); font-size: 11px; font-style: normal; font-weight: 800; }
.mock-active em::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--site-green); vertical-align: 1px; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 4px;
  border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 10.5px; font-weight: 700; white-space: nowrap;
}
.mock-chip img { width: 22px; height: 22px; }
.mock-card {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border-radius: 18px; background: #fff; box-shadow: 0 10px 20px -14px rgba(22, 20, 15, .35);
}
.mock-card img { width: 46px; height: 46px; padding: 4px; border-radius: 14px; background: #F4EEE0; }
.mock-card em { color: var(--site-muted); font-size: 11px; font-style: normal; font-weight: 600; }
.mock-card--faded { opacity: .55; }
.mock-card--faded strong { width: 110px; height: 10px; border-radius: 6px; background: #ECE6D8; }
.mock-card--faded em { width: 80px; height: 8px; border-radius: 6px; background: #F1ECE0; }

.phone__screen--match { justify-content: flex-end; gap: 10px; padding-bottom: 22px; background: radial-gradient(80% 50% at 50% 20%, rgba(255, 107, 107, .25), transparent 70%), #F7F2E6; }
.mock-match { display: grid; justify-items: center; gap: 6px; margin-bottom: auto; padding-top: 40px; text-align: center; }
.mock-match img { width: 90px; height: 90px; filter: drop-shadow(0 12px 18px rgba(255, 107, 107, .35)); }
.mock-match strong { font-size: 20px; letter-spacing: -.03em; }
.mock-match span { max-width: 170px; color: var(--site-soft); font-size: 11.5px; line-height: 1.45; font-weight: 600; }
.mock-bubble { max-width: 80%; padding: 9px 12px; border-radius: 16px; font-size: 11.5px; font-weight: 600; line-height: 1.35; }
.mock-bubble--in { align-self: flex-start; border-bottom-left-radius: 6px; background: #fff; }
.mock-bubble--out { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--site-green); color: #fff; }

/* ---------- Why ---------- */
.why { padding: 64px 0 24px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card {
  padding: 20px 22px 26px;
  border: 1px solid var(--glass-rim); border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .42));
  box-shadow: var(--glass-shadow);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
}
.why-card .guide-art { margin-left: -8px; }
.why-card:hover { transform: translateY(-3px); }
.why-card:hover .guide-art__tile { transform: rotate(-2deg) translateY(-4px) scale(1.05); }
.why-card h3 { margin: 12px 0 6px; font-size: 19px; line-height: 1.25; letter-spacing: -.025em; }
.why-card p { margin: 0; color: var(--site-soft); font-size: 14px; line-height: 1.65; font-weight: 500; }

/* ---------- Notify ---------- */
.notify {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
  margin-top: 40px; padding: 32px 36px; border-radius: 32px; background: var(--site-ink); color: #fff;
}
.notify__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(47, 190, 106, .18); color: var(--site-green); }
.notify__icon svg { width: 28px; height: 28px; }
.notify h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.035em; }
.notify p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.6; }
.notify__social { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.social-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.social-pill svg { width: 17px; height: 17px; }
.social-pill:hover { background: #fff; color: var(--site-ink); }
.download-help { margin: 28px 0 0; color: var(--site-soft); font-size: 14px; font-weight: 600; text-align: center; }
.download-help a { color: var(--site-green-ink); font-weight: 800; text-decoration: none; }
.download-help a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .notify { grid-template-columns: auto minmax(0, 1fr); }
  .notify__social { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .download-hero { grid-template-columns: 1fr; padding: 48px 32px 24px; text-align: center; }
  .download-hero__copy { display: flex; flex-direction: column; align-items: center; }
  .store-buttons { justify-content: center; }
  .download-hero__art { height: 520px; }
}
@media (max-width: 600px) {
  .download { width: calc(100% - 24px); }
  .download-hero { margin-top: 16px; padding: 36px 18px 8px; border-radius: 30px; gap: 8px; }
  .download-hero__copy > p { font-size: 16px; }
  .store-buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 300px; }
  .store-button { justify-content: center; }
  .download-hero__art { height: 440px; }
  .phone { width: 210px; border-radius: 38px; padding: 8px; }
  .phone__screen { border-radius: 31px; padding: 38px 11px 12px; gap: 9px; }
  .phone--front { --x: -40%; }
  .phone--back { --x: -78%; width: 186px; }
  .why { padding-top: 44px; }
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 14px 18px 14px 8px; border-radius: 24px; }
  .why-card .guide-art { --size: 72px; grid-row: span 2; margin: 0; }
  .why-card h3 { margin: 0 0 4px; font-size: 17px; align-self: end; }
  .why-card p { font-size: 13px; align-self: start; }
  .notify { grid-template-columns: 1fr; padding: 28px 22px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .phone--front, .phone--back, .download-badge .dot { animation: none; }
}
