/* Floor A — social landing page.
   Mobile-first, no external assets, no web fonts, usable with JavaScript disabled. */

:root {
  --bg: #120b16;
  --bg-2: #1c1021;
  --bg-3: #251530;
  --ink: #fdf7fb;
  --ink-dim: #cbb9c8;
  --ink-faint: #9c8a9b;
  --accent: #ff5f8f;
  --accent-2: #ffa06b;
  --line: rgb(255 255 255 / 0.12);
  --line-strong: rgb(255 255 255 / 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 5vw, 32px);
  --measure: 48rem;
  --shadow: 0 18px 48px rgb(0 0 0 / 0.45);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Noto Sans Bengali',
    'Noto Sans',
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 750;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  background: var(--accent);
  color: #1a0b12;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip:focus {
  left: 0;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  background: rgb(18 11 22 / 0.94);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(255 95 143 / 0.18);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 12vw, 96px) var(--gutter) clamp(40px, 9vw, 72px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  opacity: 0.36;
  transform: rotate(-6deg) scale(1.35);
  transform-origin: 50% 20%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 12% 0%, rgb(255 95 143 / 0.3), transparent 62%),
    radial-gradient(90% 70% at 90% 10%, rgb(255 160 107 / 0.22), transparent 60%),
    linear-gradient(180deg, rgb(18 11 22 / 0.62) 0%, rgb(18 11 22 / 0.9) 58%, var(--bg) 100%);
}

.hero-inner {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
}

.lede {
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: clamp(1rem, 3.4vw, 1.125rem);
}

.cta-row {
  margin-top: 26px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  font: inherit;
  font-weight: 750;
  color: #24060f;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgb(255 95 143 / 0.32);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgb(255 95 143 / 0.38);
}

.cta:active {
  transform: translateY(0);
}

/* Already on the list: keep the confirmation visible without shouting. */
.cta.is-done {
  color: #062418;
  background: linear-gradient(135deg, #5fd39a 0%, #34b47c 100%);
  box-shadow: none;
}

.ghost {
  min-height: 46px;
  padding: 0 22px;
  font: inherit;
  font-weight: 650;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
}

.hint {
  margin-top: 12px;
  color: var(--ink-faint);
  font-size: 0.8125rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.trust li {
  padding: 6px 13px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
}

/* ---------- shared section rhythm ---------- */

main > section {
  padding: clamp(44px, 11vw, 84px) var(--gutter);
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

main > section > h2,
main > section > .lede,
main > section > .faq-list,
main > section > .cards,
main > section > .steps,
main > section > .checklist {
  max-width: var(--measure);
  margin-inline: auto;
}

main > section > h2 {
  text-align: center;
}

main > section > .lede {
  text-align: center;
}

/* ---------- how it works ---------- */

.how {
  background: var(--bg-2);
}

.steps {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.steps li {
  padding: 22px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps h3 {
  margin-top: 12px;
}

.steps p {
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

.step-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #24060f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
}

/* ---------- people mosaic ---------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 72rem;
  margin-top: 28px;
  margin-inline: auto;
}

.mosaic img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
}

.mosaic li:nth-child(n + 16) {
  display: none;
}

/* ---------- why cards ---------- */

.cards {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.card {
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-3);
}

.card h3,
.card p {
  margin-inline: 20px;
}

.card h3 {
  margin-top: 18px;
}

.card p {
  margin-top: 6px;
  margin-bottom: 22px;
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

/* ---------- safety ---------- */

.safety {
  background: var(--bg-2);
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-dim);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgb(255 95 143 / 0.16);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.checklist li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- faq ---------- */

.faq-list {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}

.faq-list details + details {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  padding: 17px 20px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  float: right;
  font-weight: 400;
  color: var(--ink-faint);
}

.faq-list details[open] summary::after {
  content: '–';
}

.faq-list details p {
  padding: 0 20px 18px;
  color: var(--ink-dim);
  font-size: 0.9375rem;
}

/* ---------- final + footer ---------- */

.final {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 100%);
}

.foot {
  padding: 26px var(--gutter) 40px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.8125rem;
  border-top: 1px solid var(--line);
}

/* ---------- sticky cta ---------- */

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgb(18 11 22 / 0.96);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.sticky-cta .cta {
  width: 100%;
}

/* ---------- register dialog ---------- */

.reg {
  width: min(420px, calc(100vw - 32px));
  padding: 26px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.reg::backdrop {
  background: rgb(8 4 10 / 0.72);
}

.reg h2 {
  font-size: 1.375rem;
}

.reg .lede {
  font-size: 0.9375rem;
}

.reg input {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.reg input::placeholder {
  color: var(--ink-faint);
}

.reg input[aria-invalid='true'] {
  border-color: var(--accent);
}

.reg-error {
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.8125rem;
}

.reg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.reg-actions .cta {
  flex: 1 1 160px;
}

.reg-done {
  text-align: center;
}

.reg-done .ghost {
  margin-top: 18px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  color: var(--ink);
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Keep the toast clear of the mobile call-to-action bar. */
@media (max-width: 719px) {
  .toast {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

/* ---------- wider viewports ---------- */

@media (min-width: 720px) {
  .steps,
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .mosaic {
    grid-template-columns: repeat(5, 1fr);
  }

  .mosaic li:nth-child(n + 16) {
    display: block;
  }

  .sticky-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-media {
    transform: none;
  }
}
