/* ==========================================================================
   Jodi Ani Godi — Relationship Health Score — styles (mobile-first, bilingual)
   Palette pulled from the brand logo (purple → magenta → crimson) and the
   "coming soon" landing page (rose/crimson gradient + gold accent).
   ========================================================================== */
:root {
  /* Brand core (from logo) */
  --plum:       #5b1a9e;   /* purple silhouette */
  --plum-deep:  #3b0d63;
  --magenta:    #d6187a;   /* pink silhouette */
  --rose:       #be123c;   /* crimson */
  --rose-deep:  #881337;
  --rose-950:   #4c0519;
  --gold:       #fde047;   /* highlight accent */

  --brand:      #c2185b;   /* primary CTA (magenta-crimson) */
  --brand-dark: #97124a;
  --ink:        #2b1a22;
  --muted:      #7a5a66;
  --bg:         #fff5f8;   /* soft rose page tint */
  --card:       #ffffff;
  --line:       #f6dbe4;

  /* Diagnostic band colours (semantic — kept distinct on purpose) */
  --green:  #2e9e5b; --yellow: #e0a800; --orange: #e8734a; --red: #d64545;

  /* Signature gradients */
  --brand-grad: linear-gradient(135deg, #4a0e78 0%, #a01566 52%, #be123c 100%);
  --hero-grad:  linear-gradient(160deg, #4c0519 0%, #881337 32%, #a3134a 62%, #7d0f34 100%);

  --radius: 16px;
  --shadow: 0 8px 28px rgba(120, 20, 60, .12);
  --font: 'Noto Sans', 'Noto Sans Devanagari', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; }

/* ---- Header ---- */
.topbar { text-align: center; padding: 18px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.topbar-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 6px 18px rgba(120,20,60,.28); }
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: .3px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--muted); font-size: .92rem; }

/* ---- Intro hero (dark brand gradient — matches the coming-soon page) ---- */
.hero {
  background: var(--hero-grad); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 22px; text-align: center; margin-top: 14px;
  position: relative; overflow: hidden;
}
.hero::after { /* soft glow like the landing page */
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,113,133,.35), transparent 70%);
  top: -160px; right: -120px; pointer-events: none;
}
.hero .hero-emoji { font-size: 2.2rem; }
.hero h1 { font-size: 1.55rem; margin: 8px 0 6px; color: #fff; position: relative; }
.hero .sub-en { color: #ffe4e6; font-weight: 600; display: block; font-size: .95rem; }
.hero p { color: #ffe4e6; margin: 10px 0 0; position: relative; }
.hero .accent { color: var(--gold); }
.meta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; position: relative; }
.meta-pill { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  color: #fff; border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(4px); }

/* ---- Progress ---- */
.progress-shell { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0 6px; }
.progress-track { height: 8px; background: #f3d9e3; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--brand-grad); transition: width .3s ease; }
.progress-label { font-size: .8rem; color: var(--muted); margin-top: 6px; text-align: center; }

/* ---- Section + questions ---- */
.section-title { font-size: 1.15rem; font-weight: 800; margin: 26px 4px 4px; color: var(--brand-dark); }
.section-title .en { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }

.q-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 16px; margin-top: 14px;
}
.q-card.unanswered-flag { border-color: var(--red); box-shadow: 0 0 0 2px rgba(214,69,69,.15); }
.q-num { color: var(--magenta); font-weight: 800; font-size: .8rem; }
.q-text { font-weight: 600; margin: 4px 0 4px; }
.q-text .en { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 2px; }

.options { display: grid; gap: 8px; margin-top: 12px; }
.opt {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--magenta); }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.opt.selected { border-color: var(--brand); background: #fdeaf3; }
.opt .mr { font-weight: 600; }
.opt .en { color: var(--muted); font-size: .85rem; margin-left: auto; }

/* ---- Contact capture ---- */
.contact-card .field { display: block; margin-top: 14px; }
.field-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--brand-dark); }
.contact-card input[type="text"],
.contact-card input[type="tel"] {
  width: 100%; padding: 13px 14px; font-size: 1rem; font-family: var(--font);
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.contact-card input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(194,24,91,.12); }
.phone-row { display: flex; align-items: stretch; gap: 8px; }
.phone-row .cc { display: flex; align-items: center; padding: 0 14px; font-weight: 700;
  background: #fdeaf3; color: var(--brand-dark); border: 1.5px solid var(--line); border-radius: 12px; }
.phone-row input { flex: 1; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: .9rem; color: var(--ink); cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--brand); margin: 2px 0 0; flex: 0 0 auto; }
.consent .en { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.field-error { border-color: var(--red) !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px; padding: 15px 22px; font-size: 1.05rem;
  font-weight: 700; cursor: pointer; text-decoration: none; width: 100%;
  font-family: var(--font);
}
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 1.5px solid var(--brand); }
.btn-lg { padding: 17px 24px; font-size: 1.1rem; }
.submit-wrap { margin-top: 26px; }
.lang-toggle { display: flex; justify-content: center; margin-top: 14px; }
.lang-toggle button { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; color: #fff; font-family: var(--font); font-size: .85rem; }
.note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---- Report page ---- */
.score-hero { text-align: center; padding: 26px 20px; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow); }
.score-hero .big { font-size: 3.2rem; font-weight: 800; line-height: 1; }
.score-hero .outof { opacity: .85; font-weight: 600; }
.score-hero .band-label { font-size: 1.2rem; font-weight: 700; margin-top: 8px; }
.score-hero .band-msg { margin-top: 6px; opacity: .95; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 18px; margin-top: 18px;
}
.card h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--brand-dark); }
.card h2 .en { font-size: .8rem; color: var(--muted); font-weight: 600; display: block; }
.chart-box { position: relative; margin: 8px auto 0; }

.cat-list { display: grid; gap: 14px; margin-top: 6px; }
.cat-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.cat-head { display: flex; align-items: center; gap: 10px; }
.cat-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.cat-name { font-weight: 700; }
.cat-name .en { color: var(--muted); font-weight: 500; font-size: .85rem; }
.cat-score { margin-left: auto; font-weight: 700; color: var(--muted); }
.cat-bar { height: 8px; background: #f3d9e3; border-radius: 999px; margin: 10px 0; overflow: hidden; }
.cat-bar > span { display: block; height: 100%; border-radius: 999px; }
.cat-explain { font-size: .92rem; color: var(--ink); }
.cat-explain .en { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; }

.video-wrap { position: relative; padding-top: 56.25%; margin-top: 12px; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.offer { background: linear-gradient(135deg, #fdeaf3, #ffe0ea); border: 1px solid #f6c2d6; }
.offer .price { font-size: 1.6rem; font-weight: 800; color: var(--brand-dark); }
.offer .strike { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: 1rem; margin-left: 8px; }

.loading, .error-box { text-align: center; padding: 60px 20px; color: var(--muted); }
.error-box h2 { color: var(--ink); }
.spinner { width: 38px; height: 38px; border: 4px solid #f3d9e3; border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 30px; }
.footer a { color: var(--brand-dark); }
.consent a { color: var(--brand-dark); font-weight: 600; }
a { color: var(--brand); }
.hidden { display: none !important; }
