/* ============================================================
   Nirmaan Flow / GST Point: design system
   Calm canvas, one accent, real product imagery.
   ============================================================ */
:root {
  --canvas: #FAFAF9;
  --canvas-2: #F3F5F4;
  --card: #FFFFFF;
  --ink: #0F3D3A;
  --ink-2: #44585A;
  --ink-3: #6E8082;
  --line: #E4E9E8;
  --line-2: #D3DCDA;
  --teal: #0F766E;
  --teal-deep: #115E59;
  --mint: #CCE7E4;
  --mint-soft: #EBF5F3;
  --amber: #F59E0B;
  --amber-soft: #FEF3C7;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 61, 58, .06);
  --shadow: 0 1px 2px rgba(15, 61, 58, .05), 0 16px 40px -18px rgba(15, 61, 58, .22);
  --shot: drop-shadow(0 24px 40px rgba(15, 61, 58, .16)) drop-shadow(0 2px 4px rgba(15, 61, 58, .06));
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 16px/1.6 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
.lede { text-wrap: pretty; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.06; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.section { padding: 120px 0; scroll-margin-top: 64px; }
.section.tight { padding: 80px 0; }
@media (max-width: 760px) { .section { padding: 80px 0; } .section.tight { padding: 56px 0; } }

.head { max-width: 680px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { margin-bottom: 16px; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); line-height: 1.6; }
.head.center .lede { margin: 0 auto; max-width: 56ch; }
.muted { color: var(--ink-3); }
.label { font-size: .82rem; font-weight: 600; color: var(--teal); margin-bottom: 14px; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .96rem; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-secondary { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink-3); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mint-soft); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: .9rem; }
.link { color: var(--teal); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 249, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; font-size: 1.05rem; flex: none; }
.brand img { width: 32px; height: 32px; }
.brand-gp img { width: auto; height: 32px; }
.brand-gp small { font-weight: 500; font-size: .8rem; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line-2); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a, .nav-links > li > button { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: color .15s, background .15s; }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > button[aria-expanded="true"] { color: var(--ink); background: var(--canvas-2); }
.nav-links svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-links button[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Products dropdown */
.has-menu { position: relative; }
.menu { position: absolute; top: calc(100% + 10px); left: -12px; width: 360px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a, .menu div.item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); }
.menu a:hover { background: var(--canvas-2); }
.menu img, .menu .mi { width: 40px; height: 40px; border-radius: 10px; }
.menu .mi { display: grid; place-items: center; background: var(--canvas-2); color: var(--ink-3); }
.menu .mi svg { width: 20px; height: 20px; }
.menu b { display: flex; align-items: center; gap: 8px; font-size: .94rem; font-weight: 600; }
.menu span.d { display: block; font-size: .84rem; color: var(--ink-3); line-height: 1.4; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 68px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open .nav-links > li > a, .nav.open .nav-links > li > button { width: 100%; height: 48px; font-size: 1rem; justify-content: space-between; }
  .menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-menu.open .menu { display: block; }
}
@media (max-width: 520px) { .nav-inner { gap: 12px; } .nav-cta .btn-primary { padding: 0 14px; } .brand-gp small { display: none; } .nav-cta .hide-sm { display: none; } }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.badge-live { background: var(--mint-soft); color: var(--teal); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.badge-soon { background: var(--canvas-2); color: var(--ink-3); }
.badge-amber { background: var(--amber-soft); color: #92400E; }

/* ---------- Product shots ---------- */
.shot { filter: var(--shot); }
.frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.callout { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); font-size: .86rem; font-weight: 600; white-space: nowrap; }
.callout i { width: 22px; height: 22px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; flex: none; }
.callout i svg { width: 12px; height: 12px; }

/* ---------- Ticks ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---------- Final CTA (the one dark band per page) ---------- */
.cta { background: var(--ink); color: #fff; border-radius: 28px; padding: 72px 64px; display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #A9C3BF; margin-top: 14px; font-size: 1.1rem; max-width: 52ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 48px 24px; border-radius: 20px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 24px 0; color: var(--ink-2); }
.faq .answer a { color: var(--teal); font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.input, .select { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--card); transition: border-color .15s, box-shadow .15s; }
.select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F3D3A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 16px 16px; }
.select::-ms-expand { display: none; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { margin: 0 0 14px; font-size: .84rem; font-weight: 600; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-3); font-size: .92rem; transition: color .15s; }
.footer ul a:hover { color: var(--teal); }
.footer-about p { color: var(--ink-3); font-size: .92rem; margin-top: 14px; max-width: 32ch; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--ink-3); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Reveal (once) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero load-in (once, CSS only so it never waits on scroll) ---------- */
.load-in > * { animation: loadIn .7s var(--ease) both; }
.load-in > *:nth-child(2) { animation-delay: .06s; }
.load-in > *:nth-child(3) { animation-delay: .12s; }
.load-in > *:nth-child(4) { animation-delay: .18s; }
.load-in > *:nth-child(5) { animation-delay: .24s; }
@keyframes loadIn { from { opacity: 0; transform: translateY(12px); } }
.load-in-late { animation: loadIn .9s .3s var(--ease) both; }

/* ---------- Legal pages ---------- */
.legal-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 12px; }
.legal-head p { color: var(--ink-3); }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding-top: 56px; padding-bottom: 96px; align-items: start; }
.legal > * { min-width: 0; }
.toc { position: sticky; top: 96px; font-size: .88rem; }
.toc b { display: block; font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-3); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--teal); border-left-color: var(--teal); font-weight: 600; }
.prose { max-width: 720px; color: var(--ink-2); }
.prose section { scroll-margin-top: 88px; }
.prose section + section { margin-top: 48px; }
.prose h2 { font-size: 1.6rem; margin-bottom: 16px; }
.prose h3 { font-size: 1.02rem; margin: 24px 0 8px; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--teal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mint); }
.prose .note { background: var(--mint-soft); border-radius: var(--r-sm); padding: 16px 18px; color: var(--ink); }
.prose .card-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9rem; background: var(--card); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--canvas-2); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; } .toc { position: static; } .toc ol { grid-template-columns: 1fr 1fr; border-left: 0; } .toc a { padding-left: 0; border-left: 0; } }

/* ---------- Guides ---------- */
.guide-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); max-width: 22ch; }
.guide-lede { font-size: 1.15rem; color: var(--ink-2) !important; max-width: 62ch; margin-top: 4px; }
.guide-meta { margin-top: 16px; font-size: .9rem; }
.guide-meta a { color: var(--teal); font-weight: 600; }
.crumbs { display: flex; gap: 8px; font-size: .86rem; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--teal); font-weight: 600; }
.prose .answer-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--r-sm); padding: 20px 22px; margin-bottom: 40px; color: var(--ink); }
.prose .answer-box b { display: block; font-weight: 600; margin-bottom: 8px; }
.prose .answer-box ol, .prose .answer-box ul { margin: 0; }
.prose .steps-list { padding-left: 22px; }
.prose .steps-list li { margin-bottom: 10px; }
.prose code { font-size: .9em; background: var(--canvas-2); padding: 1px 6px; border-radius: 5px; }
.prose .faq { margin: 0; }
.prose .faq summary { font-size: 1rem; color: var(--ink); }
.prose .guide-note { margin-top: 40px; font-size: .9rem; }
.sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 20px 0 14px; }
.sample-grid a { display: grid; gap: 6px; text-decoration: none !important; color: var(--ink) !important; }
.sample-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 6px; background: #fff; transition: box-shadow .2s, transform .2s var(--ease); }
.sample-grid a:hover img { box-shadow: var(--shadow); transform: translateY(-2px); }
.sample-grid span { font-weight: 600; font-size: .92rem; }
.sample-grid em { font-style: normal; font-size: .78rem; color: var(--teal); font-weight: 600; }
.guide-cta { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; margin-top: 40px; padding: 24px; border-radius: var(--r); background: var(--mint-soft); color: var(--ink); }
.guide-cta b { display: block; font-weight: 600; margin-bottom: 4px; }
.guide-cta p { margin: 0 !important; color: var(--ink-2); font-size: .95rem; }
.guide-cta .btn { text-decoration: none !important; color: #fff !important; }
@media (max-width: 680px) { .guide-cta { grid-template-columns: 1fr; } }
.related { margin-top: 56px; }
.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gcards.two { grid-template-columns: repeat(2, 1fr); }
.related .gcards { grid-template-columns: 1fr 1fr; }
.gcard { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none !important; transition: border-color .2s, box-shadow .2s; }
.gcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.gcard b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.gcard span { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.gcard em { margin-top: auto; padding-top: 8px; font-style: normal; font-size: .82rem; font-weight: 600; color: var(--teal); }
@media (max-width: 900px) { .gcards, .gcards.two, .related .gcards { grid-template-columns: 1fr; } }
.footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.prose.guide h2 { margin-top: 56px; }
.prose.guide .sample-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .prose.guide .sample-grid { grid-template-columns: repeat(2, 1fr); } }
