/* Vyaparhood website — one stylesheet for every page.
   Colours and type come straight from the app design. */

:root {
  --ink: #16233f;
  --blue: #2f6fea;
  --lime: #b6ff3c;
  --bg: #f8faff;
  --white: #ffffff;
  --blue-soft: #eaf2ff;
  --blue-softer: #e3ecff;
  --text: #5a6b8c;
  --muted: #8a97b5;
  --line: #b7c1d9;
  --teal: #1a9385;
  --teal-soft: #e6f7f4;
  --orange: #ff8a5b;
  --orange-soft: #ffeee6;

  --border: 2.5px solid var(--ink);
  --shadow: 5px 6px 0 var(--ink);
  --shadow-sm: 2px 3px 0 var(--ink);

  --display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 10px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--blue); border: var(--border);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--lime);
}
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.2px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--blue); }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: var(--border); background: var(--white); cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: var(--border); border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none;
  color: var(--ink); background: var(--lime);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 16px; }

.store-row { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 20px 8px 16px;
  border: var(--border); border-radius: 16px;
  background: var(--ink); color: var(--white); text-decoration: none;
  box-shadow: 4px 5px 0 var(--lime);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  position: relative; cursor: pointer; font: inherit;
}
.store:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--lime); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; line-height: 1.2; opacity: 0.8; }
.store strong { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.15; }
.store[aria-disabled='true'] { cursor: default; }
.store .soon {
  position: absolute; top: -12px; right: -10px;
  background: var(--orange); color: var(--ink); border: 2px solid var(--ink);
  font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px;
  transform: rotate(6deg);
}

/* ---------- Hero ---------- */

.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(56px, 8vw, 100px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }

.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(44px, 7vw, 76px); line-height: 0.98; letter-spacing: -1.5px;
  margin: 0;
}
.hero h1 .hand {
  display: inline-block; position: relative;
  font-family: var(--hand); font-weight: 700; color: var(--blue);
  font-size: 1.12em; letter-spacing: 0; line-height: 0.9;
}
.hero h1 .hand svg {
  position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: 0.32em; overflow: visible;
}
.hero h1 .hand path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 0.7s ease-out 0.6s forwards; }

.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text); max-width: 30ch; margin: 22px 0 30px; }

.promises { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.promises li {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 5px 14px 5px 8px; background: var(--white);
  font-weight: 700; font-size: 15px;
}
.promises .dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); border: 2px solid var(--ink); font-size: 12px;
}

.price-note { margin: 22px 0 0; color: var(--text); font-size: 15px; }
.price-note b { color: var(--ink); }

/* Radar illustration */

.radar-card {
  background: var(--white); border: 3px solid var(--ink); border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  max-width: 470px; justify-self: end; width: 100%;
}
.radar-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.radar-top b { font-family: var(--display); font-size: 22px; }
.radar-top span { font-weight: 700; color: var(--blue); font-size: 15px; }

.radar {
  position: relative; aspect-ratio: 1; width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-soft) 0 33%, #f2f6ff 33% 66%, var(--bg) 66%);
  border: 2px dashed var(--line);
}
.ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 2px dashed var(--line); transform: translate(-50%, -50%);
}
.ring.r1 { width: 33%; height: 33%; }
.ring.r2 { width: 66%; height: 66%; }
.ring.pulse { width: 100%; height: 100%; border: 2px solid var(--blue); opacity: 0; animation: ringPulse 2.6s ease-out infinite; }
.you {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: var(--blue); border: 3px solid var(--white);
  box-shadow: 0 0 0 8px rgba(47, 111, 234, 0.16);
  animation: centerPulse 2.6s ease-in-out infinite;
}
.pin {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px;
  transform: translate(-50%, -50%);
  animation: pinPop 0.5s cubic-bezier(.3, 1.4, .6, 1) both;
}
.pin img {
  width: clamp(44px, 12vw, 58px); height: clamp(44px, 12vw, 58px);
  border-radius: 16px; border: var(--border); background: var(--white); object-fit: cover;
}
.pin.active img { border-color: var(--blue); box-shadow: 0 0 0 4px var(--lime); }
.pin em {
  font-style: normal; font-weight: 700; font-size: 12px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 0 8px;
}
.pin.p1 { left: 30%; top: 27%; animation-delay: 0.35s; }
.pin.p2 { left: 76%; top: 40%; animation-delay: 0.5s; }
.pin.p3 { left: 38%; top: 78%; animation-delay: 0.65s; }

.member {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 12px; border-radius: 22px;
  border: var(--border); background: var(--bg);
}
.member img { width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--ink); object-fit: cover; }
.member div { flex: 1; min-width: 0; }
.member b { font-family: var(--display); font-size: 18px; display: block; line-height: 1.1; }
.member span { color: var(--text); font-size: 14.5px; }
.member .connect {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px;
  animation: breathe 2.6s ease-in-out 1.4s infinite;
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--white); border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }

.section h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -0.8px;
  margin: 0 0 14px; max-width: 18ch;
}
.section .intro { color: var(--text); font-size: 19px; max-width: 52ch; margin: 0 0 44px; }

/* How it works — a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 21px;
  background: var(--lime); border: var(--border);
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 21px; left: 56px; right: -8px;
  border-top: 2.5px dashed var(--line);
}
.steps h3 { font-family: var(--display); font-size: 22px; line-height: 1.15; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--text); font-size: 16px; }

.note-demo {
  margin-top: 56px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  max-width: 860px;
}
.bubble {
  border: var(--border); border-radius: 22px 22px 22px 6px; background: var(--bg);
  padding: 16px 18px; font-size: 16.5px; color: #4a5670;
}
.bubble small { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 13.5px; }
.arrow { font-family: var(--hand); font-size: 28px; color: var(--blue); text-align: center; line-height: 1; }
.approved {
  border: var(--border); border-radius: 999px; background: var(--teal-soft); color: var(--teal);
  padding: 12px 18px; font-weight: 700; text-align: center;
}

/* Who it's for */
.people { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.chips li {
  border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px;
  font-weight: 700; font-size: 15.5px; background: var(--white);
}
.chips li:nth-child(4n + 1) { background: var(--blue-softer); }
.chips li:nth-child(4n + 2) { background: var(--teal-soft); }
.chips li:nth-child(4n + 3) { background: #fff6d6; }
.chips li:nth-child(4n) { background: var(--orange-soft); }
.photo-frame {
  max-width: 440px; justify-self: center; width: 100%;
  border: 3px solid var(--ink); border-radius: 34px; overflow: hidden; box-shadow: var(--shadow);
  position: relative; background: var(--blue-soft);
}
.photo-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-frame figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: var(--white); border: var(--border); border-radius: 18px; padding: 10px 14px;
  font-size: 14.5px; color: var(--text);
}
.photo-frame figcaption b { color: var(--ink); font-family: var(--display); font-size: 17px; display: block; line-height: 1.1; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: var(--border); border-radius: 28px; overflow: hidden; background: var(--white); }
.trust div { padding: 28px 30px; }
.trust div:nth-child(odd) { border-right: 2.5px solid var(--ink); }
.trust div:nth-child(-n + 2) { border-bottom: 2.5px solid var(--ink); }
.trust h3 { font-family: var(--display); font-size: 23px; margin: 0 0 6px; line-height: 1.15; }
.trust p { margin: 0; color: var(--text); font-size: 16.5px; }

/* Pricing */
.plan {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 860px;
  border: 3px solid var(--ink); border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); background: var(--white);
}
.plan-step { padding: 32px 34px; }
.plan-step + .plan-step { border-left: 3px solid var(--ink); background: var(--blue-soft); }
.plan-step .when { font-weight: 700; color: var(--text); font-size: 15.5px; }
.plan-step .amount { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 7vw, 72px); line-height: 1; margin: 6px 0 4px; }
.plan-step .amount small { font-size: 0.32em; font-weight: 700; color: var(--text); margin-left: 4px; }
.plan-step p { margin: 0; color: var(--text); font-size: 16px; }
.plan-step .tag {
  display: inline-block; margin-left: 8px; padding: 0 10px; border-radius: 999px;
  background: var(--lime); border: 2px solid var(--ink); color: var(--ink); font-size: 13px;
  transform: rotate(-3deg);
}
.plan-step + .plan-step .amount { color: var(--blue); }
.includes { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; max-width: 860px; }
.includes li { padding-left: 32px; position: relative; }
.includes li::before {
  content: '✓'; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--lime); border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.fine { color: var(--text); font-size: 15px; margin: 26px 0 0; max-width: 70ch; }

/* FAQ */
.faq { max-width: 800px; border-top: 2.5px solid var(--ink); }
.faq details { border-bottom: 2.5px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: var(--border); background: var(--white);
  display: grid; place-items: center; font-family: var(--body); font-size: 20px; font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq details[open] summary::after { content: '–'; background: var(--lime); }
.faq details p { margin: 0 0 22px; color: var(--text); max-width: 64ch; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.about p { color: var(--text); margin: 0 0 14px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #c9d2e6; padding: 64px 0 32px; font-size: 15.5px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer h4 { color: var(--white); font-family: var(--display); font-size: 18px; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer address { font-style: normal; }
.legal-line { border-top: 1px solid #33415f; margin-top: 44px; padding-top: 22px; font-size: 14px; color: #95a2c0; }

/* ---------- Policy pages ---------- */

.doc { padding: clamp(40px, 6vw, 72px) 0 96px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 54px); line-height: 1.05; margin: 0 0 8px; letter-spacing: -0.6px; }
.doc .updated { color: var(--muted); margin: 0 0 34px; }
.doc h2 { font-family: var(--display); font-size: 25px; line-height: 1.2; margin: 40px 0 8px; }
.doc p, .doc li { color: #3d4a66; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .box {
  border: var(--border); border-radius: 22px; background: var(--white); padding: 20px 24px; margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.doc .box p:last-child { margin-bottom: 0; }
.doc .box p:first-child { margin-top: 0; }
.placeholder { background: #fff3b0; padding: 0 4px; border-radius: 4px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--white); border: 2px solid var(--lime);
  padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 200;
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), visibility 0.3s;
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Page-load sequence (hero only) ---------- */

.rise { opacity: 0; transform: translateY(22px); animation: rise 0.55s cubic-bezier(.2, .8, .2, 1) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; } .d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; } .d5 { animation-delay: 0.45s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ringPulse {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
@keyframes centerPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(47, 111, 234, 0.16); }
  50% { box-shadow: 0 0 0 14px rgba(47, 111, 234, 0.07); }
}
@keyframes pinPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) translateY(6px); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  .hero h1 .hand path { stroke-dashoffset: 0; }
  .ring.pulse { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap, .people, .about { grid-template-columns: 1fr; }
  .radar-card { justify-self: start; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps li:nth-child(2)::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: var(--border); padding: 8px var(--pad) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--blue-softer); }
  .nav .btn { margin-top: 12px; }
  .menu-btn { display: block; }
  .plan { grid-template-columns: 1fr; }
  .plan-step + .plan-step { border-left: 0; border-top: 3px solid var(--ink); }
  .includes { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust div:nth-child(odd) { border-right: 0; }
  .trust div:not(:last-child) { border-bottom: 2.5px solid var(--ink); }
  .note-demo { grid-template-columns: 1fr; }
  .arrow { font-size: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
}
