/* RankRoots — site styles. Mobile-first, no framework. */
:root {
  --ink: #14213d;          /* deep navy — trust */
  --ink-2: #26365e;
  --text: #1f2633;
  --muted: #5a6273;
  --paper: #fffdf9;
  --tint: #f8f1e6;         /* warm, earthy */
  --line: #e7ddcc;
  --accent: #e2801b;       /* marigold — energy, Odisha warmth */
  --accent-ink: #9a4f00;
  --accent-soft: #fde9cf;
  --ok: #1f7a5a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,33,61,.06), 0 8px 24px rgba(20,33,61,.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); max-width: 22ch; }
.center h2, .narrow h2 { max-width: none; }
h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
h1 em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,253,249,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.nav__links { display: none; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--accent-ink); }
.nav .btn { margin-left: auto; }
@media (min-width: 900px) { .nav__links { display: flex; } .nav .btn { margin-left: 8px; } }

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
.logo b { color: var(--accent); }
.logo__mark { width: 28px; height: 28px; color: var(--ink); }
.logo--light { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, background .15s; text-align: center; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.btn--on-dark { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 8px 16px; font-size: .9rem; }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.cta-row--center { justify-content: center; }
@media (max-width: 520px) { .cta-row .btn { width: 100%; } }

/* Hero */
.hero { padding: 48px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%), var(--paper); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 80px 0; } .hero__grid { grid-template-columns: 1.35fr 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin-bottom: 12px; }
.eyebrow--light { color: #ffc98a; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.lead strong { color: var(--ink); }
.proof { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.proof b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.proof li > span { font-size: .85rem; color: var(--muted); }

.hero__card { background: var(--ink); color: #e9edf6; border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.hero__card-title { font-weight: 700; color: #fff; margin-bottom: 14px; }
.bubbles { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.bubbles li { background: var(--ink-2); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: .95rem; }
.bubbles li:nth-child(even) { margin-left: 18px; }
.hero__card-foot { margin: 0; color: #ffc98a; font-weight: 600; font-size: .95rem; }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 88px 0; } }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #dfe5f1; }
.section--dark h2 { color: #fff; }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 70ch; margin-bottom: 32px; }
.note { color: var(--muted); font-size: .95rem; margin-top: 24px; }

.grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; }
.section--tint .card { border-color: transparent; }

/* Compare table */
.compare { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; font-size: .95rem; }
.compare__row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; }
.compare--3 .compare__row { grid-template-columns: 1fr 1fr 1fr 1.4fr; }
.compare__row > span { padding: 12px 12px; border-top: 1px solid var(--line); }
.compare__row > span:last-child { background: var(--accent-soft); color: var(--ink); }
.compare__head > span { border-top: 0; font-weight: 700; color: var(--ink); background: #faf6ef; }
.compare__head > span:last-child { background: var(--accent); color: #fff; }
.compare [role="rowheader"] { font-weight: 600; color: var(--ink); }
@media (max-width: 720px) {
  .compare { font-size: .82rem; }
  .compare__row > span { padding: 10px 8px; }
  .compare--3 .compare__row { grid-template-columns: .9fr 1fr 1fr 1.2fr; }
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.steps__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 12px; }

/* Pricing */
.pricing { display: grid; gap: 18px; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { position: relative; background: #fff; border-radius: 18px; padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--accent); }
@media (min-width: 900px) { .plan--featured { transform: translateY(-10px); } }
.plan__badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; margin: 0; }
.plan__for { color: var(--muted); font-size: .93rem; min-height: 2.8em; }
.plan__price { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); margin: 6px 0 4px; font-weight: 700; }
.plan__price small { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan__price--sm { font-size: 1.5rem; margin: 0 0 8px; }
.plan__emi { color: var(--ok); font-weight: 600; font-size: .9rem; margin: 0 0 8px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 8px; flex: 1; }
.ticks li { padding-left: 26px; position: relative; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%239a4f00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.addons { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 760px) { .addons { grid-template-columns: 1fr 1fr; } }
.addon { display: flex; gap: 16px; justify-content: space-between; align-items: center; background: #fff; border-radius: var(--radius); padding: 18px 20px; border: 1px dashed var(--line); }
.addon p { color: var(--muted); font-size: .92rem; margin: 0; }
.addon__buy { text-align: right; flex-shrink: 0; }
@media (max-width: 520px) { .addon { flex-direction: column; align-items: flex-start; } .addon__buy { text-align: left; } }

/* Diagnosis */
.diag { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .diag { padding: 34px; } }
.diag__progress { height: 6px; background: var(--tint); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.diag__bar { height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.diag__step { font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.diag__q { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin-bottom: 18px; }
.diag__opts { display: grid; gap: 10px; }
@media (min-width: 640px) { .diag__opts { grid-template-columns: 1fr 1fr; } }
.diag__opt { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.diag__opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.diag__opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.diag__nav { display: flex; justify-content: space-between; margin-top: 20px; }
.diag__back { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 6px 0; }
.diag__back[hidden] { display: none; }
.diag label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .95rem; }
.diag input[type="text"], .diag input[type="tel"] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; background: var(--paper); }
.diag input:focus { border-color: var(--accent); outline: none; }
.diag__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-top: 14px; font-weight: 400 !important; }
.diag__consent input { margin-top: 4px; }
.result__profile { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; padding: 4px 12px; border-radius: 99px; font-size: .85rem; margin-bottom: 10px; }
.result h3 { font-family: var(--serif); font-size: 1.6rem; }
.result h4 { margin: 22px 0 8px; color: var(--ink); font-size: 1rem; }
.result ol { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.result__phase { background: var(--tint); border-radius: 12px; padding: 14px 16px; margin-top: 18px; font-size: .95rem; }
.result__care { background: #eef6f2; border-left: 4px solid var(--ok); border-radius: 8px; padding: 14px 16px; margin-top: 18px; font-size: .95rem; }
.result__reco { margin-top: 24px; padding: 20px; border-radius: 14px; border: 2px solid var(--accent); }
.result__reco p { margin-bottom: 12px; }

/* Story */
.story { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 380px 1fr; gap: 56px; } }
.story__photo { margin: 0; }
.story__photo img { border-radius: 20px; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ink-2); }
.story__photo figcaption { margin-top: 12px; color: #fff; font-weight: 700; }
.story__photo figcaption span { color: #aab5cc; font-weight: 400; font-size: .9rem; }
.story p { max-width: 62ch; }
.story strong { color: #fff; }
.story__sign { font-family: var(--serif); font-size: 1.2rem; color: #ffc98a; border-left: 3px solid var(--accent); padding-left: 16px; margin: 24px 0; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: #fff; border-radius: 12px; padding: 0 20px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

.quote { margin: 0; background: #fff; padding: 22px; border-radius: var(--radius); }
.quote blockquote { margin: 0 0 12px; font-size: 1.02rem; }
.quote figcaption { color: var(--muted); font-size: .88rem; }

.final { background: linear-gradient(180deg, var(--paper), var(--accent-soft)); }

/* Footer */
.footer { background: #0e182d; color: #b9c2d6; padding: 48px 0 24px; font-size: .93rem; }
.footer a { color: #e7ecf6; text-decoration: none; }
.footer a:hover { color: #ffc98a; }
.footer__grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer nav { display: grid; gap: 8px; }
.footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid #22304f; font-size: .8rem; color: #8590a8; }

/* WhatsApp float */
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 60; }
.wa-float svg { width: 30px; height: 30px; }

/* Article / legal pages */
.page { padding: 48px 0 72px; }
.prose { max-width: 740px; }
.prose h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; max-width: none; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--tint); color: var(--ink); }
.prose blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 10px 10px 0; }
.meta { color: var(--muted); font-size: .9rem; }
.callout { background: var(--ink); color: #e9edf6; border-radius: 16px; padding: 24px; margin: 36px 0; }
.callout h2, .callout h3 { color: #fff; margin-top: 0; }
.callout p { color: #cfd7e8; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.posts { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .posts { grid-template-columns: 1fr 1fr; } }
.post-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card h2 { font-size: 1.25rem; max-width: none; }
.post-card p { color: var(--muted); margin: 0; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
