/* Rakt Suvidha — raktsuvidha.org */
:root {
  --cream: #faf6f2;
  --cream-deep: #f3ebe4;
  --crimson: #d9455a;
  --crimson-dark: #b23245;
  --ink: #33121b;
  --ink-soft: #6d5259;
  --amber: #c9862b;
  --amber-soft: #faf0d9;
  --rose: #f7e4e6;
  --card: #ffffff;
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, .brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--crimson-dark); }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-deep);
}
.nav {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; color: var(--ink); text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--crimson-dark); }
.nav-links a.cta {
  background: var(--crimson); color: #fff;
  padding: 9px 18px; border-radius: 999px;
}
.nav-links a.cta:hover { background: var(--crimson-dark); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center;
  padding: 72px 0 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rose); color: var(--crimson-dark);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--crimson); }
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 30px; }

.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 11px 20px; border-radius: 14px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); background: #4a1f2a; }
.store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn .lines { line-height: 1.2; }
.store-btn .small { font-size: 0.68rem; opacity: 0.8; display: block; }
.store-btn .big { font-size: 1.02rem; font-weight: 600; }
.store-note { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }

/* phone frame */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(300px, 80vw);
  border-radius: 42px;
  border: 10px solid var(--ink);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(51, 18, 27, 0.35);
  background: var(--ink);
}
.phone img { border-radius: 32px; }
.bg-chip {
  position: absolute;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  background: var(--card); color: var(--crimson);
  border: 1px solid var(--rose);
  border-radius: 999px; padding: 8px 16px;
  box-shadow: 0 8px 22px -8px rgba(51, 18, 27, 0.25);
  animation: floaty 5s ease-in-out infinite;
}
.bg-chip { font-size: 0.92rem; white-space: nowrap; }
.bg-chip.c1 { top: 6%; left: 4%; animation-delay: 0s; }
.bg-chip.c2 { top: 20%; right: -6%; animation-delay: 1.2s; }
.bg-chip.c3 { top: 46%; right: -10%; animation-delay: 0.6s; }
.bg-chip.c4 { bottom: 26%; right: -4%; animation-delay: 2.4s; }
.bg-chip.c5 { bottom: 9%; left: 0; animation-delay: 1.8s; font-size: 0.82rem; }
.bg-chip.c6 { top: 32%; left: -4%; animation-delay: 3s; }
.bg-chip.gold { background: var(--amber-soft); color: var(--amber); border-color: #f0dfba; }
.bg-chip.green { background: #eaf5ec; color: #2c7a41; border-color: #cde5d3; }
.bg-chip.urgent {
  background: var(--crimson); color: #fff; border-color: var(--crimson-dark);
  animation: floaty 5s ease-in-out infinite, pulse 2.2s ease-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 69, 90, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(217, 69, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 69, 90, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-chip, .bg-chip.urgent { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); }

/* how it works */
.loops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.loop {
  background: var(--card); border-radius: var(--radius);
  padding: 26px 22px; border: 1px solid var(--cream-deep);
}
.loop .drop {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--rose); color: var(--crimson);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.loop h3 { font-size: 1.1rem; margin-bottom: 8px; }
.loop p { font-size: 0.92rem; color: var(--ink-soft); }

/* feature rows — one screenshot at a time */
.features { display: flex; flex-direction: column; gap: 28px; }
.feature-row {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: 56px; align-items: center;
  background: var(--card); border: 1px solid var(--cream-deep);
  border-radius: 34px; padding: 48px 56px;
}
.feature-row.flip { grid-template-columns: 1.2fr 0.8fr; background: var(--rose); border-color: #efd6d9; }
.feature-row.flip .feature-shot { order: 2; }
.feature-shot { margin: 0; display: flex; justify-content: center; }
.feature-shot img {
  width: min(240px, 70vw);
  border-radius: 30px;
  border: 8px solid var(--ink);
  box-shadow: 0 24px 48px -20px rgba(51, 18, 27, 0.4);
  background: var(--ink);
}
.feature-copy h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: 6px 0 14px; }
.feature-copy > p { color: var(--ink-soft); }
.who { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--crimson); }
.ticks { list-style: none; margin-top: 18px; }
.ticks li { padding: 7px 0 7px 32px; position: relative; color: var(--ink-soft); font-size: 0.97rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--rose); color: var(--crimson-dark);
  font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.feature-row.flip .ticks li::before { background: #fff; }

/* audiences */
.pane {
  background: var(--card); border: 1px solid var(--cream-deep);
  border-radius: var(--radius); padding: 34px 30px;
}
.pane.organizer { background: var(--ink); color: var(--cream); border: none; }
.pane.organizer h3 { color: #fff; }
.pane.organizer li { color: #e8d8db; }
.pane h3 { font-size: 1.35rem; margin-bottom: 6px; }
.pane .who { margin-bottom: 14px; }
.pane ul { list-style: none; margin-top: 14px; }
.pane li { padding: 9px 0 9px 30px; position: relative; color: var(--ink-soft); font-size: 0.97rem; }
.pane li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 16px; height: 16px; border-radius: 50% 50% 50% 4px;
  background: var(--crimson); transform: rotate(45deg); opacity: 0.85;
}
.pane.wide { padding: 48px 56px; border-radius: 34px; }
.pane.wide h3 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.organizer-lede { color: #e8d8db; margin-top: 10px; max-width: 58ch; }
.org-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 26px;
}
.org-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px; padding: 20px 22px;
}
.org-icon { font-size: 1.5rem; display: block; margin-bottom: 10px; }
.org-card h4 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  color: #fff; font-size: 1.05rem; margin-bottom: 6px;
}
.org-card p { color: #d9c3c8; font-size: 0.92rem; line-height: 1.5; }
.org-cta { margin-top: 26px; color: #e8d8db; }
.org-cta a { color: #ffb9c2; }

/* trust band */
.trust-band {
  background: var(--card); border: 1px solid var(--cream-deep);
  border-radius: 34px; padding: 56px;
  position: relative; overflow: hidden;
}
.trust-band::before {
  content: ""; position: absolute; top: -80px; right: -60px;
  width: 300px; height: 300px;
  background: var(--rose);
  border-radius: 50% 50% 50% 8px; transform: rotate(45deg);
  opacity: 0.55; pointer-events: none;
}
.trust-head { position: relative; max-width: 560px; margin-bottom: 40px; }
.trust-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.trust-head p { color: var(--ink-soft); }
.trust-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.trust-item h3 { font-size: 1.08rem; margin: 14px 0 8px; }
.trust-item p { font-size: 0.93rem; color: var(--ink-soft); }
.trust-mark {
  position: relative; isolation: isolate;
  width: 40px; height: 40px;
  color: #fff; font-weight: 700; font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.trust-mark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--crimson);
  border-radius: 50% 50% 50% 6px; transform: rotate(45deg);
  box-shadow: 0 8px 18px -8px rgba(178, 50, 69, 0.6);
}
.trust-foot { position: relative; margin-top: 40px; font-size: 0.95rem; color: var(--ink-soft); }

/* final cta */
.cta-band {
  text-align: center; background: var(--crimson);
  border-radius: 34px; padding: 64px 24px; color: #fff;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; color: #fff; }
.cta-band p { opacity: 0.9; margin-bottom: 28px; }
.cta-band .store-buttons { justify-content: center; }
.cta-band .store-btn { background: #fff; color: var(--ink); }
.cta-band .store-btn:hover { background: var(--cream); }

/* footer */
footer { border-top: 1px solid var(--cream-deep); padding: 40px 0 56px; margin-top: 64px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 0.9rem; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--crimson-dark); }

/* ---------- legal / inner pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 2.2rem; margin-bottom: 6px; }
.doc .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 36px; }
.doc h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.doc h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.doc p, .doc li { color: #4d353c; }
.doc ul, .doc ol { padding-left: 24px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 0.94rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--cream-deep); vertical-align: top; }
.doc th { font-weight: 600; }
.notice {
  background: var(--amber-soft); border: 1px solid #eeddb5;
  border-radius: 14px; padding: 16px 20px; margin: 20px 0;
  font-size: 0.95rem;
}

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

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .loops { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
  .feature-row.flip .feature-shot { order: 0; }
  .trust-band { padding: 40px 28px; }
  .trust-grid, .org-grid { grid-template-columns: 1fr; }
  .bg-chip.c2, .bg-chip.c3, .bg-chip.c4 { right: 0; }
}
@media (max-width: 520px) {
  .loops { grid-template-columns: 1fr; }
  .nav-links a:not(.cta) { display: none; }
}
