/*
 * Help Union: coming soon page.
 * Colours, radii and type come from the mobile app's design tokens (mobile-app/src/theme/tokens.ts),
 * so the site and the app look like one product. Change a colour in :root, not in a rule.
 */

/* General Sans (Indian Type Foundry, Fontshare, ITF Free Font License: assets/fonts/LICENSE-ITF-FFL.txt) */
@font-face { font-family: "General Sans"; src: url("../assets/fonts/GeneralSans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../assets/fonts/GeneralSans-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../assets/fonts/GeneralSans-Semibold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../assets/fonts/GeneralSans-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  /* Brand */
  --navy: #1B3A5C;
  --navy-pressed: #142C46;
  --navy-deep: #12283F;
  --blue: #4A90C2;
  --yellow: #F6C453;
  --yellow-pressed: #E9B43C;
  --green: #25805D;

  /* Text */
  --text: #14202B;
  --text-muted: #52606D;
  --text-subtle: #8A96A3;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #9DC1E0;
  --link: #2F7BB8;

  /* Surfaces */
  --bg: #FFFFFF;
  --bg-alt: #F7FAFC;
  --panel: #E6F0F8;
  --panel-strong: #D2E0ED;
  --border: #E3E8EE;
  --success-bg: #E3F2EB;
  --danger-text: #B53A17;

  /* Help categories */
  --cat-food: #82ABCE;
  --cat-clothing: #EEC667;
  --cat-shelter: #C7BDE5;
  --cat-transport: #E6A992;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 12px rgba(20, 32, 43, 0.06);
  --shadow-floating: 0 8px 20px rgba(20, 32, 43, 0.12);
  --shadow-phone: 0 40px 80px rgba(6, 17, 29, 0.45);

  --gutter: 20px;
  --container: 1160px;
  --font: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--navy); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--link); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--yellow); color: var(--navy); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--radius-md);
  font: 600 1rem/1 var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--yellow); color: var(--navy); }
.btn--accent:hover { background: var(--yellow-pressed); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-on-dark); }
.brand__logo { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.brand__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.brand--dark { color: var(--navy); }
.brand--dark .brand__logo { box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--text-on-dark);
  background:
    radial-gradient(1100px 600px at 85% 20%, rgba(74, 144, 194, .35), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(246, 196, 83, .10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding-bottom: 72px;
}

.hero__globe {
  position: absolute;
  right: -180px; top: 40px;
  width: 760px; height: 760px;
  fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: .25;
  pointer-events: none;
}

.nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; padding-block: 20px; }
.nav__links { display: none; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--text-on-dark-muted); font-weight: 500; text-decoration: none; transition: color .2s ease; }
.nav__links a:hover { color: var(--text-on-dark); }
@media (min-width: 900px) { .nav__links { display: flex; } }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: 56px; align-items: center;
  padding-top: 40px;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.2fr .8fr; padding-top: 56px; }
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  color: var(--text-on-dark); font-size: .875rem; font-weight: 500;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(246, 196, 83, .6);
  animation: ping 2s ease-out infinite;
}

.hero__title {
  margin-top: 24px;
  color: var(--text-on-dark);
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 3.75rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
}
.hero__title span { color: var(--yellow); }

.hero__lead {
  margin-top: 20px; max-width: 34rem;
  color: var(--text-on-dark-muted);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 36px; }

.platforms { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-on-dark-muted); font-size: .9375rem; font-weight: 500; }
.platforms--center { justify-content: center; margin-top: 28px; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; }
.platforms .icon { width: 18px; height: 18px; color: var(--yellow); }

/* ---------- Phone mock-up (app home screen, drawn in CSS) ---------- */
.hero__visual { position: relative; display: flex; justify-content: center; padding: 24px 0; }

.phone {
  position: relative;
  width: 300px; max-width: 100%;
  border-radius: 46px; padding: 10px;
  background: #0B1826;
  box-shadow: var(--shadow-phone), inset 0 0 0 2px rgba(255, 255, 255, .08);
  transform: rotate(-2deg);
  animation: float 7s ease-in-out infinite;
}
.phone__screen {
  border-radius: 36px; overflow: hidden;
  background: var(--bg);
  color: var(--text);
  padding: 14px 16px 18px;
  font-size: 12px; line-height: 1.35;
}
.phone__status { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 12px; padding: 0 6px 10px; }
.phone__notch { width: 84px; height: 24px; border-radius: 999px; background: #0B1826; }
.phone__bars { width: 26px; height: 11px; border-radius: 3px; border: 1.5px solid var(--text); position: relative; }
.phone__bars::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--green); border-radius: 1px; }

.app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.app-head__avatar, .app-head__bell {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel); color: var(--navy);
}
.app-head__avatar .icon, .app-head__bell .icon { width: 16px; height: 16px; }
.app-head__bell { margin-left: auto; }
.app-head__hi { display: block; color: var(--text-muted); font-size: 11px; }
.app-head__loc { display: block; font-weight: 600; }

.app-weather {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--panel); color: var(--navy);
}
.app-weather .icon { width: 18px; height: 18px; color: var(--blue); }
.app-weather small { display: block; color: var(--text-muted); font-size: 10px; }
.app-weather strong { font-weight: 600; font-size: 12px; }
.app-weather__temp { margin-left: auto; font-size: 18px; font-weight: 600; }

.app-section { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 8px; }
.app-section strong { font-weight: 600; font-size: 13px; }
.app-section small { color: var(--text-muted); font-size: 10px; }

.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  height: 72px; padding: 10px; border-radius: var(--radius-md); color: var(--text);
}
.app-tile .icon { width: 18px; height: 18px; }
.app-tile b { position: absolute; top: 8px; right: 10px; font-size: 16px; font-weight: 700; }
.app-tile em { font-style: normal; font-weight: 600; font-size: 11px; }
.app-tile--food { background: var(--cat-food); }
.app-tile--clothing { background: var(--cat-clothing); }
.app-tile--shelter { background: var(--cat-shelter); }
.app-tile--transport { background: var(--cat-transport); }

.app-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; height: 40px; border-radius: var(--radius-md);
  background: var(--navy); color: var(--text-on-dark); font-weight: 600;
}
.app-cta .icon { width: 15px; height: 15px; }

.app-card {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.app-card .icon { width: 18px; height: 18px; color: var(--navy); }
.app-card strong { display: block; font-weight: 600; }
.app-card small { color: var(--text-muted); font-size: 10px; }

.float-card {
  position: absolute; z-index: 2;
  display: none; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: var(--radius-lg);
  background: var(--bg); color: var(--text);
  box-shadow: var(--shadow-floating), 0 20px 40px rgba(6, 17, 29, .25);
  font-size: 13px; line-height: 1.3;
}
.float-card strong { display: block; font-weight: 600; color: var(--navy); }
.float-card small { color: var(--text-muted); font-size: 12px; }
.float-card__icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--panel); color: var(--navy);
}
.float-card__icon .icon { width: 18px; height: 18px; }
.float-card__icon--green { background: var(--success-bg); color: var(--green); }
.float-card--top { top: 4px; left: -8px; animation: float 6s ease-in-out -2s infinite; }
.float-card--bottom { bottom: 56px; right: -8px; animation: float 6.5s ease-in-out -4s infinite; }
@media (min-width: 560px) { .float-card { display: flex; } }
@media (min-width: 960px) {
  .float-card--top { left: -56px; }
  .float-card--bottom { right: -20px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
@media (min-width: 768px) { .section { padding-block: 104px; } }
.section--alt { background: var(--bg-alt); }
.section--panel { background: var(--panel); }

.section__head { max-width: 720px; margin-bottom: 48px; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--link); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.section__lead { margin-top: 16px; color: var(--text-muted); font-size: 1.125rem; }

/* Steps */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  position: relative; padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--bg); box-shadow: var(--shadow-card);
}
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px;
  border-radius: var(--radius-md); background: var(--navy); color: var(--yellow);
  font-size: 1.125rem; font-weight: 700;
}
.step p { margin-top: 8px; color: var(--text-muted); }

/* Categories */
.categories { margin-top: 48px; text-align: center; }
.categories__title { color: var(--text-muted); font-weight: 500; margin-bottom: 16px; }
.categories__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--panel); color: var(--navy); font-weight: 500;
}
.cat .icon { width: 18px; height: 18px; }
.cat--food { background: color-mix(in srgb, var(--cat-food) 35%, white); }
.cat--clothing { background: color-mix(in srgb, var(--cat-clothing) 40%, white); }
.cat--shelter { background: color-mix(in srgb, var(--cat-shelter) 45%, white); }
.cat--transport { background: color-mix(in srgb, var(--cat-transport) 40%, white); }

/* Features */
.features { display: grid; gap: 20px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  transition: translate .25s ease, box-shadow .25s ease;
}
.feature:hover { translate: 0 -4px; box-shadow: var(--shadow-floating); }
.feature__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: var(--radius-md); background: var(--panel); color: var(--navy);
}
.feature p { margin-top: 8px; color: var(--text-muted); font-size: .9375rem; }

/* Roles */
.roles { display: grid; gap: 20px; }
@media (min-width: 640px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .roles { grid-template-columns: repeat(4, 1fr); } }
.role {
  padding: 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--bg);
}
.role__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; background: var(--navy); color: var(--text-on-dark);
}
.role p { margin-top: 8px; color: var(--text-muted); font-size: .9375rem; }

.ask {
  display: flex; flex-direction: column; gap: 16px; margin-top: 24px; padding: 24px 28px;
  border-radius: var(--radius-lg); background: var(--navy); color: var(--text-on-dark-muted);
}
@media (min-width: 640px) { .ask { flex-direction: row; align-items: center; gap: 20px; } }
.ask h3 { color: var(--text-on-dark); }
.ask p { margin-top: 4px; }
.ask__icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--yellow); color: var(--navy);
}
.ask__icon .icon { fill: currentColor; }

/* Safety */
.safety { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .safety { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.safety__art {
  display: grid; place-items: center; padding: 48px 32px;
  border-radius: 28px; background: var(--bg);
}
.safety__art img { width: min(100%, 380px); }
.checks { display: grid; gap: 18px; margin-top: 28px; }
.checks li { display: flex; gap: 14px; color: var(--text-muted); }
.checks .icon {
  width: 36px; height: 36px; padding: 8px; border-radius: 10px;
  background: var(--bg); color: var(--navy);
}
.checks strong { color: var(--text); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq details[open] { border-color: var(--panel-strong); box-shadow: var(--shadow-card); }
.faq summary {
  position: relative; padding: 20px 56px 20px 24px;
  color: var(--navy); font-size: 1.0625rem; font-weight: 600;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg); transition: transform .2s ease, margin-top .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--text-muted); }

/* Call to action */
.cta {
  position: relative; overflow: hidden;
  padding-block: 88px;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(74, 144, 194, .35), transparent 70%),
    var(--navy);
  color: var(--text-on-dark-muted);
  text-align: center;
}
.cta__inner { max-width: 720px; }
.cta__logo { margin: 0 auto 24px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), var(--shadow-floating); }
.cta h2 { color: var(--text-on-dark); }
.cta__inner > p { margin-top: 12px; font-size: 1.125rem; }

/* Footer */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: 40px; color: var(--text-muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__tagline { flex: 1; min-width: 200px; }
.footer__contact { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 500; text-decoration: none; }
.footer__contact:hover { color: var(--link); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 28px; padding-block: 20px; border-top: 1px solid var(--border);
  font-size: .875rem; color: var(--text-subtle);
}
.footer__urgent { display: inline-flex; align-items: center; gap: 8px; }
.footer__urgent .icon { width: 16px; height: 16px; color: var(--danger-text); }

/* ---------- Motion ---------- */
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(246, 196, 83, .6); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(246, 196, 83, 0); }
}

/* Scroll reveal: only hidden when JS is running, so the page still reads without it. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease, translate .25s ease, box-shadow .25s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
